/* =========================================================
   Lighthouse Christian Academy: base, layout, components
   Colors/fonts/spacing come from tokens.css only.
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; scroll-padding-top: 96px; /* anchors land below the sticky header */ }
main:focus { outline: none; } /* main gets focus from the skip link; no ring around the whole page */
body {
  margin: 0;
  overflow-x: hidden; overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.1; font-stretch: 90%; }
p { margin: 0 0 var(--s-4); max-width: 62ch; text-wrap: pretty; }
/* Links: no underline at rest (bold + blue instead); a line grows in on hover, a little squish on click */
a { color: var(--link); text-decoration: none; }
a:where(:not(.btn, .brand, .skip-link)) {
  display: inline-block; font-weight: 700;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 1px;
  transition: background-size 0.3s var(--ease-out), color 0.2s, transform 0.2s var(--ease-bounce);
}
a:where(:not(.btn, .brand, .skip-link)):hover { background-size: 100% 2px; color: var(--blue-dark); }
a:where(:not(.btn, .brand, .skip-link)):active { transform: scale(0.94); color: var(--red); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-small); text-decoration: none;
}
.skip-link:focus { top: var(--s-4); color: var(--white); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-70); }
.muted { color: var(--text-muted); }

.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .split--wide-text { grid-template-columns: 7fr 5fr; }
}

/* Wavy edge between color bands. Set `color` to the band's color. */
.edge { display: block; width: 100%; height: clamp(24px, 3.5vw, 48px); }
.edge path { fill: currentColor; }
.edge--flip { transform: scaleY(-1); margin-top: -1px; }
.edge + .band-sun, .edge + .band-blue, .edge + .cta-band { margin-top: -1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0.75rem 1.6rem;
  font-family: var(--font-display); font-weight: 800; font-stretch: 90%; font-size: 1.0625rem;
  border-radius: var(--r-btn); border: 2.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease-bounce), background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 4px 0 var(--red-dark); }
.btn--primary:hover { background: var(--red); color: var(--white); box-shadow: 0 7px 0 var(--red-dark); }
.btn--primary:active { box-shadow: 0 2px 0 var(--red-dark); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn--outline:hover { color: var(--ink); background: var(--sun); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--canvas); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgb(45 77 175 / 0.07); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: auto; height: 48px; }
@media (min-width: 1100px) { .brand img { height: 58px; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--r-btn); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-md);
  padding: 0.4rem 1rem; cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 16px; height: 2.5px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease-out);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--canvas); box-shadow: 0 12px 24px rgb(45 77 175 / 0.12);
  padding: var(--s-3) var(--gutter) var(--s-6);
  animation: drop-in 0.3s var(--ease-out);
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } }
.site-nav ul { list-style: none; display: flex; flex-direction: column; }
.site-nav ul a {
  display: block; background: none; padding: var(--s-3) 0; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-stretch: 90%; font-size: 1.5rem;
}
.site-nav ul a[aria-current="page"] { color: var(--red); }
.site-nav .btn { margin-top: var(--s-4); width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; position: static; padding: 0; background: none; box-shadow: none; animation: none;
    align-items: center; gap: var(--s-6);
  }
  .site-nav ul { flex-direction: row; gap: var(--s-5); }
  .site-nav ul a { font-size: 1.0625rem; padding: var(--s-2) 0; position: relative; }
  .site-nav ul a::after {
    content: ""; position: absolute; left: 50%; bottom: -2px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--sun); transform: translateX(-50%) scale(0); transition: transform 0.3s var(--ease-bounce);
  }
  .site-nav ul a:hover::after { transform: translateX(-50%) scale(1); }
  .site-nav ul a[aria-current="page"] { color: var(--ink); }
  .site-nav ul a[aria-current="page"]::after { background: var(--red); transform: translateX(-50%) scale(1); }
  .site-nav .btn { margin: 0; width: auto; min-height: 46px; padding-inline: 1.25rem; }
}

/* ---------- Home hero: the lighthouse scene (the one signature) ---------- */
.hero { position: relative; background: var(--sky-soft); overflow: hidden; }
.hero__grid { position: relative; display: grid; gap: var(--s-5); align-items: end; padding-top: clamp(2.5rem, 1rem + 5vw, 5rem); }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-6); } }
.hero__text { position: relative; z-index: 2; padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem); }
@media (max-width: 899px) { .hero__text { padding-bottom: 0; } }
/* full-width sea: wider than the screen so its ends never show while it drifts */
.hero__sea {
  position: relative; z-index: 2; display: block; width: 100%; overflow: visible;
  height: clamp(48px, 2rem + 3vw, 80px); margin-top: calc(-1 * clamp(34px, 1.2rem + 2.4vw, 58px));
}
.hero h1 { max-width: 12ch; }
.hero .lead { color: var(--ink); max-width: 34ch; }
.hero__scene { position: relative; z-index: 1; width: 100%; max-width: 440px; margin-inline: auto; overflow: visible; }
@media (max-width: 899px) { .hero__scene { max-width: 340px; margin-top: calc(-1 * var(--s-5)); } }
.hero .edge { color: var(--canvas); background: var(--sky); margin-top: -2px; position: relative; z-index: 3; }

/* scene paint */
.lh-ink { fill: var(--ink); }
.lh-red { fill: var(--red); }
.lh-white { fill: var(--white); }
.lh-sun { fill: var(--sun); }
.lh-sky { fill: var(--sky); }
.lh-sky-mid { fill: var(--sky-mid); }
.lh-cloud { fill: var(--white); }
.lh-gull { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.lh-sun-grad-a { stop-color: var(--sun); }
.lh-sun-grad-b { stop-color: var(--orange); }
.lh-beam-a { stop-color: var(--sun); stop-opacity: 0.75; }
.lh-beam-b { stop-color: var(--sun); stop-opacity: 0; }

/* scene motion: one orchestrated load, then gentle loops */
.hero__scene .sun { transform-box: fill-box; transform-origin: center; animation: sun-rise 1.2s var(--ease-out) 0.15s both; }
.hero__scene .lamp { animation: lamp-on 0.5s ease-out 1s both; }
.hero__scene .beam { transform-box: view-box; transform-origin: 210px 128px; animation: beam-on 0.8s ease-out 1.2s both, beam-sweep 7s ease-in-out 2s infinite alternate; }
.hero__sea .waves-back { animation: wave-drift 6s ease-in-out -2s infinite alternate; }
.hero__sea .waves-front { animation: wave-drift 4.5s ease-in-out -1s infinite alternate-reverse; }
.hero__scene .gull-1 { animation: gull-glide 9s ease-in-out -3s infinite alternate; }
.hero__scene .gull-2 { animation: gull-glide 11s ease-in-out -7s infinite alternate-reverse; }
.hero__scene .cloud-1 { animation: cloud-drift 18s ease-in-out -4s infinite alternate; }
.hero__scene .cloud-2 { animation: cloud-drift 24s ease-in-out -10s infinite alternate-reverse; }

@keyframes sun-rise { from { opacity: 0; transform: translateY(70px) scale(0.85); } }
@keyframes lamp-on { from { opacity: 0.15; } }
@keyframes beam-on { from { opacity: 0; } }
@keyframes beam-sweep { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }
@keyframes wave-drift { from { transform: translateX(-60px); } to { transform: translateX(40px); } }
@keyframes gull-glide { from { transform: translate(0, 0); } 50% { transform: translate(18px, -10px); } to { transform: translate(36px, 4px); } }
@keyframes cloud-drift { from { transform: translateX(-16px); } to { transform: translateX(22px); } }

/* ---------- Family intro ---------- */
.photo-frame { position: relative; }
.photo-frame img { position: relative; z-index: 1; width: 100%; border-radius: var(--r-photo); aspect-ratio: 4 / 5; object-fit: cover; }
.photo-frame::before {
  content: ""; position: absolute; z-index: 0; inset: auto -18px -18px auto; width: 62%; aspect-ratio: 1;
  border-radius: 50%; background: var(--sun);
}
.photo-frame--sky::before { background: var(--sky-mid); inset: -18px auto auto -18px; }
.ticks { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.ticks li { position: relative; padding-left: 2.25rem; font-weight: 700; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232D4DAF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Pillars: sun band, big words in rows ---------- */
.band-sun { background: var(--sun); }
.edge--sun { color: var(--sun); }
.pillar-rows { list-style: none; margin-top: var(--s-6); }
.pillar-row { display: grid; gap: var(--s-2) var(--s-6); padding-block: var(--s-5); border-top: 2.5px solid var(--ink); }
.pillar-row:last-child { border-bottom: 2.5px solid var(--ink); }
@media (min-width: 820px) { .pillar-row { grid-template-columns: 5fr 7fr; align-items: baseline; } }
.pillar-row h3 { font-size: var(--fs-big); font-stretch: 75%; margin: 0; }
.pillar-row h3 span { display: block; font-family: var(--font-body); font-size: var(--fs-md); font-weight: 700; letter-spacing: 0; margin-top: var(--s-2); }
.pillar-row p { margin: 0; font-size: var(--fs-lead); }

/* ---------- Level staircase ---------- */
.kid-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.stairs { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-7); }
.stair {
  --kh: calc(52px + var(--i) * 7px);  /* kid height grows with the level */
  position: relative; background: var(--level-1); color: var(--ink);
  border-radius: var(--r-card) var(--r-card) var(--r-small) var(--r-small);
  padding: var(--s-4) calc(var(--kh) / 2 + 2.25rem) var(--s-4) var(--s-4);
  min-height: calc(var(--kh) + 2rem);
  display: flex; flex-direction: column; justify-content: center;
  width: calc(70% + var(--i) * 6%);
  cursor: default;
}
.stair:nth-child(2) { background: var(--level-2); }
.stair:nth-child(3) { background: var(--level-3); }
.stair:nth-child(4) { background: var(--level-4); }
.stair:nth-child(5) { background: var(--level-5); color: var(--white); }
.stair:nth-child(6) { background: var(--level-6); color: var(--white); }
.stair__name { font-family: var(--font-display); font-weight: 850; font-stretch: 80%; font-size: clamp(1.5rem, 0.9rem + 2.6vw, 1.875rem); line-height: 1; margin: 0; }
.stair__note { font-size: var(--fs-md); margin: var(--s-2) 0 0; opacity: 0.85; }

/* kid figures: inside the bar on phones, standing on top of the step on desktop */
.kid { position: absolute; right: var(--s-4); bottom: 0; width: calc(var(--kh) / 2); height: var(--kh); overflow: visible; }
.k-skin { fill: var(--skin); }
.k-ink { fill: var(--ink); }
.k-red { fill: var(--red); }
.k-sun { fill: var(--sun); }
.k-uniform { fill: var(--uniform); }
.k-shirt { fill: var(--white); stroke: var(--uniform); stroke-width: 1; }
.k-collar { fill: none; stroke: var(--uniform); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.k-smile, .k-tuft { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.k-tuft { stroke-width: 2.2; }
.k-tassel { fill: none; stroke: var(--sun); stroke-width: 1.4; }
/* hover: the kid hops and waves hello (the arm reads --wave through the <use> tree) */
.arm { transform-box: fill-box; transform-origin: 50% 8%; transform: rotate(calc(var(--wave, 0) * -150deg)); transition: transform 0.35s var(--ease-bounce); }
.stair:hover { --wave: 1; }
.stair:hover .kid { animation: kid-hop 0.7s var(--ease-out); }
@keyframes kid-hop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-16px); } 60% { transform: translateY(0); } 78% { transform: translateY(-5px); } }

@media (min-width: 900px) {
  .stairs { grid-template-columns: repeat(6, 1fr); align-items: end; gap: var(--s-3); margin-top: calc(var(--s-7) + 130px); }
  .stair {
    --kh: calc(66px + var(--i) * 12px);
    width: auto; min-height: 0; height: calc(7.5rem + var(--i) * 2.75rem);
    justify-content: flex-end; padding: var(--s-4) var(--s-3);
  }
  .stair__name { font-size: clamp(1.25rem, 0.5rem + 1.25vw, 1.75rem); white-space: nowrap; }
  .kid { left: 0; right: 0; margin-inline: auto; bottom: calc(100% - 2px); }
}
.stairs-note { margin-top: var(--s-5); color: var(--ink-70); }
/* the one scroll reveal: the levels really are a sequence */
.js .stairs .stair { opacity: 0; transform: translateY(36px); transition: opacity 0.5s ease-out, transform 0.6s var(--ease-bounce); transition-delay: calc(var(--i) * 110ms); }
.js .stairs.in .stair { opacity: 1; transform: none; }

/* ---------- Student life: polaroid pile ---------- */
.polaroids { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); padding: var(--s-4); }
.polaroid {
  margin: 0; background: var(--white); padding: 10px 10px 14px; border-radius: var(--r-small); box-shadow: var(--shadow-print);
  transform: rotate(var(--tilt, -3deg)); transition: transform 0.45s var(--ease-bounce);
}
.polaroid:nth-child(2) { --tilt: 4deg; margin-top: var(--s-7); }
.polaroid:hover { transform: rotate(0deg) scale(1.03); }
.polaroid img { border-radius: 3px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.polaroid figcaption { font-weight: 700; font-size: var(--fs-md); padding-top: var(--s-2); text-align: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.chips li { background: var(--sky-soft); color: var(--ink); border-radius: var(--r-btn); padding: 0.4rem 0.95rem; font-weight: 700; font-size: var(--fs-md); }
.chips li:nth-child(3n+2) { background: var(--sun-soft); }

/* ---------- Verse ---------- */
.band-blue { background: var(--blue); color: var(--white); position: relative; overflow: hidden; }
.edge--blue { color: var(--blue); }
.verse blockquote { margin: 0; position: relative; z-index: 1; }
.verse blockquote p {
  font-family: var(--font-display); font-weight: 800; font-stretch: 80%;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.08; max-width: 24ch; margin-bottom: var(--s-5);
}
.verse cite { font-style: normal; font-weight: 700; font-size: var(--fs-lead); color: var(--sun); }
.verse { padding-bottom: calc(var(--section-y) + clamp(24px, 3.5vw, 48px)); }
.verse .container { position: relative; z-index: 2; }
.verse__shore { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; color: var(--canvas); }
/* the sun sits low so the wave line (verse__shore) is what cuts it */
.verse__sun { position: absolute; z-index: 0; right: clamp(-90px, -4vw, -30px); bottom: -150px; width: 420px; height: 420px; overflow: visible; }
.verse__sun .disc { fill: var(--sun); }
.verse__sun .glow { fill: var(--sun); opacity: 0.3; transform-box: fill-box; transform-origin: center; animation: sun-glow 3.2s ease-in-out infinite alternate; }
.verse__sun .rays path { fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; }
.verse__sun .rays { transform-box: fill-box; transform-origin: center; animation: sun-spin 36s linear infinite; }
@keyframes sun-spin { to { transform: rotate(360deg); } }
@keyframes sun-glow { from { transform: scale(0.9); opacity: 0.18; } to { transform: scale(1.14); opacity: 0.42; } }
@media (max-width: 700px) { .verse__sun { width: 240px; height: 240px; right: -60px; bottom: -80px; } }

/* ---------- Visit: steps on a path + voucher ---------- */
.path-steps { list-style: none; display: grid; gap: var(--s-6); margin-top: var(--s-7); counter-reset: step; position: relative; }
@media (min-width: 900px) {
  .path-steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .path-steps::before {
    content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 0;
    border-top: 3px dashed var(--sky);
  }
}
.path-step { counter-increment: step; position: relative; }
.path-step::before {
  content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: var(--white); position: relative;
  font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; margin-bottom: var(--s-4);
  box-shadow: 0 0 0 8px var(--canvas);
}
.path-step h3 { margin-bottom: var(--s-2); }
.path-step p { color: var(--ink-70); margin: 0; }

.voucher {
  position: relative; margin-top: var(--s-8); display: grid; gap: var(--s-4); align-items: center;
  background: var(--sun-soft); border: 2.5px dashed var(--orange); border-radius: var(--r-card);
  padding: var(--s-6) var(--s-6);
}
@media (min-width: 820px) { .voucher { grid-template-columns: auto 1fr auto; gap: var(--s-6); } }
.voucher__badge {
  width: 84px; height: 84px; border-radius: 50%; background: var(--sun); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; line-height: 1; text-align: center; transform: rotate(-10deg);
}
.voucher h3 { margin-bottom: var(--s-2); }
.voucher p { margin: 0; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--sky-soft); position: relative; }
.page-hero__inner { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); display: grid; gap: var(--s-5); align-items: end; }
@media (min-width: 900px) { .page-hero__inner { grid-template-columns: 1fr auto; } }
.page-hero h1 { font-size: var(--fs-big); max-width: 15ch; }
.page-hero .lead { color: var(--ink); max-width: 46ch; margin: 0; }
.page-hero .edge { color: var(--canvas); margin-top: -2px; }

/* ---------- Simple content blocks ---------- */
.note { background: var(--white); border-radius: var(--r-card); padding: var(--s-6); box-shadow: var(--shadow-soft); }
.note h3 { margin-bottom: var(--s-2); }
.note p:last-child { margin-bottom: 0; }
.cols-2 { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
@media (min-width: 820px) { .cols-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.faq details { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow-soft); padding: 0 var(--s-5); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-4) 0; font-family: var(--font-display); font-weight: 800; font-stretch: 90%; font-size: 1.25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--sun); font-size: 1.4rem; line-height: 1; transition: transform 0.35s var(--ease-bounce);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0 0 var(--s-5); color: var(--ink-70); }
.faq details[open] p { animation: drop-in 0.3s var(--ease-out); }

/* ---------- Contact ---------- */
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-photo); background: var(--sky-soft); }
.contact-list { list-style: none; display: grid; gap: var(--s-4); }
.contact-list li { background: var(--white); border-radius: var(--r-card); padding: var(--s-4) var(--s-5); box-shadow: var(--shadow-soft); }
.contact-list strong { display: block; font-family: var(--font-display); font-stretch: 90%; font-size: 1.125rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sky); position: relative; overflow: hidden; }
.edge--sky { color: var(--sky); }
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: var(--s-5); padding-block: var(--s-7) var(--s-8); align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: var(--s-8); } }
.cta-band h2 { margin-bottom: var(--s-3); }
.cta-band p { margin: 0; font-size: var(--fs-lead); }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); font-size: var(--fs-md); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sun); }
.site-footer__grid { display: grid; gap: var(--s-6); padding-block: var(--s-8) var(--s-6); }
@media (min-width: 820px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer img { height: 64px; width: auto; margin-bottom: var(--s-4); }
.site-footer h2 { font-size: 1.125rem; font-stretch: 90%; color: var(--sun); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; display: grid; gap: var(--s-2); }
.site-footer p { margin-bottom: var(--s-2); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-5); border-top: 1px solid rgb(255 255 255 / 0.15); color: rgb(255 255 255 / 0.75); }

/* ---------- Motion housekeeping ---------- */
/* loops stop when the tab is hidden (body.paused) or their section is off screen (.offscreen) */
body.paused *, body.paused *::before, body.paused *::after,
.offscreen *, .offscreen *::before, .offscreen *::after { animation-play-state: paused !important; }
/* touch screens: no sticky hover tilt/scale on photos */
@media (hover: none) { .polaroid:hover { transform: rotate(var(--tilt, -3deg)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .stairs .stair { opacity: 1; transform: none; }
}
