/* AthletiQ Health – public website. Main colours come from the CMS settings (--primary, --accent).
   Both are bright colours: text on them is always dark (--ink). */
:root {
  --primary: #19c3b1;
  --accent: #c8f53c;
  --ink: #0c1f24;
  --muted: #4d6268;
  --line: #e0ebe9;
  --tint: color-mix(in srgb, var(--primary) 9%, #fff);
  --deep: color-mix(in srgb, var(--primary) 52%, #06292d); /* primary, dark enough for small text */
  --radius: 22px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Avenir Next Condensed", "HelveticaNeue-CondensedBold", "Roboto Condensed", Bahnschrift, "Arial Narrow", sans-serif-condensed, var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--primary); text-decoration-thickness: 2px; }
a:hover { color: var(--deep); }
h1, h2, .brand, .price__tag, .steps li::before {
  font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: .005em;
}
h1, h2, h3 { margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 9.5vw, 6.2rem); line-height: .95; }
h2 { font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: 1; }
h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(800px, 100% - 40px); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.draft { background: #fff3cd; color: #5c4400; text-align: center; padding: 6px 12px; font-size: .9rem; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--deep); margin-bottom: 1em; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); line-height: 1.5; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .7em 1.7em; border: 2px solid var(--accent);
  border-radius: 999px; background: var(--accent); color: var(--ink); font: inherit; font-weight: 750; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--small { min-height: 42px; padding: .45em 1.2em; font-size: .93rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 0; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { font-size: 1.7rem; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--deep); }
.brand img { display: block; max-height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: space-between; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; gap: 4px; }
.nav__list > li { position: relative; }
.nav__list a, .nav__list button {
  display: block; padding: 10px 12px; border: 0; background: none; color: var(--ink); font: inherit; font-size: .97rem; font-weight: 650;
  text-decoration: none; cursor: pointer; white-space: nowrap; border-radius: 999px;
}
.nav__list a:hover, .nav__list button:hover { background: var(--tint); color: var(--ink); }
.nav__list a[aria-current] { box-shadow: inset 0 -3px 0 var(--primary); border-radius: 0; }
.has-sub > :first-child::after { content: ""; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: middle; }
.sub { display: none; position: absolute; left: 0; top: 100%; min-width: 250px; padding: 10px; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(12, 31, 36, .16); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { display: block; }
.sub a[aria-current] { box-shadow: none; background: var(--tint); border-radius: 999px; }
.nav__side { display: flex; align-items: center; gap: 16px; }
.langs { display: flex; gap: 2px; }
.langs a { display: block; padding: 6px 8px; border-radius: 999px; color: var(--muted); font-size: .8rem; font-weight: 750; text-decoration: none; }
.langs a[aria-current] { background: var(--ink); color: #fff; }
.burger { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded=true] span { background: transparent; }
.burger[aria-expanded=true] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded=true] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobilecta { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--tint); }
.hero--img { min-height: min(84svh, 860px); color: #fff; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 24, 28, .9) 0%, rgba(6, 24, 28, .62) 45%, rgba(6, 24, 28, .22) 100%), linear-gradient(to right, rgba(6, 24, 28, .45), transparent 70%); }
.hero__in { position: relative; z-index: 1; padding-block: clamp(40px, 7vw, 88px); }
.hero--plain .hero__in { padding-block: clamp(56px, 9vw, 120px); }
.hero__text { max-width: 900px; }
.hero--img .eyebrow { color: #fff; max-width: 40em; padding-left: 14px; border-left: 4px solid var(--accent); }
.hero--img .lead { color: rgba(255, 255, 255, .92); max-width: 38em; }
.hero--plain .lead { max-width: 38em; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 0; }
.hero--img .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.pagehead { background: var(--tint); padding: clamp(44px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.pagehead h1 { margin: 0; }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 9vw, 120px) 0; }
.sec--light { background: var(--tint); }
.sec--dark { background: var(--primary); }
.sec--dark .lead, .sec--dark .prose, .sec--dark .steps p { color: var(--ink); }
.sec--dark .eyebrow { color: var(--ink); }
.sec__head { max-width: 52em; margin-bottom: clamp(28px, 4vw, 48px); }

.prose { font-size: 1.08rem; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose h2:not(:first-child) { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1em; list-style: none; }
.prose li { position: relative; padding: .5em 0 .5em 2em; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.prose li:last-child { border-bottom: 0; }
.prose ul li::before { content: ""; position: absolute; left: .15em; top: .95em; width: .95em; height: .5em; border-left: 3px solid var(--deep); border-bottom: 3px solid var(--deep); transform: rotate(-45deg); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li) "."; position: absolute; left: 0; font-weight: 800; color: var(--deep); }
.sec--dark .prose ul li::before { border-color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.split--flip .split__img { order: -1; }
.split__img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.card { display: block; padding: clamp(24px, 3vw, 34px); background: var(--tint); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .2s, background .2s; }
.sec--light .card, .sec--dark .card { background: #fff; }
.card:hover { transform: translateY(-4px); }
.card p { color: var(--muted); margin-bottom: 0; }
.card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 50%; background: var(--accent); color: var(--ink); }
.card .card__more { margin-top: 1em; font-weight: 750; color: var(--ink); }
.card__more a { text-decoration: none; }
.card--post img { display: block; width: calc(100% + 2 * clamp(24px, 3vw, 34px)); max-width: none; margin: calc(-1 * clamp(24px, 3vw, 34px)) calc(-1 * clamp(24px, 3vw, 34px)) 22px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px 32px; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; color: var(--deep); margin-bottom: .15em; }
.sec--dark .steps li::before { color: #fff; }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--muted); margin: 0; }

.prices { display: grid; gap: 12px; max-width: 900px; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px clamp(20px, 3vw, 32px); background: #fff; border-radius: var(--radius); color: var(--ink); }
.sec:not(.sec--light):not(.sec--dark) .price { background: var(--tint); }
.price--hl, .sec:not(.sec--light):not(.sec--dark) .price--hl { background: var(--accent); }
.price h3 { margin: 0; }
.price p { margin: .25em 0 0; color: var(--muted); }
.price p:empty { display: none; }
.price .price__tag { flex: none; margin: 0; font-size: clamp(1.8rem, 4.5vw, 2.5rem); line-height: 1; color: var(--ink); white-space: nowrap; }
.note { max-width: 900px; margin: 1.6em 0 0; font-size: .95rem; color: var(--muted); }
.sec--dark .note { color: var(--ink); }
.prices + .center, .note + .center { max-width: 900px; margin-top: 1.8em; text-align: left; }

.grid--people { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 26px; }
.person__img { display: block; width: 100%; aspect-ratio: 1; margin-bottom: 18px; border-radius: var(--radius); object-fit: cover; }
.person__img--none { display: grid; place-items: center; background: #fff; color: color-mix(in srgb, var(--primary) 70%, #fff); }
.sec:not(.sec--light):not(.sec--dark) .person__img--none { background: var(--tint); }
.person__img--none .icon { width: 56px; height: 56px; }
.person h3 { margin-bottom: .15em; }
.person__role { font-weight: 750; color: var(--deep); margin-bottom: .2em; }
.person__org { font-size: .93rem; margin-bottom: .5em; }
.person__text { color: var(--muted); margin: 0; }
.person__more { margin: .6em 0 0; font-weight: 750; }

.faq { max-width: 900px; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary { padding: 20px 40px 20px 0; position: relative; font-weight: 750; font-size: 1.12rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.9rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .prose { padding-bottom: 22px; color: var(--muted); }

.cta { padding: 0 0 clamp(48px, 7vw, 96px); }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: clamp(32px, 6vw, 72px); border-radius: calc(var(--radius) + 8px); background: linear-gradient(110deg, var(--primary), var(--accent)); color: var(--ink); }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; max-width: 40em; font-size: 1.1rem; }
.cta .btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- forms ---------- */
.formwrap { max-width: 800px; scroll-margin-top: 96px; }
.form { display: grid; gap: 18px; }
.form p { margin: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-weight: 700; font-size: .93rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  display: block; width: 100%; margin-top: 7px; padding: 15px 16px; border: 2px solid transparent; border-radius: 14px; background: var(--tint); color: var(--ink); font: inherit; font-size: 16px;
}
.sec--light .form input, .sec--light .form select, .sec--light .form textarea { background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--ink); }
.form textarea { resize: vertical; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; width: 20px; height: 20px; flex: none; accent-color: var(--ink); }
.form__hint { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.msg { padding: 18px 22px; border-radius: 16px; font-weight: 650; }
.msg--ok { background: var(--accent); color: var(--ink); }
.msg--err { background: #fde8e4; color: #8a1c0a; }

.back { font-weight: 700; text-decoration: none; }
.post__img { display: block; width: 100%; border-radius: var(--radius); margin: 0 0 1.6em; }
article.sec h1 { font-size: clamp(2.2rem, 6.5vw, 4rem); }

/* ---------- footer ---------- */
.foot { background: var(--tint); font-size: .97rem; padding-top: clamp(48px, 7vw, 80px); }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.brand--foot { font-size: 2.2rem; margin-bottom: .5em; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 650; }
.foot__h { font-weight: 800; }
.foot__social { display: flex; gap: 16px; }
.foot__base { padding: 20px 0 28px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); font-size: .85rem; color: var(--muted); }

/* ---------- gentle motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1100px) {
  .burger { display: inline-flex; }
  .top { background: #fff; backdrop-filter: none; } /* a blurred header would trap the full-screen menu inside it */
  .nav { display: none; position: fixed; inset: 72px 0 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px; padding: 18px 20px 120px; background: #fff; overflow: auto; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list > li > a, .nav__list > li > button {
    width: 100%; padding: 14px 0; text-align: left; white-space: normal; border-radius: 0;
    font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1.05;
  }
  .nav__list a:hover, .nav__list button:hover { background: none; }
  .nav__list a[aria-current] { box-shadow: none; color: var(--deep); }
  .sub, .has-sub:hover > .sub { display: block; position: static; padding: 0 0 12px; box-shadow: none; min-width: 0; border-radius: 0; }
  .sub a { padding: 9px 0; font-size: 1.08rem; white-space: normal; }
  .sub a[aria-current] { background: none; }
  .has-sub > :first-child::after { display: none; }
  .nav__side { justify-content: space-between; }
  .langs a { padding: 10px 14px; font-size: .9rem; }
}
@media (max-width: 820px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .split, .foot__grid, .form__row { grid-template-columns: 1fr; }
  .split--flip .split__img { order: 0; }
  .split__img img { aspect-ratio: 4 / 3; }
  .hero--img { min-height: min(88svh, 720px); }
  .hero__in { padding-top: 96px; }
  .hero .lead { font-size: 1.02rem; }
  .hero .eyebrow { font-size: .7rem; letter-spacing: .1em; }
  .hero__btns .btn, .btns .btn, .cta .btn, .form .btn, .prices + .center .btn, .note + .center .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .price { align-items: flex-start; flex-direction: column; gap: 8px; }
  .grid--people { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  /* booking button always within thumb reach */
  .mobilecta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobilecta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- design variants chosen in the editor ---------- */
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.prose .md h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.hero--split .hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero--split h1 { font-size: clamp(2.4rem, 6.5vw, 4.8rem); }
.hero--split .lead { max-width: 34em; }
.hero__side { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.grid--lines .card, .sec--light .grid--lines .card, .sec--dark .grid--lines .card { background: none; border-top: 3px solid var(--ink); border-radius: 0; padding: 22px 0 0; }
.grid--lines .card:hover { transform: none; }
.grid--lines { gap: 34px 28px; }
.grid--color .card, .sec--light .grid--color .card { background: var(--primary); }
.grid--color .card p { color: var(--ink); }
.grid--color .card__icon { background: #fff; }
.sec--dark .grid--color .card { background: var(--accent); }
.steps--circles li { border-top: 0; padding-top: 0; }
.steps--circles li::before { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 1.9rem; content: counter(step); }
.sec--dark .steps--circles li::before { background: #fff; color: var(--ink); }
.people--round .person__img { border-radius: 50%; }
.cta--color .cta__in { background: var(--accent); }
.cta--dark .cta__in { background: var(--ink); color: #fff; }
.cta--dark .btn { background: var(--accent); border-color: var(--accent); color: var(--ink); }
@media (max-width: 820px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; }
  .hero__side { aspect-ratio: 4 / 3; }
}