/* ============================================================
   My Choice Adult Day Center — main stylesheet
   Sections: reset · typography · layout · header · buttons ·
   hero · trust · sections · cards · timeline · team · testimonials ·
   cta · forms · footer · blog · utilities · motion · responsive
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-700); }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* Default icon sizing (specific component rules override this). */
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.18em; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: var(--lh-snug);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); }
p { text-wrap: pretty; }
strong { font-weight: 700; color: var(--navy); }

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
.muted { color: var(--ink-muted); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }

/* short, deliberate kicker — used on a FEW sections, not every one */
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: var(--fs-small);
  color: var(--slate-700);
  letter-spacing: 0.01em;
}
.kicker::before {
  content: ""; width: 1.4rem; height: 2px; border-radius: 2px;
  background: var(--amber);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.band-sage { background: var(--band-sage); }
.band-sky { background: var(--band-sky); }
.band-warm { background: var(--band-warm); }
.band-surface { background: var(--surface-2); }
.band-navy { background: var(--band-navy); color: var(--ink-on-navy); }
.band-navy h1, .band-navy h2, .band-navy h3 { color: #fff; }
.band-navy .muted { color: var(--ink-on-navy-muted); }
.band-navy a { color: #fff; }

.section-head { max-width: 60ch; margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 0.85rem; color: var(--ink-muted); font-size: var(--fs-lead); line-height: 1.5; }

.stack > * + * { margin-top: var(--flow, 1rem); }
.grid { display: grid; gap: var(--gap, 1.5rem); }
.flex { display: flex; gap: var(--gap, 1rem); }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: var(--z-toast);
  background: var(--navy); color: #fff; padding: 0.65rem 1rem;
  border-radius: var(--radius-sm); transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-900); color: var(--ink-on-navy);
  font-size: var(--fs-small);
}
.topbar .container { display: flex; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; min-height: 2.5rem; flex-wrap: wrap; padding-block: 0.4rem; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; padding: 0.2rem 0.35rem; }
.topbar a:hover { color: var(--sun); }
.topbar .badge-enrolling {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--navy); background: var(--sun); font-weight: 700;
  padding: 0.15rem 0.7rem; border-radius: var(--radius-pill); font-size: var(--fs-tiny);
}
.topbar .badge-enrolling .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(232,163,61,0.3); }

/* Near-opaque (no backdrop-filter): a filtered header would become the containing
   block for the fixed mobile menu panel and break its full-height positioning. */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(252,252,253,0.95); border-bottom: 1px solid transparent; transition: box-shadow var(--t-base), border-color var(--t-base), background var(--t-base); }
.site-header.is-stuck { background: var(--bg); box-shadow: var(--shadow); border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand img { height: 3rem; width: auto; }
.brand:hover { color: inherit; }

.primary-nav { display: flex; align-items: center; gap: 0.25rem; }
.primary-nav a {
  font-family: var(--font-display); font-weight: 600; color: var(--navy);
  padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); text-decoration: none;
  position: relative; transition: background var(--t-fast), color var(--t-fast);
}
.primary-nav a:hover { background: var(--surface-2); }
.primary-nav a[aria-current="page"] { color: var(--navy); }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.3rem; height: 2px;
  border-radius: 2px; background: var(--amber);
}
.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle { display: none; }
.menu-backdrop { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 0.85rem 1.4rem; min-height: 3rem; border-radius: var(--radius-pill);
  background: var(--navy); color: #fff; text-decoration: none;
  border: 2px solid var(--navy);
  transition: transform var(--t-fast) var(--ease-out-quart), box-shadow var(--t-base), background var(--t-fast), border-color var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.15em; height: 1.15em; }

.btn--secondary { background: var(--surface); color: var(--navy); border-color: var(--border-strong); box-shadow: none; }
.btn--secondary:hover { background: var(--surface); color: var(--navy); border-color: var(--navy); }

.btn--accent { background: var(--amber); border-color: var(--amber); color: var(--navy-900); }
.btn--accent:hover { background: #d9942f; border-color: #d9942f; color: var(--navy-900); }

.btn--ghost { background: transparent; border-color: transparent; color: var(--navy); box-shadow: none; padding-inline: 0.6rem; }
.btn--ghost:hover { background: rgba(22,61,90,0.06); }

.btn--on-navy { background: #fff; color: var(--navy); border-color: #fff; }
.btn--on-navy:hover { background: var(--sun); border-color: var(--sun); color: var(--navy-900); }
.btn--lg { font-size: 1.075rem; padding: 1rem 1.7rem; min-height: 3.4rem; }
.btn--block { width: 100%; }

.btn-call { /* phone in header actions */ }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; background: var(--bg); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero-copy { max-width: 38rem; }
.hero h1 { font-size: var(--fs-display); margin-top: 0.9rem; }
.hero h1 .hl { color: var(--navy); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: -0.05em; right: -0.05em; bottom: 0.06em; height: 0.34em; background: var(--sun); opacity: 0.55; z-index: -1; border-radius: 3px; }
.hero p.lead { margin-top: 1.1rem; color: var(--ink); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-reassure { margin-top: 1.15rem; display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink-muted); font-size: var(--fs-small); }
.hero-reassure svg { color: var(--sage-deep); flex: none; }

.hero-media { position: relative; }
.hero-figure {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; background: var(--band-sky);
}
.hero-figure img, .hero-figure video { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -0.75rem; bottom: 1.5rem; z-index: 2;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 0.85rem 1.1rem; display: flex; align-items: center; gap: 0.75rem; max-width: 17rem;
  border: 1px solid var(--border);
}
.hero-badge .avatar { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex: none; }
.hero-badge b { color: var(--navy); display: block; font-family: var(--font-display); }
.hero-badge span { font-size: var(--fs-small); color: var(--ink-muted); line-height: 1.35; }

/* rising-sun motif accent behind hero */
.hero-sun { position: absolute; inset-inline-end: -8%; top: -14%; width: 38rem; max-width: 70%; opacity: 0.5; pointer-events: none; z-index: 0; }

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 0.75rem 0; align-items: center; justify-content: center; padding-block: 1.05rem; }
.trust-chip { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; color: var(--navy); font-size: var(--fs-small); white-space: nowrap; padding-inline: 1.4rem; }
.trust-chip:not(:last-child) { border-right: 1px solid var(--border-strong); }
.trust-chip svg { width: 1.4rem; height: 1.4rem; color: var(--steel); flex: none; }
.trust-chip strong { font-family: var(--font-display); }

/* ---------- Generic cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  box-shadow: var(--shadow-sm); transition: transform var(--t-base) var(--ease-out-quart), box-shadow var(--t-base);
  height: 100%;
}
.card.is-interactive:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-muted); }
.card-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius); display: grid; place-items: center;
  margin-bottom: 1rem; color: var(--navy);
}
.card-icon svg { width: 1.6rem; height: 1.6rem; }
.card-icon.sage { background: var(--sage); }
.card-icon.sky { background: var(--sky); }
.card-icon.rose { background: var(--rose); }
.card-icon.sun { background: var(--sun); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.5rem; }

/* ---------- Feature row (alternating) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.feature.reverse .feature-media { order: -1; }
.feature-media img, .feature-figure { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.feature-figure { aspect-ratio: 4/3; overflow: hidden; background: var(--band-sage); }
.feature-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Typical-day timeline ---------- */
.timeline { display: grid; gap: 1.25rem; }
.tl-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem; box-shadow: var(--shadow-sm);
}
.tl-time { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.05rem; white-space: nowrap; display: flex; align-items: center; gap: 0.6rem; }
.tl-dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--sun); border: 3px solid var(--amber); flex: none; }
.tl-item h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.tl-item p { color: var(--ink-muted); margin: 0; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.team-photo { aspect-ratio: 4/3.4; background: var(--band-sky); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 1.25rem 1.4rem 1.5rem; }
.team-body h3 { margin-bottom: 0.1rem; }
.team-role { color: var(--slate-700); font-weight: 700; font-family: var(--font-display); font-size: var(--fs-small); }
.team-body p { margin-top: 0.6rem; color: var(--ink-muted); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote .mark { color: var(--sage-deep); height: 2rem; }
.quote .mark svg { width: 2.4rem; height: 2.4rem; }
.quote blockquote { font-size: 1.2rem; line-height: 1.5; color: var(--navy); margin: 0.5rem 0 1.1rem; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 0.75rem; }
.quote figcaption .who { font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.quote figcaption .rel { font-size: var(--fs-small); color: var(--ink-muted); }
.quote .pic { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; background: var(--band-sage); flex: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ink-on-navy-muted); font-size: var(--fs-lead); margin-top: 0.75rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.cta-sun { position: absolute; right: -6rem; bottom: -10rem; width: 26rem; opacity: 0.16; pointer-events: none; }

/* Keep button text legible inside dark / footer contexts (override broad link colors) */
.band-navy .btn, .cta-band .btn, .site-footer .btn { color: #fff; }
.band-navy .btn--accent, .cta-band .btn--accent, .site-footer .btn--accent { color: var(--navy-900); }
.band-navy .btn--on-navy, .cta-band .btn--on-navy { color: var(--navy); }
.band-navy .btn--secondary, .site-footer .btn--secondary { color: var(--navy); }
.band-navy .btn--accent:hover, .cta-band .btn--accent:hover, .site-footer .btn--accent:hover { color: var(--navy-900); }
.band-navy .btn--on-navy:hover { color: var(--navy-900); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.35rem, 1rem + 2vw, 2.25rem); }
/* Form cards are always light surfaces — reset text colors even on dark bands */
.form-card { color: var(--ink); }
.form-card h1, .form-card h2, .form-card h3, .form-card h4 { color: var(--navy); }
.form-card .muted { color: var(--ink-muted); }
.form-card a:not(.btn) { color: var(--navy); }
.form-card label, .form-card .label { color: var(--navy); }
.field { margin-bottom: 1.15rem; }
.field label, .field > .label { display: block; font-family: var(--font-display); font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.field .hint { font-size: var(--fs-small); color: var(--ink-muted); margin-bottom: 0.4rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="file"], .field textarea, .field select {
  width: 100%; padding: 0.8rem 0.95rem; min-height: 3rem;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(22,61,90,0.12); }
.field input::placeholder, .field textarea::placeholder { color: #7c8794; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--rose-deep); }
.field .error { color: #b3403f; font-size: var(--fs-small); margin-top: 0.35rem; font-weight: 600; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-row label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; padding: 0.6rem 1rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); cursor: pointer; margin: 0; }
.radio-row input { accent-color: var(--navy); width: 1.1rem; height: 1.1rem; }
.radio-row label:has(input:checked) { border-color: var(--navy); background: var(--band-sky); }
.checkbox-field { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.checkbox-field input { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; accent-color: var(--navy); }
.checkbox-field label { font-family: var(--font-body); font-weight: 400; color: var(--ink); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
@media (max-width: 540px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Map embed ---------- */
.map-embed { width: 100%; aspect-ratio: 16 / 11; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: block; background: var(--band-sky); }

/* ---------- Flash ---------- */
.flashes { margin-bottom: 1.25rem; }
.flash { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid; font-weight: 600; }
.flash.error { background: #fdecec; border-color: #f3c0c0; color: #8f2f2e; }
.flash.success { background: var(--band-sage); border-color: var(--sage); color: #285a3f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--ink-on-navy-muted); padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--ink-on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand img { height: 4.6rem; width: auto; background: #fff; border-radius: var(--radius); padding: 0.7rem 0.95rem; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.footer-brand p { margin-top: 1rem; max-width: 30ch; color: var(--ink-on-navy-muted); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 0.9rem; letter-spacing: 0; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.55rem; }
.footer-contact a, .site-footer .footer-col a { overflow-wrap: anywhere; }
.footer-contact svg { width: 1.2rem; height: 1.2rem; color: var(--sun); flex: none; margin-top: 0.15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: var(--fs-small); }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.75rem; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t-base) var(--ease-out-quart), box-shadow var(--t-base); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--band-sage); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card time { color: var(--slate-700); font-weight: 600; font-size: var(--fs-small); }
.post-card h3 { margin: 0.35rem 0 0.5rem; }
.post-card p { color: var(--ink-muted); margin-bottom: 1rem; }
.post-card .more { margin-top: auto; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.article { max-width: var(--container-narrow); margin-inline: auto; }
.article .meta { color: var(--slate-700); font-weight: 600; margin-bottom: 0.75rem; }
.article-body { max-width: var(--measure); }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body img { border-radius: var(--radius); margin-block: 1.4em; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.gallery-grid figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1/1; background: var(--band-sage); }
.gallery-grid figure.tall { aspect-ratio: 3/4; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out-quart); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { position: absolute; inset: auto 0 0 0; padding: 1.5rem 1rem 0.8rem; color: #fff; font-size: var(--fs-small); font-weight: 600; background: linear-gradient(transparent, rgba(10,32,48,0.72)); }

/* ---------- Placeholder media ---------- */
.ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(249,221,140,0.5), transparent 55%),
    linear-gradient(135deg, var(--band-sky), var(--band-sage));
  color: var(--navy); text-align: center;
}
.ph .ph-inner { display: grid; gap: 0.5rem; justify-items: center; padding: 1.5rem; }
.ph svg { width: 2.5rem; height: 2.5rem; color: var(--steel); opacity: 0.9; }
.ph small { font-size: var(--fs-small); color: var(--slate-700); font-weight: 600; max-width: 22ch; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--band-sky); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero .container { padding-block: clamp(2.75rem, 2rem + 4vw, 4.75rem); position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; }
.page-hero p { margin-top: 0.85rem; font-size: var(--fs-lead); color: var(--ink); max-width: 52ch; }
.page-hero .breadcrumb { font-size: var(--fs-small); color: var(--slate-700); margin-bottom: 0.75rem; font-weight: 600; }
.page-hero-sun { position: absolute; right: -4rem; top: -6rem; width: 22rem; opacity: 0.5; z-index: 0; pointer-events: none; }

/* ---------- Misc utilities ---------- */
.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; }
.center { text-align: center; }
.mt-sm { margin-top: 0.75rem; } .mt-md { margin-top: 1.5rem; } .mt-lg { margin-top: 2.5rem; }
.eyebrow-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); font-size: var(--fs-small); font-weight: 600; color: var(--navy); }
.pill svg { width: 1rem; height: 1rem; color: var(--sage-deep); }
.divider-sun { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--steel); }
.divider-sun::before, .divider-sun::after { content: ""; height: 1px; flex: 1; max-width: 7rem; background: var(--border-strong); }

.checklist { display: grid; gap: 0.75rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.checklist svg { width: 1.4rem; height: 1.4rem; color: var(--sage-deep); flex: none; margin-top: 0.1rem; }

/* ---------- Reveal animation (only hides when JS is present) ---------- */
.reveal { transition: opacity var(--t-slow) var(--ease-out-quart), transform var(--t-slow) var(--ease-out-quart); }
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .card, .post-card, .gallery-grid img { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { max-width: 32rem; }
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .cta-band .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .header-actions .btn--secondary { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: var(--radius-sm); color: var(--navy); border: 1.5px solid var(--border-strong); }
  .nav-toggle:hover { background: var(--surface-2); }

  /* slide-in mobile menu (off-screen + visibility-hidden when closed, so links leave the tab order) */
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(20rem, 84vw);
    display: flex; background: var(--surface); flex-direction: column; align-items: stretch; gap: 0.15rem;
    padding: 5.5rem 1.25rem 2rem; box-shadow: var(--shadow-lg); z-index: var(--z-modal);
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--t-base) var(--ease-out-quart), visibility var(--t-base);
    overflow-y: auto;
  }
  .primary-nav a { padding: 0.85rem 1rem; font-size: 1.1rem; border-radius: var(--radius-sm); }
  .primary-nav a[aria-current="page"]::after { display: none; }
  .primary-nav a[aria-current="page"] { background: var(--band-sky); }
  .primary-nav .mobile-cta { display: grid; gap: 0.6rem; margin-top: 1rem; }
  body.menu-open .primary-nav { transform: translateX(0); visibility: visible; }
  /* Lift the header (and its child menu panel) above the backdrop's stacking context. */
  body.menu-open .site-header { z-index: var(--z-modal); }
  body.menu-open .menu-backdrop { display: block; position: fixed; inset: 0; background: rgba(10,32,48,0.45); z-index: var(--z-backdrop); }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 801px) { .primary-nav .mobile-cta { display: none; } }

@media (max-width: 620px) {
  .topbar .container { justify-content: center; }
  .topbar .topbar-left { display: none; }
  .hero-cta .btn { flex: 1 1 auto; }
  .trust-chip { border-right: none; padding-inline: 0.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
