@charset "UTF-8";
/* ==========================================================================
   Hammaslääkärikeskus Jouheva — site.css
   The ONLY stylesheet. Subpage builders MUST NOT edit this file;
   page-specific tweaks go in a scoped <style> in that page's <head>
   (scoped with the body page class, e.g. body.page-hinnasto).

   TABLE OF CONTENTS
   01 Fonts
   02 Tokens
   03 Reset & base
   04 Typography
   05 Layout: container, section rhythm, splits
   06 Links & buttons
   07 Motion: reveal + load stagger
   08 Header: topbar, navbar, dropdown, mobile overlay
   09 Hero (index)
   10 Editorial service rows (index §3)
   11 Price rows + price groups
   12 Staff list rows
   13 Notice panel
   14 Partner logo row
   15 Full-bleed image band
   16 Forms (light + dark)
   17 Footer
   18 SUBPAGE COMPONENTS
      .page-header--split / .page-header--band
      .services-index
      .cta-band
      .location-rows
      .prose
   ========================================================================== */


/* 01 Fonts ================================================================ */

@font-face { font-family:'Instrument Serif'; src:url('../fonts/instrument-serif-latin.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2212; }
@font-face { font-family:'Instrument Serif'; src:url('../fonts/instrument-serif-latin-ext.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; unicode-range:U+0100-02BA,U+1E00-1E9F; }
@font-face { font-family:'Instrument Serif'; src:url('../fonts/instrument-serif-italic-latin.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F; }
@font-face { font-family:'Instrument Serif'; src:url('../fonts/instrument-serif-italic-latin-ext.woff2') format('woff2'); font-weight:400; font-style:italic; font-display:swap; unicode-range:U+0100-02BA,U+1E00-1E9F; }
@font-face { font-family:'Schibsted Grotesk'; src:url('../fonts/schibsted-grotesk-latin.woff2') format('woff2'); font-weight:400 900; font-style:normal; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2212; }
@font-face { font-family:'Schibsted Grotesk'; src:url('../fonts/schibsted-grotesk-latin-ext.woff2') format('woff2'); font-weight:400 900; font-style:normal; font-display:swap; unicode-range:U+0100-02BA,U+1E00-1E9F; }


/* 02 Tokens =============================================================== */

:root {
  --paper: #F6F3EE;
  --sand:  #EBE6DD;
  --ink:   #10312F;
  --ink-soft: #3E5B58;
  --teal:  #12AFAD;
  --teal-deep: #0A7270;
  --teal-pale: #9DDEDD;
  --mist:  #C3D9D5;
  --line:  #D8D2C6;
  --line-dark: #2C4A47;

  --display: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 68ch;

  --topbar-h: 2.5rem;
  --nav-h: 4rem;
  --header-h: calc(var(--topbar-h) + var(--nav-h));

  --shadow-panel: 0 12px 32px -12px rgb(16 49 47 / 0.18);
  --shadow-menu: 0 16px 40px -16px rgb(16 49 47 / 0.25);
  --shadow-nav: 0 10px 30px -22px rgb(16 49 47 / 0.55);
}

@media (min-width: 960px) {
  :root { --nav-h: 4.75rem; }
}


/* 03 Reset & base ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }

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

button { font: inherit; color: inherit; }

::selection { background: var(--teal-pale); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 2px;
  border-radius: 2px;
}
.section--ink :focus-visible,
.topbar :focus-visible,
.site-footer :focus-visible,
.mobile-menu :focus-visible,
.navbar:not(.is-solid) .nav__link:focus-visible {
  outline-color: var(--teal-pale);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 200;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 2px 2px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 200ms ease-out;
}
.skip-link:focus-visible { transform: translateY(0); }


/* 04 Typography =========================================================== */

.display,
h1, h2, .h2, h3.display {
  font-family: var(--display);
  font-weight: 400;      /* Instrument Serif has no bold — never fake it */
  font-style: normal;
  font-synthesis: none;
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
}

h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

h3.display, .h3-display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

em, .accent-italic {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
}

p { max-width: var(--measure); }

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}
.section--ink .lead { color: var(--mist); }

.small-caps {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin: 0;
}

.note {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.section--ink .note { color: var(--mist); }

.stack > * + * { margin-top: 1.15rem; }
.stack-tight > * + * { margin-top: 0.65rem; }


/* 05 Layout =============================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section {
  padding-block: clamp(4rem, 8.5vw, 7rem);
}
.section--tall { padding-block: clamp(4.75rem, 10vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--paper { background: var(--paper); color: var(--ink); }
.section--sand  { background: var(--sand);  color: var(--ink); }

.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink h1, .section--ink h2, .section--ink .h2 { color: var(--paper); }
.section--ink p { color: var(--paper); }
.section--ink .small-caps { color: var(--mist); }

/* Section heading blocks: more space above a heading than below */
.section__head { margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem); }
.section__head > * + * { margin-top: 1.5rem; }
.section__head p { max-width: var(--measure); }

/* Asymmetric splits */
.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .split--7-5 { grid-template-columns: 7fr 5fr; }
  .split--5-7 { grid-template-columns: 5fr 7fr; }
  .split--6-6 { grid-template-columns: 1fr 1fr; }
  .split--55-45 { grid-template-columns: 55fr 45fr; }
}

/* Two-column running text */
.text-cols { display: grid; gap: clamp(1.5rem, 3vw, 3.25rem); }
.text-cols > * { max-width: var(--measure); }
@media (min-width: 900px) {
  .text-cols { grid-template-columns: 1fr 1fr; align-items: start; }
}

.media { border-radius: 10px; overflow: hidden; background: var(--sand); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--4-5 { aspect-ratio: 4 / 5; }
.media--4-3 { aspect-ratio: 4 / 3; }
.media--3-2 { aspect-ratio: 3 / 2; }
/* Editorial overlap: lift a split's image slightly above the section top. */
@media (min-width: 900px) { .media--raise { margin-top: -2rem; } }

/* Crop focus helpers — for photos whose subject is off-centre. */
.focus-left   { object-position: 25% center !important; }
.focus-right  { object-position: 74% center !important; }
.focus-top    { object-position: center 22% !important; }
.focus-bottom { object-position: center 78% !important; }


/* 06 Links & buttons ====================================================== */

a { color: inherit; }

.link,
.prose a,
.rich a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 200ms ease-out;
}
.link:hover,
.prose a:hover,
.rich a:hover { color: var(--ink); }

.section--ink .link,
.section--ink .rich a,
.section--ink .prose a,
.site-footer .link {
  color: var(--teal-pale);
}
.section--ink .link:hover,
.section--ink .rich a:hover,
.section--ink .prose a:hover,
.site-footer .link:hover { color: var(--paper); }

/* Quiet arrow link */
.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 200ms ease-out, gap 200ms ease-out;
}
.link-arrow:hover { color: var(--ink); gap: 0.8em; }
.section--ink .link-arrow { color: var(--teal-pale); }
.section--ink .link-arrow:hover { color: var(--paper); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0.85em 1.6em;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
}

.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--paper); }

/* On dark sections: inverted fill */
.btn--invert { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--invert:hover { background: var(--teal-pale); border-color: var(--teal-pale); color: var(--ink); }

.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero .btn--ghost:hover,
.section--ink .btn--ghost:hover,
.site-footer .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}


/* 07 Motion =============================================================== */
/* Hidden states live behind .js-anim, added to <html> by site.js only when
   JS runs AND prefers-reduced-motion is not "reduce". Without JS everything
   is visible. */

.js-anim .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.js-anim .reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.js-anim .st { opacity: 0; transform: translateY(24px); }
.js-anim .is-loaded .st {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease) var(--st-d, 0ms),
              transform 700ms var(--ease) var(--st-d, 0ms);
}
.st-1 { --st-d: 0ms; }
.st-2 { --st-d: 60ms; }
.st-3 { --st-d: 120ms; }
.st-4 { --st-d: 180ms; }
.st-5 { --st-d: 240ms; }
.st-6 { --st-d: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal,
  .js-anim .st,
  .js-anim .is-loaded .st {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* 08 Header =============================================================== */

/* The whole header sticks, offset by the topbar height so the topbar scrolls
   away and the nav row pins to the top edge. */
.site-header {
  position: sticky;
  top: calc(-1 * var(--topbar-h));
  z-index: 90;
}

/* Home: header overlays the hero (+1px for the navbar's hairline) */
.page-home .site-header { margin-bottom: calc(-1 * (var(--header-h) + 1px)); }

/* -- Topbar -- */
.topbar {
  background: var(--ink);
  color: var(--mist);
  font-size: 0.8rem;
  letter-spacing: 0.005em;
}
.topbar__inner {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.topbar__loc { margin: 0; max-width: none; color: var(--mist); }
.topbar__loc-full { display: none; }
.topbar__loc-short { display: inline; }
.topbar__tel {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: color 200ms ease-out;
}
.topbar__tel:hover { color: var(--teal-pale); }
.topbar__hours { font-weight: 400; color: var(--mist); }

@media (max-width: 519px) {
  .topbar__loc { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .topbar__hours { display: none; }
}
@media (min-width: 900px) {
  .topbar__loc-full { display: inline; }
  .topbar__loc-short { display: none; }
}

/* -- Navbar -- */
.navbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background-color 250ms ease-out, box-shadow 250ms ease-out, border-color 250ms ease-out;
}
.navbar__inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}
.brand img {
  height: 34px;
  width: auto;
}
@media (min-width: 960px) { .brand img { height: 44px; } }
.brand__light { display: none; }
/* The colour logo ships with an opaque white plate; multiply drops it into
   the paper ground instead of reading as a white box. */
.brand__dark { mix-blend-mode: multiply; }

/* Transparent-over-hero state (index only, before scroll) */
.page-home .navbar {
  background: transparent;
  border-bottom-color: transparent;
}
.page-home .navbar .brand__dark { display: none; }
.page-home .navbar .brand__light { display: block; }
.page-home .navbar .nav__link,
.page-home .navbar .nav__caret,
.page-home .navbar .burger { color: var(--paper); }
.page-home .navbar .navbar__cta {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.page-home .navbar .navbar__cta:hover {
  background: var(--teal-pale);
  border-color: var(--teal-pale);
  color: var(--ink);
}

/* Solid state after scroll */
.page-home .navbar.is-solid {
  background: var(--paper);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-nav);
}
.page-home .navbar.is-solid .brand__dark { display: block; }
.page-home .navbar.is-solid .brand__light { display: none; }
.page-home .navbar.is-solid .nav__link,
.page-home .navbar.is-solid .nav__caret,
.page-home .navbar.is-solid .burger { color: var(--ink); }
.page-home .navbar.is-solid .navbar__cta {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.page-home .navbar.is-solid .navbar__cta:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

/* -- Desktop nav list -- */
.nav { display: none; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease-out, border-color 200ms ease-out;
}
.nav__link:hover { color: var(--teal-deep); }
.page-home .navbar:not(.is-solid) .nav__link:hover { color: var(--teal-pale); }
.nav__link[aria-current="page"] {
  border-bottom-color: var(--teal-deep);
  color: var(--teal-deep);
}
.page-home .navbar:not(.is-solid) .nav__link[aria-current="page"] {
  border-bottom-color: var(--teal-pale);
  color: var(--paper);
}

.nav__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0.4rem 0.15rem;
  cursor: pointer;
  color: var(--ink);
  transition: transform 200ms ease-out, color 200ms ease-out;
}
.nav__caret svg { width: 10px; height: 10px; }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

/* -- Dropdown -- */
.dropdown {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 460px;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: var(--shadow-menu);
  padding: 1.1rem;
  display: grid;
  /* Fill column-first so the DOM order (= the specified menu order) reads
     down the left column, then down the right. */
  grid-auto-flow: column;
  grid-template-rows: repeat(6, auto);
  gap: 0.1rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 200ms;
}
.nav__item.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
/* invisible hover bridge so the pointer can travel to the panel */
.nav__item--has-menu::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 1rem;
}
.dropdown__link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.94rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}
.dropdown__link:hover { background: var(--sand); color: var(--teal-deep); }
.dropdown__link[aria-current="page"] { color: var(--teal-deep); }

.navbar__cta { flex: 0 0 auto; margin-left: 1.25rem; display: none; }

@media (min-width: 960px) {
  .nav { display: block; }
  .navbar__cta { display: inline-flex; }
}

/* -- Burger -- */
.burger {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.burger span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}
@media (min-width: 960px) { .burger { display: none; } }

/* -- Mobile overlay menu -- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 250ms ease-out, transform 250ms ease-out, visibility 250ms;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
body.menu-open { overflow: hidden; }

.mobile-menu__top {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.mobile-menu__top img { height: 34px; width: auto; }
.mobile-menu__close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--paper);
}
.mobile-menu__close svg { width: 20px; height: 20px; }

.mobile-menu__body { padding-block: 1.5rem 3rem; }
.mobile-menu__list > li + li { margin-top: 0.35rem; }
.mobile-menu__link {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--paper);
  text-decoration: none;
  padding-block: 0.3rem;
  transition: color 200ms ease-out;
}
.mobile-menu__link:hover { color: var(--teal-pale); }
.mobile-menu__link[aria-current="page"] { color: var(--teal-pale); }

.mobile-menu__sub {
  margin: 0.5rem 0 1.1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line-dark);
}
.mobile-menu__sub li + li { margin-top: 0.1rem; }
.mobile-menu__sub a {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--mist);
  text-decoration: none;
  padding-block: 0.35rem;
  transition: color 200ms ease-out;
}
.mobile-menu__sub a:hover { color: var(--paper); }

.mobile-menu__foot {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.mobile-menu__tel {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--teal-pale);
  text-decoration: none;
}


/* 09 Hero ================================================================= */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: -2;
}
/* On wide viewports the 3:2 frame fills the width, so object-position has
   nothing to bite on. Overscaling from the left edge walks the subject to
   the right of the type column, which is the whole point of the crop. */
@media (min-width: 1024px) {
  .hero__img { width: 118%; max-width: none; right: auto; }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(16 49 47 / .55), transparent 40%),
    linear-gradient(100deg, rgb(16 49 47 / .78) 0%, rgb(16 49 47 / .45) 45%, rgb(16 49 47 / .12) 75%);
}
.hero__inner {
  padding-top: calc(var(--header-h) + clamp(2rem, 6vh, 4rem));
  padding-bottom: clamp(3rem, 8vh, 5rem);
  width: 100%;
}
.hero__content { max-width: 640px; }

.hero__title {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1.6rem;
}
.hero__line { display: block; }
.hero__title em { color: var(--teal-pale); }

.hero__lead {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: var(--paper);
  opacity: 0.92;
  max-width: 52ch;
  margin-bottom: 2.25rem;
}
.hero__actions { margin-bottom: 1.75rem; }
.hero__actions .btn--ghost { color: var(--paper); }
.hero__note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--mist);
  max-width: 64ch;
}

/* Narrow viewports: the crop puts the subject high in frame, so the copy
   settles to the bottom of the hero under a heavier fade. */
@media (max-width: 767px) {
  .hero { align-items: flex-end; }
  .hero__img { object-position: 50% center; }
  .hero__inner {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: clamp(2.5rem, 7vh, 4rem);
  }
  .hero__scrim {
    background:
      linear-gradient(to top, rgb(16 49 47 / .90) 0%, rgb(16 49 47 / .74) 34%, rgb(16 49 47 / .34) 62%, rgb(16 49 47 / .30) 100%);
  }
  .hero__lead { margin-bottom: 1.75rem; }
  .hero__actions { margin-bottom: 1.35rem; }
}

@media (max-width: 519px) {
  .hero__title { font-size: clamp(2.7rem, 12vw, 3.4rem); }
  .hero__actions .btn { flex: 1 1 100%; }
}


/* 10 Editorial service rows (index §3) ==================================== */

.svc-grid {
  display: grid;
  gap: clamp(2.25rem, 4vw, 2.75rem);
}
.svc { display: flex; flex-direction: column; }
.svc__media {
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 4 / 3;   /* stacked: landscape so a card stays a card */
  margin-bottom: 1.5rem;
}
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.svc:hover .svc__media img { transform: scale(1.03); }
.svc__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 0.7rem;
}
.svc__text {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
  max-width: 48ch;
}
.svc__link { align-self: flex-start; margin-top: auto; }

@media (min-width: 860px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .svc__media { aspect-ratio: 4 / 5; }
  .svc__text { max-width: 34ch; }
  .svc:nth-child(1) { margin-top: 2rem; }
  .svc:nth-child(2) { margin-top: 0; }
  .svc:nth-child(2) .svc__media { aspect-ratio: 3 / 4.4; }
  .svc:nth-child(3) { margin-top: 3.5rem; }
}

.svc-grid + .svc-more { margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 860px) { .svc-grid + .svc-more { margin-top: 1rem; } }


/* 11 Price rows =========================================================== */

.price-groups {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .price-groups { grid-template-columns: 0.85fr 1.35fr 0.85fr; gap: clamp(2rem, 4vw, 3.5rem); }
}

.price-group__title {
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.section--ink .price-group__title {
  border-bottom-color: var(--line-dark);
  color: var(--mist);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-block: 0.8rem;
}
.price-row__name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.45;
}
.price-row__note {
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 0.15rem;
  max-width: 34ch;
}
.section--ink .price-row__note { color: var(--mist); }
.price-row__leader {
  flex: 1 1 1.5rem;
  min-width: 1.25rem;
  align-self: baseline;
  transform: translateY(-0.3em);
  border-bottom: 1px dotted var(--line);
}
.section--ink .price-row__leader { border-bottom-color: var(--line-dark); }
.price-row__price {
  flex: 0 0 auto;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.section--ink .price-row__price { color: var(--teal-pale); }

.price-note { margin-top: 1.5rem; }
.price-foot { margin-top: clamp(2.25rem, 4vw, 3rem); }
.price-foot > * + * { margin-top: 1.5rem; }
.price-disclaimer { font-size: 0.9rem; line-height: 1.6; color: var(--mist); max-width: 62ch; }


/* 12 Staff list rows ====================================================== */

.staff-cols { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 860px) { .staff-cols { grid-template-columns: 1fr 1fr; } }

.staff-group__title {
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.staff-list { border-top: 1px solid var(--line); }
.staff-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15rem 1.5rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.staff-row__name { font-weight: 600; font-size: 1.02rem; }
.staff-row__where { font-size: 0.9rem; color: var(--ink-soft); }


/* 13 Notice panel ========================================================= */

.notice {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.section--sand .notice { background: var(--paper); }
.notice__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}
.notice__intro { margin-bottom: 1.1rem; }
.notice__list { margin: 0 0 1.25rem; }
.notice__list li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.6;
  max-width: var(--measure);
}
.notice__list li + li { margin-top: 0.7rem; }
.notice__list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.68em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-deep);
}
.notice__foot { font-size: 0.95rem; color: var(--ink-soft); }


/* 14 Partner logo row ===================================================== */

.partners { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.partners__label { color: var(--ink-soft); margin-bottom: 1.1rem; }
.partners__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}
.partners__chip {
  background: var(--paper);
  border-radius: 10px;
  padding: 0.7rem 1.25rem;
  min-width: 9.5rem;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-panel);
}
.section--paper .partners__chip { background: var(--sand); box-shadow: none; border: 1px solid var(--line); }
.partners__chip img { max-height: 34px; max-width: 7.5rem; width: auto; object-fit: contain; }


/* 15 Full-bleed image band ================================================ */

.band-image {
  position: relative;
  height: 46vh;
  min-height: 260px;
  overflow: hidden;
  background: var(--sand);
}
.band-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.band-image--short { height: 40vh; min-height: 230px; }


/* 16 Forms ================================================================ */

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }

.field label,
.field-check__legend {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.8em 1em;
  width: 100%;
  transition: border-color 200ms ease-out;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-soft); opacity: 0.7; }
.field input:focus,
.field textarea:focus { border-color: var(--teal-deep); }

.field__error {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal-deep);
  min-height: 0;
}
.field.has-error input,
.field.has-error textarea { border-color: var(--teal-deep); }

.field-check { display: grid; gap: 0.55rem; border: 0; }
.field-check__legend { margin-bottom: 0.15rem; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 400;
  cursor: pointer;
}
.check input {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: var(--teal-deep);
}
.check-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  padding-left: 1.65rem;
}

.form__submit { margin-top: 0.5rem; justify-self: start; }

/* Dark variant */
.form--dark .field label,
.form--dark .field-check__legend { color: var(--paper); }
.form--dark .field input,
.form--dark .field textarea {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--paper);
}
.form--dark .field input::placeholder,
.form--dark .field textarea::placeholder { color: var(--mist); opacity: 0.8; }
.form--dark .field input:focus,
.form--dark .field textarea:focus { border-color: var(--teal-pale); }
.form--dark .field__error { color: var(--teal-pale); }
.form--dark .field.has-error input,
.form--dark .field.has-error textarea { border-color: var(--teal-pale); }
.form--dark .check { color: var(--paper); }
.form--dark .check input { accent-color: var(--teal-pale); }

.form-success {
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.form-success p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.form-success p + p { margin-top: 0.4rem; color: var(--mist); }
[hidden] { display: none !important; }


/* 17 Footer =============================================================== */

.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: clamp(2.25rem, 4vw, 3rem);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.1fr 1.35fr 0.95fr 1.05fr; } }

.footer-brand img { height: 46px; width: auto; margin-bottom: 1.5rem; }
.footer-ig {
  display: inline-block;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  max-width: 30ch;
  transition: color 200ms ease-out;
}
.footer-ig:hover { color: var(--teal-pale); }

.footer-col__title {
  color: var(--mist);
  margin-bottom: 1.1rem;
  opacity: 0.8;
}
.footer-list li + li { margin-top: 0.55rem; }
.footer-list,
.footer-col p { color: var(--paper); }
.footer-col p { max-width: 30ch; }
.footer-list a {
  color: var(--paper);
  text-decoration: none;
  transition: color 200ms ease-out;
}
.footer-list a:hover { color: var(--teal-pale); }
.footer-note { margin-top: 0.9rem; color: var(--mist); font-size: 0.9rem; }

.footer-bottom {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.85rem;
  color: var(--mist);
}
.footer-bottom p { max-width: none; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.footer-bottom a {
  color: var(--mist);
  text-decoration: none;
  transition: color 200ms ease-out;
}
.footer-bottom a:hover { color: var(--paper); }


/* ==========================================================================
   18 SUBPAGE COMPONENTS  (built here; subpages use these classes as-is)
   ========================================================================== */

/* -- 18a Page header, split variant (with image) --------------------------
   <section class="page-header page-header--split">
     <div class="container">
       <div class="page-header__grid">
         <div class="page-header__text">
           <h1 class="st st-1">…</h1>
           <p class="page-header__lead st st-2">…</p>
         </div>
         <div class="page-header__media st st-3"><img …></div>
       </div>
     </div>
   </section>
   Add class "is-loaded" via site.js on load (handled automatically). ------ */

.page-header {
  background: var(--paper);
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}
.page-header__grid {
  display: grid;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .page-header__grid { grid-template-columns: 55fr 45fr; }
}
.page-header__text > * + * { margin-top: 1.5rem; }
.page-header h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.page-header__lead {
  font-size: clamp(1.08rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
}
.page-header__media {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
}
.page-header__media img { width: 100%; height: 100%; object-fit: cover; }

/* -- 18b Page header, typographic band variant (no image) ----------------
   <section class="page-header page-header--band">
     <div class="container"><div class="page-header__text">…</div></div>
   </section> ------------------------------------------------------------- */

.page-header--band {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.page-header--band .page-header__text { max-width: 46rem; }

/* -- 18c Services index rows (hammashoito.html) --------------------------
   <ul class="services-index">
     <li><a class="services-index__row" href="…">
       <span class="services-index__title">…</span>
       <span class="services-index__desc">…</span>
       <span class="services-index__arrow" aria-hidden="true">»</span>
     </a></li>
   </ul> ------------------------------------------------------------------ */

.services-index { border-top: 1px solid var(--line); }
.services-index > li { border-bottom: 1px solid var(--line); }
.services-index__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
  padding-block: clamp(1.35rem, 2.5vw, 1.9rem);
  text-decoration: none;
  color: inherit;
  transition: color 200ms ease-out;
}
.services-index__title {
  grid-column: 1;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.services-index__desc {
  grid-column: 1;
  grid-row: 2;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 62ch;
}
.services-index__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--line);
  transition: color 200ms ease-out, transform 200ms ease-out;
}
.services-index__row:hover { color: var(--teal-deep); }
.services-index__row:hover .services-index__desc { color: var(--ink-soft); }
.services-index__row:hover .services-index__arrow { color: var(--teal-deep); transform: translateX(4px); }

/* -- 18d CTA band (identical on every subpage, before the footer) --------
   <section class="section cta-band">
     <div class="container cta-band__inner">
       <div><p class="cta-band__title">Varaa aikasi meille</p>
       <p class="cta-band__sub"><a href="tel:+358406533040">040 653 3040 (ma–pe 8–15.30)</a></p></div>
       <a class="btn btn--invert" href="…">Sähköinen ajanvaraus</a>
     </div>
   </section> ------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.25rem, 6vw, 5rem);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 3rem;
}
.cta-band__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--paper);
  max-width: none;
}
.cta-band__sub { margin-top: 0.5rem; max-width: none; }
.cta-band__sub a {
  color: var(--mist);
  text-decoration: none;
  transition: color 200ms ease-out;
}
.cta-band__sub a:hover { color: var(--teal-pale); }

/* -- 18e Location rows (yhteystiedot.html) -------------------------------
   <ul class="location-rows">
     <li class="location-row">
       <span class="location-row__town">Ylivieska</span>
       <span class="location-row__addr">Asemakatu 4, 84100 Ylivieska</span>
     </li>
   </ul> ------------------------------------------------------------------ */

.location-rows { border-top: 1px solid var(--line); }
.location-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 2rem;
  padding-block: clamp(1.15rem, 2.2vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}
.location-row__town {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.location-row__addr { color: var(--ink-soft); font-size: 1rem; }
.section--ink .location-rows,
.section--ink .location-row { border-color: var(--line-dark); }
.section--ink .location-row__addr { color: var(--mist); }

/* -- 18f Prose: typeset body copy on subpages ---------------------------- */

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose p, .prose li { max-width: var(--measure); }
.prose h2, .prose .h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
  margin-bottom: 1.25rem;
}
.prose h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.3vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.85rem;
}
.prose > *:first-child { margin-top: 0; }
.prose ul { margin-block: 1.25rem; }
.prose ul li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.65;
}
.prose ul li + li { margin-top: 0.6rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-deep);
}
.section--ink .prose ul li::before { background: var(--teal-pale); }
.prose figure { margin-block: clamp(2rem, 4vw, 3rem); }
.prose figure img { border-radius: 10px; width: 100%; }
