/* ============================================
   Austin Serving Abaco — Bold Editorial direction
   Cream / black / navy, bold weight, marquee hero
   ============================================ */

:root {
  --navy: #1e3564;
  --navy-deep: #12213f;
  --ink: #161616;
  --gray: #4a4a44;
  --cream: #f7f6f2;
  --paper: #efece2;
  --white: #ffffff;
  --line: rgba(0,0,0,0.08);
  --stat-label: #7ea3d6;

  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;

  --max-width: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff; /* matches the white background of images/logo.png */
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 64px; }
.brand-name { font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-weight: 600; font-size: 0.93rem; color: var(--ink);
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { border-color: var(--navy); color: var(--navy); }
.nav-give {
  background: var(--ink); color: var(--white) !important;
  padding: 11px 22px !important; border-radius: 4px; font-weight: 700;
  border-bottom: none !important;
}
.nav-give:hover { background: var(--navy); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 18px 34px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); padding: 18px 4px; border-bottom: 3px solid var(--navy); border-radius: 0; }
.btn-outline:hover { color: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-row { display: flex; gap: 18px; flex-wrap: wrap; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.eyebrow-tag {
  display: inline-block;
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--navy); padding: 8px 16px; margin-bottom: 22px;
}

/* ---------- Homepage marquee hero ---------- */
.hero-photo-full { position: relative; height: 640px; overflow: hidden; }
.hero-photo-full img { width: 100%; height: 100%; object-fit: cover; }
.marquee-band {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.92), rgba(10,14,26,0.0));
  padding-top: 90px; padding-bottom: 22px; overflow: hidden;
}
.marquee-track { display: flex; white-space: nowrap; width: max-content; animation: marquee-scroll 26s linear infinite; }
.marquee-track span {
  font-size: 2.6rem; font-weight: 900; letter-spacing: -0.02em; color: #fff;
  padding: 0 28px; display: inline-flex; align-items: center; gap: 28px;
}
.marquee-track span::after { content: "\2022"; color: var(--stat-label); font-size: 1.6rem; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-text-below { padding: 56px 0 70px; max-width: 820px; }
.hero-text-below h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em;
  margin-bottom: 22px; color: var(--ink);
}
.hero-text-below h1 .accent { color: var(--navy); }
.hero-text-below p.lead { font-size: 1.3rem; color: var(--gray); max-width: 600px; margin-bottom: 36px; font-weight: 500; }

/* ---------- Interior page hero (photo + overlay) ---------- */
.page-hero { position: relative; height: 440px; overflow: hidden; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,33,63,0.15) 0%, rgba(18,33,63,0.85) 100%);
  display: flex; align-items: flex-end;
}
.page-hero .overlay .container { padding-bottom: 52px; }
.page-hero .eyebrow-tag { margin-bottom: 18px; }
.page-hero h1 {
  font-size: 2.9rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1;
  color: #fff; max-width: 760px;
}

/* ---------- Mission / two-column intro strip ---------- */
.mission-strip { background: var(--paper); padding: 80px 0; }
.mission-strip .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mission-strip h2 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.mission-strip p { font-size: 1.1rem; color: var(--gray); margin-top: 18px; }

/* ---------- Stat strip (dark) ---------- */
.stat-strip { background: var(--ink); padding: 0; }
.stat-strip .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-strip .stat-grid > div { padding: 46px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-strip .stat-grid > div:last-child { border-right: none; }
.stat-strip .num { font-size: 2.6rem; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.stat-strip .label { font-size: 0.85rem; font-weight: 700; color: var(--stat-label); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Light stat row variant for interior pages */
.stat-row-section { padding: 76px 0; }
.stat-row-section .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-row-section .stat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat-row-section .num { font-size: 2.6rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.stat-row-section .num::after { content: ""; display: block; width: 40px; height: 3px; background: var(--navy); margin: 12px auto 0; }
.stat-row-section .label { font-size: 0.95rem; font-weight: 600; color: var(--gray); margin-top: 12px; }
.stat-row-section p.small-caption { font-size: 0.92rem; color: var(--gray); margin-top: 10px; max-width: 220px; margin-left: auto; margin-right: auto; }

/* ---------- Program rows (alternating photo/text) ---------- */
.program-row { padding: 90px 0; }
.program-row.alt { background: var(--paper); }
.program-row .row-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.program-row.reverse .row-inner { direction: rtl; }
.program-row.reverse .row-inner > * { direction: ltr; }
.num-badge {
  font-size: 1rem; font-weight: 800; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.program-row h3 { font-size: 2rem; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 16px; }
.program-row p { font-size: 1.08rem; color: var(--gray); max-width: 440px; }
.program-row .photo-side img {
  width: 100%; aspect-ratio: 4/3.2; object-fit: cover; border-radius: 6px;
  box-shadow: 0 24px 50px -18px rgba(20,20,20,0.25);
}

/* ---------- Quote block ---------- */
.quote-block { background: var(--navy); padding: 84px 0; text-align: center; }
.quote-block blockquote {
  font-size: 1.9rem; font-weight: 700; color: #fff; max-width: 780px; margin: 0 auto 18px;
  line-height: 1.35; letter-spacing: -0.005em;
}
.quote-block cite { font-style: normal; font-weight: 600; color: var(--stat-label); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cream); padding: 96px 0; text-align: center; }
.cta-band.on-dark { background: var(--navy-deep); color: #fff; }
.cta-band h2 { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 20px; }
.cta-band.on-dark h2 { color: #fff; }
.cta-band p { font-size: 1.15rem; color: var(--gray); max-width: 560px; margin: 0 auto 34px; }
.cta-band.on-dark p { color: #cdd8ee; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Generic statement section ---------- */
.statement { padding: 90px 0; text-align: center; }
.statement.alt { background: var(--paper); }
.statement h2 { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 18px; max-width: 760px; margin-left: auto; margin-right: auto; }
.statement .sub { font-size: 1.12rem; color: var(--gray); max-width: 640px; margin: 0 auto 30px; }
.statement .eyebrow { display: block; }

.tag-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 30px; }
.tag-list span {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-size: 0.9rem; font-weight: 600; padding: 9px 16px; border-radius: 999px;
}

/* ---------- Feature row (used on interior pages, text + photo) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row h2 { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.015em; margin-bottom: 16px; }
.feature-row p { color: var(--gray); font-size: 1.08rem; margin-bottom: 10px; }
.feature-media img { width: 100%; border-radius: 6px; aspect-ratio: 4/3.4; object-fit: cover; box-shadow: 0 24px 50px -18px rgba(20,20,20,0.25); }
.section { padding: 90px 0; }
.section.alt { background: var(--paper); }

/* ---------- Donate: give grid ---------- */
.give-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.give-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 40px; box-shadow: 0 20px 40px -24px rgba(20,20,20,0.15);
}
.give-card h3 { font-size: 1.7rem; font-weight: 800; color: var(--ink); margin: 8px 0 16px; }
.give-card p { color: var(--gray); margin-bottom: 22px; }
.amount-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.amount-pill { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 0.9rem; color: var(--navy); }

/* ---------- Sponsor: child grid ---------- */
.child-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.child-card { text-align: center; }
.child-card .photo { border-radius: 6px; overflow: hidden; aspect-ratio: 1/1.1; margin-bottom: 14px; }
.child-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.child-card strong { display: block; font-size: 1rem; color: var(--ink); }
.child-card span { font-size: 0.88rem; color: var(--gray); }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--font-body); font-size: 1rem; background: var(--white); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9b6d3; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--stat-label); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }
.social-row { display: flex; gap: 16px; margin-top: 14px; }
.site-footer .brand-name { color: #fff; }
.site-footer .small { color: #a9b6d3; }
.site-footer .footer-grid a { color: #a9b6d3; }

.small { font-size: 0.9rem; color: var(--gray); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 900px) {
  .hero-text-below, .mission-strip .inner, .program-row .row-inner, .feature-row, .give-grid { grid-template-columns: 1fr; }
  .stat-strip .stat-grid, .stat-row-section .stat-grid, .child-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .program-row.reverse .row-inner, .feature-row.reverse { direction: ltr; }
  .page-hero h1 { font-size: 2.1rem; }
  .marquee-track span { font-size: 1.6rem; }
}


/* ---------- Sponsor: avatar tabs ---------- */
.sponsor-title { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 12px; }
.sponsor-sub { color: var(--gray); font-size: 1.05rem; margin: 0 auto 34px; max-width: 560px; }
.avatar-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 16px 10px; max-width: 980px; margin: 0 auto 44px; }
.avatar-tabs [role="tab"] {
  all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 6px 2px; text-align: center; font-size: 0.88rem; font-weight: 600; color: var(--gray);
}
.avatar-tabs .av {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: block;
  border: 3px solid var(--cream); box-shadow: 0 0 0 1px var(--line); background: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease;
}
.avatar-tabs .av img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); transform-origin: 50% 32%; }
.avatar-tabs [role="tab"]:hover .av { transform: translateY(-2px); }
.avatar-tabs [role="tab"][aria-selected="true"] { color: var(--navy); font-weight: 800; }
.avatar-tabs [role="tab"][aria-selected="true"] .av { box-shadow: 0 0 0 3px var(--navy); }
.avatar-tabs [role="tab"]:focus-visible .av { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px rgba(30,53,100,0.28); }

.sponsor-panel {
  max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 380px) 1fr;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(20,20,20,0.25);
}
.sponsor-panel-photo { background: var(--paper); min-height: 380px; }
.sponsor-panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.sponsor-panel-body { padding: 38px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.sponsor-panel-body h3 { font-size: 2.2rem; line-height: 1.05; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 14px; }
.sponsor-panel-body p { color: var(--gray); margin-bottom: 20px; }
.sponsor-panel-body form { margin-bottom: 18px; }
.sponsor-panel-body button.btn { border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; }
.sponsor-panel-body .small { margin-bottom: 0; }
.price-pill { display: inline-block; background: var(--navy); color: var(--white); font-weight: 800; font-size: 0.9rem; padding: 6px 16px; border-radius: 999px; margin-bottom: 16px; }
.text-link { color: var(--navy); font-weight: 700; border-bottom: 1px solid currentColor; }

@media (max-width: 900px) {
  .sponsor-panel { grid-template-columns: 1fr; }
  .sponsor-panel-photo { min-height: 0; aspect-ratio: 4/3; }
  .sponsor-panel-body { padding: 26px 24px; }
  .avatar-tabs { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .avatar-tabs .av { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .avatar-tabs .av { transition: none; } }

.renew-note { background: var(--paper); border-left: 4px solid var(--navy); border-radius: 4px; padding: 12px 16px; font-size: 0.95rem; color: var(--ink); margin-bottom: 18px !important; }

/* Sponsor: already-sponsored scroll box */
.sponsored-wrap { position: relative; max-width: 980px; margin: 0 auto; }
.sponsored-wrap::after {
  content: ""; position: absolute; left: 1px; right: 15px; bottom: 1px; height: 56px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--white) 85%); border-radius: 0 0 8px 8px;
}
.sponsored-scroll {
  height: 480px; overflow-y: auto; padding: 28px 26px 64px; background: var(--white);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 50px -24px rgba(20,20,20,0.25);
  scrollbar-width: thin; scrollbar-color: var(--navy) var(--paper);
}
.sponsored-scroll:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.sponsored-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 26px 16px; }
.sponsored-grid li { text-align: center; }
.sponsored-grid img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 8px; background: var(--paper); box-shadow: 0 0 0 2px var(--paper); }
.sponsored-grid .nm { display: block; font-size: 0.9rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.sponsored-hint { margin-top: 14px; font-size: 0.85rem; color: var(--gray); }
@media (max-width: 900px) {
  .sponsored-scroll { height: 420px; padding: 22px 16px 60px; }
  .sponsored-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 22px 10px; }
  .sponsored-grid img { width: 72px; height: 72px; }
}

/* Our Story: long-form copy */
.story-copy { max-width: 760px; margin: 0 auto; }
.story-copy h2 { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.015em; margin-bottom: 18px; }
.story-copy p { color: var(--gray); font-size: 1.08rem; margin-bottom: 14px; }
.story-copy p.story-callout { background: var(--paper); border-left: 4px solid var(--navy); border-radius: 4px; padding: 20px 24px; margin: 28px 0 0; color: var(--ink); }
.story-copy p.story-callout strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; }

/* Header: phone sizing + working hamburger menu */
@media (max-width: 900px) {
  .site-header .container { height: 84px; }
  .brand img { height: 52px; }
  .brand-name { font-size: 1.05rem; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0; background: #ffffff;
    padding: 10px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(20,20,20,0.3);
  }
  .nav-links.open a { display: block; padding: 12px 4px; font-size: 1.05rem; }
  .nav-links.open .nav-give { text-align: center; margin-top: 8px; }
}
