/* Fair Grove MO Veterans Memorial — shared stylesheet */

:root {
  --navy: #0a1f3d;
  --navy-dark: #061428;
  --old-glory-red: #a4243b;
  --red-dark: #7d1b2c;
  --white: #ffffff;
  --off-white: #f3ead9;
  --paper: #ede2ca;
  --stone: #e6dcc4;
  --ink: #241f16;
  --ink-soft: #55503f;
  --gold: #b8923a;
  --gold-light: #d9b968;
  --platinum: #7a8896;
  --diamond: #3f7f9c;
  --border: #d3c4a0;
  --radius: 4px;
  --shadow: 0 8px 26px rgba(36, 24, 10, 0.16);
  --max-width: 1140px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--off-white);
  background-image: var(--grain);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: 2.6rem; letter-spacing: 0.5px; }
h2 { font-size: 2rem; letter-spacing: 0.2px; }
h3 { font-size: 1.35rem; }

/* ---------- Stars divider (americana rule) ---------- */
.stars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 18px;
}
.stars-row .line {
  height: 1px;
  width: 46px;
  background: currentColor;
  opacity: 0.55;
}
.stars-row .stars {
  display: flex;
  gap: 6px;
  color: inherit;
}
.stars-row svg { width: 13px; height: 13px; fill: currentColor; }
.stars-row--gold { color: var(--gold); }
.stars-row--navy { color: var(--navy); }

p { margin: 0 0 1rem; }

a { color: var(--old-glory-red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

.section {
  padding: 64px 0;
}

.section--alt {
  background-color: var(--paper);
  background-image: var(--grain);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--navy {
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(184,146,58,0.16), transparent 60%),
    var(--grain);
  color: var(--stone);
}
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--old-glory-red);
  margin-bottom: 10px;
  display: block;
}

.section--navy .eyebrow { color: var(--gold-light); }

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 720px;
}

/* ---------- Top ribbon ---------- */
.top-ribbon {
  background: var(--navy-dark);
  color: var(--stone);
  font-size: 0.82rem;
  padding: 7px 0;
}
.top-ribbon .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-ribbon a { color: var(--gold-light); }

/* ---------- Header / Nav ---------- */
.site-header {
  background-color: var(--white);
  background-image: var(--grain);
  border-bottom: 3px solid var(--old-glory-red);
  box-shadow: 0 2px 0 var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-family: Georgia, serif;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-text {
  line-height: 1.15;
}
.brand-text .line1 {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: var(--navy);
}
.brand-text .line2 {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--old-glory-red);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--stone); text-decoration: none; }
.main-nav a.is-active { color: var(--old-glory-red); }

.nav-cta {
  background: var(--old-glory-red);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
}
.nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before { content: ""; top: -7px; position: absolute; }
.nav-toggle span::after { content: ""; top: 7px; position: absolute; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 120% 100% at 50% 120%, rgba(6,20,40,0.96), rgba(6,20,40,0.75) 60%, transparent 100%),
    linear-gradient(160deg, rgba(10,31,61,0.95), rgba(10,31,61,0.88)),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 34px, rgba(164,36,59,0.14) 34px 68px);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}
.hero .container { position: relative; z-index: 2; }
.hero-stars {
  position: absolute;
  top: 0; left: 0;
  width: 46%;
  height: 60%;
  opacity: 0.5;
  background-color: rgba(6,20,40,0.55);
  background-image: radial-gradient(circle, rgba(255,255,255,0.65) 1.6px, transparent 1.8px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(120deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(120deg, #000 55%, transparent 100%);
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); max-width: 760px; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.hero .lede { color: var(--stone); font-size: 1.2rem; }
.hero .stars-row { justify-content: flex-start; margin-left: 0; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.page-hero {
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(184,146,58,0.18), transparent 55%),
    var(--grain);
  color: var(--white);
  padding: 58px 0 52px;
  border-bottom: 4px solid var(--gold);
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: var(--stone); }
.page-hero .stars-row { justify-content: flex-start; margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 3px 10px rgba(36,24,10,0.22);
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--old-glory-red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--navy-dark);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-block { display: block; text-align: center; width: 100%; }

/* ---------- Stat / Goal strip ---------- */
.goal-strip {
  background-color: var(--gold);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.18), transparent), var(--grain);
  color: var(--navy-dark);
  padding: 22px 0;
  border-top: 1px solid rgba(36,24,10,0.15);
  border-bottom: 1px solid rgba(36,24,10,0.15);
}
.goal-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.goal-strip strong { font-family: Georgia, serif; font-size: 1.15rem; }

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.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: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background-color: var(--white);
  background-image: var(--grain);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.give-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.give-card .icon-badge { margin-bottom: 6px; }
.give-card h3 { margin-bottom: 2px; }
.give-card .price-range {
  font-weight: 700;
  color: var(--old-glory-red);
  font-size: 0.95rem;
}
.give-card .spacer { flex: 1; }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px var(--paper), inset 0 1px 3px rgba(0,0,0,0.35);
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Branch badges ---------- */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .branch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .branch-grid { grid-template-columns: repeat(2, 1fr); } }

.branch-badge {
  background-color: var(--white);
  background-image: var(--grain);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.branch-badge .badge-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-family: Georgia, serif;
  font-size: 1rem;
  border: 2px solid var(--gold-light);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.35);
}
.branch-badge .branch-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.b-army { background: #4b5320; }
.b-marines { background: #a4243b; }
.b-navy { background: #0a1f3d; }
.b-airforce { background: #5d8aa8; }
.b-spaceforce { background: #1c1f24; }
.b-coastguard { background: #d4af37; color: #1c1f24 !important; }

/* ---------- Sponsorship tier table ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  border-radius: 6px;
  padding: 30px 26px;
  background-color: var(--white);
  background-image: var(--grain);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier-card.tier-platinum { border-top: 6px solid var(--platinum); }
.tier-card.tier-diamond  { border-top: 6px solid var(--diamond); }
.tier-card.tier-gold     { border-top: 6px solid var(--gold); }

.tier-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.tier-platinum .tier-label { color: var(--platinum); }
.tier-diamond .tier-label { color: var(--diamond); }
.tier-gold .tier-label { color: var(--gold); }

.tier-price {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.tier-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.tier-card ul {
  margin: 18px 0 24px;
  padding-left: 20px;
  color: var(--ink-soft);
  flex: 1;
}
.tier-card li { margin-bottom: 8px; }

/* ---------- Honor wall option cards ---------- */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .option-grid { grid-template-columns: 1fr; } }

.plaque-preview {
  background: linear-gradient(145deg, #2b2f36, #1c1f24);
  border: 3px solid var(--gold);
  border-radius: 4px;
  color: var(--gold-light);
  padding: 22px;
  text-align: center;
  font-family: Georgia, serif;
}
.plaque-preview .rank { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--stone); }
.plaque-preview .pname { font-size: 1.3rem; margin: 6px 0; }
.plaque-preview .pmeta { font-size: 0.82rem; color: var(--stone); }
.plaque-preview .photo-slot {
  width: 60px; height: 60px; margin: 0 auto 12px;
  border: 2px solid var(--gold-light);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-size: 0.65rem;
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding-left: 54px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--old-glory-red);
  color: var(--white);
  font-weight: 700;
  font-family: Georgia, serif;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Info / contact ---------- */
.info-panel {
  background-color: var(--white);
  background-image: var(--grain);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px;
}
.info-panel h3 { margin-bottom: 10px; }
.info-row {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row .label { font-weight: 700; color: var(--navy); min-width: 90px; }

.note-box {
  background: var(--stone);
  border-left: 4px solid var(--old-glory-red);
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.callout {
  background: var(--navy);
  color: var(--stone);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
}
.callout h2 { color: var(--white); }
.callout .btn-primary { margin: 4px; }

table.gift-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
table.gift-table th, table.gift-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
table.gift-table th {
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--navy-dark);
  background-image: var(--grain);
  border-top: 4px solid var(--gold);
  color: var(--stone);
  padding: 48px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: var(--stone); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(246,244,239,0.6);
  font-size: 0.82rem;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge-pill {
  display: inline-block;
  background: var(--stone);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

/* ---------- Live fundraising progress ---------- */
.progress-widget {
  max-width: 560px;
}
.progress-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.section--alt .progress-label,
.section .progress-label {
  color: var(--old-glory-red);
}
.progress-amounts {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.progress-bar-track {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
}
.section--alt .progress-bar-track,
.section .progress-bar-track {
  background: var(--stone);
  border-color: var(--border);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px;
  transition: width 0.6s ease;
}
.progress-pct {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
}
.section--alt .progress-pct,
.section .progress-pct {
  color: var(--old-glory-red);
}

/* ---------- Update cards (project timeline) ---------- */
.update-card {
  background-color: var(--white);
  background-image: var(--grain);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.update-card .update-date {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--old-glory-red);
  margin-bottom: 6px;
}
.update-card h3 { margin-bottom: 8px; }
.update-card .update-body { color: var(--ink-soft); }
.update-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.update-photos img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 3px solid var(--old-glory-red);
    padding: 10px 24px 18px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 6px; border-bottom: 1px solid var(--stone); }
  .nav-cta { margin-top: 8px; text-align: center; }
}
