/* ==========================================================================
   Beth Na Na — "Dyb"
   Deep canal green, cream and brass. Gloock for the voice, Figtree for reading.
   One landing page; motion is added by main.js and switched off when the
   reader asks for less.
   ========================================================================== */

@font-face { font-family: 'Gloock'; src: url('../fonts/gloock.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Gloock Fallback'; src: local('Georgia'); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; }
@font-face { font-family: 'Figtree Fallback'; src: local('Arial'); size-adjust: 101%; ascent-override: 94%; descent-override: 25%; }

:root {
  --green: #123630;
  --green-2: #1B4740;
  --green-3: #0C2622;
  --cream: #F3ECDF;
  --cream-2: #E9DFCC;
  --brass: #D9A35F;
  --brass-2: #E6B676;
  --brass-tint: #EBD3AE;
  --ink: #0E1E1A;
  --muted: #4A5954;        /* on cream: 6.6:1 */
  --muted-on-green: #C5D0CA; /* on green: 9:1 */
  --rule: #D8CBB4;
  --error: #9A2A1C;

  --serif: 'Gloock', 'Gloock Fallback', Georgia, serif;
  --sans: 'Figtree', 'Figtree Fallback', Arial, sans-serif;

  --fs-hero: clamp(3.5rem, 1.9rem + 8vw, 10rem);
  --fs-title: clamp(2.75rem, 1.75rem + 4.6vw, 6.5rem);
  --fs-quote: clamp(2.125rem, 1.35rem + 3.7vw, 5.25rem);
  --fs-card: clamp(2rem, 1.4rem + 2.8vw, 4.5rem);
  --fs-lead: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
  --fs-text: clamp(1.1875rem, 1.15rem + .2vw, 1.3125rem);
  --fs-small: 1rem;

  --gutter: 20px;
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 64rem) { :root { --gutter: 48px; } }
:root.text-large { font-size: 112.5%; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; scroll-padding-bottom: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 450 var(--fs-text)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend, blockquote { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
p { text-wrap: pretty; }
/* Long Danish compounds ("bevægelsespædagog") must never push past a 320px screen. */
p, dd, li, dt { overflow-wrap: break-word; }
/* Phone layouts: one column that never grows past the screen, whatever the longest word. */
.intro__grid, .about__grid, .prices__grid, .clinic__grid, .contact__grid, .page__body, .booking { grid-template-columns: minmax(0, 1fr); }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brass); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), 84rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 14px 20px; border-radius: 999px; background: var(--brass); color: var(--ink); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.no-js-only { display: none; }
html:not(.js) .no-js-only { display: block; }
.print-only { display: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

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

.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; max-width: 100%; padding: 10px 28px;
  border: 0; border-radius: 999px;
  font: 700 1.125rem/1.15 var(--sans); text-align: center;
  text-decoration: none; cursor: pointer;
  /* The magnetic pull (main.js) eases --mx/--my itself, frame by frame, so
     `translate` has no CSS transition to fight with; only the press scales. */
  translate: var(--mx) var(--my);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), scale .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { transition: transform .45s var(--ease); }
.btn--small { min-height: 46px; padding: 8px 20px; font-size: 1rem; }
.btn--large { min-height: 60px; padding: 10px 32px; }
.btn--wide { width: 100%; }
.btn--brass, .btn--primary { background: var(--brass); color: var(--ink); }
.btn--line, .btn--on-ink { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--outline { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--green { background: var(--green); color: var(--cream); }
.btn:active { scale: .97; }
/* Hover only where there is a real pointer: on phones a tapped button would keep its hover colour. */
@media (hover: hover) {
  .btn:hover .icon { transform: translateX(4px); }
  .btn--brass:hover, .btn--primary:hover { background: var(--brass-2); }
  .btn--line:hover, .btn--on-ink:hover { background: rgb(243 236 223 / .1); }
  .btn--green:hover { background: var(--green-2); }
}
.link-button, .text-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0;
  border: 0; background: none; cursor: pointer;
  font: 700 1rem/1.2 var(--sans); color: inherit;
  text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px;
}

/* ---------- Logo ---------- */

.logo { display: inline-flex; align-items: center; min-height: 48px; flex: none; color: var(--green); }
.logo__svg { height: 34px; width: auto; }
@media (max-width: 23.4rem) { .logo__svg { height: 28px; } }
/* One colour, like Beth's originals: green on cream, cream on green. */
.logo__mark, .logo__word { fill: currentColor; }
/* Scrolled down: the name steps aside and the B stays as the sign-post. */
.logo__word { transition: opacity .35s var(--ease), transform .5s var(--ease); }
.site-header.is-compact .logo__word { opacity: 0; transform: translateX(-36px); } /* SVG units: about 10px on screen */
@media (min-width: 64rem) { .logo__svg { height: 42px; } }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px var(--gutter);
  background: var(--cream);
  color: var(--green);
  /* Colour only: animating the height would re-layout the page under the cursor. */
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; color: var(--cream); }
.site-header--overlay .logo { color: var(--cream); }
/* Opaque on phones: no blur to repaint on every scroll frame, no muddy cream showing through. */
.site-header--overlay.is-solid { background: var(--green); box-shadow: 0 1px 0 rgb(243 236 223 / .1); }
.site-nav { display: none; }
.site-header__end { display: flex; align-items: center; gap: 8px; }
.lang-link, .close-link { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 8px; font-weight: 700; text-decoration: none; }
.lang-link, .close-link { text-decoration: underline 1.5px transparent; text-underline-offset: .25em; transition: text-decoration-color .3s var(--ease); }
@media (hover: hover) { .lang-link:hover, .close-link:hover { text-decoration-color: currentColor; } }
/* On phones "Book" and "Ring" live in the thumb bar on every page; the header stays calm. */
@media (max-width: 63.99rem) { .site-header__end .btn { display: none; } }

@media (min-width: 64rem) {
  .site-header { padding: 16px var(--gutter); }
  .site-header__end { gap: 14px; }
  .site-header--overlay.is-solid { background: rgb(18 54 48 / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
  .site-nav a { position: relative; font-weight: 600; text-decoration: none; padding: 12px 0; }
  .site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
  .site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- Hero ---------- */

.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--green); color: var(--cream); isolation: isolate; }
.hero .hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(18 54 48 / .6) 0%, rgb(18 54 48 / 0) 26%, rgb(18 54 48 / .1) 46%, rgb(18 54 48 / .94) 80%); pointer-events: none; }
.hero__media .vid__toggle { z-index: 2; top: 84px; bottom: auto; }
.hero__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 32px; display: grid; gap: 20px; }
.kicker { font: 600 .9375rem/1.3 var(--sans); letter-spacing: .02em; color: var(--brass); margin-bottom: 14px; }
.hero__title { font: 400 var(--fs-hero)/.92 var(--serif); letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: block; }
.hero__sub { max-width: 32ch; color: var(--cream-2); font-size: var(--fs-lead); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__actions .btn { flex: 1 1 14rem; }
.hero__scroll { display: none; }

@media (min-width: 64rem) {
  .hero__body { grid-template-columns: 1.55fr 1fr; align-items: end; gap: 64px; padding-bottom: 64px; }
  .hero__media .vid__toggle { top: auto; bottom: 24px; }
  .hero__scroll {
    display: flex; position: absolute; right: var(--gutter); top: 50%;
    writing-mode: vertical-rl; gap: 12px; align-items: center;
    font: 600 .875rem/1 var(--sans); letter-spacing: .08em; color: var(--cream-2); text-decoration: none;
  }
  .hero__scroll::after { content: ''; width: 1px; height: 64px; background: currentColor; transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
}

/* ---------- Video toggle ---------- */

.vid { position: relative; }
.vid video { width: 100%; height: 100%; object-fit: cover; background: var(--green-2); }
.vid__toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: rgb(12 38 34 / .66); color: var(--cream);
  font: 600 .9375rem/1 var(--sans); cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ---------- Marquee ---------- */

.marquee { background: var(--brass); color: var(--ink); overflow: hidden; white-space: nowrap; padding: 20px 0; }
.marquee__track { display: inline-flex; animation: marquee 36s linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__track span { font: 400 clamp(1.875rem, 1.4rem + 2.2vw, 3.5rem)/1 var(--serif); padding-right: 48px; }
.marquee__track span::after {
  /* Drawn, not typed: iPhones turn the ✳ character into a green emoji. */
  content: ''; display: inline-block; width: .42em; height: .42em; margin-left: 48px; vertical-align: .22em;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v20M2 12h20M4.9 4.9l14.2 14.2M19.1 4.9 4.9 19.1' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v20M2 12h20M4.9 4.9l14.2 14.2M19.1 4.9 4.9 19.1' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Beth's words ---------- */

.intro { padding: 96px 0 104px; }
.intro__grid { display: grid; gap: 48px; }
.intro__quote { font: 400 var(--fs-quote)/1.06 var(--serif); letter-spacing: -.015em; color: var(--green); max-width: 18ch; }
.intro__quote .w { display: inline-block; }
.byline { display: flex; align-items: center; gap: 16px; }
.byline img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.byline p { font-family: var(--sans); line-height: 1.35; }
.byline strong { display: block; font-weight: 700; }
.byline span { color: var(--muted); font-size: var(--fs-small); }
.facts { display: grid; gap: 22px; margin-top: 36px; }
.facts div { padding-top: 18px; border-top: 1px solid var(--rule); }
.facts dt { font: 400 2rem/1 var(--serif); color: var(--green); }
.facts dd { margin-top: 6px; color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }

@media (min-width: 64rem) {
  .intro { padding: 180px 0 160px; }
  .intro__grid { grid-template-columns: 1.7fr 1fr; align-items: end; gap: 96px; }
  .facts dt { font-size: 2.5rem; }
}

/* ---------- Treatments ----------
   Phones: a calm list, photo above text, so nothing ever covers the price or
   the Book button. Desktop: the cards stack as you scroll. */

.services { background: var(--green); color: var(--cream); padding: 96px 0 104px; }
.services__head { display: grid; gap: 16px; margin-bottom: 48px; }
.title { font: 400 var(--fs-title)/.98 var(--serif); letter-spacing: -.02em; }
.title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.title .line > span { display: block; }
.services__head p { max-width: 36ch; color: var(--muted-on-green); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.card { scroll-margin-top: 88px; }
.card__inner { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--green-2); }
.card__media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-3); }
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: grid; gap: 10px; padding: 24px 22px 26px; }
.card__num { font: 700 .9375rem/1 var(--sans); color: var(--brass); letter-spacing: .04em; }
.card__title { font: 400 var(--fs-card)/1 var(--serif); letter-spacing: -.015em; }
.card__body p { color: var(--cream-2); max-width: 36ch; }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.card__price { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgb(243 236 223 / .12); font-weight: 700; font-size: 1rem; }
.card .vid__toggle { top: 14px; right: 14px; bottom: auto; }
.services__extra {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 56px; padding-top: 32px;
  border-top: 1px solid rgb(243 236 223 / .16);
}
.services__extra h3 { font: 400 2rem/1.05 var(--serif); }
.services__extra p { margin-top: 8px; color: var(--muted-on-green); max-width: 44ch; }
.services__extra .btn { justify-self: start; }

@media (min-width: 64rem) {
  .services { padding: 160px 0 180px; }
  .services__head { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 80px; }
  .services__head p { justify-self: end; }
  .stack { gap: 40px; }
  .card { position: sticky; top: calc(110px + var(--i, 0) * 18px); }
  .card__inner {
    height: min(78vh, 720px); display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: minmax(0, 1fr);
    box-shadow: 0 -18px 50px rgb(0 0 0 / .28); transform-origin: 50% 0;
  }
  .card__media { aspect-ratio: auto; min-height: 0; height: 100%; }
  .card__body { align-content: end; padding: 56px; gap: 16px; }
  .card .vid__toggle { top: 16px; right: 16px; }
  .services__extra { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- About ---------- */

.about { padding: 96px 0 104px; }
.about__grid { display: grid; gap: 48px; }
.about__text { display: grid; gap: 22px; align-content: start; }
.about__text .title { color: var(--green); }
.about__lead { font: 400 var(--fs-lead)/1.3 var(--serif); font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem); color: var(--green); max-width: 22ch; }
.about__text > p:not(.about__lead) { max-width: 40ch; }
.about__stance { font: 400 1.75rem/1.2 var(--serif); color: var(--green); }
.creds { display: grid; margin-top: 8px; border-top: 1px solid var(--rule); }
.creds li { padding: 16px 0; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }

@media (min-width: 64rem) {
  .about { padding: 180px 0; }
  /* No photo: title and lead on the left, Beth's story and credentials on the right. */
  .about__text { grid-template-columns: 1fr 1.1fr; column-gap: 96px; grid-auto-flow: row dense; }
  .about__text > * { grid-column: 2; }
  .about__text > .title { grid-column: 1; grid-row: 1; }
  .about__text > .about__lead { grid-column: 1; grid-row: 2 / span 8; align-self: start; }
}

/* ---------- Prices ---------- */

.prices { background: var(--cream-2); padding: 96px 0 104px; }
.prices__grid { display: grid; gap: 40px; }
.prices .title { color: var(--green); }
.prices__groups { display: grid; gap: 40px; }
.price-group h3 { font: 700 1rem/1 var(--sans); letter-spacing: .04em; color: var(--muted); padding-bottom: 14px; border-bottom: 1.5px solid var(--green); }
.price-group li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.price-group li span:first-child { font-weight: 600; }
.price-group small { display: block; font-size: var(--fs-small); font-weight: 450; color: var(--muted); }
.price { font: 400 1.75rem/1 var(--serif); color: var(--green); white-space: nowrap; }
.prices__note { color: var(--muted); max-width: 52ch; }

@media (min-width: 64rem) {
  .prices { padding: 160px 0; }
  .prices__grid { grid-template-columns: 1fr 2fr; gap: 96px; }
  .prices__groups { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .prices__groups > p { grid-column: 1 / -1; }
}

/* ---------- Åben Klinik ---------- */

.clinic { background: var(--brass); color: var(--ink); padding: 88px 0 96px; overflow: hidden; }
.clinic__big { font: 400 clamp(4.5rem, 2.4rem + 11vw, 13rem)/.9 var(--serif); letter-spacing: -.03em; white-space: nowrap; color: var(--green); margin-bottom: 48px; }
.clinic__big span { display: inline-block; padding-left: var(--gutter); }
.clinic__grid { display: grid; gap: 24px; }
.clinic__title { font: 400 2.5rem/1 var(--serif); }
.clinic__grid p { max-width: 42ch; }
.clinic__next { margin: 18px 0 24px; font-weight: 600; }
@media (min-width: 64rem) {
  .clinic { padding: 140px 0 150px; }
  .clinic__grid { grid-template-columns: 1fr 1.4fr; gap: 96px; }
  .clinic__title { font-size: 3.5rem; }
}

/* ---------- Book / contact ---------- */

.contact { background: var(--green); color: var(--cream); padding: 96px 0 72px; }
.contact__grid { display: grid; gap: 56px; }
.contact__lead { display: grid; gap: 22px; justify-items: start; }
.contact__lead p { color: var(--muted-on-green); max-width: 34ch; }
.contact__or { font-weight: 600; color: var(--brass); }
.contact__phone { display: block; margin: 6px 0 18px; font: 400 min(clamp(3.5rem, 2.2rem + 6.6vw, 9rem), 16vw)/.95 var(--serif); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.contact__phone { transition: color .3s var(--ease); }
@media (hover: hover) { .contact__phone:hover { color: var(--brass); } }
.contact__links { display: flex; flex-wrap: wrap; column-gap: 28px; margin-top: 6px; }
.contact__links a, .site-footer__line a { transition: color .3s var(--ease); }
@media (hover: hover) { .contact__links a:hover, .site-footer__line a:hover { color: var(--brass); } }
.contact__links a { display: inline-flex; min-height: 48px; max-width: 100%; align-items: center; font-weight: 600; overflow-wrap: anywhere; }
.contact__note { margin-top: 10px; color: var(--muted-on-green); font-size: var(--fs-small); }
.contact__signoff { margin-top: 72px; font: 400 clamp(2.5rem, 1.8rem + 3.4vw, 5rem)/1 var(--serif); color: var(--brass); }
@media (min-width: 64rem) {
  .contact { padding: 180px 0 120px; }
  .contact__grid { grid-template-columns: 1fr 1.2fr; gap: 96px; align-items: end; }
}

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

.site-footer { background: var(--green-3); color: var(--cream); padding: 56px 0 calc(48px + env(safe-area-inset-bottom)); }
.site-footer__inner { display: grid; gap: 24px; }
.logo--footer { color: var(--cream); }
.site-footer__line { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: var(--fs-small); color: var(--muted-on-green); }
.site-footer__line > * { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__line a, .site-footer__line .link-button { color: var(--cream); font-weight: 600; font-size: var(--fs-small); }
@media (min-width: 64rem) { .site-footer { padding-bottom: 56px; } }

/* ---------- Phone bar ---------- */

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 2fr 3fr; gap: 10px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: var(--green-3);
  transform: translateY(0);
  transition: transform .5s var(--ease);
}
/* Hidden bar is also out of the tab order, not just off screen. */
.page-home .bar { transform: translateY(110%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s linear .5s; }
.page-home .bar.is-visible { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.bar .btn { min-height: 56px; padding: 8px 14px; }
.page-simple { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 64rem) { .bar:not(.bar--booking) { display: none; } .page-simple { padding-bottom: 0; } }
@media (max-height: 500px) { .bar { position: static; transform: none !important; } }

/* ==========================================================================
   Small pages and booking
   ========================================================================== */

.frame { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }
.page { padding: 64px 0 96px; }
.page__body { display: grid; gap: 22px; justify-items: start; }
.page__body > * { max-width: 100%; }
.page__body .h2, .page__body h1 { font: 400 var(--fs-title)/1 var(--serif); color: var(--green); }
.page__body .h3, .page__body h2 { font: 400 1.75rem/1.15 var(--serif); color: var(--green); margin-top: 12px; }
.page__body .lead { font-size: var(--fs-lead); }
.page__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.small, .page__meta { font-size: var(--fs-small); color: var(--muted); }
.sub { font: 400 1.75rem/1.2 var(--serif); color: var(--green); }
.tick::before { content: none; }

.page-book { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.booking { display: grid; gap: 24px; padding: 32px 0 72px; align-content: start; }
.progress { display: grid; gap: 10px; }
.progress__text { font-weight: 600; font-size: var(--fs-small); color: var(--muted); }
.progress__line { height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.progress__line span { display: block; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(var(--p, .25)); transition: transform .6s var(--ease); }

.bstep { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.question, .bstep .h2 { font: 400 clamp(2.25rem, 1.6rem + 3vw, 3.75rem)/1.02 var(--serif); color: var(--green); }
.question:focus { outline: none; }
.hint { color: var(--muted); font-size: var(--fs-small); }
.group-label { font: 700 .9375rem/1 var(--sans); letter-spacing: .04em; color: var(--muted); padding: 18px 4px 10px; }
.rows { display: grid; gap: 8px; }
.rows + .rows { margin-top: 10px; }
.row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  min-height: 68px; padding: 14px 18px;
  border-radius: 18px; background: #FBF7EF; box-shadow: inset 0 0 0 1.5px var(--rule);
  cursor: pointer; transition: background-color .25s var(--ease), box-shadow .25s var(--ease), transform .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.row:active { transform: scale(.985); }
.row__label { font-weight: 650; line-height: 1.3; }
.row__price { font: 400 1.375rem/1 var(--serif); color: var(--green); white-space: nowrap; }
.row__control { position: relative; width: 26px; height: 26px; border: 2px solid var(--green); background: #fff; }
.row__control--radio { border-radius: 50%; }
.row__control--checkbox { border-radius: 7px; }
.row:has(input:checked) { background: var(--brass-tint); box-shadow: inset 0 0 0 2px var(--green); }
.row input:checked + .row__control { background: var(--green); }
.row input:checked + .row__control--radio::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--brass); }
.row input:checked + .row__control--checkbox::after { content: ''; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid var(--brass); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.row:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 2px; }
@media (hover: hover) { .row:hover { box-shadow: inset 0 0 0 1.5px var(--green); } }

.field { display: grid; gap: 8px; }
.field__label { font-weight: 700; }
.field__optional { font-weight: 450; color: var(--muted); }
.input {
  width: 100%; min-height: 60px; padding: 0 18px;
  border: 1.5px solid #9C9483; border-radius: 16px; background: #fff;
  font: 500 1.25rem/1.3 var(--sans);
}
.input:focus { outline: 3px solid var(--brass); outline-offset: 0; border-color: var(--green); }
.input--area { min-height: 9rem; padding: 14px 18px; resize: vertical; }
.input[aria-invalid='true'] { border: 2.5px solid var(--error); }
.field-error { padding-left: 12px; border-left: 4px solid var(--error); color: var(--error); font-weight: 700; }
.error-summary { padding: 22px; border: 3px solid var(--error); border-radius: 18px; background: #fff; }
.error-summary__title { font: 400 1.75rem/1.1 var(--serif); color: var(--error); margin-bottom: 8px; }
.error-summary a { display: inline-flex; min-height: 44px; align-items: center; color: var(--error); font-weight: 700; }

.check { border-radius: 18px; background: #FBF7EF; box-shadow: inset 0 0 0 1.5px var(--rule); padding: 6px 20px; }
.check__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.check__row:last-child { border-bottom: 0; }
.check__row dt { grid-column: 1; font-size: var(--fs-small); color: var(--muted); }
.check__row dd { grid-column: 1; font-weight: 650; overflow-wrap: anywhere; }
.check__row .check__edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.notice { padding: 16px 18px; border-radius: 16px; background: var(--brass-tint); font-weight: 500; }
.result { display: grid; gap: 20px; justify-items: start; padding-top: 16px; }
.result .h2 { font: 400 clamp(2.5rem, 1.8rem + 3.4vw, 4rem)/1.02 var(--serif); color: var(--green); }
.result__message { width: 100%; margin: 0; padding: 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rule); font: 500 1rem/1.5 var(--sans); white-space: pre-wrap; }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.spinner { display: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; }
.is-sending .spinner { display: inline-block; animation: spin 1s linear infinite; }
.bar--booking { grid-template-columns: 2fr 3fr; }
.bar--booking .bar__call, .bar--booking .bar__back { grid-column: 1; grid-row: 1; }
.bar--booking .bar__next { grid-column: 2; }
.input-focus .bar--booking { transform: translateY(110%); }
html:not(.js) .bar--booking { display: none; }

@media (min-width: 64rem) {
  .page-book { padding-bottom: 0; }
  .bar--booking {
    position: static; display: flex; gap: 14px;
    padding: 12px 0 0; background: none;
  }
  /* Back on the left, Next on the right, as on the phone bar. */
  .bar--booking .bar__next { margin-left: auto; min-width: 12rem; }
  .bar--booking .bar__call { display: none; }
  .bar--booking .bar__back { color: var(--green); }
  .input-focus .bar--booking { transform: none; }
}

/* ---------- Motion (CSS part) ---------- */

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { transform: scale(1.14); } }

@media (prefers-reduced-motion: no-preference) {
  /* Short and early: the Book button must be there before an impatient thumb is. */
  .js .hero__title .line > span { animation: rise .9s var(--ease) both .05s; }
  .js .hero__title .line:nth-child(2) > span { animation-delay: .14s; }
  .js .hero .kicker, .js .hero__side { animation: fade-up .7s var(--ease) both .25s; }
  .js .hero__media video { animation: settle 2.6s var(--ease) both; }
  /* Page to page: a soft cross-fade; header and phone bar stay put instead of
     flashing. (Booking steps animate in book.js.) */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .bar { view-transition-name: thumb-bar; }
  ::view-transition-old(root) { animation: 180ms cubic-bezier(.4, 0, 1, 1) both vt-fade-out; }
  ::view-transition-new(root) { animation: 360ms var(--ease) 60ms both vt-fade-in; }
  @keyframes vt-fade-out { to { opacity: 0; } }
  @keyframes vt-fade-in { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .marquee__track { flex-wrap: wrap; white-space: normal; }
}

/* ---------- Print: "Print prisliste" ---------- */

@media print {
  .site-header, .bar, .marquee, .vid__toggle, [data-print] { display: none !important; }
  .print-prices main > :not(.prices), .print-prices .site-footer { display: none !important; }
  .print-prices .prices { padding: 0; background: #fff; }
  .print-only { display: block; margin-top: 24px; font-weight: 700; }
}
