/* Alpha International School — "Quiet confidence"
   Ivory ground, deep forest ink, antique brass used thinly, stone fields.
   Libre Caslon Display for headlines, Manrope for everything else. */

:root {
  --ivory: #F6F2EA;
  --ivory-2: #EFE9DD;
  --forest: #10241C;
  --forest-2: #1A3328;
  --brass: #A8814B;          /* rules, hover lines, text on forest only */
  --brass-ink: #7A5A2C;      /* brass for small text on ivory (5.6:1) */
  --stone: #D9D2C3;
  --ink-soft: #44544B;       /* secondary text on ivory (7:1) */
  --on-forest: #F6F2EA;
  --on-forest-soft: #C7CEC8;
  --error: #9B2C1F;
  --ok: #2F5D45;

  --serif: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1320px;
  --section: clamp(4.5rem, 10vw, 9rem);
  --rule: 1px solid var(--stone);
  --rule-brass: 1px solid var(--brass);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--forest);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--brass-ink);
}
body.menu-open { overflow: hidden; }
::selection { background: var(--forest); color: var(--ivory); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 3px; border-radius: 2px; }
.on-forest :focus-visible, .site-footer :focus-visible, .menu-overlay :focus-visible, .hero :focus-visible { outline-color: var(--brass); }
[lang="hi"] { font-family: "Noto Sans Devanagari", var(--sans); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.06; }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 36em; }
.measure { max-width: 38em; }
.smallcaps { font-variant-caps: all-small-caps; letter-spacing: .08em; font-weight: 600; color: var(--brass-ink); }
.muted { color: var(--ink-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* thin brass rule that sits on the grid's sightline */
.rule { border: 0; border-top: var(--rule-brass); width: 4.5rem; margin: 0 0 1.75rem; }
.rule-full { border: 0; border-top: var(--rule); margin: 0; }

/* Skip link */
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--forest); color: var(--ivory); padding: .75rem 1.1rem; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 1rem; }

/* ---------- Links & buttons (rebuilt, never stock) ---------- */
.link-line {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; text-decoration: none; padding-block: .35rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease-out), color .2s;
}
.link-line:hover { background-image: linear-gradient(var(--brass), var(--brass)); background-size: 100% 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font: 600 1rem/1.2 var(--sans); letter-spacing: .01em;
  border: 1px solid var(--forest); border-radius: 999px;
  background: var(--forest); color: var(--ivory); text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--forest-2); border-color: var(--brass); }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--ivory); }
.on-forest .btn { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.on-forest .btn:hover { background: transparent; color: var(--ivory); border-color: var(--brass); }
.on-forest .btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(246,242,234,.5); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--forest); background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s;
}
.site-header.is-solid { border-bottom-color: var(--stone); }
.site-header[data-over-hero="true"]:not(.is-solid) { background: transparent; color: var(--ivory); }
.bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; min-height: 44px; }
.brand svg { width: 32px; height: 36px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; line-height: 1; white-space: nowrap; }
.brand-name span { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; margin-top: .3rem; opacity: .85; }
.bar-actions { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.bar-link { font-size: .95rem; font-weight: 600; text-decoration: none; padding: .6rem 0; position: relative; }
.bar-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .35rem; height: 1px; background: var(--brass); transition: right .35s var(--ease-out); }
.bar-link:hover::after { right: 0; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; padding: .5rem 1.1rem;
  font: 600 .95rem/1 var(--sans); color: inherit; background: transparent; cursor: pointer;
  border: 1px solid currentColor; border-radius: 999px; transition: border-color .25s;
}
.menu-btn:hover { border-color: var(--brass); }
.menu-lines { width: 18px; height: 8px; position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
.menu-lines::before { top: 0; } .menu-lines::after { bottom: 0; }
@media (max-width: 767.98px) { .hide-sm { display: none !important; } }
@media (max-width: 991.98px) { .hide-md { display: none !important; } }
@media (max-width: 420px) { .brand-name { font-size: 1.08rem; } .brand svg { width: 28px; height: 32px; } }

/* ---------- Full-screen overlay menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 100; background: var(--forest); color: var(--ivory);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-out), visibility 0s linear .45s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out), visibility 0s; }
.menu-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); border-bottom: 1px solid rgba(168,129,75,.35); }
.menu-body { max-width: var(--max); margin-inline: auto; padding: clamp(2rem, 6vh, 4.5rem) var(--gutter) 3rem; display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .menu-body { grid-template-columns: 7fr 4fr; gap: 5rem; } }
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 3rem; }
@media (min-width: 640px) { .menu-links { grid-template-columns: 1fr 1fr; } }
.menu-links li { border-top: 1px solid rgba(168,129,75,.35); }
.menu-links a { display: block; padding: 1.1rem 0 1.25rem; text-decoration: none; }
.menu-links .ml-title { display: block; font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; transition: transform .45s var(--ease-out), color .25s; }
.menu-links .ml-note { display: block; color: var(--on-forest-soft); font-size: .95rem; margin-top: .35rem; }
.menu-links a:hover .ml-title, .menu-links a[aria-current="page"] .ml-title { color: var(--brass); }
.menu-links a:hover .ml-title { transform: translateX(.4rem); }
.menu-overlay.is-open .menu-links li { animation: menu-in .7s var(--ease-out) both; }
.menu-overlay.is-open .menu-links li:nth-child(2) { animation-delay: .04s; }
.menu-overlay.is-open .menu-links li:nth-child(3) { animation-delay: .08s; }
.menu-overlay.is-open .menu-links li:nth-child(4) { animation-delay: .12s; }
.menu-overlay.is-open .menu-links li:nth-child(5) { animation-delay: .16s; }
.menu-overlay.is-open .menu-links li:nth-child(6) { animation-delay: .2s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.menu-aside { display: grid; gap: 1.5rem; align-content: start; }
.menu-aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.menu-aside .photo-note { font-size: .8rem; color: var(--on-forest-soft); }
.menu-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.menu-contact a { color: var(--ivory); }
@media (max-width: 991.98px) { .menu-aside img, .menu-aside .photo-note { display: none; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: clamp(560px, 100vh, 1000px); min-height: clamp(560px, 100svh, 1000px); color: var(--ivory); overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; background: var(--forest); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; transform-origin: 60% 40%; }
/* Phones: crop the top of the photo so the ball doesn't sit beside the Menu button */
@media (max-width: 767.98px) { .hero-media img { height: calc(100% + 150px); margin-top: -150px; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: slow-zoom 28s ease-out both; }
}
@keyframes slow-zoom { from { transform: scale(1.0); } to { transform: scale(1.09); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(16,36,28,.55) 0, rgba(16,36,28,0) 22%),
    linear-gradient(to top, rgba(16,36,28,.92) 0, rgba(16,36,28,.55) 34%, rgba(16,36,28,0) 66%);
}
.hero-inner { width: 100%; max-width: var(--max); margin-inline: auto; padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(2rem, 6vh, 4rem); display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 992px) { .hero-inner { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.hero h1 { max-width: 11.5em; }
.hero-sub { margin-top: 1.25rem; max-width: 34em; font-size: clamp(1rem, 1.5vw, 1.15rem); color: #E7E3D9; }
.hero-sub [lang="hi"] { display: block; margin-top: .4rem; color: var(--on-forest-soft); }
.hero-rule { border: 0; border-top: 1px solid var(--brass); width: 4.5rem; margin: 0 0 1.5rem; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; justify-self: start; }
@media (min-width: 992px) { .hero-actions { justify-self: end; align-items: flex-end; text-align: right; } }
.pill {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 52px; padding: .85rem 1.5rem .85rem 1.65rem;
  background: var(--ivory); color: var(--forest); border-radius: 999px; text-decoration: none; font-weight: 700;
  transition: background-color .25s, color .25s, gap .35s var(--ease-out);
}
.pill:hover { background: var(--stone); color: var(--forest); gap: 1rem; }
.hero-call { color: var(--ivory); font-weight: 600; text-decoration: none; padding: .35rem 0; border-bottom: 1px solid rgba(168,129,75,.8); }
.hero-call:hover { border-bottom-color: var(--ivory); }
.hero-credit { font-size: .78rem; color: var(--on-forest-soft); margin: 0; }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6.5rem)); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.crumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--brass-ink); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

/* ---------- At a glance (home) ---------- */
.glance-statement { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.14; max-width: 15em; }
.facts { margin: 0; border-top: var(--rule); }
.facts > div { display: grid; grid-template-columns: 1fr; gap: .2rem; padding: 1.15rem 0; border-bottom: var(--rule); }
@media (min-width: 576px) { .facts > div { grid-template-columns: 9.5rem 1fr; gap: 1.5rem; } }
.facts dt { font-variant-caps: all-small-caps; letter-spacing: .08em; font-weight: 700; color: var(--brass-ink); padding-top: .1rem; }
.facts dd { margin: 0; }
.facts .src { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: .2rem; }

/* Placeholder note: dashed, honest, in the same type system */
.placeholder {
  border: 1px dashed var(--brass-ink); padding: 1.1rem 1.25rem; color: var(--ink-soft);
  font-size: .95rem; line-height: 1.55; background: rgba(217,210,195,.25);
}
.placeholder strong { color: var(--forest); font-weight: 700; }
.on-forest .placeholder { border-color: var(--brass); color: var(--on-forest-soft); background: rgba(246,242,234,.04); }
.on-forest .placeholder strong { color: var(--ivory); }
.tag-sample { display: inline-block; justify-self: start; font-size: .78rem; font-weight: 700; letter-spacing: .04em; border: 1px dashed currentColor; padding: .1rem .5rem; color: var(--brass-ink); }

/* ---------- A day at Alpha (horizontal scroll-snap timeline) ---------- */
.day { background: var(--ivory-2); padding-block: var(--section); }
.day-head { display: grid; gap: 1.5rem; align-items: end; margin-bottom: 2.5rem; }
@media (min-width: 992px) { .day-head { grid-template-columns: 7fr 5fr; } }
.day-controls { display: flex; align-items: center; gap: 1rem; justify-self: start; }
@media (min-width: 992px) { .day-controls { justify-self: end; } }
.day-count { font-family: var(--serif); font-size: 1.5rem; min-width: 4.5ch; text-align: center; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--forest); background: transparent; color: var(--forest); display: inline-grid; place-items: center; cursor: pointer; transition: background-color .25s, color .25s; }
.round-btn:hover { background: var(--forest); color: var(--ivory); }
.round-btn[disabled] { opacity: .35; cursor: default; background: transparent; color: var(--forest); }
.day-track {
  list-style: none; margin: 0; padding: 0 var(--gutter) 1.5rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 360px); gap: clamp(1.25rem, 3vw, 2.5rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--brass) transparent;
}
@media (min-width: 1400px) { .day-track { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.day-track::-webkit-scrollbar { height: 6px; }
.day-track::-webkit-scrollbar-thumb { background: var(--brass); border-radius: 3px; }
.day-step { scroll-snap-align: start; display: grid; gap: 1rem; align-content: start; }
.day-step figure { margin: 0; overflow: hidden; }
.day-step img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.9); }
.day-step.is-current img { filter: none; }
.day-step:hover img { transform: scale(1.03); }
.day-phase { display: flex; align-items: center; gap: .75rem; font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 700; color: var(--brass-ink); }
.day-phase::after { content: ""; flex: 1; height: 1px; background: var(--stone); }
.day-step.is-current .day-phase::after { background: var(--brass); }
.day-step h3 { font-size: 1.6rem; }
.day-step p { color: var(--ink-soft); font-size: .98rem; }
.day-progress { height: 1px; background: var(--stone); margin-top: 1rem; position: relative; }
.day-progress span { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--brass); transition: width .3s var(--ease-out); }
.day-track:focus-visible { outline-offset: -2px; }

/* ---------- Stages list (home + academics) ---------- */
.stages { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.stages li { border-bottom: var(--rule); }
.stages a, .stages .stage-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem; padding: 1.4rem 0; text-decoration: none; }
.stages .stage-name { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.1; transition: transform .45s var(--ease-out); }
.stages .stage-note { color: var(--ink-soft); font-size: .95rem; text-align: right; }
.stages a:hover .stage-name { transform: translateX(.5rem); }
.stages a:hover { background: linear-gradient(var(--brass), var(--brass)) 0 100% / 100% 1px no-repeat; }

/* ---------- Large pull-quote ---------- */
.quote { background: var(--forest); color: var(--ivory); padding-block: var(--section); position: relative; }
.quote blockquote, .quote figure { margin: 0; }
.quote .q-mark { font-family: var(--serif); font-size: clamp(6rem, 14vw, 11rem); line-height: .6; color: var(--brass); display: block; height: .45em; }
.quote .q-text { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.12; max-width: 17em; margin-top: 1.5rem; }
.quote figcaption { margin-top: 2.25rem; display: flex; align-items: center; gap: 1rem; color: var(--on-forest-soft); }
.quote figcaption::before { content: ""; width: 3rem; height: 1px; background: var(--brass); }
.on-forest { color: var(--ivory); }
.on-forest a { color: var(--ivory); }
.on-forest .muted, .on-forest .lead { color: var(--on-forest-soft); }

/* ---------- Admissions journey (numbered) ---------- */
.journey { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.journey li { display: grid; grid-template-columns: 4.25rem 1fr; gap: 1rem 1.5rem; padding: 1.75rem 0; border-top: var(--rule); position: relative; }
@media (min-width: 768px) { .journey li { grid-template-columns: 7rem minmax(0, 5fr) minmax(0, 6fr); padding: 2.25rem 0; } }
.journey li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--brass); transition: width 1.1s var(--ease-out); }
.journey li.is-seen::before { width: 100%; }
.journey .j-num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: .9; color: var(--stone); transition: color .8s var(--ease-out); }
.journey li.is-seen .j-num { color: var(--brass-ink); }
.journey h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.journey p { color: var(--ink-soft); margin: 0; }
@media (max-width: 767.98px) { .journey p { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { .journey li::before { width: 100%; transition: none; } .journey .j-num { color: var(--brass-ink); } }

/* ---------- Notices ---------- */
.notices { list-style: none; margin: 0; padding: 0; }
.notices li { display: grid; gap: .3rem; padding: 1.25rem 0; border-top: var(--rule); }
.notices h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; line-height: 1.35; }

/* ---------- Editorial image blocks ---------- */
.ed-figure { margin: 0; }
.ed-figure img { width: 100%; object-fit: cover; }
.ed-figure figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: .6rem; }
.frame-tall img { aspect-ratio: 4 / 5; }
.frame-wide img { aspect-ratio: 3 / 2; }

/* Academics: alternating stage spreads */
.spread { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); border-top: var(--rule); }
@media (min-width: 992px) {
  .spread { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem; }
  .spread .spread-media { grid-column: 1 / span 6; }
  .spread .spread-text { grid-column: 8 / span 5; }
  .spread.flip .spread-media { grid-column: 7 / span 6; order: 2; }
  .spread.flip .spread-text { grid-column: 1 / span 5; }
}
.spread .stage-label { font-family: var(--serif); font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1; }
.spread .listed { font-size: .9rem; color: var(--brass-ink); margin: .75rem 0 1.25rem; font-weight: 600; }

/* Age guide + documents */
.age-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.age-table caption { caption-side: bottom; text-align: left; font-size: .88rem; color: var(--ink-soft); padding-top: .9rem; }
.age-table th, .age-table td { text-align: left; padding: .95rem .75rem .95rem 0; border-bottom: var(--rule); vertical-align: top; }
.age-table thead th { font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--brass-ink); font-weight: 700; border-bottom: var(--rule-brass); }
.age-table td:first-child { font-family: var(--serif); font-size: 1.25rem; }
.doc-list { list-style: none; padding: 0; margin: 0; columns: 1; column-gap: 3rem; }
@media (min-width: 768px) { .doc-list { columns: 2; } }
.doc-list li { break-inside: avoid; padding: .8rem 0 .8rem 1.75rem; border-top: var(--rule); position: relative; }
.doc-list li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: .9rem; height: 1px; background: var(--brass); }

/* FAQ */
.faq details { border-top: var(--rule); }
.faq details:last-child { border-bottom: var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 14px; height: 14px; border-right: 1.5px solid var(--brass-ink); border-bottom: 1.5px solid var(--brass-ink); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-20%) rotate(225deg); }
.faq .faq-a { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 44em; }

/* ---------- Form ---------- */
.enquire { background: var(--forest); color: var(--ivory); padding-block: var(--section); }
.form-grid { display: grid; gap: 1.4rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .45rem; }
.field .opt { font-weight: 400; color: var(--on-forest-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 0; font: 400 1.05rem/1.4 var(--sans); color: var(--ivory);
  background: transparent; border: 0; border-bottom: 1px solid rgba(246,242,234,.45); border-radius: 0;
  transition: border-color .25s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 8px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2rem; }
.field select option { color: var(--forest); background: var(--ivory); }
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #A9B3AC; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--brass); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.field [aria-invalid="true"] { border-bottom: 2px solid #F0A898; }
.field .hint { font-size: .85rem; color: var(--on-forest-soft); margin-top: .4rem; }
.field .err { font-size: .9rem; color: #F6C2B6; margin-top: .4rem; font-weight: 600; }
.field .err:empty { display: none; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.2rem; border: 1px solid var(--brass); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { border-color: #F0A898; color: #FBDCD3; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.75rem; }
.form-actions small { color: var(--on-forest-soft); }
.honey { position: absolute !important; left: -9999px; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: none; }
.is-loading .spinner { display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* light-ground form variant (contact page) */
.form-light .field input, .form-light .field select, .form-light .field textarea { color: var(--forest); border-bottom-color: rgba(16,36,28,.4); }
.form-light .field .opt, .form-light .field .hint { color: var(--ink-soft); }
.form-light .field input::placeholder, .form-light .field textarea::placeholder { color: #56625B; }
.form-light .field [aria-invalid="true"] { border-bottom-color: var(--error); }
.form-light .field .err { color: var(--error); }
.form-light .field select option { color: var(--forest); }
.form-light .form-actions small { color: var(--ink-soft); }
.form-light .form-status { border-color: var(--brass-ink); }
.form-light .form-status.is-error { border-color: var(--error); color: var(--error); }

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; gap: clamp(.75rem, 1.6vw, 1.25rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 96px; }
  .gallery .g1 { grid-column: 1 / span 7; grid-row: span 4; }
  .gallery .g2 { grid-column: 8 / span 5; grid-row: span 5; }
  .gallery .g3 { grid-column: 1 / span 4; grid-row: span 4; }
  .gallery .g4 { grid-column: 5 / span 3; grid-row: span 3; }
  .gallery .g5 { grid-column: 8 / span 5; grid-row: span 3; }
  .gallery .g6 { grid-column: 5 / span 3; grid-row: span 4; }
  .gallery .g7 { grid-column: 8 / span 5; grid-row: span 3; }
}
.g-item { padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden; display: block; width: 100%; aspect-ratio: 4 / 5; position: relative; }
@media (min-width: 992px) { .g-item { aspect-ratio: auto; height: 100%; } }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.g-item:hover img { transform: scale(1.04); }
.g-item::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brass); transition: width .5s var(--ease-out); }
.g-item:hover::after, .g-item:focus-visible::after { width: 100%; }
.lightbox { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; background: rgba(16,36,28,.96); color: var(--ivory); }
.lightbox::backdrop { background: rgba(16,36,28,.9); }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 1rem var(--gutter) 1.5rem; gap: 1rem; }
.lb-top { display: flex; justify-content: space-between; align-items: center; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lb-caption { color: var(--on-forest-soft); font-size: .95rem; }
.lightbox .round-btn { border-color: rgba(246,242,234,.6); color: var(--ivory); }
.lightbox .round-btn:hover { background: var(--ivory); color: var(--forest); }

/* ---------- Visit / contact ---------- */
.visit { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .visit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.addr { font-style: normal; font-size: 1.15rem; line-height: 1.6; }
.action-list { list-style: none; padding: 0; margin: 1.75rem 0 0; border-top: var(--rule); }
.action-list li { border-bottom: var(--rule); }
.action-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; text-decoration: none; font-weight: 600; min-height: 48px; }
.action-list a span:last-child { color: var(--ink-soft); font-weight: 400; font-size: .95rem; text-align: right; }
.action-list a:hover { background: linear-gradient(var(--brass), var(--brass)) 0 100% / 100% 1px no-repeat; }
.map-box { position: relative; background: var(--stone); aspect-ratio: 4 / 3; width: 100%; min-height: 280px; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(.95); }
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 1.5rem; gap: .75rem; }
.map-fallback p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--ivory); padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.site-footer a { color: var(--ivory); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }
.footer-logo { width: min(320px, 80%); height: auto; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-nav a { text-decoration: none; display: inline-block; padding: .3rem 0; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.footer-h { font-variant-caps: all-small-caps; letter-spacing: .1em; font-weight: 700; color: var(--brass); margin-bottom: .9rem; font-size: 1.05rem; }
.footer-base { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(168,129,75,.35); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .85rem; color: var(--on-forest-soft); }

/* Mobile contact dock (phones only) */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: var(--forest); border-top: 1px solid rgba(168,129,75,.5); padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform .4s var(--ease-out); }
.dock.is-visible { transform: none; }
.dock a { color: var(--ivory); text-decoration: none; font-weight: 600; font-size: .92rem; display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 56px; }
.dock a + a { border-left: 1px solid rgba(168,129,75,.35); }
.dock a.dock-primary { background: var(--ivory); color: var(--forest); }
@media (min-width: 768px) { .dock { display: none; } }
@media (max-width: 767.98px) { .site-footer { padding-bottom: calc(2rem + 56px); } }

/* Reveal: content visible by default; only enhanced when JS marks it */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Simple pages */
.plain h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 2.5rem 0 .75rem; }
.plain ul { padding-left: 1.2rem; }
.plain li { margin-bottom: .5rem; }
.center-page { min-height: 70vh; display: grid; align-content: center; }
.enquire .field input, .enquire .field select { color-scheme: dark; }
main:has(> section.on-forest:last-child) + .site-footer { border-top: 1px solid rgba(168,129,75,.35); }
@media (max-width: 767.98px) {
  .hero::after { background:
    linear-gradient(to bottom, rgba(16,36,28,.55) 0, rgba(16,36,28,0) 18%),
    linear-gradient(to top, rgba(16,36,28,.94) 0, rgba(16,36,28,.78) 42%, rgba(16,36,28,.25) 68%, rgba(16,36,28,0) 82%); }
}
