/* Horse & Mind – site styles.
   Structure follows apple.com (global + local nav, photo heroes, tiles, highlight cards, galleries,
   compare columns, spec rows). Surfaces follow the Biings Design System (biings.design, CC BY 4.0):
   tinted text, small radii, soft lifting shadows, pastel gradients, grain, gradient titles.
   Colors are the old horseandmind.ch palette: rose #C2847A, rose-white #FFF8F7, beige #ECDFCE,
   dark brown #262318, near-black #141618, amber #F7AB00. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ubuntu-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --page: #FFF8F7;        /* old rose-white */
  --surface: #FFFFFF;     /* cards, fields */
  --tile: #F6EEE8;        /* tinted sections, footer */
  --tile-2: #ECDFCE;      /* old beige: placeholders, pressed states */
  --dark: #141618;        /* old near-black: dark tiles */
  --line: #EADFD8;        /* hairlines */
  --field: #D6C6BC;       /* form borders */
  --ink: #262318;         /* old dark brown: headlines */
  --ink-2: #45403A;       /* body text */
  --muted: #686869;       /* secondary text */
  --accent: #94554B;      /* old rose, darkened for readable buttons/links */
  --accent-dark: #7E4840;
  --accent-soft: #F8EAE7;
  --rose: #C2847A;        /* old brand rose: decoration only (too light for text) */
  --amber: #F7AB00;       /* old highlight, sparingly */
  --sage: #5E8442;
  --sage-soft: #E5EFDE;

  /* pastel card gradients + gradient titles */
  --grad-rose: linear-gradient(135deg, #FDF0ED 0%, #F6E0DA 100%);
  --grad-beige: linear-gradient(135deg, #F8F0E6 0%, #EEDFCC 100%);
  --grad-amber: linear-gradient(135deg, #FFF7E6 0%, #FCEACB 100%);
  --grad-mist: linear-gradient(135deg, #F8F6F4 0%, #ECEAE8 100%);
  --grad-title: linear-gradient(100deg, #262318 10%, #94554B 95%);
  --grad-title-light: linear-gradient(100deg, #FFFFFF 10%, #F2C4BA 95%);
  /* film grain (plum on light, white on dark) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .14 0 0 0 0 .09 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(38, 35, 24, .06), 0 14px 32px -14px rgba(38, 35, 24, .20);
  --shadow-lift: 0 2px 6px rgba(38, 35, 24, .08), 0 26px 50px -18px rgba(38, 35, 24, .30);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Ubuntu", "Plus Jakarta Sans", system-ui, sans-serif;

  /* radius scale: tiles 18 · cards 12 · buttons + fields 9 · tags pill */
  --r-tile: 18px;
  --r-card: 12px;
  --r-ctl: 9px;
  --r-pill: 980px;

  --content: 1024px;      /* text + nav width */
  --wide: 1240px;         /* tiles + media width */
  --gutter: 22px;
  --gnav-h: 52px;
}
@media (max-width: 734px) { :root { --gutter: 16px; --gnav-h: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink-2);
  font: 17px/1.55 var(--text); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
@media (max-width: 734px) { h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--page); padding: 10px 16px; border-radius: var(--r-ctl); z-index: 30; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(var(--wide) + 2 * var(--gutter)); }
.section { padding-block: 96px; }
.section--tile { background-color: var(--tile); background-image: var(--grain); }
.section:not(.section--tile) + .section:not(.section--tile) { padding-top: 0; }
.section--tile + .section { padding-top: 96px; }
@media (max-width: 734px) { .section { padding-block: 64px; } .section--tile + .section { padding-top: 64px; } }

/* ---------- type ---------- */
.kicker { font-family: var(--text); font-size: 19px; font-weight: 600; color: var(--accent); letter-spacing: 0; }
.headline { font-size: clamp(34px, 5.2vw, 56px); }
.subhead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--ink-2); }
.body-lg { font-size: 19px; line-height: 1.55; }
.muted { color: var(--muted); }
.center { text-align: center; }
.intro { max-width: 760px; margin: 0 auto 56px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.intro--left { margin-inline: 0; text-align: left; }
@media (max-width: 734px) { .intro { margin-bottom: 40px; } }

/* ---------- buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: var(--r-ctl);
  background: var(--accent); color: #FFF; border: 1px solid var(--accent);
  box-shadow: 0 1px 2px rgba(38, 35, 24, .18), inset 0 1px 0 rgba(255, 255, 255, .14);
  font: 600 17px/1.2 var(--text); letter-spacing: -.01em; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; color: #FFF; }
.btn--secondary { background: #F3E9E4; color: var(--ink); border-color: #F3E9E4; box-shadow: none; }
.btn--secondary:hover { background: var(--tile-2); border-color: var(--tile-2); color: var(--ink); }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--field); box-shadow: none; }
.btn--outline:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn--light { background: #FFF; color: var(--ink); border-color: #FFF; }
.btn--light:hover { background: #FFF; color: var(--ink); border-color: #FFF; }
.btn--sm { min-height: 32px; padding: 4px 14px; font-size: 14px; }
.more { font-weight: 600; white-space: nowrap; }
.more::after { content: "\203A"; display: inline-block; margin-left: .3em; font-size: 1.15em; line-height: 1; transform: translateY(-.02em); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }
.ctas--left { justify-content: flex-start; }

/* ---------- global nav ---------- */
.gnav {
  position: sticky; top: 0; z-index: 20; height: var(--gnav-h);
  background: rgba(255, 248, 247, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(38, 35, 24, .08);
}
.gnav > .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-family: var(--logo); font-weight: 700; font-size: 18px; letter-spacing: .03em; color: var(--ink); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.nav { display: flex; align-items: stretch; gap: 30px; font-size: 14px; height: 100%; }
.nav-item { display: flex; align-items: center; }
.nav-link { color: var(--ink-2); }
.nav-link:hover, .has-mega.is-open > .nav-link { color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta { align-self: center; color: #FFF; }

/* ---------- mega menu (desktop flyout under the global nav) ---------- */
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 19;
  background: var(--page); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(38, 35, 24, .35); }
.has-mega.is-open > .mega { display: block; animation: mega-in .22s cubic-bezier(.2, .7, .2, 1); }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-inner { display: grid; grid-template-columns: 170px minmax(0, 1fr) 300px; gap: 40px; padding-block: 36px 44px; align-items: start; }
.mega-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.mega-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px; }
.mega-links a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin: -2px -12px; border-radius: var(--r-ctl); color: var(--ink); text-decoration: none; }
.mega-links a:hover, .mega-links a:focus-visible { background: var(--surface); box-shadow: var(--shadow); }
.mega-links a[aria-current="page"] .mega-title { color: var(--accent); }
.mega-title { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.mega-desc { font-size: 14px; color: var(--muted); }
.mega-feature { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--tile-2); box-shadow: var(--shadow); }
.mega-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.mega-feature:hover img { transform: scale(1.04); }
.mega-feature span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #FFF; font-weight: 600; font-size: 15px;
  background: linear-gradient(180deg, rgba(20, 22, 24, 0), rgba(20, 22, 24, .7)); }
.mega-scrim { position: fixed; inset: 0; z-index: 18; background: rgba(20, 22, 24, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .2s; }
body.mega-open .mega-scrim { opacity: 1; }
@media (max-width: 1068px) { .mega-inner { grid-template-columns: minmax(0, 1fr) 240px; } .mega-kicker { display: none; } }
.nav-toggle { display: none; }
@media (max-width: 834px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 8px;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .nav-toggle .i-close { display: none; }
  .nav-toggle[aria-expanded="true"] .i-open { display: none; }
  .nav-toggle[aria-expanded="true"] .i-close { display: block; }
  /* The blur on .gnav would trap the fixed panel inside the bar, so it is switched off while the menu is open */
  body.menu-open .gnav { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--page); }
  .logo, .nav-toggle { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--gnav-h) + 56px) max(var(--gutter), 32px) 40px; background: var(--page); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav { height: auto; gap: 0; }
  .nav-item { display: block; }
  .nav-link { display: block; font-family: var(--display); font-weight: 600; font-size: 30px; color: var(--ink); padding: 8px 0; }
  .nav .btn { font-family: var(--text); font-size: 17px; margin-top: 24px; align-self: flex-start; padding: 10px 22px; }
  /* phones: the mega panels become a plain list under each area */
  .mega, .has-mega.is-open > .mega { display: block; position: static; background: none; border: 0; box-shadow: none; animation: none; }
  .mega-inner { display: block; padding: 0 0 12px; }
  .mega-kicker, .mega-feature, .mega-desc { display: none; }
  .mega-links { display: flex; flex-direction: column; gap: 0; padding-left: 2px; }
  .mega-links a { margin: 0; padding: 6px 0; border-radius: 0; }
  .mega-links a:hover { background: none; box-shadow: none; }
  .mega-title { font-family: var(--text); font-size: 17px; font-weight: 400; color: var(--ink-2); }
  .mega-scrim { display: none; }
}

/* ---------- hero: one full-width photo, text on top ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* fills the screen below the navigation; 100vh first for browsers without svh */
  min-height: calc(100vh - var(--gnav-h)); min-height: calc(100svh - var(--gnav-h));
  display: flex; align-items: flex-end;
  color: #F6EFE6; text-align: center;
}
.hero--page { min-height: calc(100vh - var(--gnav-h)); min-height: calc(100svh - var(--gnav-h)); }
.hero--short { min-height: min(46vh, 440px); }
.hero > .ph { position: absolute; inset: 0; z-index: -2; min-height: 0; border-radius: 0; background: #3A3532; }
.hero > .ph::before { background-image: radial-gradient(rgba(255, 255, 255, .08) 1.2px, transparent 1.2px); }
.hero > .ph .ph-label { left: auto; right: 16px; bottom: auto; top: 16px; }
/* shade so white text stays readable on any photo */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 22, 24, 0) 25%, rgba(20, 22, 24, .42) 55%, rgba(20, 22, 24, .80) 100%);
}
.hero-content { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 96px 72px; }
.hero h1 { color: #FFF; font-size: clamp(44px, 7.4vw, 88px); line-height: 1.03; max-width: 15ch; }
.hero--page h1 { font-size: clamp(40px, 6vw, 76px); }
.hero--short h1 { font-size: clamp(36px, 5vw, 60px); }
.hero .kicker { color: #F2C4BA; }
.hero-content > * { text-shadow: 0 1px 18px rgba(20, 22, 24, .45); }
.hero .btn { text-shadow: none; }
.hero .subhead { color: rgba(246, 239, 230, .92); max-width: 620px; }
.hero .ctas { margin-top: 10px; }
.hero .more { color: #FFF; }
.hero .btn--secondary { color: #FFF; border-color: rgba(255, 255, 255, .7); }
@media (max-width: 734px) {
  .hero--short { min-height: 360px; }
  .hero-content { padding-block: 72px 48px; }
}
/* a slow settle of the photo and text on load – starts visible, so nothing waits on it */
@media (prefers-reduced-motion: no-preference) {
  .hero > .ph { animation: hero-settle 2.4s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-content { animation: hero-rise 1.2s .15s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes hero-settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes hero-rise { from { transform: translateY(18px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- tiles (homepage-style blocks) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  background-color: var(--tile); background-image: var(--grain), var(--grad-rose); border-radius: var(--r-tile); padding: 52px 32px 0; min-height: 560px; color: var(--ink-2);
  border: 1px solid rgba(38, 35, 24, .08); box-shadow: var(--shadow);
}
.tile h2 { font-size: clamp(32px, 3.8vw, 44px); }
.tile p { font-size: 19px; max-width: 34ch; }
.tile .ctas { margin-top: 6px; }
.tile .tile-media { margin-top: auto; width: 100%; padding-top: 32px; }
.tile .tile-media .ph { border-radius: var(--r-card) var(--r-card) 0 0; min-height: 260px; }
.tile--wide { grid-column: 1 / -1; min-height: 0; padding-bottom: 52px; }
.tiles .tile:nth-child(4n+2) { background-image: var(--grain), var(--grad-beige); }
.tiles .tile:nth-child(4n+4) { background-image: var(--grain), var(--grad-amber); }
.tile--wide { background-image: var(--grain), var(--grad-mist); }
.tile--dark, .tiles .tile--dark { background-color: var(--dark); background-image: var(--grain-light), radial-gradient(120% 90% at 0% 0%, #3B2C27 0%, var(--dark) 60%); color: #EEE8E3; border-color: transparent; }
.tile--dark h2 { color: #FFF; }
.tile--dark .kicker { color: #E8A99E; }
.tile--dark .more { color: #E8A99E; }
@media (max-width: 734px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 480px; padding: 44px 20px 0; }
  .tile--wide { min-height: 0; padding-bottom: 44px; }
}

/* ---------- highlights (bento cards) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cell { grid-column: span 2; background: var(--surface); border: 1px solid rgba(38, 35, 24, .07); box-shadow: var(--shadow); border-radius: var(--r-tile); padding: 36px 32px; display: flex; flex-direction: column; gap: 10px; }
.section--tile .cell { background: var(--page); }
.cell--3 { grid-column: span 3; }
.cell--6 { grid-column: span 6; }
.cell h3 { font-size: clamp(24px, 2.4vw, 30px); }
.cell p { font-size: 17px; }
.cell .stat { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--accent); }
@media (max-width: 1068px) { .cell, .cell--3 { grid-column: span 3; } }
@media (max-width: 734px) { .bento { grid-template-columns: 1fr; } .cell, .cell--3, .cell--6 { grid-column: auto; padding: 32px 24px; } }

/* ---------- steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 8px;
  background: var(--ink); color: var(--page); font: 600 15px var(--text);
}
.step h3 { font-family: var(--text); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 734px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- gallery (horizontal cards) ---------- */
.gallery { position: relative; }
.gallery-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px max(var(--gutter), calc((100vw - var(--content)) / 2)) 8px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--content)) / 2));
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gcard {
  flex: 0 0 min(372px, 84vw); scroll-snap-align: start; margin: 0;
  background: var(--surface); border: 1px solid rgba(38, 35, 24, .07); box-shadow: var(--shadow); border-radius: var(--r-tile); padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; min-height: 300px;
}
.section:not(.section--tile) .gcard { background-image: var(--grain), var(--grad-rose); }
.gcard blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.35; color: var(--ink); }
.gcard figcaption { margin-top: auto; font-size: 15px; color: var(--muted); }
.gcard figcaption strong { color: var(--ink); display: block; }
.paddles { display: flex; justify-content: flex-end; gap: 14px; margin-top: 24px; }
.paddle {
  width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--tile-2); color: var(--ink);
}
.paddle:disabled { opacity: .4; cursor: default; }
.paddle svg { width: 16px; height: 16px; }

/* ---------- compare ("Welches Angebot passt?") ---------- */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 28px; }
.compare-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.compare-item .ph { width: 100%; border-radius: var(--r-card); min-height: 0; aspect-ratio: 4 / 3; margin-bottom: 14px; }
.compare-item h3 { font-size: 28px; }
.compare-item > p { max-width: 30ch; }
.compare-item .ctas { margin-top: 8px; }
.compare-facts { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); width: 100%; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.compare-facts strong { display: block; color: var(--ink); font-size: 17px; }

/* ---------- split (text + media) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.split--top { align-items: start; }
.split .ph { border-radius: var(--r-tile); min-height: 440px; }
.split .ph.portrait { min-height: 0; aspect-ratio: 4 / 5; }
.split-text { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 834px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } .split .ph { min-height: 300px; } }

/* ---------- spec rows ---------- */
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(120px, 32%) 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); font-weight: 600; }
@media (max-width: 480px) { .specs > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0; min-height: 44px;
  font-family: var(--text); font-size: 19px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  color: var(--accent); transition: transform .25s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: 0; }
.faq .faq-a { padding: 0 48px 24px 0; display: flex; flex-direction: column; gap: 10px; }

/* ---------- camp dates ---------- */
.dates { border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.dates { box-shadow: var(--shadow); }
.date { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 22px 24px; border-top: 1px solid var(--line); }
.date:first-child { border-top: 0; }
.date-main { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.date-when { font-family: var(--display); font-size: 23px; font-weight: 600; color: var(--ink); }
.date-meta { font-size: 15px; color: var(--muted); }
.dates-empty { padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dates-empty[hidden] { display: none; }
.chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.chip--open { background: var(--sage-soft); color: #3F5C2B; }
.chip--few { background: #FFF0CC; color: #7A5200; }
.chip--wait { background: #F8EAE7; color: #7E4840; }
.chip--full { background: #FDDDE0; color: #962F3A; }

/* camp teaser (dark band) */
.band {
  background-color: var(--dark); background-image: var(--grain-light), radial-gradient(120% 120% at 0% 0%, #3B2C27 0%, var(--dark) 55%); color: #EEE8E3; border-radius: var(--r-tile); padding: 48px; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
}
.band h2 { color: #FFF; font-size: clamp(30px, 3.6vw, 40px); }
.band-info { display: flex; flex-direction: column; gap: 8px; flex: 1 1 320px; }
.band .eyebrow { font-weight: 600; font-size: 17px; color: #E8A99E; }
.band-action { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 734px) { .band { padding: 36px 24px; } }

/* ---------- photos ---------- */
.ph { position: relative; margin: 0; background: var(--tile-2); overflow: hidden; min-height: 200px; }
.ph::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .35) 1.2px, transparent 1.2px); background-size: 16px 16px; }
.ph-label { position: absolute; left: 14px; bottom: 14px; font-size: 12px; color: var(--ink-2); background: rgba(255, 248, 247, .85); padding: 3px 9px; border-radius: 6px; }
.ph.has-photo::before { content: none; }
.ph.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- long text (legal) ---------- */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.prose h2 { font-size: 26px; margin-top: 20px; }
.prose h3 { font-family: var(--text); font-size: 19px; font-weight: 700; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* placeholders for missing content */
.todo { background: #FCEFCF; color: var(--accent-dark); border-radius: var(--r-ctl); padding: 14px 18px; font-size: 15px; }
.tbd { background: #FCEFCF; color: var(--accent-dark); border-radius: 4px; padding: 0 4px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 28px; }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.form legend { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--ink); padding: 0 0 8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  min-height: 52px; border: 1px solid var(--field); border-radius: var(--r-ctl); padding: 12px 14px;
  font: 400 17px var(--text); color: var(--ink); background: var(--page); max-width: 100%;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(148, 85, 75, .2); }
.field .hint { font-weight: 400; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row-3 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; } }
.consent { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { border-radius: var(--r-ctl); padding: 16px 18px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--sage-soft); color: #2F3828; }
.form-status--err { background: #F1DAD3; color: #7A2E12; }
.form .btn[type="submit"] { min-height: 52px; width: 100%; }
.picked { border: 2px solid var(--accent); border-radius: var(--r-ctl); padding: 16px 18px; }
.child + .child { border-top: 1px solid var(--line); padding-top: 16px; }
.link-btn { align-self: flex-start; min-height: 44px; background: none; border: 0; padding: 0; font: 600 16px var(--text); color: var(--accent); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
fieldset { min-width: 0; }
select { max-width: 100%; }

/* form page layout: short intro left, form right */
.form-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.form-layout .split-text { position: sticky; top: calc(var(--gnav-h) + 32px); }
@media (max-width: 834px) { .form-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } .form-layout .split-text { position: static; } }

/* ---------- slot picker (selection tiles, like a store configurator) ---------- */
.picker { display: flex; flex-direction: column; gap: 32px; }
.picker-step { display: flex; flex-direction: column; gap: 12px; }
.picker-step > strong { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--ink); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.choice, .day, .slot {
  border: 1px solid var(--field); background: var(--page); color: var(--ink); border-radius: var(--r-ctl);
  font: 600 16px var(--text); cursor: pointer;
}
.choice { min-height: 64px; padding: 12px 16px; text-align: left; }
.choice[aria-pressed="true"], .day[aria-pressed="true"], .slot[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-soft); box-shadow: var(--shadow); }
.choice:hover, .day:hover:not(:disabled), .slot:hover { border-color: var(--muted); }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.day { height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.day span:first-child { font-size: 12px; color: var(--muted); }
.day span:last-child { font-size: 20px; }
.day:disabled { opacity: .35; cursor: default; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { height: 52px; font-variant-numeric: tabular-nums; }
.picker-summary { border: 2px solid var(--accent); border-radius: var(--r-ctl); padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-weight: 600; }
.fallback { background-color: var(--tile); background-image: var(--grain), var(--grad-beige); border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- footer ---------- */
.gfoot { background-color: var(--tile); background-image: var(--grain); color: var(--muted); font-size: 13px; line-height: 1.5; padding: 20px 0 32px; }
.gfoot a { color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--muted); }
.crumbs [aria-current] { color: var(--muted); }
.fcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 24px; }
.fcols h2 { font-family: var(--text); font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0; margin-bottom: 8px; }
.fcols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fbottom { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.fbottom nav { display: flex; flex-wrap: wrap; gap: 4px 0; }
.fbottom nav a + a::before { content: "|"; color: var(--line); margin: 0 10px; }
@media (max-width: 734px) { .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Biings effects ---------- */
/* gradient titles: card titles and headlines marked .is-gradient */
.tile h2, .compare-item h3, .is-gradient {
  background-image: var(--grad-title); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em; /* keeps descenders inside the clipped area */
}
.tile--dark h2 { background-image: var(--grad-title-light); }
/* soft lift on hover */
.tile, .cell, .gcard, .dates, .choice, .day, .slot, .btn { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, background-color .15s, border-color .15s; }
@media (hover: hover) {
  .tile:hover, .gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .btn:hover { transform: translateY(-1px); }
  .choice:hover, .day:hover:not(:disabled), .slot:hover { box-shadow: var(--shadow); }
}
/* plum for the step numbers, warm grey for placeholders */
.step::before { background: var(--ink); }
.ph { background-color: var(--tile-2); }

/* ---------- cookie banner ---------- */
.consent-banner {
  position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 460px; margin-left: auto;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-lift); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; font-size: 15px;
}
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions .btn { flex: 1 1 140px; }

/* ---------- demo notice ---------- */
.demo-bar { background: var(--dark); color: #EEE8E3; font-size: 13px; text-align: center; padding: 8px 16px; }
.demo-bar a { color: #E8A99E; font-weight: 600; margin-left: 6px; }

@media (prefers-reduced-motion: reduce) {
  html, .gallery-track { scroll-behavior: auto; }
  .tile, .cell, .gcard, .btn { transition: none; transform: none !important; }
  .faq summary::after { transition: none; }
}

/* tables in long texts (cookie list) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--page); }
.prose tr:last-child td { border-bottom: 0; }
.prose code { font-size: 14px; background: var(--tile); padding: 1px 5px; border-radius: 4px; }
