/* =========================================================
   Pennejä taivaasta tilitoimisto – teeman päätyylit
   Värit ja fontit layoutista (taina_niemelä_logo_verkkosivu_2026.pdf, s. 2)
   ========================================================= */

:root {
  --c-blue: #027391;
  --c-yellow: #f4bc03;
  --c-red: #d2232a;
  --c-red-dark: #ab0101;
  --c-cream: #fce8ab;
  --c-cream-light: #fdf2d6;
  --c-text: #231f20;
  --c-white: #ffffff;
  --c-footer: #91a8ae;

  /* Alkuperäiset fontit: Amandine Bold (logo/CTA), Contralto Big DemiBold (otsikot),
     Minion Pro (leipäteksti). Jos lisenssifontit lisätään assets/fonts-kansioon,
     ne otetaan käyttöön automaattisesti (ks. @font-face alla), muuten
     käytetään Google Fonts -vastineita. */
  --font-logo: "Amandine", "Limelight", "Playfair Display", Georgia, serif;
  --font-display: "Contralto Big", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Minion Pro", "EB Garamond", Garamond, Georgia, serif;

  --container: 1080px;
  --container-narrow: 720px;
  --header-h: 96px;
}

/* --- Valinnaiset lisenssifontit ------------------------------------ */
@font-face {
  font-family: "Amandine";
  src: url("../fonts/Amandine-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Contralto Big";
  src: url("../fonts/ContraltoBig-DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Minion Pro";
  src: url("../fonts/MinionPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* --- Perus ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Ankkurilinkit: jätä tilaa sticky-headerille */
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--c-text);
  background-color: var(--c-cream-light);
  /* kerma + vinot valkoiset "valojuovat" kuten layoutissa */
  background-image:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.85) 18%,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0) 55%,
      rgba(255, 255, 255, 0.7) 66%,
      rgba(255, 255, 255, 0) 78%
    );
  background-attachment: fixed;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-blue);
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-yellow);
  color: var(--c-text);
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* --- Vinot bannerit ("nauhat") ---------------------------------- */
.ribbon {
  position: relative;
  display: block;
  color: var(--c-white);
  font-family: var(--font-display);
  text-align: center;
  padding: 26px 40px;
  /* kevyesti vino suunnikas kuten layoutissa */
  clip-path: polygon(0 4%, 100% 0, 99% 100%, 1% 92%);
}
.ribbon--blue {
  background: var(--c-blue);
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 92%);
}
.ribbon--red {
  background: var(--c-red);
  clip-path: polygon(0 5%, 100% 0, 98% 100%, 2% 100%);
}
.ribbon--yellow {
  background: var(--c-yellow);
  color: var(--c-text);
  clip-path: polygon(0 0, 100% 3%, 97% 100%, 0 96%);
}
.ribbon > * {
  margin: 0;
}

/* --- Napit -------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
}
.btn:hover,
.btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.btn--yellow {
  background: var(--c-yellow);
  color: var(--c-text);
  font-family: var(--font-logo);
  font-size: 17px;
  padding: 12px 22px;
}
.btn--blue {
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 13px;
  padding: 10px 18px;
}

/* --- Header ------------------------------------------------------ */
.site-header {
  background: var(--c-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  transition: min-height 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.site-header.is-scrolled .site-header__inner {
  min-height: 72px;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 14px rgba(35, 31, 32, 0.08);
}
.site-logo {
  display: block;
  line-height: 0;
  flex: 0 0 auto;
}
.site-logo img,
.site-logo svg {
  width: 116px;
  height: auto;
  transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.site-header.is-scrolled .site-logo img,
.site-header.is-scrolled .site-logo svg {
  width: 96px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-text);
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav .current-menu-item > a {
  color: var(--c-blue);
  text-decoration: none;
}
/* alleviivaus kasvaa keskeltä */
.site-nav ul a {
  position: relative;
  padding-bottom: 4px;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.site-nav ul a:hover::after,
.site-nav ul a:focus-visible::after {
  transform: scaleX(1);
}
.site-nav__contact {
  display: flex;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav__contact a {
  color: var(--c-red);
}
.site-nav__contact a:hover {
  color: var(--c-red-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--c-blue);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* --- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1.1); /* varaa tilaa parallax-liikkeelle */
  will-change: transform;
}
.hero__logo {
  position: relative;
  z-index: 1;
  width: 400px;
  max-width: 70vw;
  margin-top: -40px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.12));
}
.hero__logo img,
.hero__logo svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
/* Logo ilmestyy laatta kerrallaan (sininen → keltainen → punainen) */
html.js .hero__logo .logo-tile {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: translateY(14px) rotate(-3deg);
  animation: ptt-tile 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
html.js .hero__logo .logo-tile--2 {
  animation-delay: 0.14s;
}
html.js .hero__logo .logo-tile--3 {
  animation-delay: 0.28s;
}
@keyframes ptt-tile {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Intro ------------------------------------------------------- */
.intro {
  position: relative;
  z-index: 2;
  margin-top: -80px; /* sininen nauha nousee kuvan päälle */
  text-align: center;
  padding-bottom: 20px;
}
.intro__ribbon {
  max-width: 780px;
  margin-inline: auto;
  font-size: clamp(20px, 2.5vw, 26px);
  padding: 30px 48px 34px;
}
.intro__text {
  max-width: 640px;
  margin: 34px auto 26px;
  font-size: 17px;
  line-height: 1.55;
}
.intro__cta {
  margin-bottom: 30px;
}

/* --- Palvelut ---------------------------------------------------- */
.services {
  padding: 8px 0 60px;
}
.services__ribbon {
  max-width: 750px;
  margin: 0 auto 50px;
  font-size: clamp(20px, 2.6vw, 27px);
  padding: 30px 48px;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 60px;
  max-width: 800px;
  margin-inline: auto;
  align-items: start; /* avattu kortti ei venytä naapureita */
}
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.service__icon {
  color: var(--c-red);
  height: 40px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
}
.service__icon svg,
.service__icon img {
  height: 40px;
  width: auto;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.service:hover .service__icon svg,
.service:hover .service__icon img {
  transform: translateY(-3px) scale(1.06);
}
.service__title {
  transition: color 0.25s;
}
.service:hover .service__title {
  color: var(--c-blue);
}
.service__title {
  font-size: 22px;
  margin: 0 0 12px;
}
.service__title a {
  color: inherit;
}
.service__text {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.service__text p:last-child {
  margin-bottom: 0;
}

/* Laajennettava lisäteksti: korkeus animoituu grid-rivin 0fr → 1fr avulla */
.service__more {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.service__more-inner {
  overflow: hidden;
  min-height: 0;
  font-size: 15px;
  line-height: 1.5;
}
.service__more-inner > :first-child {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(2, 115, 145, 0.25);
}
.service__more-inner p:last-child {
  margin-bottom: 14px;
}
.service.is-open .service__more {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: none;
}

/* Lue lisää / Sulje -nappi */
.service__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.service__toggle-icon {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.service__toggle:hover .service__toggle-icon {
  transform: translateY(2px);
}
.service.is-open .service__toggle-icon {
  transform: rotate(180deg);
}
.service.is-open .service__toggle:hover .service__toggle-icon {
  transform: rotate(180deg) translateY(2px);
}
.service__toggle:focus-visible {
  outline: 3px solid var(--c-yellow);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .service__more,
  .service__toggle-icon {
    transition: none;
  }
}

/* --- Sitaatti ---------------------------------------------------- */
.quote {
  padding: 0 0 60px;
}
.quote__ribbon {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.35;
  padding: 30px 48px 32px;
}
.quote__ribbon blockquote {
  margin: 0;
}

/* --- Yhteydenottolomake ---------------------------------------- */
.contact {
  padding: 10px 0 90px;
}
.contact__ribbon {
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: clamp(22px, 2.6vw, 28px);
  padding: 24px 40px 28px;
}
.contact__text {
  max-width: 600px;
  margin: 0 auto 34px;
  text-align: center;
  font-size: 17px;
}

/* Lomake "paperilla": vaalea, hieman läpikuultava alusta, sama hienovarainen
   vinous kuin nauhoissa. Varjo kääreessä (filter), koska clip-path leikkaisi sen. */
.contact__form {
  max-width: 720px;
  margin-inline: auto;
  filter: drop-shadow(0 14px 28px rgba(35, 31, 32, 0.08)) drop-shadow(0 2px 6px rgba(35, 31, 32, 0.05));
}
.contact__panel {
  padding: 40px 56px 44px;
  background: rgba(255, 255, 255, 0.78);
  clip-path: polygon(0 1.5%, 100% 0, 100% 98.5%, 0 100%);
}
.ptt-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 40px;
}
.ptt-form__field {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ptt-form__field--message {
  grid-column: 1 / -1;
}
.ptt-form label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.ptt-form .req {
  color: var(--c-red);
}

/* Kentät: ei laatikoita – vain pehmeä alaviiva, joka "syttyy" fokusoitaessa */
.ptt-form input[type="text"],
.ptt-form input[type="email"],
.ptt-form input[type="tel"],
.ptt-form textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--c-text);
  padding: 8px 2px 9px;
  border: 0;
  border-bottom: 2px solid rgba(2, 115, 145, 0.22);
  background:
    linear-gradient(var(--c-blue), var(--c-blue)) no-repeat center bottom / 0 2px,
    transparent;
  border-radius: 0;
  transition: background-size 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s;
}
.ptt-form input:focus,
.ptt-form textarea:focus {
  outline: none;
  border-bottom-color: rgba(2, 115, 145, 0.22);
  background-size: 100% 2px, auto;
}
.ptt-form input::placeholder,
.ptt-form textarea::placeholder {
  color: rgba(35, 31, 32, 0.4);
}
.ptt-form textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}
.ptt-form__consent {
  margin: 26px 0 26px;
  font-size: 15px;
}
.ptt-form__consent label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-text);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.ptt-form__consent input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: var(--c-blue);
  flex: 0 0 auto;
}
.ptt-form__submit {
  text-align: center;
  margin: 0;
}
.ptt-form__submit .btn {
  padding: 14px 30px;
  font-size: 18px;
}
.ptt-form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-notice {
  max-width: 720px;
  margin: 0 auto 24px;
  animation: ptt-notice 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}
.form-notice--ok {
  background: var(--c-blue);
  color: var(--c-white);
}
.form-notice--error {
  background: var(--c-red);
  color: var(--c-white);
}
@keyframes ptt-notice {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ptt-form.is-sending .btn {
  opacity: 0.7;
  pointer-events: none;
}
/* Contact Form 7 / muut lomakelisäosat perivät samat tyylit */
.contact__form .wpcf7-form label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue);
}
.contact__form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact__form .wpcf7-form textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 8px 2px 9px;
  border: 0;
  border-bottom: 2px solid rgba(2, 115, 145, 0.22);
  background: transparent;
}
.contact__form .wpcf7-form input[type="submit"] {
  font-family: var(--font-logo);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--c-yellow);
  color: var(--c-text);
  border: 0;
  padding: 14px 30px;
  cursor: pointer;
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
}

/* --- Liike: scroll-reveal ---------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal--ribbon {
  transform: translateY(24px) rotate(-1.6deg);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* nauhan sisällä oleva teksti tulee hitusen jäljessä */
html.js .reveal--ribbon > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.25s, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s;
}
html.js .reveal--ribbon.is-visible > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .reveal--ribbon > *,
  html.js .hero__logo .logo-tile {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  .hero__bg {
    transform: none !important;
  }
  .site-header__inner,
  .site-logo img,
  .service__icon svg,
  .site-nav ul a::after {
    transition: none;
  }
}

/* --- Footer ------------------------------------------------------ */
.site-footer {
  background: linear-gradient(90deg, #91a8ae 0%, #90a9b2 55%, #90acb9 100%);
  color: var(--c-text);
  padding: 50px 0 60px;
  font-size: 14px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 800px;
  margin-inline: auto;
}
.site-footer__logo img,
.site-footer__logo svg {
  width: 150px;
  height: auto;
}
.site-footer__map {
  display: block;
  line-height: 0;
}
.site-footer__map img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.site-footer__info dl {
  margin: 0;
  display: grid;
  gap: 2px;
}
.site-footer__info dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
.site-footer__info dd {
  margin: 0 0 6px;
  font-size: 14px;
}
.site-footer__info a {
  color: inherit;
}
.site-footer__bottom {
  max-width: 800px;
  margin: 40px auto 0;
  font-size: 12px;
  opacity: 0.85;
}
.site-footer__bottom ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- Sisältösivut ------------------------------------------------ */
.page-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero .hero__bg {
  filter: saturate(0.9);
}
.page-hero__title {
  position: relative;
  z-index: 1;
  margin: 0 auto -30px;
  max-width: 730px;
  width: calc(100% - 48px);
  font-size: clamp(24px, 3vw, 31px);
  padding: 26px 40px 30px;
}
.content-area {
  padding: 70px 0 80px;
}
.entry-content {
  max-width: var(--container-narrow);
  margin-inline: auto;
  font-size: 17px;
}
.entry-content h2 {
  color: var(--c-blue);
  font-size: 28px;
  margin-top: 1.4em;
}
.entry-content h3 {
  font-size: 22px;
  margin-top: 1.2em;
}
.entry-content img {
  height: auto;
}
.entry-content .wp-block-button__link {
  border-radius: 0;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.3em;
}
.entry-title {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--c-blue);
}
.post-meta {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 24px;
}
.archive-list {
  max-width: var(--container-narrow);
  margin-inline: auto;
  display: grid;
  gap: 40px;
}
.archive-list article h2 {
  font-size: 26px;
  margin-bottom: 6px;
}
.archive-list article h2 a {
  color: var(--c-blue);
}
.pagination {
  max-width: var(--container-narrow);
  margin: 40px auto 0;
  font-family: var(--font-display);
}
.pagination .page-numbers {
  padding: 4px 8px;
}
.pagination .current {
  color: var(--c-red);
}
/* WordPress-ydinluokat */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; opacity: 0.8; }
.sticky {}
.bypostauthor {}
.gallery-caption { font-size: 14px; }

/* --- Responsiivisuus -------------------------------------------- */
@media (max-width: 1000px) {
  .site-nav {
    gap: 24px;
  }
  .site-nav ul {
    gap: 22px;
  }
  .site-nav a,
  .site-nav__contact {
    font-size: 15px;
  }
  .site-nav__contact {
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--c-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 14px;
  }
  .site-nav__contact {
    flex-direction: column;
    gap: 8px;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__logo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }
  .hero {
    min-height: 380px;
  }
  .hero__logo {
    width: 280px;
    margin-top: -30px;
  }
  .intro {
    margin-top: -50px;
  }
  .intro__ribbon,
  .services__ribbon,
  .quote__ribbon {
    padding-inline: 24px;
  }
  .services__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ptt-form__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .contact__panel {
    padding: 30px 22px 34px;
  }
}

/* --- Hakulomake -------------------------------------------------- */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
}
.search-form label {
  flex: 1;
}
.search-field {
  width: 100%;
  font: inherit;
  padding: 9px 12px;
  border: 1px solid rgba(35, 31, 32, 0.25);
  background: var(--c-white);
}
