/* =========================================================
   Tulla Näkyväksi Oy, boutique / editorial
   Mockup-aligned · Mobile-first
   ========================================================= */

:root {
  --bg: #E4E6D9;
  --surface: #D6D8C6;
  --deep: #3B3227;
  --deep-2: #5E5347;
  --accent: #B0623E;
  --accent-hover: #9A5434;
  --sage: #8B9A7C;
  --forest: #3C4636;
  --line: #CED1BF;
  --cream: #EEEFE6;
  --white: #FFFFFF;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;

  --maxw: 70rem;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --section-y: clamp(4.75rem, 11vw, 8.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--deep);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul[class] {
  list-style: none;
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero :focus-visible,
.trust :focus-visible,
.teaser :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cream);
}

/* ---------- Helpers ---------- */

.container {
  width: min(100% - (var(--pad) * 2), var(--maxw));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100vh;
  left: var(--pad);
  z-index: 200;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.skip-link:focus {
  top: 0.5rem;
}

.kicker {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.15rem;
}

.kicker-light {
  color: rgba(255, 255, 255, 0.72);
}

.kicker-on-dark {
  color: rgba(243, 236, 225, 0.7);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  font-weight: 400;
}

.prose {
  color: var(--deep-2);
  max-width: 34rem;
}

.prose + .prose {
  margin-top: 1.15rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.7rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--accent);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--deep);
  color: var(--deep);
}

.btn-outline:hover {
  background: var(--deep);
  color: var(--cream);
  border-color: var(--deep);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--deep);
  border-color: var(--white);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-block: 0.85rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(59, 50, 39, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--deep);
  text-decoration: none;
  line-height: 0;
  transition: color 0.3s var(--ease);
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(2.05rem, 3.15vw, 2.65rem);
  flex-shrink: 0;
  overflow: visible;
}

/* Heart-lock brand variant */
.brand-lock {
  display: block;
  width: auto;
  height: clamp(2.1rem, 3.4vw, 2.7rem);
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--deep);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--deep);
  cursor: pointer;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.6rem;
}

#nav-menu a:not(.btn) {
  color: var(--deep-2);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

#nav-menu a:not(.btn):hover {
  color: var(--deep);
  border-bottom-color: var(--accent);
}

#nav-menu a[aria-current="page"] {
  color: var(--deep);
  border-bottom-color: var(--accent);
}

/* Nav CTA */
.site-header .btn-nav {
  min-height: 2.4rem;
  padding: 0.45rem 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  background: var(--accent);
  color: var(--white);
  border: 1.5px solid var(--accent);
  animation: cta-breathe 5s ease-in-out infinite;
}

.site-header .btn-nav:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

@media (max-width: 52.99em) {
  .site-header {
    padding-block: 0.55rem;
  }

  .site-header .container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--pad);
  }

  .js .site-header .container {
    justify-content: center;
  }

  .js .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0.65rem;
    z-index: 60;
    margin: 0;
  }

  .js #nav-menu {
    display: none;
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: var(--cream);
    border: 1px solid var(--line);
  }

  .js #nav-menu.open {
    display: flex;
  }

  /* Collapse the two nav-list groups into one flat stack on mobile */
  .js .nav-list {
    display: contents;
  }

  .js #nav-menu a:not(.btn) {
    padding: 0.85rem 0.75rem;
    color: var(--deep);
    border-bottom: 1px solid var(--line);
  }

  .js #nav-menu .btn-nav {
    margin-top: 0.75rem;
    width: 100%;
  }
}

@media (min-width: 53em) {
  .nav-toggle {
    display: none;
  }

  /* Centred logo: left/right nav groups flank the brand mark */
  .site-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  #nav-menu {
    display: contents;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .nav-list-start {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .nav-list-end {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

/* ---------- Hero: full-bleed landscape ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - 4.5rem);
  min-height: calc(100vh - 4.5rem);
  padding: clamp(7rem, 16vw, 9rem) var(--pad) clamp(2.75rem, 6vw, 4rem);
  overflow: hidden;
  background: #2a241c;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  animation: hero-settle 1.6s var(--ease) both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(28, 24, 18, 0.72) 0%,
    rgba(28, 24, 18, 0.35) 48%,
    rgba(28, 24, 18, 0.2) 100%
  );
  pointer-events: none;
}

@keyframes hero-settle {
  from {
    transform: scale(1.04);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 40rem);
  max-width: 40rem;
  margin-inline: 0 auto;
  margin-left: 0;
  text-align: left;
  animation: hero-copy 1s var(--ease) 0.15s both;
}

@keyframes hero-copy {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 236, 225, 0.9);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: eyebrow-pulse 3.4s ease-in-out infinite;
}

@keyframes eyebrow-pulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: 14ch;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 1.25rem;
  font-weight: 300;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: rgba(243, 236, 225, 0.88);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin-top: 2rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 0.2rem;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}

.hero-link:hover {
  color: var(--white);
  border-color: var(--white);
  gap: 0.75rem;
}

.hero-link span {
  transition: transform 0.25s var(--ease);
}

.hero-actions .btn-solid {
  animation: cta-breathe 5s ease-in-out infinite;
}

@keyframes cta-breathe {
  0%, 100% {
    box-shadow: 0 10px 30px -10px rgba(154, 84, 52, 0.5);
  }
  50% {
    box-shadow: 0 16px 44px -8px rgba(154, 84, 52, 0.72);
  }
}

@media (min-width: 53em) {
  .hero {
    padding-inline: 0;
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
  }

  .hero-copy {
    width: min(100% - (var(--pad) * 2), 40rem);
    margin-left: max(var(--pad), calc((100% - var(--maxw)) / 2));
    margin-right: auto;
  }

  .hero-title {
    font-size: clamp(3rem, 4.2vw, 4.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-copy,
  .hero-eyebrow-dot,
  .hero-actions .btn-solid,
  .site-header .btn-nav {
    animation: none;
  }
}

/* ---------- Trust strip ---------- */

.trust {
  background: var(--forest);
  color: rgba(243, 236, 225, 0.88);
}

.trust .trust-list {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding-block: 0.75rem;
}

.trust .trust-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0;
  padding: 0;
}

.trust .trust-list .check {
  flex-shrink: 0;
  color: var(--sage);
  font-size: 0.9rem;
  line-height: 1;
}

/* Mobile: centred credentials with hairline dividers */
@media (max-width: 47.99em) {
  .trust .trust-list {
    gap: 0;
    padding-block: 0.4rem;
  }

  .trust .trust-list li {
    justify-content: center;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    padding-block: 0.55rem;
    border-top: 1px solid rgba(243, 236, 225, 0.15);
  }

  .trust .trust-list li:first-child {
    border-top: 0;
  }
}

@media (min-width: 48em) {
  .trust .trust-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding-block: 0.8rem;
  }
}

/* ---------- Kenelle ---------- */

.kenelle {
  padding-block: var(--section-y);
  background: var(--bg);
}

.kenelle-grid {
  display: grid;
  gap: clamp(2.75rem, 6vw, 5rem);
  align-items: center;
}

.kenelle-copy .display {
  font-size: clamp(2.35rem, 4.8vw, 3.4rem);
  color: var(--deep);
  margin-bottom: 1.65rem;
  max-width: 16ch;
}

.kenelle-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  width: min(100%, 26rem);
}

.kenelle-visual .img-main {
  position: absolute;
  inset: 0 0 12% 12%;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(59, 50, 39, 0.18);
}

.kenelle-visual .img-accent {
  position: absolute;
  width: 46%;
  bottom: 0;
  left: 0;
  z-index: 2;
  aspect-ratio: 1;
  padding: 0.45rem;
  background: var(--cream);
  box-shadow: 0 16px 36px rgba(59, 50, 39, 0.2);
}

.kenelle-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.kenelle-visual:hover img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .kenelle-visual:hover img {
    transform: none;
  }
}

@media (min-width: 56em) {
  .kenelle-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .kenelle-visual {
    width: 100%;
    max-width: 28rem;
    margin-inline: auto 0;
  }
}

/* ---------- Services ---------- */

.services {
  padding-block: var(--section-y);
  background: var(--surface);
}

.services-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  max-width: 28rem;
  margin-inline: auto;
}

.services-head .display {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--deep);
}

.service-list {
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, var(--deep) 8%);
  max-width: 52rem;
  margin-inline: auto;
}

.service-item {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, var(--deep) 8%);
}

.service-item a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem 1.15rem;
  align-items: start;
  padding-block: 1.55rem;
  color: var(--deep);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.service-item a:hover {
  color: var(--accent);
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.service-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.25;
}

.service-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--deep-2);
  max-width: 42rem;
}

.service-item a:hover .service-desc {
  color: var(--deep-2);
}

.service-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  transform: translateX(0);
  transition: transform 0.35s var(--ease);
  opacity: 0.65;
  padding-top: 0.35rem;
}

.service-item a:hover .service-arrow {
  transform: translateX(0.35rem);
  opacity: 1;
}

@media (min-width: 40em) {
  .service-item a {
    grid-template-columns: 1fr auto;
    padding-block: 1.7rem;
  }
}

/* ---------- Kati teaser ---------- */

.teaser {
  background: var(--forest);
  color: var(--cream);
  padding-block: var(--section-y);
}

.teaser-grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}

.teaser-photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 26rem;
  margin-inline: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.teaser-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.teaser-copy .display {
  font-size: clamp(2.3rem, 4.5vw, 3.35rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.teaser-copy .prose {
  color: rgba(243, 236, 225, 0.78);
}

.teaser-copy .btn {
  margin-top: 2rem;
}

@media (min-width: 56em) {
  .teaser-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .teaser-photo {
    margin-inline: 0;
    max-width: none;
  }
}

/* ---------- End CTA ---------- */

.cta-band {
  padding-block: var(--section-y);
  background: var(--bg);
  text-align: center;
}

.cta-band .display {
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  color: var(--deep);
  max-width: 16ch;
  margin-inline: auto;
}

.cta-band .display em {
  color: var(--accent);
}

.cta-lead {
  margin: 1.15rem auto 0;
  max-width: 32rem;
  color: var(--deep-2);
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.cta-tel {
  display: inline-block;
  margin-top: 1.35rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--deep);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.25s var(--ease);
}

.cta-tel:hover {
  color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--deep);
  color: rgba(243, 236, 225, 0.72);
  padding-block: 3.25rem 2.5rem;
  font-size: 0.92rem;
  font-weight: 300;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.footer-lock {
  height: 2.1rem;
  width: auto;
  flex-shrink: 0;
}

.site-footer address {
  font-style: normal;
  line-height: 1.8;
}

.site-footer a {
  color: rgba(243, 236, 225, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cream);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0;
  border: 1px solid rgba(243, 236, 225, 0.22);
  border-radius: 50%;
  color: rgba(243, 236, 225, 0.82);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.footer-social:hover {
  color: var(--deep);
  background: var(--cream);
  border-color: var(--cream);
}

.footer-social svg {
  width: 1.15rem;
  height: 1.15rem;
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 236, 225, 0.12);
  font-size: 0.82rem;
  opacity: 0.75;
}

@media (min-width: 40em) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* =========================================================
   Subpages (terapeutti, palvelut, neurosonic, yhteystiedot)
   ========================================================= */

/* ---------- Page hero ---------- */
.page-hero {
  padding: clamp(8rem, 17vw, 10.5rem) 0 clamp(2.75rem, 6vw, 4.5rem);
  background: var(--bg);
  text-align: center;
}

.page-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--deep);
  max-width: 20ch;
  margin-inline: auto;
}

.page-hero-lead {
  margin: 1.35rem auto 0;
  max-width: 44rem;
  color: var(--deep-2);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.ns-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.55rem 1.15rem;
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ns-badge span {
  color: var(--sage);
}

/* ---------- Generic sections ---------- */
.section {
  padding-block: var(--section-y);
  background: var(--bg);
}

.section--alt {
  background: var(--surface);
}

.section--forest {
  background: var(--forest);
  color: var(--cream);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section-title {
  font-size: clamp(2.05rem, 4.3vw, 3.1rem);
  color: var(--deep);
}

.section--forest .section-title {
  color: var(--cream);
}

/* ---------- Bio / feature two-column ---------- */
.bio-grid {
  display: grid;
  gap: clamp(2.25rem, 6vw, 4.5rem);
  align-items: center;
}

.bio-photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 25rem;
  margin-inline: auto;
  border-radius: 4px;
  box-shadow: 0 24px 50px -20px rgba(59, 50, 39, 0.4);
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-photo--room {
  aspect-ratio: auto;
  max-width: 28rem;
  width: 100%;
}

.bio-photo--room img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.bio-title {
  font-size: clamp(2.05rem, 4.2vw, 3rem);
  color: var(--deep);
  margin-bottom: 1.35rem;
}

@media (min-width: 56em) {
  .bio-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .bio-photo {
    margin-inline: 0;
    max-width: none;
  }

  .bio-photo--room {
    max-width: 34rem;
    justify-self: end;
  }
}

/* ---------- Credentials ---------- */
.creds {
  display: grid;
  gap: 0.85rem;
}

.cred {
  position: relative;
  padding: 1.05rem 1.25rem 1.05rem 3rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 1rem;
  color: var(--deep);
}

.cred::before {
  content: "\2713";
  position: absolute;
  left: 1.15rem;
  top: 1.05rem;
  color: var(--accent);
  font-size: 0.95rem;
}

@media (min-width: 40em) {
  .creds {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Education list ---------- */
.edu-intro {
  margin-top: 1rem;
}

.edu-list {
  border-top: 1px solid var(--line);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 52rem;
}

.edu-item {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0 1.15rem 2.25rem;
  font-size: 1.08rem;
  color: var(--deep);
}

.edu-item::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 1.7rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Service rows (palvelut) ---------- */
.svc-rows {
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
}

.svc-row {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  scroll-margin-top: 6rem;
}

.svc-row-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  box-shadow: 0 22px 46px -22px rgba(59, 50, 39, 0.42);
}

.svc-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.svc-row-media img.img-path {
  object-position: center 72%;
}

.svc-row:hover .svc-row-media img {
  transform: scale(1.03);
}

/* Colour panel for services without a dedicated photo */
.svc-panel {
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--cream);
}

.svc-panel--alt {
  background: var(--surface);
  color: var(--accent);
}

.svc-panel-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(4rem, 11vw, 7rem);
  line-height: 1;
  opacity: 0.92;
}

.svc-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.svc-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  color: var(--deep);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.svc-desc {
  color: var(--deep-2);
  max-width: 40rem;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.svc-tags li {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--deep-2);
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 0.42rem 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .svc-row:hover .svc-row-media img {
    transform: none;
  }
}

@media (min-width: 52em) {
  .svc-row {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .svc-row:nth-child(even) .svc-row-media {
    order: 2;
  }
}

/* ---------- Neurosonic strip (front page) ---------- */
.ns-strip {
  background: var(--forest);
  color: var(--cream);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.ns-strip-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.ns-strip-media {
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 4px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

.ns-strip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-strip-copy .display {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  color: var(--cream);
  margin-bottom: 1rem;
  max-width: 22ch;
}

.ns-strip-copy .prose {
  color: rgba(243, 236, 225, 0.8);
}

.ns-strip-link {
  margin-top: 1.5rem;
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.4);
}

.ns-strip-link:hover {
  color: var(--white);
  border-color: var(--white);
}

@media (min-width: 52em) {
  .ns-strip-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* ---------- Neurosonic: benefits ---------- */
.ns-benefits {
  display: grid;
  gap: 1.25rem;
}

.ns-benefit {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.ns-benefit-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--deep);
  margin-bottom: 0.55rem;
}

.ns-benefit-text {
  color: var(--deep-2);
  font-size: 0.98rem;
}

@media (min-width: 48em) {
  .ns-benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Neurosonic: process ---------- */
.ns-process-grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}

.ns-steps {
  display: grid;
  gap: 1.1rem;
  margin: 1.75rem 0;
}

.ns-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.ns-step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.ns-step-text {
  color: var(--deep-2);
  padding-top: 0.3rem;
}

.ns-step-text strong {
  color: var(--deep);
  font-weight: 500;
}

.ns-process-photo {
  overflow: hidden;
  aspect-ratio: 5 / 5;
  border-radius: 4px;
  box-shadow: 0 24px 50px -20px rgba(59, 50, 39, 0.4);
}

.ns-process-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 56em) {
  .ns-process-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- Neurosonic CTA (palvelut) ---------- */
.ns-cta {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.ns-cta .prose {
  color: rgba(243, 236, 225, 0.8);
}

.ns-cta-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--cream);
  margin-bottom: 1rem;
}

@media (min-width: 52em) {
  .ns-cta {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.info-row {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.info-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.info-value {
  font-size: 1.15rem;
  color: var(--deep);
  text-decoration: none;
}

a.info-value:hover {
  color: var(--accent);
}

@media (min-width: 56em) {
  .contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* ---------- Smart form ---------- */
.contact-form-wrap {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep);
  font-weight: 400;
  padding: 0;
}

.field-opt {
  text-transform: none;
  letter-spacing: 0;
  color: var(--deep-2);
  font-size: 0.8rem;
}

.form-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 34em) {
  .form-row--split {
    grid-template-columns: 1fr 1fr;
  }
}

.input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--deep);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input::placeholder {
  color: color-mix(in srgb, var(--deep-2) 55%, transparent);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

textarea.input {
  resize: vertical;
  min-height: 8rem;
}

.form-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--deep-2);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.choice input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-submit {
  margin-top: 0.25rem;
  justify-self: start;
}

.form-note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--deep-2);
  margin-top: -0.35rem;
}

.form-note.is-error {
  color: var(--accent-hover);
}

/* ---------- Booking / calendar ---------- */
.booking-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.booking-side-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--deep);
  margin-bottom: 0.85rem;
  max-width: 14ch;
}

.booking-side-lead {
  margin-bottom: 1.75rem;
}

.booking-fallback--side {
  margin-top: 1.5rem;
  text-align: left;
}

.booking-wrap {
  max-width: 48rem;
  margin-inline: auto;
}

.booking-head {
  text-align: center;
  margin-bottom: 2rem;
}

.booking-head .prose {
  margin-inline: auto;
}

.booking-embed {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  min-height: 700px;
  box-shadow: none;
  margin-top: 2.5rem;
}

@media (min-width: 56em) {
  .booking-embed {
    margin-top: 3.5rem;
  }
}

.booking-embed .calendly-inline-widget {
  min-height: 700px;
}

.booking-fallback {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--deep-2);
}

.form-solo {
  max-width: 42rem;
  margin-inline: auto;
}

.form-solo-head {
  margin-bottom: 2rem;
}

.form-solo-head .prose {
  margin-top: 0.75rem;
}

@media (min-width: 56em) {
  .booking-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .booking-layout .contact-info {
    position: sticky;
    top: 6.5rem;
  }
}

/* ---------- WhatsApp sticky side tab ---------- */
.wa-widget {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
}

.wa-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 6.5rem;
  width: auto;
  height: auto;
  padding: 0.85rem 0.4rem;
  border: 1px solid color-mix(in srgb, var(--forest) 75%, transparent);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: color-mix(in srgb, var(--forest) 92%, #000 8%);
  color: rgba(243, 236, 225, 0.88);
  cursor: pointer;
  box-shadow: -4px 6px 18px -8px rgba(59, 50, 39, 0.35);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.wa-fab:hover {
  background: var(--forest);
  color: var(--cream);
  transform: none;
}

.wa-fab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.wa-fab svg {
  display: none;
}

.wa-panel {
  position: absolute;
  right: calc(100% + 0.55rem);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: min(19rem, calc(100vw - 3.5rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 50px -18px rgba(59, 50, 39, 0.4);
  padding: 1.15rem;
  animation: wa-pop 0.25s var(--ease);
}

.wa-panel[hidden] {
  display: none;
}

@keyframes wa-pop {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(0.5rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.wa-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.wa-panel-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--deep);
}

.wa-close {
  border: 0;
  background: transparent;
  color: var(--deep-2);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.wa-close:hover {
  color: var(--deep);
}

.wa-panel-msg {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--deep-2);
  margin-bottom: 0.85rem;
}

.wa-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--deep);
  resize: vertical;
  min-height: 4.5rem;
  margin-bottom: 0.85rem;
}

.wa-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.wa-send {
  width: 100%;
  min-height: 2.75rem;
}

/* ---------- Legal / privacy page ---------- */
.legal {
  max-width: 46rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--deep);
  margin: 2.4rem 0 0.65rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  color: var(--deep-2);
  margin-bottom: 0.9rem;
}

.legal ul {
  margin: 0 0 0.9rem 1.3rem;
  color: var(--deep-2);
}

.legal ul li {
  list-style: disc;
  margin-bottom: 0.35rem;
}

.legal a {
  color: var(--accent);
}

/* ---------- Thank-you page ---------- */
.thanks {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding-top: clamp(8rem, 16vw, 11rem);
}

.cta-actions {
  gap: 1rem;
  flex-wrap: wrap;
}
