/* Kuntopalvelu Porkkana – site styles
   Colours, type and spacing are tokens on :root; change them there. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fbf7f1;
  --sand: #f4ece2;
  --white: #fff;
  --ink: #1d2b30;
  --ink-soft: #4b5b61;
  --line: #e7ddd0;

  /* Brand turquoise and pink, deepened where text sits on them (WCAG AA) */
  --teal: #00a3bb;
  --teal-deep: #007385;
  --teal-dark: #0d3a42;
  --teal-tint: #dff2f4;
  --pink: #c8236d;
  --pink-hover: #a81b5a;
  --pink-bright: #e53084;
  --pink-tint: #fce6ef;
  --carrot: #ef7a2a;
  --carrot-tint: #fdebdc;
  --leaf: #4f8a3a;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 32px;
  --shadow: 0 1px 2px rgb(29 43 48 / .05), 0 10px 30px -14px rgb(29 43 48 / .18);
  --shadow-lift: 0 2px 6px rgb(29 43 48 / .06), 0 24px 48px -18px rgb(29 43 48 / .3);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .55em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  font-variation-settings: "SOFT" 50;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.2; }
h4 { font-size: 1.1rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--pink); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pink); }

:focus-visible { outline: 3px solid var(--carrot); outline-offset: 3px; border-radius: 6px; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.2em;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--teal-dark);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout helpers ---------- */

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-white { background: var(--white); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--teal-dark); color: #e6f3f4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark h2 em { color: #ffb38a; }
.section-dark a:not(.btn) { color: #9fe3ec; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-inline: inherit; }
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.section-head-row .section-head { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 1rem;
  font: 700 .78rem/1.2 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--carrot);
  box-shadow: 0 0 0 4px var(--carrot-tint);
}
.section-dark .eyebrow { color: #9fe3ec; }
.section-dark .eyebrow::before { box-shadow: 0 0 0 4px rgb(239 122 42 / .25); }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.section-dark .lead { color: #c4e1e4; }
.muted { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
.small { font-size: .92rem; }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split-media img { width: 100%; border-radius: var(--radius-l); object-fit: cover; }
.split-media.organic img { border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 140px; }
.split-media figcaption { margin-top: 10px; font-size: .82rem; color: var(--ink-soft); }
.split.reverse .split-media { order: 2; }
.split.align-start { align-items: start; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 50px;
  padding: .8em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: .55em 1.15em; font-size: .95rem; }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 8px 20px -8px rgb(200 35 109 / .6); }
.btn-primary:hover { background: var(--pink-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn-secondary:hover { background: var(--teal-dark); color: #fff; }
.btn-light { background: #fff; color: var(--teal-dark); }
.btn-light:hover { background: var(--teal-tint); color: var(--teal-dark); }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / .6); }
.btn-outline-light:hover { background: #fff; color: var(--teal-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
}
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon, a:hover > .link-arrow .icon, .service-card:hover .link-arrow .icon { transform: translateX(4px); }

/* ---------- Announcement bar (edited in Pages CMS: src/content/tiedote.json) ---------- */

.announcement { background: var(--pink); color: #fff; font-weight: 600; font-size: .95rem; text-align: center; }
.announcement p { margin-block: 0; padding-block: 10px; }
.announcement a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.announcement a:hover { color: var(--carrot-tint); }

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 247 241 / .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgb(29 43 48 / .35); }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.brand { flex: none; }
.brand img { width: 168px; height: auto; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list > li > a {
  display: block;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.nav-list > li > a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.nav-list > li > a[aria-current="page"] { color: var(--pink); font-weight: 700; }

.has-sub { display: flex; align-items: center; }
.has-sub > a { padding-right: 4px !important; }
.sub-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.sub-toggle .icon { transition: transform .2s ease; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-toggle:hover { background: var(--teal-tint); }

.mega {
  position: absolute;
  top: calc(100% - 6px);
  right: 0;
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 28px;
  padding: 28px 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.has-sub.open .mega { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1101px) {
  .has-sub:hover .mega { opacity: 1; visibility: visible; transform: none; }
}
.mega-title {
  margin: 0 0 6px;
  font: 600 1.1rem/1.3 var(--font-display);
}
.mega-title:not(:first-child) { margin-top: 18px; }
.mega-title a { color: var(--ink); text-decoration: none; }
.mega-title a:hover { color: var(--pink); }
.mega ul { margin: 0; padding: 0; list-style: none; }
.mega li a {
  display: block;
  padding: 6px 0;
  color: var(--ink-soft);
  text-decoration: none;
}
.mega li a:hover { color: var(--teal-deep); }
/* a page that belongs under the item above it (Tiimiseikkailu under Yrityksille) */
.mega li.sub-item a { padding-left: 16px; }
.mega li.sub-item a::before { content: "– "; margin-left: -12px; }

.header-cta { flex: none; }
.menu-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
  cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.nav-open .menu-toggle .icon-open { display: none; }
.nav-open .menu-toggle .icon-close { display: block; }
.nav-mobile-extra { display: none; }

@media (max-width: 1100px) {
  :root { --header-h: 68px; }
  .brand img { width: 140px; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: grid; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 40;
    margin: 0;
    padding: 16px var(--gutter) 40px;
    overflow-y: auto;
    background: var(--cream);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--cream); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a { padding: 16px 4px; border-radius: 0; font: 600 1.35rem/1.2 var(--font-display); }
  .nav-list > li > a:hover { background: none; }
  .has-sub { flex-wrap: wrap; justify-content: space-between; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 44px; height: 44px; background: var(--teal-tint); }
  .mega {
    position: static;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    padding: 4px 0 20px;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .mega::before { display: none; }
  .has-sub.open .mega { display: grid; }
  .mega-title:not(:first-child) { margin-top: 14px; }
  .mega li a { padding: 8px 0; }

  .nav-mobile-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
  .nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
}
@media (max-width: 420px) {
  .brand img { width: 118px; }
  .header-inner { gap: 10px; }
  .header-cta { padding-inline: .9em; font-size: .9rem; }
}

/* ---------- Home hero ---------- */

.hero { position: relative; padding-block: clamp(28px, 5vw, 64px) clamp(64px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  background:
    radial-gradient(closest-side, rgb(229 48 132 / .14), transparent 70%) 0 0 / 70% 70% no-repeat,
    radial-gradient(closest-side, rgb(239 122 42 / .16), transparent 70%) 100% 40% / 70% 70% no-repeat,
    radial-gradient(closest-side, rgb(0 163 187 / .14), transparent 70%) 40% 100% / 70% 70% no-repeat;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: .4em; }
/* Hand-drawn carrot-orange stroke under "Porkkanaa." */
.hero h1 em {
  padding-bottom: .08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10.5C42 4 98 2.5 146 5.5c19 1.2 36 3.2 51 6' fill='none' stroke='%23ef7a2a' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 96% .3em;
}
.hero .lead { font-size: clamp(1.15rem, 1.6vw, 1.32rem); }
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: .95rem;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--teal-deep); }

.hero-collage { position: relative; aspect-ratio: 1 / 1; }
.hero-collage img { position: absolute; object-fit: cover; }
.hero-collage .ph-main {
  left: 0;
  top: 7%;
  width: 66%;
  height: 72%;
  border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 160px;
  box-shadow: var(--shadow-lift);
}
.hero-collage .ph-top {
  right: 0;
  top: 0;
  width: 46%;
  height: 33%;
  border-radius: var(--radius);
  border: 6px solid var(--cream);
  object-position: 50% 30%;
}
.hero-collage .ph-circle {
  right: 3%;
  bottom: 0;
  width: 50%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  border: 8px solid var(--cream);
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute;
  left: 2%;
  bottom: 3%;
  max-width: 250px;
  margin: 0;
  padding: 14px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  font: italic 500 1.05rem/1.35 var(--font-display);
}
.hero-badge img { width: 96px; margin-bottom: 8px; position: static; }
.hero-credit { position: absolute; right: 0; bottom: -26px; margin: 0; font-size: .75rem; color: var(--ink-soft); }

/* ---------- Page hero (sub pages) ---------- */

.page-hero { position: relative; padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px); overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute;
  right: -12vw;
  top: -18vw;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(239 122 42 / .14), rgb(229 48 132 / .06) 60%, transparent);
  pointer-events: none;
}
.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.page-hero-media { margin: 0; }
.page-hero-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-l) var(--radius-l) 140px var(--radius-l);
  box-shadow: var(--shadow-lift);
}
.page-hero-media.tall img { aspect-ratio: 4 / 5; }
.page-hero-media.contain img { object-fit: contain; background: #fff; padding: 24px; }
.page-hero-media figcaption { margin-top: 10px; font-size: .82rem; color: var(--ink-soft); }
.page-hero.simple .page-hero-grid { grid-template-columns: minmax(0, 1fr); max-width: 820px; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--ink-soft);
}
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--pink); text-decoration: underline; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.service-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card-media img { transform: scale(1.04); }
.service-card-media.media-light { background: #fff; }
.service-card-media.media-teal { background: linear-gradient(135deg, var(--teal-tint), #fff); }
img.contain { object-fit: contain !important; padding: 14px; }
img.pos-top { object-position: 50% 0; }
img.pos-left { object-position: 0 50%; }
.service-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.service-card-body h3 { margin-bottom: .35em; }
.service-card-body p { color: var(--ink-soft); }
.service-card-body .link-arrow { margin-top: auto; padding-top: 14px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cat-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.cat-card h3 { margin-bottom: .35em; }
.cat-card h3 a { color: var(--ink); text-decoration: none; }
.cat-card h3 a::after { content: ""; position: absolute; inset: 0; }
.cat-card h3 a:hover { color: var(--pink); }
.cat-card p { color: var(--ink-soft); font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 14px 0 0; list-style: none; }
.chips li { position: relative; z-index: 1; }
.chips a, .chips span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
}
.chips a:hover { background: var(--teal-dark); color: #fff; }
.section-dark .chips span { background: rgb(255 255 255 / .1); color: #e6f3f4; }

/* ---------- "Kuulostaako tutulta?" word shift ---------- */

.shift {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 3vw, 36px);
  background: var(--cream);
  border-radius: var(--radius-l);
}
.shift-label {
  margin: 0 0 12px;
  font: 700 .75rem/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.word-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.word-list li { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .98rem; }
/* The strike is a background line so it can be drawn in; without JS it is simply there */
.word-list.from li {
  background: linear-gradient(var(--carrot), var(--carrot)) no-repeat 12px 55% / calc(100% - 24px) 2px, #fff;
  color: #7b878b;
}
.shift.ready .word-list.from li {
  background-size: 0 2px, auto;
  color: var(--ink);
  transition: background-size .45s ease calc(var(--i) * .2s + .2s), color .45s ease calc(var(--i) * .2s + .2s);
}
.shift.ready.play .word-list.from li { background-size: calc(100% - 24px) 2px, auto; color: #7b878b; }
.shift.ready .word-list.to li {
  opacity: 0;
  transform: translateY(10px) scale(.85);
  transition: opacity .4s ease calc(var(--i) * .14s + 1.7s), transform .55s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * .14s + 1.7s);
}
.shift.ready.play .word-list.to li { opacity: 1; transform: none; }
.shift.ready .shift-arrow { scale: .5; opacity: .3; transition: scale .5s cubic-bezier(.34, 1.56, .64, 1) 1.4s, opacity .3s ease 1.4s; }
.shift.ready.play .shift-arrow { scale: 1; opacity: 1; }
.word-list.to li:nth-child(3n+1) { background: var(--teal-tint); color: var(--teal-dark); }
.word-list.to li:nth-child(3n+2) { background: var(--pink-tint); color: #8f1a4f; }
.word-list.to li:nth-child(3n) { background: var(--carrot-tint); color: #8a3d0a; }
.shift-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
}
.shift-arrow .icon { width: 24px; height: 24px; }

.quote-inline {
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--carrot);
  font: italic 500 1.15rem/1.45 var(--font-display);
}
.quote-inline cite { display: block; margin-top: 6px; font: 400 .9rem/1.4 var(--font-body); color: var(--ink-soft); }

/* ---------- Pillars ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.pillar { padding: 30px 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.pillar-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
}
.pillar-icon .icon { width: 26px; height: 26px; }
.pillar:nth-child(1) .pillar-icon { background: var(--pink-tint); color: var(--pink); }
.pillar:nth-child(2) .pillar-icon { background: var(--teal-tint); color: var(--teal-deep); }
.pillar:nth-child(3) .pillar-icon { background: var(--carrot-tint); color: #b9530f; }
.pillar ul { margin: 0; padding: 0; list-style: none; }
.pillar li { padding: 7px 0; border-top: 1px dashed var(--line); color: var(--ink-soft); }
.pillar li:first-child { border-top: 0; }

/* ---------- Lists ---------- */

.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 6px 0 6px 32px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007385' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section-dark .check-list li::before { background-color: rgb(255 255 255 / .12); }

.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: .95rem;
}
.journey li { display: inline-flex; align-items: center; }
.journey li:not(:last-child)::after {
  content: "";
  width: 22px;
  margin: 0 8px;
  border-top: 2px dotted var(--carrot);
}
.journey li:last-child { color: var(--pink); }

/* ---------- Testimonials ---------- */

.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.quote-masonry { columns: 3 320px; column-gap: 24px; }
.quote-masonry .quote { break-inside: avoid; margin-bottom: 24px; }
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 30px 28px 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quote > .icon { width: 34px; height: 34px; margin-bottom: 14px; color: var(--carrot); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 1.02rem; }
.quote figcaption { margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--teal-deep); }
.quote-featured { background: var(--teal-dark); color: #e6f3f4; }
.quote-featured figcaption { color: #9fe3ec; }
.section-dark .quote { background: rgb(255 255 255 / .06); box-shadow: none; color: #e6f3f4; }
.section-dark .quote figcaption { color: #9fe3ec; }

/* ---------- Extras grid ---------- */

.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.extra {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: #fff;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.extra:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.extra-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--carrot-tint);
  color: #b9530f;
}
.extra h3 { margin: 2px 0 4px; font-size: 1.12rem; }
.extra p { margin: 0; font-size: .94rem; color: var(--ink-soft); }

/* ---------- Locations ---------- */

.locations { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.location {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.location > .icon { width: 26px; height: 26px; margin-top: 2px; color: var(--pink); }
.location h3 { margin: 0 0 2px; font-size: 1.12rem; }
.location p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.location a { font-weight: 600; font-size: .92rem; }

.pay-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pay-list li {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 24px 48px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  overflow: hidden;
  background: linear-gradient(120deg, var(--pink-tint), var(--carrot-tint));
  border-radius: var(--radius-l);
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { color: var(--ink-soft); max-width: 52ch; }
.cta-band .btn-row { margin-top: 0; }
.cta-carrot {
  position: absolute;
  right: -40px;
  top: 18px;
  width: 260px;
  opacity: .9;
  transform: rotate(-12deg);
  pointer-events: none;
}

/* ---------- Prose & service pages ---------- */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.aside-stack { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.3em; }
.prose ul:not([class]) li::marker { color: var(--carrot); }
.prose li { margin-bottom: .35em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { margin-top: 8px; font-size: .85rem; color: var(--ink-soft); }
.prose .lead { margin-bottom: 1.3em; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 28px 0; }
.fact { padding: 18px 20px; background: #fff; border-radius: var(--radius-s); box-shadow: var(--shadow); }
.fact strong { display: block; font: 600 1.45rem/1.15 var(--font-display); color: var(--teal-deep); }
.fact span { font-size: .92rem; color: var(--ink-soft); }

.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; padding: 0; list-style: none; }
.benefits li { display: flex; gap: 14px; padding: 18px 20px; background: #fff; border-radius: var(--radius-s); box-shadow: var(--shadow); }
.benefits .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--pink); }
.benefits strong { display: block; margin-bottom: 2px; }
.benefits span { color: var(--ink-soft); font-size: .95rem; }

.callout {
  margin: 24px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--carrot);
  border-radius: var(--radius-s);
}
.callout summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.callout summary::-webkit-details-marker { display: none; }
.callout summary::after { content: "+"; margin-left: auto; font: 400 1.5rem/1 var(--font-body); color: var(--ink-soft); }
.callout[open] summary::after { content: "–"; }
.callout summary .icon { color: var(--carrot); }
.callout-body { padding: 0 20px 18px 50px; color: var(--ink-soft); }
.callout-body ul { margin: 0; padding-left: 1.1em; }
.callout-body li { margin-bottom: .3em; }

.note {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--teal-tint);
  border-radius: var(--radius-s);
  color: var(--teal-dark);
}
.note .icon { margin-top: 3px; }

/* ---------- Prices ---------- */

.price-card { padding: 26px 26px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
.price-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 1.3rem; color: var(--ink); }
.price-card h4 { margin: 18px 0 2px; font: 700 .78rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.price-card-accent { background: var(--teal-dark); color: #e6f3f4; }
.price-card-accent h3 { color: #fff; }
.price-card-accent .price-note { color: #c4e1e4; }
.price-card-accent .link-arrow { color: #9fe3ec; }
.price-card-accent .check-list li::before { background-color: rgb(255 255 255 / .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe3ec' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.aside-links { margin: 0; padding: 0; list-style: none; }
.aside-links a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: #fff; font-weight: 600; text-decoration: none; }
.aside-links a:hover { color: #ffb38a; }
.aside-links .icon { color: #9fe3ec; }
.price-list { margin: 0; padding: 0; list-style: none; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.price-list li:last-child { border-bottom: 0; }
.price-list span { color: var(--ink-soft); }
.price-list strong { flex: none; font: 600 1.12rem/1.2 var(--font-display); color: var(--teal-dark); text-align: right; }
.price-note { margin: 12px 0 0; font-size: .9rem; color: var(--ink-soft); }
.price-card .link-arrow { margin-top: 14px; }

.price-masonry { columns: 3 320px; column-gap: 24px; }
.price-masonry > * { break-inside: avoid; margin-bottom: 24px; }

.packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.package {
  position: relative;
  padding: 26px 22px 22px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.package-featured { border-color: var(--pink); }
.package-badge {
  position: absolute;
  top: -13px;
  left: 20px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}
.package-term { margin: 0 0 4px; font: 700 .85rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.package-price { margin: 0 0 14px; color: var(--ink-soft); }
.package-price strong { font: 600 2.2rem/1.1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.package ul { margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px dashed var(--line); color: var(--ink-soft); }
.package li { padding: 3px 0; }
.packages-note { display: flex; gap: 10px; margin: 20px 0 0; color: var(--ink-soft); }
.packages-note .icon { margin-top: 4px; color: var(--teal-deep); }

.tabs-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgb(251 247 241 / .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.tabs-nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 10px 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.tabs-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tabs-nav a:hover, .tabs-nav a.active { background: var(--teal-dark); color: #fff; }

.price-section { padding-block: clamp(48px, 6vw, 72px) 0; }
.price-section:last-of-type { padding-bottom: clamp(48px, 6vw, 72px); }
.price-section > .container > h2 { display: flex; align-items: center; gap: 14px; }

/* ---------- Group classes ---------- */

.filters { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.js .filters { display: flex; }
.filters button {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 .95rem/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filters button:hover { border-color: var(--teal-dark); }
.filters button[aria-pressed="true"] { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.class-card { padding: 24px 24px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.class-card[hidden] { display: none; }
.class-card h3 { margin: 12px 0 8px; }
.class-card p { color: var(--ink-soft); font-size: .98rem; }
.class-card .link-arrow { margin-top: 10px; font-size: .95rem; }
.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tag-kangoo { background: var(--pink-tint); color: #8f1a4f; }
.tag-kamppailu { background: #fde2d6; color: #8a2c0a; }
.tag-tanssi { background: #efe3fb; color: #5b2a86; }
.tag-kehonhuolto { background: var(--teal-tint); color: var(--teal-dark); }
.tag-teho { background: var(--carrot-tint); color: #8a3d0a; }
.tag-seniorit { background: #e4f1dc; color: #2f5a1f; }
.tag-tyhy { background: #e5e9f7; color: #2c3d7a; }
.tag-erikois { background: #f1ece4; color: #5a4a32; }

/* ---------- Coach timeline ---------- */

.credentials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.credentials li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.credentials strong { display: block; }
.credentials span { font-size: .92rem; color: var(--ink-soft); }

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  border-left: 2px dotted var(--carrot);
}
.tl-item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 24px; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink);
  box-shadow: var(--shadow);
}
.tl-body { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 12px 28px; align-items: start; }
.tl-body > div:only-child { grid-column: 1 / -1; }
.tl-when { margin: 10px 0 4px; font: 700 .78rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.tl-body h3 { margin-bottom: .4em; }
.tl-body p { color: var(--ink-soft); }
.tl-body img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); margin-top: 10px; box-shadow: var(--shadow); }

.big-quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font: italic 500 clamp(1.5rem, 3vw, 2.2rem)/1.35 var(--font-display);
}
.big-quote strong { color: var(--pink); font-weight: 600; }

/* ---------- Contact & forms ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 14px; margin: 0 0 32px; padding: 0; list-style: none; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}
a.contact-card:hover { color: var(--ink); box-shadow: var(--shadow-lift); }
.contact-card .ci {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--pink-tint);
  color: var(--pink);
}
.contact-card small { display: block; color: var(--ink-soft); font-size: .85rem; }
.contact-card strong { font-size: 1.08rem; }

.form-card { padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.field label span { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-deep);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(0 115 133 / .15);
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
.form-foot p { margin: 0; font-size: .86rem; color: var(--ink-soft); max-width: 46ch; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-s); background: var(--teal-tint); color: var(--teal-dark); font-weight: 600; }
.form-status[hidden] { display: none; }

.booking-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.booking-card { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow); }
.booking-card.dark { background: var(--teal-dark); color: #e6f3f4; }
.booking-card.dark h2 { color: #fff; }
.booking-card .btn-row { margin-top: auto; padding-top: 24px; }
.booking-card .check-list { margin: 8px 0 0; }
.booking-card.dark .check-list li::before { background-color: rgb(255 255 255 / .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fe3ec' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Video (loads from YouTube only after a click) ---------- */

.video { margin: 28px 0; }
.video-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  aspect-ratio: 16 / 9;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(135deg, var(--teal-dark), #145561);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.video-btn:hover { color: #fff; }
.video-btn .play {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pink);
  transition: transform .2s ease;
}
.video-btn:hover .play { transform: scale(1.08); }
.video-btn .play .icon { width: 30px; height: 30px; margin-left: 4px; stroke: none; fill: #fff; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video-note { margin-top: 8px; font-size: .82rem; color: var(--ink-soft); }

/* Yrityksille page: TYHY classes in two groups, and small headings inside a text column */
.tyhy-group + .tyhy-group { margin-top: clamp(40px, 5vw, 64px); }
.tyhy-group > h3 { margin-bottom: 4px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.tyhy-group > p { margin-bottom: 20px; }
.small-heading { margin: 28px 0 10px; font-size: 1.1rem; }
.small-heading + .chips { padding-top: 0; }
/* Price cards in rows (reads left to right), for a short set of cards */
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: start; }

/* A page whose hero is a video: a compact title row (title | text and buttons), so that
   on a laptop screen the video below, at full page width, is already in view */
.page-hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 18px 48px;
  align-items: end;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}
.page-hero-intro h1 { margin-bottom: 0; }
.page-hero-intro .lead { margin-top: 0; }
.page-hero-intro .btn-row { margin-top: 22px; }

/* Self-hosted video in a page hero: nothing loads before the visitor presses play */
.hero-video { position: relative; margin: 0; }
/* Big play button on the poster, added by main.js. It sits above the middle so it does not
   cover the captions burned into the video frames. */
.hero-video-play {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: transparent;
  cursor: pointer;
}
.hero-video-play .play {
  position: absolute;
  left: 50%;
  top: 30%;
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 28px rgb(0 0 0 / .3);
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.hero-video-play:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.hero-video-play .play .icon { width: 42%; height: 42%; margin-left: 6%; stroke: none; fill: #fff; }
.hero-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0b2f35;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lift);
}
.hero-video figcaption { margin-top: 10px; font-size: .82rem; color: var(--ink-soft); }

/* Poster image that links to a page with the video */
.video-teaser {
  position: relative;
  display: block;
  margin: 26px 0 4px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.video-teaser img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* in the corner, so it does not cover the caption burned into the video frame */
.video-teaser .play {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  transition: transform .2s ease;
}
.video-teaser:hover .play { transform: scale(1.08); }
.video-teaser .play .icon { width: 30px; height: 30px; margin-left: 4px; stroke: none; fill: #fff; }

/* Testimonial from a company, with its logo */
.quote-logo { width: 150px; height: auto; margin-bottom: 18px; }

/* ---------- Products ---------- */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.product { padding: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.product img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 12px; }
.product .tag { margin-bottom: 8px; background: var(--carrot-tint); color: #8a3d0a; }
.product h3 { font-size: 1.15rem; margin-bottom: 6px; }
.product p { font-size: .94rem; color: var(--ink-soft); }
.product .product-price { margin: 10px 0 0; font: 600 1.3rem/1.2 var(--font-display); color: var(--teal-dark); }
.code-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  padding: 10px 18px;
  border: 2px dashed var(--carrot);
  border-radius: var(--radius-s);
  background: #fff;
  font: 700 1.3rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .1em;
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer { padding-top: clamp(56px, 7vw, 88px); background: var(--teal-dark); color: #c4e1e4; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb38a; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .9fr 1.1fr; gap: 40px; }
.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-motto { margin-top: 16px; font: italic 500 1.1rem/1.4 var(--font-display); color: #ffb38a; }
.footer-title { margin: 0 0 14px; font: 700 .78rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #9fe3ec; }
.footer-title:not(:first-child) { margin-top: 26px; }
.footer-list, .footer-links { margin: 0; padding: 0; list-style: none; }
.footer-list li { display: flex; gap: 10px; padding: 5px 0; }
.footer-list .icon { margin-top: 4px; color: #9fe3ec; }
.footer-links li { padding: 4px 0; color: #fff; }
.social { display: flex; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgb(255 255 255 / .08);
  transition: background-color .2s ease;
}
.social a:hover { background: var(--pink); color: #fff; }
.footer-follow { margin-top: 16px; }
.site-footer .pay-list li { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); color: #e6f3f4; font-size: .82rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-block: 24px;
  border-top: 1px solid rgb(255 255 255 / .12);
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.footer-carrot { width: 120px; opacity: .9; }

/* ---------- Scroll reveal (only when JS runs and motion is OK) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 900px) {
  .hero-grid, .page-hero-grid, .page-hero-intro, .split, .contact-grid, .content-grid { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .split-media { order: 0; }
  .hero-collage { max-width: 560px; margin-inline: auto; width: 100%; }
  .page-hero-media { max-width: 560px; }
  .aside-stack { position: static; }
  .pillars, .quote-grid, .extras { grid-template-columns: minmax(0, 1fr); }
  .booking-cards { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .tl-body { grid-template-columns: minmax(0, 1fr); }
  .tl-body img { max-width: 260px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cat-grid, .benefits, .credentials, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .shift { grid-template-columns: minmax(0, 1fr); }
  .shift-arrow { transform: rotate(90deg); margin: 0 auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-badge { font-size: .92rem; max-width: 200px; padding: 12px 14px; }
  .hero-badge img { width: 70px; }
  .cta-carrot { width: 160px; right: -50px; top: 8px; opacity: .5; }
  .btn-row .btn { flex: 1 1 auto; }
  .tl-item { grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; }
  .timeline::before { left: 19px; }
  .tl-dot { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .packages { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phones & tablets: price teaser and floating action bar ---------- */

.price-teaser, .action-bar, .swipe-dots { display: none; }

@media (max-width: 900px) {
  .price-teaser {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    margin: 20px 0 0;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .price-teaser span { color: var(--ink-soft); font-size: .95rem; }
  .price-teaser strong { font: 600 1.2rem/1.2 var(--font-display); color: var(--teal-dark); }
  .price-teaser a { margin-left: auto; font-size: .92rem; font-weight: 700; }

  .action-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 520px;
    margin-inline: auto;
    padding: 7px;
    background: rgb(13 58 66 / .94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    box-shadow: 0 14px 34px -12px rgb(13 58 66 / .6);
    transform: translateY(150%);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .action-bar.show { transform: none; }
  .nav-open .action-bar { transform: translateY(150%); }
  .action-bar .btn { flex: 1; min-height: 46px; box-shadow: none; }
  .action-bar .btn:hover { transform: none; }
  .action-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
  }
  .action-call:hover { color: #fff; background: rgb(255 255 255 / .1); }
  .site-footer { padding-bottom: 76px; }
}

/* ---------- Phones: compact, app-like versions of the desktop sections ---------- */

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .section { padding-block: 52px; }
  .section-tight { padding-block: 36px; }
  .section-head, .section-head-row { margin-bottom: 26px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }

  /* Hero: text first, then the photos as a playful scrapbook fan */
  .hero { padding-top: 22px; }
  .hero .lead { font-size: 1.1rem; }
  .hero .btn-row { margin-top: 22px; }
  .trust { gap: 8px; margin-top: 20px; font-size: .85rem; }
  .trust li { padding: 5px 12px 5px 9px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); }
  .hero-collage { aspect-ratio: 1 / .88; margin-top: 8px; }
  .hero-collage .ph-main { left: 1%; top: 10%; width: 56%; height: auto; aspect-ratio: 1; border: 6px solid #fff; border-radius: 20px; rotate: -5deg; }
  .hero-collage .ph-top { right: 1%; top: 1%; width: 52%; height: 40%; border: 6px solid #fff; border-radius: 18px; rotate: 4deg; box-shadow: var(--shadow); }
  .hero-collage .ph-circle { right: 7%; bottom: 4%; width: 44%; border-width: 6px; }
  .hero-badge { left: 0; bottom: 0; max-width: 178px; padding: 10px 14px; font-size: .9rem; rotate: -2deg; }
  .hero-credit { bottom: -24px; }

  /* Service categories: 2 × 2 photo tiles with the title on the image */
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-card { isolation: isolate; aspect-ratio: 4 / 5; justify-content: flex-end; background: var(--teal-dark); }
  .cat-card > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; aspect-ratio: auto; }
  .cat-card-body { flex: 0 0 auto; padding: 56px 14px 14px; background: linear-gradient(180deg, transparent, rgb(13 58 66 / .92) 58%); }
  .cat-card h3 { margin: 0; font-size: 1.12rem; }
  .cat-card h3 a { color: #fff; }
  .cat-card p, .cat-card .chips { display: none; }

  /* Pillars: icon beside the title, short text below */
  .pillars { gap: 12px; }
  .pillar { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 0 14px; padding: 18px; }
  .pillar-icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
  .pillar-icon .icon { width: 22px; height: 22px; }
  .pillar h3 { margin: 0; }
  .pillar > :not(.pillar-icon):not(h3) { grid-column: 1 / -1; margin-top: 10px; }
  .pillar ul { display: none; }
  .pillar.keep-list ul { display: block; }

  /* Class names as a slow ticker (see main.js) */
  .marquee {
    overflow: hidden;
    margin-inline: calc(var(--gutter) * -1);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .marquee .chips { flex-wrap: nowrap; width: max-content; padding: 16px 0 0; animation: marquee 32s linear infinite; }
  @keyframes marquee { to { transform: translateX(-50%); } }

  /* Coach teaser: round portrait */
  .coach-photo { width: 66%; margin-inline: auto !important; }
  .coach-photo img { border: 8px solid #fff; border-radius: 50%; box-shadow: var(--shadow-lift); }
  .coach-photo figcaption { text-align: center; }

  /* Testimonials: swipe sideways, dots show where you are */
  .quote-grid {
    display: flex;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .quote-grid::-webkit-scrollbar { display: none; }
  .quote-grid > .quote { flex: 0 0 84%; scroll-snap-align: center; }
  .swipe-dots { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
  .swipe-dots button {
    width: 24px;
    height: 24px;
    padding: 8px;
    border: 0;
    border-radius: 999px;
    background: var(--line);
    background-clip: content-box;
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
  }
  .swipe-dots button[aria-current="true"] { width: 38px; background-color: var(--pink); }

  /* "Myös tarjolla": colourful tiles, two per row */
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .extra { flex-direction: column; gap: 10px; padding: 16px 14px; box-shadow: none; }
  .extra:nth-child(3n+1) { background: var(--teal-tint); }
  .extra:nth-child(3n+2) { background: var(--pink-tint); }
  .extra:nth-child(3n) { background: var(--carrot-tint); }
  .extra-icon { width: 40px; height: 40px; background: #fff; }
  .extra h3 { margin: 0; font-size: 1rem; }
  .extra p { display: none; }

  /* Service lists: thumbnail rows like an app menu */
  .card-grid, .card-grid-2 { gap: 10px; }
  .service-card { flex-direction: row; align-items: center; gap: 14px; padding: 10px; border-radius: 18px; }
  .service-card:hover { transform: none; }
  .service-card-media { flex: 0 0 84px; aspect-ratio: 1; border-radius: 12px; }
  img.contain { padding: 6px; }
  .service-card-body { padding: 0; }
  .service-card-body h3 { margin-bottom: 2px; font-size: 1.08rem; }
  .service-card-body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: .9rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .service-card-body .link-arrow { display: none; }
  .service-card::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-top: 2px solid var(--teal-deep);
    border-right: 2px solid var(--teal-deep);
    rotate: 45deg;
  }

  /* Sub pages open with their photo */
  .page-hero { padding-top: 14px; }
  .page-hero-media { order: -1; }
  .page-hero-media img, .page-hero-media.tall img { aspect-ratio: 16 / 10; border-radius: 24px 24px 24px 80px; }
  .page-hero-media.contain img { padding: 16px; }
  /* ...and a video page with its video, edge to edge for the biggest picture */
  .page-hero-video { padding-top: 0; }
  .page-hero-video .container { display: flex; flex-direction: column; }
  .page-hero-video .hero-video { order: -1; margin: 0 calc(var(--gutter) * -1) 22px; }
  .page-hero-video .hero-video video, .page-hero-video .hero-video-play { border-radius: 0; box-shadow: none; }
  .page-hero-video .hero-video figcaption { padding-inline: var(--gutter); }

  /* Group class filters: one swipeable row */
  .js .filters {
    flex-wrap: nowrap;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }

  /* Products two per row */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product { padding: 12px; }
  .product img { margin-bottom: 8px; }
  .product .tag { padding: 3px 8px; font-size: .66rem; }
  .product h3 { font-size: 1rem; }
  .product p { font-size: .86rem; line-height: 1.45; }

  /* Coach timeline: travel photos off, years abroad folded until asked */
  .tl-body img { display: none; }
  .timeline.collapsed .tl-abroad { padding-bottom: 16px; }
  .timeline.collapsed .tl-abroad .tl-body p:not(.tl-when) { display: none; }
  .timeline.collapsed .tl-abroad h3 { margin: 0; font-size: 1.1rem; }
  .timeline.collapsed .tl-abroad.open .tl-body p:not(.tl-when) { display: block; }
  .timeline.collapsed .tl-abroad.open h3 { margin-bottom: .4em; }
  .tl-open {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .tl-open::after { content: "+"; flex: none; font: 400 1.4rem/1 var(--font-body); color: var(--pink); }
  .tl-open[aria-expanded="true"]::after { content: "–"; }
  .timeline:not(.collapsed) .tl-open::after { display: none; }
  .tl-toggle { margin-top: 24px; }

  /* Fact cards: one per row, value beside its explanation */
  .facts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fact { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 14px; padding: 12px 16px; }
  .fact strong { font-size: 1.15rem; }

  /* Coaching packages as a 2 × 2 grid */
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .package { padding: 22px 14px 16px; }
  .package-badge { left: 10px; font-size: .7rem; }
  .package-price strong { font-size: 1.8rem; }
  .package li { font-size: .88rem; }

  /* Shorter footer: the menu already lists the services */
  .footer-services, .footer-brand p:not(.footer-motto) { display: none; }
  .footer-grid { gap: 26px; }
  .footer-brand img { width: 160px; margin-bottom: 8px; }
  .footer-motto { margin-top: 0; }
  .footer-bottom { margin-top: 32px; }
}

@media print {
  .site-header, .site-footer, .cta-band, .tabs-nav { display: none; }
  body { background: #fff; }
}
