.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  height: 74px;
  background: rgba(221, 230, 217, 0.92);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(0,0,0,0.06);

  overflow: visible; /* tärkeä: logo saa “roikkua” ulos */

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-header.hidden {
  transform: translateY(-100%);
}



#palvelut {
  scroll-margin-top: -70px;
}


.wp-site-blocks,
  .entry-content,
  .site-content,
      main {
         margin-top: 0 !important;
         padding-top: 0 !important;
            }
     .hero {
       margin-top: 0 !important;
           }

    :root {
      --bg: #E9FAE0;
      --surface: #ffffff;
      --surface-soft: #f5f7f4;
      --text: #1f2a1f;
      --muted: #5a6658;
      --primary: #415C41;
      --primary-dark: #5D825B;
      --footer: #e9eee7;
      --shadow: 0 10px 30px rgba(0,0,0,0.07);
      --radius: 18px;
      --max-width: 1200px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.6;
      position: relative;
    }

   /* body::before {
      content: "";
      position: fixed;
      inset: 0;
      background-image: url('https://puhtaudenhallinta.fi/wp-content/uploads/2026/04/TLlogo.jpg');
      background-repeat: no-repeat;
      background-position: -10% center;
      background-size: 40%;
      opacity: 0.18;
      pointer-events: none;
      z-index: -1;
    }
*/

    img {
      max-width: 100%;
      display: block;
    }

    a {
      color: inherit;
    }

    .container {
      width: min(100% - 32px, var(--max-width));
      margin: 0 auto;
    }

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 50px;
  width: auto;
  display: block;
  overflow: visible;
  z-index: 10;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.12));
}

.logo-text {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;              /* ottaa väliä */
  justify-content: center;
  min-width: 0;
}


    .nav a {
      text-decoration: none;
      color: var(--text);
      font-weight: 600;
      font-size: 0.95rem;
    }

    .nav a:hover {
      color: var(--primary-dark);
    }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;

  padding: 10px 18px;   /* hieman kompaktimpi */
  border-radius: 10px;

  white-space: nowrap;

  height: 40px;         /* lukitsee visuaalisen koon */
}

    .header-cta:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
    }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: none;
  font-size: 1.8rem;
  padding: 6px 10px;
  cursor: pointer;
  min-height: auto;
    }

    .menu-toggle:hover {
      background: transparent;
      transform: none;
    }

    .hero {
      min-height: calc(100vh - 72px);
      background:
        linear-gradient(rgba(0,0,0,0.52), rgba(0,0,0,0.52)),
        url('https://puhtaudenhallinta.fi/wp-content/uploads/2026/04/hero1-1.jpg');
      background-size: cover;
      background-position: center 18%;
      display: flex;
      align-items: center;
      color: white;
    }

    .hero-content {
      max-width: 760px;
      padding: 72px 0;
    }

    .hero h1 {
      margin: 0 0 18px;
      font-size: clamp(1.6rem, 3vw, 2.4rem);
      line-height: 1.05;
      letter-spacing: -0.03em;
    }

    .hero p {
      margin: 0 0 28px;
      font-size: clamp(1rem, 2vw, 1.25rem);
      max-width: 62ch;
      color: rgba(255,255,255,0.95);
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 14px 22px;
      border-radius: 10px;
      text-decoration: none;
      font-weight: 700;
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
      min-height: 48px;
    }

    .btn-primary {
      background: var(--primary);
      color: #fff;
    }

    .btn-primary:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
    }

    .btn-secondary {
      background: transparent;
      color: #fff;
      border: 1px solid rgba(255,255,255,0.5);
    }

    .btn-secondary:hover {
      border-color: #fff;
      transform: translateY(-1px);
    }

    .section {
      padding: 80px 0;
    }

    .section-header {
      max-width: 760px;
      margin: 0 auto 20px;
      text-align: center;
    }
.section-header h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.1;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}


    .section-header p {
      margin: 0;
      color: var(--muted);
      font-size: 1.05rem;
    }


/* vasen ja oikea “siipi” */
.section-header h2::before,
.section-header h2::after {
  content: "";
  flex: 1;
  height: 1px;

  background: var(--primary);
  opacity: 0.6;

  max-width: 250px;
}

/* suunnat */
.section-header h2::before {
  --dir: right;
}

.section-header h2::after {
  --dir: left;
}

    .grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 24px;
    }

    .card {
      background: var(--surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 28px;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      height: 100%;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 36px rgba(0,0,0,0.09);
    }

    .service-card h3 {
      margin: 0 0 10px;
      font-size: 1.15rem;
    }

    .service-card p {
      margin: 0;
      color: var(--muted);
      font-size: 0.98rem;
    }

    .split {
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      gap: 36px;
      align-items: start;
    }

    .split.reverse {
      grid-template-columns: 1fr 1.1fr;
    }

    .split-media img {
      width: 100%;
      height: 100%;
      max-height: 460px;
      object-fit: cover;
      border-radius: 22px;
      box-shadow: var(--shadow);
    }

    .split-text h2 {
      margin-top: 0;
      margin-bottom: 16px;
      font-size: clamp(1.8rem, 4vw, 2.4rem);
      line-height: 1.1;
    }

    .split-text p {
      margin-top: 0;
      margin-bottom: 18px;
      color: var(--muted);
    }

    .benefits {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 12px;
    }

    .benefits li {
      background: var(--surface);
      padding: 14px 16px;
      border-radius: 12px;
      box-shadow: var(--shadow);
      font-weight: 600;
    }

    .trust {
      background: var(--primary);
      color: white;
      text-align: center;
      padding: 72px 0;
    }

    .trust h2 {
      margin: 0 0 12px;
      font-size: clamp(1.8rem, 4vw, 2.4rem);
    }

    .trust p {
      margin: 0;
      font-size: 1.05rem;
      opacity: 0.96;
    }

    #contact.section {
      padding: 56px 0;
    }

    #contact .section-header {
      margin-bottom: 24px;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      justify-content: center;
      gap: 28px;
      max-width: 720px;
      margin: 0 auto;
    }

    .contact-card {
      background: var(--surface);
      padding: 18px 16px;
      border-radius: 16px;
      text-align: center;
      box-shadow: var(--shadow);
      max-width: 350px;
      width: 100%;
      margin: 25px auto;
    }

    .contact-card img {
      width: 200px;
      height: 200px;
      max-width: 300px;
      object-fit: cover;
      object-position: 50% 20%;
      border-radius: 50%;
      margin: 0 auto;
      display: block;
    }

    .contact-card h3 {
      margin: 0 0 6px;
      font-size: 1.05rem;
    }

    .contact-card p {
      margin: 6px 0;
      color: var(--muted);
      font-size: 0.94rem;
      line-height: 1.45;
    }

    .contact-card a {
      text-decoration: none;
      word-break: break-word;
    }

    .contact-card a:hover {
      text-decoration: underline;
    }

    .form-wrap {
      background: var(--surface);
      box-shadow: var(--shadow);
      border-radius: var(--radius);
      padding: 22px;
      max-width: 450px;
      margin: 0 auto;
    }

    form {
      display: grid;
      gap: 10px;
    }

    label {
      font-weight: 600;
      font-size: 0.95rem;
      margin-bottom: 4px;
      display: inline-block;
    }

    input,
    textarea {
      width: 100%;
      padding: 14px 16px;
      border-radius: 12px;
      border: 1px solid #cfd8cc;
      font: inherit;
      color: var(--text);
      background: #fff;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      -webkit-appearance: none;
      appearance: none;
    }

    input:focus,
    textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
    }

    textarea {
      resize: vertical;
      min-height: 110px;
    }

    button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 50px;
      background: var(--primary);
      color: white;
      padding: 14px 18px;
      border: none;
      border-radius: 12px;
      font-weight: 700;
      font-size: 1rem;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.2s ease;
    }

    button:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
    }

    footer {
      background: var(--footer);
      padding: 28px 0;
      text-align: center;
      color: var(--muted);
      font-size: 0.95rem;
    }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(65, 92, 65, 0.08);
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-copy {
  margin: 0;
}
/* KORTTICSS */
.services-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: start;
}
.service-tile {
  flex: 1 1 320px;
  max-width: 500px;

   background: var(--primary);
  border: 1px solid rgba(255,255,255,0.12);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  border-radius: var(--radius);

  overflow: hidden;
}

.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
.tile-toggle {
  all: unset;
  display: flex;
  width: 100%;
  align-items: center;
  padding: 22px;
  cursor: pointer;
  box-sizing: border-box;
}

.tile-toggle h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;

  flex: 1;
}
.tile-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 22px;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}
.service-tile.active .tile-content {
  max-height: 700px;
  padding: 0 22px 22px;
  opacity: 1;
  
}
.service-tile h3,
.service-tile p {
  color: #fff;
}

   @media (max-width: 960px) {
      .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .split,
      .split.reverse {
        grid-template-columns: 1fr;
      }

      .split-media {
        order: -1;
      }
    }

    @media (max-width: 760px) {
 .logo {
    min-width: 0;
    flex: 1;
  }

  .logo-img {
    max-width: 250px;
    height: auto;
  }

  .menu-toggle {
    flex-shrink: 0;
    margin-left: auto;
  }
      .header-inner {
        gap: 8px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
      }
       .nav a.nav-cta {
       background: var(--primary);
       color: #fff;
       font-weight: 700;
     }

      .menu-toggle {
        display: inline-flex;
        width: auto;
      }

      .nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: rgba(221, 230, 217, 0.98);
        padding: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
      }

      .nav.active {
        display: flex;
      }

      .nav a {
        padding: 12px;
        background: rgba(255,255,255,0.55);
        border-radius: 10px;
        text-align: center;
      }

      .header-cta {
        display: none;
      }

      .hero {
        min-height: auto;
      }

      .hero-content {
        padding: 64px 0;
        text-align: left;
      }

      .contact-grid {
        grid-template-columns: 1fr;
      }

      .section {
        padding: 64px 0;
      }
         

    }

    @media (max-width: 560px) {
      .container {
        width: min(100% - 24px, var(--max-width));
      }
       .footer-inner {
        flex-direction: column;
        gap: 12px;
       }
       .menu-toggle {
         width: auto;
         flex-shrink: 0;
      }

      .grid {
        grid-template-columns: 1fr;
      }

      .hero-content {
        padding: 52px 0;
      }

      .hero-actions {
        flex-direction: column;
      }

      .btn {
          width: 100%;
      }

            button:not(.menu-toggle) {
               width: 100%;
      }

      .card,
      .contact-card,
      .form-wrap {
        padding: 20px;
      }

      .contact-card img {
        width: 92px;
        height: 92px;
        max-width: 92px;
      }
    }


.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}


.social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
}


.social-links a {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
}


.social-links svg {
    display: block;
}
.custom-logo-link {
    display: flex;
    align-items: center;
    height: 74px;
    overflow: visible;
}

.custom-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 160px !important;
    max-height: 42px !important;
    object-fit: contain;
}
.site-header .logo {
    height: 74px;
    display: flex;
    align-items: center;
}

.site-header .custom-logo-link {
    height: 74px;
    display: flex;
    align-items: center;
}

.site-header .custom-logo {
    width: auto !important;
    height: auto !important;
    max-width: 130px !important;
    max-height: 38px !important;
    object-fit: contain !important;
}