/* ==========================================
   VÄRIT
   ========================================== */

:root {
  --ink: #172027;
  --muted: #66717a;
  --paper: #f5f6f4;
  --white: #ffffff;
  --accent: #d46a2e;
  --accent-dark: #bf5d27;
  --line: #d9ddda;
}


/* ==========================================
   PERUSASETUKSET
   ========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;

  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 850px;
}


/* ==========================================
   YLÄPALKKI
   ========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;

  background: rgba(245, 246, 244, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;

  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;

  text-decoration: none;
}

.brand span {
  font-weight: 500;
}

nav {
  display: flex;
  gap: 24px;

  margin-left: auto;
}

nav a {
  font-size: 14px;
  font-weight: 700;

  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

.phone {
  font-weight: 800;
  text-decoration: none;
}

.phone:hover {
  color: var(--accent);
}


/* ==========================================
   HERO
   ========================================== */

.hero {
  min-height: 620px;

  display: grid;
  align-items: center;

  color: var(--white);

  background:
    linear-gradient(
      105deg,
      rgba(23, 32, 39, 0.96) 0%,
      rgba(23, 32, 39, 0.88) 48%,
      rgba(23, 32, 39, 0.58) 100%
    ),
    linear-gradient(
      135deg,
      #2b3942,
      #59666d
    );
}

.hero-content {
  padding: 90px 0;
}

.eyebrow {
  margin: 0 0 16px;

  color: var(--accent);

  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2.2px;
}

h1 {
  max-width: 900px;

  margin: 0 0 30px;

  font-size: clamp(58px, 9vw, 104px);
  line-height: 0.9;
  letter-spacing: -5px;
}

h2 {
  margin: 0 0 28px;

  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -2px;
}

h3 {
  margin: 8px 0 10px;

  font-size: 22px;
}

.lead {
  max-width: 680px;

  color: #e0e5e7;

  font-size: 21px;
}


/* ==========================================
   HERO-PAINIKKEET
   ========================================== */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 34px;
}

.button {
  display: inline-block;

  padding: 15px 20px;

  font-weight: 800;
  text-decoration: none;

  border: 1px solid rgba(255, 255, 255, 0.35);
}

.button.primary {
  color: var(--white);
  background: var(--accent);

  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.secondary {
  color: var(--white);
  background: transparent;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}


/* ==========================================
   YLEISET OSIOT
   ========================================== */

.section {
  padding: 100px 0;
}


/* ==========================================
   PALVELUT
   ========================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;

  margin-top: 45px;
}

.service-grid article {
  min-height: 210px;

  padding: 30px;

  background: var(--white);
  border: 1px solid var(--line);
}

.service-grid article span {
  color: var(--accent);

  font-size: 13px;
  font-weight: 900;
}

.service-grid h3 {
  margin-top: 8px;
}

.service-grid p {
  color: var(--muted);
}


/* ==========================================
   YRITYS
   ========================================== */

.dark {
  color: var(--white);
  background: var(--ink);
}

.big-copy {
  color: #e4e8ea;

  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.4;
}


/* ==========================================
   YHTEYSTIEDOT
   ========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 70px;

  align-items: start;
}

.contact-info > p:not(.eyebrow) {
  max-width: 570px;
}

.details {
  display: grid;
  gap: 7px;

  margin-top: 32px;
}

.details strong {
  font-size: 20px;
}

.details a {
  text-decoration: none;
}

.details a:hover {
  color: var(--accent);
}


/* ==========================================
   LOGO
   ========================================== */

.details img {
  display: block;

  width: 300px;
  max-width: 100%;
  height: auto;

  margin-top: 30px;
}


/* ==========================================
   TARJOUSPYYNTÖKORTTI
   ========================================== */

.quote-box {
  width: 100%;
  max-width: 430px;

  padding: 40px;

  color: var(--ink);
  background: var(--white);

  border: 1px solid var(--line);

  box-shadow:
    0 8px 25px rgba(23, 32, 39, 0.08);
}

.quote-label {
  margin: 0 0 18px;

  color: var(--accent);

  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2.2px;
}

.quote-box h3 {
  margin: 0 0 20px;

  color: var(--ink);

  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.quote-box > p:not(.quote-label) {
  margin: 0;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.6;
}


/* ==========================================
   TARJOUSPYYNTÖPAINIKKEET
   ========================================== */

.quote-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;

  margin-top: 30px;
}

.quote-phone,
.quote-email {
  display: block;

  width: 100%;

  padding: 15px 18px;

  font-size: 16px;
  font-weight: 800;

  text-align: center;
  text-decoration: none;
}


/* Puhelin */

.quote-phone {
  color: var(--white);
  background: var(--accent);

  border: 1px solid var(--accent);
}

.quote-phone:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}


/* Sähköposti */

.quote-email {
  color: var(--ink);
  background: var(--white);

  border: 1px solid #cbd0cd;
}

.quote-email:hover {
  background: var(--paper);
  border-color: #aeb5b1;
}


/* ==========================================
   ALATUNNISTE
   ========================================== */

footer {
  padding: 28px 0;

  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  color: var(--muted);
}


/* ==========================================
   MOBIILI
   ========================================== */

@media (max-width: 760px) {

  .wrap {
    width: min(calc(100% - 28px), 1120px);
  }


  /* Yläpalkki */

  .header-inner {
    min-height: 64px;
    gap: 15px;
  }

  nav {
    display: none;
  }

  .phone {
    margin-left: auto;

    font-size: 14px;
  }


  /* Hero */

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 70px 0;
  }

  h1 {
    font-size: clamp(48px, 15vw, 70px);
    letter-spacing: -3px;
  }

  .lead {
    font-size: 18px;
  }


  /* Osiot */

  .section {
    padding: 70px 0;
  }


  /* Palvelut */

  .service-grid {
    grid-template-columns: 1fr;
  }


  /* Yhteystiedot */

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }


  /* Logo */

  .details img {
    width: 250px;
  }


  /* Tarjouspyyntö */

  .quote-box {
    max-width: 100%;
    padding: 30px;
  }

  .quote-box h3 {
    font-size: 26px;
  }


  /* Alatunniste */

  .footer-inner {
    flex-direction: column;
  }

}

/* ==========================================
   YHTEYDENOTTO - DESKTOP KORJAUS
   ========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 70px;
  align-items: start;
}

.contact-info > p:not(.eyebrow) {
  max-width: 570px;
}

.details {
  display: grid;
  gap: 7px;
  margin-top: 32px;
}

.details strong {
  font-size: 20px;
}

.details a {
  text-decoration: none;
  color: var(--ink);
}

.details a:hover {
  color: var(--accent);
}


/* Logo */

.details img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin-top: 30px;
}


/* ==========================================
   TARJOUSPYYNTÖKORTTI
   ========================================== */

.quote-box {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 40px;

  background-color: var(--white);
  color: var(--ink);

  border: 1px solid var(--line);
  box-shadow: 0 8px 25px rgba(23, 32, 39, 0.08);
}

.quote-label {
  margin: 0 0 18px 0;

  color: var(--accent);

  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2.2px;
}

.quote-box h3 {
  margin: 0 0 20px 0;

  color: var(--ink);

  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.quote-box > p:not(.quote-label) {
  margin: 0;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.6;
}


/* ==========================================
   TARJOUSPYYNTÖPAINIKKEET
   ========================================== */

.quote-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;

  width: 100%;
  margin-top: 30px;
}

.quote-phone,
.quote-email {
  display: block;

  width: 100%;
  padding: 15px 18px;

  font-size: 16px;
  font-weight: 800;

  text-align: center;
  text-decoration: none;
}


/* Oranssi puhelinpainike */

.quote-phone {
  color: #ffffff;
  background-color: var(--accent);

  border: 1px solid var(--accent);
}

.quote-phone:hover {
  color: #ffffff;
  background-color: var(--accent-dark);

  border-color: var(--accent-dark);
}


/* Sähköpostipainike */

.quote-email {
  color: var(--ink);
  background-color: #ffffff;

  border: 1px solid #cbd0cd;
}

.quote-email:hover {
  color: var(--ink);
  background-color: var(--paper);

  border-color: #aeb5b1;
}


/* ==========================================
   MOBIILIN TARKENNUKSET
   ========================================== */

@media (max-width: 760px) {

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .quote-box {
    max-width: 100%;
    padding: 30px;
  }

  .quote-box h3 {
    font-size: 26px;
  }

}