/* ==========================================================================
   ARCM Cares — site styles
   Design system: forest green + warm gold on linen (from the Stitch reference)
   ========================================================================== */

:root {
  /* Color */
  --forest-deep: #0D281E;
  --forest: #1B4332;
  --forest-mid: #2D5A46;
  --gold: #C8963E;          /* fills: buttons, bars, rules */
  --gold-hover: #D9A94F;
  --gold-light: #E9C46A;    /* text on dark backgrounds */
  --gold-ink: #7E5700;      /* text on light backgrounds (AA contrast) */
  --gold-soft: rgba(212, 163, 115, 0.25);
  --linen: #FAF9F7;
  --cream: #F3F1EC;
  --white: #FFFFFF;
  --ink: #1A1C1B;
  --slate: #2D3748;
  --slate-muted: #4A5568;
  --on-dark-muted: #C9D6CF;

  /* Type */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  /* Elevation */
  --shadow-1: 0 8px 24px -4px rgba(27, 67, 50, 0.08), 0 2px 6px -1px rgba(27, 67, 50, 0.05);
  --shadow-2: 0 20px 32px -8px rgba(13, 40, 30, 0.14), 0 4px 12px -2px rgba(13, 40, 30, 0.07);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-mid); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 1rem;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h1 em, h2 em { font-style: italic; color: var(--gold-ink); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--forest); color: var(--white);
  padding: .75rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.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;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--forest); color: var(--on-dark-muted); }
.section--deep { background: var(--forest-deep); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3, .section--dark h4,
.section--deep h2, .section--deep h3, .section--deep h4 { color: var(--white); }
.section--dark h2 em, .section--deep h2 em { color: var(--gold-light); }
.section--dark a:not(.btn), .section--deep a:not(.btn) { color: var(--gold-light); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.125rem; }

/* Roofline mark: the site's signature — a small gold roof peak */
.roofline {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .875rem; font-weight: 600; color: var(--gold-ink);
  margin-bottom: .9rem;
}
.roofline::before {
  content: ""; width: 28px; height: 14px; flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'%3E%3Cpath d='M1 13 14 2l13 11' fill='none' stroke='%23C8963E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.section--dark .roofline, .section--deep .roofline { color: var(--gold-light); }
.section-head--center .roofline { justify-content: center; }

.lead { font-size: 1.2rem; line-height: 1.6; color: var(--slate); }
.section--dark .lead, .section--deep .lead { color: var(--on-dark-muted); }
.small-print { font-size: .875rem; color: var(--slate-muted); }
.section--dark .small-print, .section--deep .small-print { color: var(--on-dark-muted); opacity: .85; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.75rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn--gold { background: var(--gold); color: var(--forest-deep); }
.btn--gold:hover { background: var(--gold-hover); color: var(--forest-deep); box-shadow: 0 4px 16px rgba(200, 150, 62, .35); }
.btn--outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--outline:hover { background: rgba(27, 67, 50, .08); color: var(--forest); }
.section--dark .btn--outline, .section--deep .btn--outline, .btn--outline-light { border-color: var(--gold-light); color: var(--gold-light); }
.section--dark .btn--outline:hover, .section--deep .btn--outline:hover, .btn--outline-light:hover { background: rgba(233, 196, 106, .12); color: var(--gold-light); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }

.text-link { font-weight: 600; color: var(--forest); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.text-link svg { transition: transform .2s ease; color: var(--gold); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.utility-bar { background: var(--forest-deep); color: var(--on-dark-muted); font-size: .8125rem; }
.utility-bar .container { display: flex; justify-content: space-between; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.utility-bar a { color: var(--gold-light); text-decoration: none; font-weight: 600; }
.utility-bar a:hover { text-decoration: underline; color: var(--gold-light); }
@media (max-width: 640px) { .utility-bar .hide-sm { display: none; } .utility-bar .container { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--gold-soft);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 96px; height: auto; }
.brand-word {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.45rem; color: var(--forest);
  padding-left: .65rem; border-left: 1.5px solid var(--gold); line-height: 1;
}

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--forest); background: transparent; color: var(--forest); cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; }
.site-nav a:not(.btn) {
  display: block; padding: .6rem .85rem; border-radius: var(--radius-sm);
  color: var(--slate); text-decoration: none; font-weight: 500; font-size: .975rem;
}
.site-nav a:not(.btn):hover { color: var(--forest); background: rgba(27, 67, 50, .06); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--forest); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-nav .btn { margin-left: .75rem; min-height: 44px; padding: .65rem 1.35rem; }

@media (max-width: 1150px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--linen); border-bottom: 1px solid var(--gold-soft); box-shadow: var(--shadow-2);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .75rem var(--gutter) 1.25rem; gap: .15rem; }
  .site-nav a:not(.btn) { padding: .85rem .5rem; font-size: 1.05rem; }
  .site-nav a:not(.btn)[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: .9rem; }
  .site-nav .btn { margin: .75rem 0 0; width: 100%; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem); overflow: hidden; position: relative; isolation: isolate; }
/* Faded Denver skyline and Front Range behind the hero */
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 78%; z-index: -1; pointer-events: none;
  background: url("/images/denver-skyline-mountains.svg") no-repeat center bottom / max(100%, 900px) auto;
  opacity: .1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
}
.hero-grid { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.5rem; }
.h1-kicker { display: flex; align-items: center; gap: .6rem; font-family: var(--font-sans); font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--gold-ink); line-height: 1.4; margin-bottom: 1rem; }
.h1-kicker::before { content: ""; width: 28px; height: 14px; flex: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'%3E%3Cpath d='M1 13 14 2l13 11' fill='none' stroke='%23C8963E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.h1-main { display: block; font-size: clamp(2.6rem, 6.2vw, 4.4rem); line-height: 1.04; }
.hero .lead { max-width: 34rem; margin-bottom: 2rem; }
.hero-dates { list-style: none; display: grid; gap: .6rem; margin: 0 0 2.25rem; }
.hero-dates li { display: grid; grid-template-columns: 16.5rem 1fr; gap: .75rem; align-items: baseline; font-size: .975rem; }
.hero-dates strong, .hero-dates strong a { color: var(--forest); }
.hero-dates strong a { text-decoration-color: var(--gold); }
.hero-trust { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--gold-soft); max-width: 34rem; }
.hero-trust a { flex: none; }
.hero-trust img { width: 44px; height: auto; }
.hero-trust p { margin: 0; font-size: .9rem; color: var(--slate-muted); }

.hero-media { position: relative; }
.hero-photo-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); outline: 1px solid rgba(212, 163, 115, .45); outline-offset: -1px; }
.hero-photo-main img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.hero-photo-inset {
  position: absolute; left: -2.5rem; bottom: -2.5rem; width: 46%;
  border-radius: var(--radius-md); overflow: hidden; border: 6px solid var(--linen); box-shadow: var(--shadow-2);
}
.hero-photo-inset img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-caption {
  position: absolute; right: 1.25rem; bottom: 1.25rem; max-width: 15rem;
  background: rgba(13, 40, 30, .9); color: var(--white); border-radius: var(--radius-sm);
  padding: .7rem .95rem; font-size: .85rem; line-height: 1.4;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { margin: 0 0 2.5rem 2rem; }
}
@media (max-width: 520px) {
  .hero-media { margin-left: 1.25rem; }
  .hero-photo-inset { left: -1.25rem; bottom: -2rem; width: 50%; border-width: 4px; }
  .hero-caption { display: none; }
  .hero-dates li { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--gold-soft); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 40rem; margin: 0; }
.breadcrumb { font-size: .875rem; margin-bottom: 1.25rem; color: var(--slate-muted); }
.breadcrumb ol { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--gold); }
.breadcrumb a { color: var(--slate-muted); }

/* ---------- Sponsor strip ---------- */
.sponsor-strip { background: var(--white); border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft); padding: 2rem 0; }
.sponsor-strip .container { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.sponsor-strip h2 { font-family: var(--font-sans); font-size: .95rem; font-weight: 700; color: var(--forest); margin: 0; letter-spacing: 0; flex: none; }
.sponsor-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; flex: 1 1 32rem; }
.sponsor-strip li a {
  display: inline-block; padding: .45rem .95rem; border-radius: 999px;
  background: var(--cream); color: var(--slate); text-decoration: none; font-size: .875rem; font-weight: 500;
  border: 1px solid transparent;
}
.sponsor-strip li a:hover { border-color: var(--gold); color: var(--forest); }
.sponsor-strip li.is-open a { background: transparent; border: 1.5px dashed var(--gold); color: var(--gold-ink); font-weight: 600; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--gold-soft); border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-1);
}
.section--white .card { background: var(--linen); }
.card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); margin-bottom: 1.25rem;
  display: grid; place-items: center; background: rgba(200, 150, 62, .14); color: var(--gold-ink);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); outline: 1px solid rgba(212, 163, 115, .45); outline-offset: -1px; }
.photo img { width: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: .875rem; color: var(--slate-muted); padding-top: .75rem; }
.section--dark figcaption, .section--deep figcaption { color: var(--on-dark-muted); }

/* Check lists */
.check-list { list-style: none; display: grid; gap: .75rem; margin: 1.25rem 0 0; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--forest) no-repeat center / 70% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 5' fill='none' stroke='%23E9C46A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.section--dark .check-list li::before, .section--deep .check-list li::before { background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 5' fill='none' stroke='%230D281E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Impact figures ---------- */
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(233, 196, 106, .3); }
.impact > div { padding: 2rem 1.75rem 0 0; }
.impact > div + div { padding-left: 1.75rem; border-left: 1px solid rgba(233, 196, 106, .3); }
.impact .figure { font-family: var(--font-serif); font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: var(--gold-light); font-weight: 600; display: block; margin-bottom: .75rem; }
.impact p { margin: 0; color: var(--on-dark-muted); max-width: 18rem; }
@media (max-width: 760px) {
  .impact { grid-template-columns: 1fr; }
  .impact > div, .impact > div + div { padding: 1.75rem 0; border-left: 0; border-bottom: 1px solid rgba(233, 196, 106, .3); }
}

/* ---------- Programs ---------- */
.program-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.program-card .photo-top img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.program-card .body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; flex: 1; }
.program-card .when { display: inline-block; font-size: .875rem; font-weight: 700; color: var(--gold-ink); margin-bottom: .5rem; }
.program-card .text-link { margin-top: auto; padding-top: 1.5rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.gallery figure { grid-column: span 2; }
.gallery figure.wide { grid-column: span 4; grid-row: span 2; }
.gallery .photo { height: 100%; }
.gallery .photo img { height: 100%; aspect-ratio: 3 / 2; }
.gallery figure.wide .photo img { aspect-ratio: auto; }
.gallery figure { display: flex; flex-direction: column; }
.gallery figure .photo { flex: 1; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure, .gallery figure.wide { grid-column: span 1; grid-row: auto; }
  .gallery figure.wide { grid-column: span 2; }
  .gallery figure.wide .photo img { aspect-ratio: 3 / 2; }
}
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery figure.wide { grid-column: span 1; } }

/* ---------- Sponsorship tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 1100px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  display: flex; flex-direction: column; background: var(--white); color: var(--slate);
  border-radius: var(--radius-md); padding: 2rem 1.75rem; border: 1px solid var(--gold-soft); box-shadow: var(--shadow-1);
}
.tier h3 { font-size: 1.4rem; margin-bottom: .25rem; color: var(--forest); }
.tier .price { font-family: var(--font-serif); font-size: 2.75rem; line-height: 1.1; color: var(--forest); font-weight: 600; margin: .5rem 0 .25rem; }
.tier .provides { font-weight: 600; color: var(--gold-ink); font-size: .95rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--gold-soft); }
.tier .check-list { margin: 0 0 1.75rem; font-size: .95rem; }
.tier .btn { margin-top: auto; padding-left: 1rem; padding-right: 1rem; }
.section--dark .tier:not(.tier--top) .btn--outline, .tier:not(.tier--top) .btn--outline { border-color: var(--forest); color: var(--forest); }
.section--dark .tier:not(.tier--top) .btn--outline:hover { background: rgba(27, 67, 50, .08); color: var(--forest); }
.tier--top { background: var(--forest-deep); color: var(--on-dark-muted); border-color: var(--gold); }
.tier--top h3, .tier--top .price { color: var(--white); }
.tier--top .provides { color: var(--gold-light); border-color: rgba(233, 196, 106, .3); }
.tier--top .check-list li::before { background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 5' fill='none' stroke='%230D281E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.section--dark .tier:not(.tier--top) { border-color: transparent; }

.deadline {
  display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md); background: rgba(233, 196, 106, .1); border: 1px solid rgba(233, 196, 106, .35);
}
.deadline svg { flex: none; color: var(--gold-light); }
.deadline p { margin: 0; color: var(--white); }

/* ---------- Steps (real sequence) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.75rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest); color: var(--gold-light); font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem;
}
.steps li::after { content: ""; position: absolute; top: 1.3rem; left: 3.4rem; right: -.75rem; height: 1px; background: var(--gold); opacity: .5; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.steps p { margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Sponsors wall ---------- */
.sponsor-card { display: flex; flex-direction: column; gap: 1rem; }
.sponsor-card .logo-box {
  height: 88px; display: flex; align-items: center; justify-content: flex-start;
}
.sponsor-card .logo-box img { max-height: 80px; width: auto; max-width: 180px; object-fit: contain; }
.sponsor-card .logo-box--dark { background: var(--forest); border-radius: var(--radius-sm); justify-content: center; padding: .75rem 1rem; }
.sponsor-card .logo-box--dark img { max-height: 48px; }
.sponsor-card .logo-box--photo img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; max-width: none; border: 2px solid var(--gold); }
.sponsor-card .monogram {
  width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest); color: var(--gold-light); font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
}
.sponsor-card h3 { font-size: 1.25rem; margin: 0; }
.sponsor-card .role { font-size: .9rem; color: var(--slate-muted); margin: -.5rem 0 0; }
.sponsor-card p { margin: 0; font-size: .95rem; }
.sponsor-card address { font-style: normal; font-size: .875rem; color: var(--slate-muted); line-height: 1.5; }
.sponsor-card .site { margin-top: auto; font-weight: 600; font-size: .925rem; }
.sponsor-card--open { border: 1.5px dashed var(--gold); background: transparent !important; box-shadow: none; justify-content: center; }

/* ---------- Partners / badges ---------- */
.partner-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); }
.partner { display: flex; align-items: center; gap: .9rem; }
.partner img { height: 56px; width: auto; }
.partner span { font-size: .875rem; line-height: 1.35; color: var(--slate-muted); }
.partner strong { display: block; color: var(--forest); font-size: .95rem; }

/* ---------- Quote / relationship figure ---------- */
.relationship { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .relationship { grid-template-columns: 1fr; } }
.relationship .photo img { aspect-ratio: 4 / 3; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta-band .lead { max-width: 40rem; margin: 0 auto 2rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .contact-line { margin-top: 2rem; font-size: .95rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-2); border: 1px solid var(--gold-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .925rem; color: var(--forest); margin-bottom: .4rem; }
.field .req { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  font: inherit; color: var(--ink); background: var(--linen);
  border: 1px solid rgba(160, 120, 70, .45); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%231B4332' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; padding-right: 2.75rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(200, 150, 62, .3); }
.field .hint { font-size: .825rem; color: var(--slate-muted); margin-top: .35rem; }
.field .error { display: none; font-size: .85rem; color: #A1260F; margin-top: .35rem; font-weight: 500; }
.field.has-error input, .field.has-error select { border-color: #A1260F; }
.field.has-error .error { display: block; }
.form-status { margin-top: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); display: none; }
.form-status.is-success { display: block; background: rgba(27, 67, 50, .08); color: var(--forest); border: 1px solid rgba(27, 67, 50, .25); }
.form-status.is-error { display: block; background: #FDECE8; color: #7A1D0B; border: 1px solid #F2B8AB; }
.hp-field { position: absolute; left: -9999px; }

.contact-list { list-style: none; display: grid; gap: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list .icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(200, 150, 62, .14); color: var(--gold-ink); }
.contact-list strong { display: block; color: var(--forest); }
.contact-list a { font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--gold-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--forest);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--font-sans); font-size: 1.5rem; color: var(--gold-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.25rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--on-dark-muted); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-sans); font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-brand .brand-word { color: var(--white); font-size: 1.6rem; border: 0; padding: 0; display: block; margin-bottom: .75rem; }
.footer-brand p { max-width: 22rem; }
.footer-brand .bbb { display: inline-flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.footer-brand .bbb img { width: 36px; background: var(--white); border-radius: 4px; padding: 2px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(233, 196, 106, .2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- SEO / content additions ---------- */
address { font-style: normal; }
.updated { margin: 1.25rem 0 0; font-size: .85rem; color: var(--slate-muted); }
.page-hero h1 { max-width: 22ch; }

.page-hero--media .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .page-hero--media .container { grid-template-columns: 1fr; } }

/* Audience paths */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
.path {
  display: flex; flex-direction: column; gap: .6rem; padding: 2rem; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--gold-soft); box-shadow: var(--shadow-1);
  text-decoration: none; color: var(--slate); transition: border-color .2s ease, box-shadow .2s ease;
}
.path:hover { border-color: var(--gold); box-shadow: var(--shadow-2); color: var(--slate); }
.path .icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center; background: rgba(200,150,62,.14); color: var(--gold-ink); }
.path-title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--forest); }
.path-text { font-size: .975rem; }

/* Gift calculator */
.calc {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem);
  background: rgba(255,255,255,.04); border: 1px solid rgba(233,196,106,.3); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc label { display: block; color: var(--white); font-weight: 600; margin-bottom: .6rem; }
.calc-amount { display: flex; align-items: center; gap: .35rem; background: var(--white); border-radius: var(--radius-sm); padding: 0 1rem; max-width: 16rem; }
.calc-amount span { font-family: var(--font-serif); font-size: 1.75rem; color: var(--forest); }
.calc-amount input { border: 0; background: transparent; width: 100%; min-height: 56px; font: 600 1.75rem var(--font-serif); color: var(--forest); }
.calc-amount input:focus { outline: none; }
.calc-amount:focus-within { box-shadow: 0 0 0 3px var(--gold); }
.calc input[type=range] { width: 100%; margin: 1.5rem 0 1.25rem; accent-color: var(--gold); height: 28px; }
.calc-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.calc-presets button {
  min-height: 44px; padding: .5rem 1rem; border-radius: var(--radius-md); cursor: pointer;
  border: 1.5px solid rgba(233,196,106,.5); background: transparent; color: var(--gold-light); font: 600 .95rem var(--font-sans);
}
.calc-presets button:hover { background: rgba(233,196,106,.12); }
.calc-presets button[aria-pressed="true"] { background: var(--gold); color: var(--forest-deep); border-color: var(--gold); }
.calc-output { display: flex; flex-direction: column; justify-content: center; }
.calc-line { display: flex; align-items: baseline; gap: 1rem; margin: 0; color: var(--on-dark-muted); }
.calc-num { font-family: var(--font-serif); font-size: clamp(2.75rem, 6vw, 4rem); line-height: 1; color: var(--gold-light); font-weight: 600; min-width: 3.2ch; }
.calc-or { margin: .5rem 0; font-size: .85rem; color: var(--on-dark-muted); opacity: .8; }
.calc-tier { margin: 1.25rem 0; color: var(--white); font-weight: 600; }
.calc-output .btn { align-self: flex-start; }
.calc-note { grid-column: 1 / -1; margin: 0; }

/* Related links */
.related h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); margin-bottom: 1.75rem; }
.related-card { position: relative; display: flex; flex-direction: column; }
.related-card h3 a { color: var(--forest); text-decoration: none; }
.related-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.related-card:hover { border-color: var(--gold); }
.related-card .text-link { margin-top: auto; }
.related-card:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.related-card h3 a:focus-visible { outline: none; }

/* Timeline (real sequence) */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .3rem; width: 16px; height: 16px; border-radius: 50%; background: var(--forest); border: 3px solid var(--gold); }
.timeline time { font-weight: 700; color: var(--gold-ink); font-size: .9rem; }
.timeline h3 { margin: .25rem 0 .4rem; font-size: 1.3rem; }
.timeline p { margin: 0; }

/* Numbered how-to list */
.number-list { list-style: none; counter-reset: n; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
.number-list li { counter-increment: n; position: relative; padding-left: 3.25rem; }
.number-list li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--gold-light); font-family: var(--font-serif); font-weight: 600; }
.number-list h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.number-list p { margin: 0; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .steps--3 { grid-template-columns: 1fr; } .steps--3 li::after { display: none; } }

/* Help callout */
.help-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); background: var(--forest); color: var(--on-dark-muted); }
.help-callout h2 { color: var(--white); margin-bottom: .4rem; font-size: clamp(1.6rem, 3vw, 2rem); }
.help-callout p { margin: 0; }

/* Facts list */
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--gold-soft); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--gold-soft); }
.facts dt { font-weight: 700; color: var(--forest); }
.facts dd { margin: 0; }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: .15rem; } }

/* Map */
.map { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gold-soft); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* FAQ headings inside summary */
.faq summary h3 { display: inline; font-size: inherit; margin: 0; color: inherit; font-family: inherit; }

/* Prose */
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 2.5rem; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Lower footer: designer credit */
.footer-credit { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(233, 196, 106, .12); text-align: center; font-size: .8rem; opacity: .8; }
.footer-credit p { margin: 0; }

/* HTML sitemap page */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.sitemap-grid ul { list-style: none; padding: 0; margin: 0; }
.sitemap-grid li { margin: 0 0 .6rem; }
@media (max-width: 760px) { .sitemap-grid { grid-template-columns: 1fr; } }

/* Lower footer: one row of legal links + designer credit */
.site-footer .legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem 0; white-space: nowrap; }
.legal-links li { display: flex; align-items: center; }
.legal-links li + li::before { content: "|"; margin: 0 .75rem; opacity: .5; }
.legal-links a { display: inline-block; padding: .25rem 0; }
.legal-links .credit { opacity: .85; }
@media (max-width: 760px) { .legal-links { white-space: normal; } }

/* ---------- Nav dropdowns ---------- */
.site-nav .has-sub { position: relative; display: flex; align-items: center; }
.site-nav .has-sub > a:not(.btn) { padding-right: .35rem; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 44px; padding: 0; border: 0; background: none; color: var(--slate); cursor: pointer; border-radius: var(--radius-sm); }
.sub-toggle:hover { color: var(--forest); }
.sub-toggle svg { transition: transform .2s ease; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.site-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 200px; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: .4rem; background: var(--white); border: 1px solid var(--gold-soft); border-radius: var(--radius-sm); box-shadow: var(--shadow-2); }
.site-nav .has-sub:hover > .sub-menu, .site-nav .has-sub:focus-within > .sub-menu, .site-nav .has-sub.is-open > .sub-menu { display: flex; }
.site-nav .sub-menu a:not(.btn) { white-space: nowrap; }
.site-nav .has-sub.is-current-parent > a:not(.btn) { color: var(--forest); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
@media (max-width: 1150px) {
  .site-nav .has-sub { display: block; }
  .sub-toggle { display: none; }
  .site-nav .sub-menu { position: static; display: flex; min-width: 0; padding: 0 0 .25rem 1rem; border: 0; box-shadow: none; background: none; }
  .site-nav .sub-menu a:not(.btn) { font-size: .975rem; padding: .6rem .5rem; }
  .site-nav .has-sub.is-current-parent > a:not(.btn) { box-shadow: inset 3px 0 0 var(--gold); padding-left: .9rem; }
}

/* ---------- Sponsorship benefits table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gold-soft); background: var(--white); box-shadow: var(--shadow-2); }
.table-wrap:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.benefits-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .95rem; }
.benefits-table th, .benefits-table td { padding: .85rem 1rem; border-bottom: 1px solid rgba(200, 150, 62, .2); text-align: center; vertical-align: middle; }
.benefits-table thead th { background: var(--forest); color: var(--white); font-weight: 700; font-size: .95rem; }
.benefits-table thead th span { display: block; font-weight: 500; font-size: .85rem; opacity: .85; margin-top: .15rem; }
.benefits-table th[scope="row"] { text-align: left; font-weight: 500; color: var(--slate); }
.benefits-table tbody tr:nth-child(even) { background: rgba(27, 67, 50, .03); }
.benefits-table tfoot th, .benefits-table tfoot td { font-weight: 600; color: var(--forest); border-bottom: 0; font-size: .9rem; }
.benefits-table .tick { display: inline-flex; color: var(--forest); }
.benefits-table .dash { color: var(--slate-muted); }
.steps.steps--stack { grid-template-columns: 1fr; }
.site-nav a, .site-nav .btn { white-space: nowrap; }

/* ---------- Gallery page ---------- */
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .photo-grid { grid-template-columns: 1fr; } }
.gallery-item { display: block; position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); text-decoration: none; background: var(--forest); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .35s ease, opacity .35s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); opacity: .9; }
.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .85rem; color: #fff; font-size: .9rem; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: auto; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(8, 20, 15, .96); overflow: hidden; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 20, 15, .92); }
.lb-figure { margin: 0; max-width: min(1000px, 86vw); display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: var(--radius-sm); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.lb-figure figcaption { margin-top: .9rem; color: #fff; text-align: center; font-size: .95rem; }
.lb-count { opacity: .7; margin-left: .5rem; white-space: nowrap; }
.lb-btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; transition: background .2s ease; }
.lb-btn:hover { background: rgba(0, 0, 0, .65); }
.lb-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lb-close { top: calc(1rem + env(safe-area-inset-top, 0px)); right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-figure { max-width: 100vw; padding: 0 .5rem; }
  .lb-prev, .lb-next { top: auto; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: none; }
  .lb-prev { left: 30%; } .lb-next { right: 30%; }
  .lb-img { max-height: 70vh; }
}
