/* =========================================
   AMERICAN LEGION POST 127 — REDESIGN
   Bold, graphic, photo-forward
   ========================================= */

:root {
  --navy:   #0f1f3d;
  --navy2:  #162b50;
  --red:    #c0181a;
  --red2:   #a01215;
  --gold:   #c9943a;
  --gold2:  #e8b050;
  --cream:  #f8f5ef;
  --stone:  #ede9e0;
  --text:   #1a1a1a;
  --muted:  #5c5c5c;
  --white:  #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
address { font-style: normal; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(15,31,61,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red);
}
.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; height: 68px; gap: 2rem;
}
.logo-link { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.legion-emblem { height: 44px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-top { color: var(--gold); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.logo-name { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; }
.logo-loc { color: rgba(255,255,255,0.45); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; }

.main-nav { display: flex; gap: 0; margin-left: auto; }
.nav-link {
  color: rgba(255,255,255,0.7); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--gold); }
.nav-toggle { display:none; background:none; border:none; color:#fff; font-size:1.5rem; cursor:pointer; margin-left:auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 0.85rem 2rem; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; border-radius: 2px;
  cursor: pointer; border: 2px solid transparent; transition: all 0.2s;
}
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red2); border-color: var(--red2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy2); }
.btn-outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; }

/* ===== HERO — full bleed with overlay ===== */
.hero {
  position: relative;
  height: 100vh; min-height: 620px; max-height: 860px;
  display: flex; align-items: flex-end;
  margin-top: 68px;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,31,61,0.1) 0%,
    rgba(15,31,61,0.25) 40%,
    rgba(15,31,61,0.88) 80%,
    rgba(15,31,61,1) 100%
  );
}
.hero-accent {
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--red);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; padding: 0 0 5rem;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--gold); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-label::before {
  content: ''; display: block; width: 32px; height: 2px; background: var(--gold);
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900; color: #fff; line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero-headline em { color: var(--gold2); font-style: normal; }
.hero-sub {
  color: rgba(255,255,255,0.72); font-size: 1.05rem; line-height: 1.8;
  max-width: 540px; margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats strip */
.hero-stats {
  background: var(--red);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-stat {
  padding: 1.5rem; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1;
}
.hero-stat-label {
  display: block; color: rgba(255,255,255,0.72);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; margin-top: 0.3rem;
}

/* ===== PILLARS ===== */
.pillars { background: var(--cream); padding: 6rem 0; }
.pillars-heading { text-align: center; margin-bottom: 4rem; }
.section-kicker {
  display: inline-block; color: var(--red); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); font-weight: 700;
}
.pillars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid #d6d0c8;
}
.pillar {
  padding: 3rem 2rem; border-right: 1px solid #d6d0c8;
  background: var(--white);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.pillar:last-child { border-right: none; }
.pillar:hover {
  background: var(--navy); transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15,31,61,0.18);
  position: relative; z-index: 2;
}
.pillar:hover .pillar-icon { color: var(--gold); }
.pillar:hover .pillar-title { color: #fff; }
.pillar:hover .pillar-text { color: rgba(255,255,255,0.65); }
.pillar-icon { font-size: 2.4rem; color: var(--red); line-height: 1; margin-bottom: 1.25rem; transition: color 0.25s; }
.pillar-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; transition: color 0.25s; }
.pillar-text { font-size: 0.9rem; color: var(--muted); line-height: 1.7; transition: color 0.25s; }

/* ===== SPLIT SECTION ===== */
.split-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; }
.split-photo { position: relative; overflow: hidden; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,31,61,0.4), transparent);
}
.split-text {
  background: var(--navy); padding: 5rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
}
.split-text .section-kicker { color: var(--gold); margin-bottom: 0.75rem; }
.split-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.75rem); color: #fff;
  font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2;
}
.split-body { color: rgba(255,255,255,0.68); font-size: 0.975rem; line-height: 1.85; margin-bottom: 2rem; }

/* ===== QUOTE BAND ===== */
.quote-band {
  position: relative; overflow: hidden;
  padding: 5rem 0; background: var(--red); text-align: center;
}
.quote-band::before {
  content: '"'; position: absolute; top: -2rem; left: 50%; transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 18rem; color: rgba(255,255,255,0.08); line-height: 1; pointer-events: none;
}
.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem); color: #fff;
  font-weight: 700; max-width: 700px; margin: 0 auto 1rem; line-height: 1.25; position: relative;
}
.quote-attr { color: rgba(255,255,255,0.6); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; position: relative; }

/* ===== LOCATION ===== */
.location-section { background: var(--cream); padding: 6rem 0; }
.location-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.location-eyebrow { color: var(--red); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem; }
.location-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--navy); font-weight: 700; margin-bottom: 1.5rem; }
.location-card { background: var(--white); border-left: 4px solid var(--red); padding: 1.75rem 2rem; margin-bottom: 2rem; }
.location-card address { line-height: 2.2; font-size: 0.95rem; }
.location-card a { color: var(--red); font-weight: 600; }
.location-card a:hover { text-decoration: underline; }
.map-wrap iframe { display: block; width: 100%; height: 400px; border: none; box-shadow: 0 8px 40px rgba(0,0,0,0.12); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative; overflow: hidden; margin-top: 68px;
  background: var(--navy); padding: 5.5rem 1.5rem 4rem; text-align: center;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: var(--red);
}
.page-hero-kicker { color: var(--gold); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4rem); color: #fff; font-weight: 900; line-height: 1.1; }
.page-hero p { color: rgba(255,255,255,0.6); margin-top: 1rem; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ===== CONTENT ===== */
.content-section { padding: 5.5rem 0; }
.content-section.bg-cream { background: var(--cream); }
.content-section.bg-navy { background: var(--navy); }

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--navy); margin: 3rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.85; }
.prose a { color: var(--red); font-weight: 600; }

/* ===== TIMELINE ===== */
.timeline { max-width: 680px; margin: 3rem auto 0; }
.timeline-item { display: grid; grid-template-columns: 100px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--stone); align-items: start; }
.timeline-item:last-child { border-bottom: none; }
.t-year { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--red); line-height: 1.2; }
.t-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.t-body p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ===== PROGRAM CARDS ===== */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2px; background: var(--stone); border: 2px solid var(--stone); }
.program-card { background: var(--white); padding: 2.5rem 2rem; transition: background 0.2s; }
.program-card:hover { background: var(--cream); }
.prog-num { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--stone); line-height: 1; margin-bottom: 0.5rem; }
.prog-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 0.85rem; }
.prog-body { font-size: 0.9rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.25rem; }
.prog-link { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.prog-link:hover { text-decoration: underline; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy); margin-bottom: 2rem; }
.contact-detail { display: flex; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--stone); }
.contact-detail:last-child { border-bottom: none; }
.cd-icon { width: 40px; height: 40px; background: var(--navy); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }
.cd-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.cd-value { font-size: 0.95rem; color: var(--navy); }
.cd-value a { color: var(--red); font-weight: 600; }
.cd-value a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); border-top: 4px solid var(--red); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 4rem 0 3rem; }
.footer-brand img { height: 56px; opacity: 0.9; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 { color: var(--gold); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.55); font-size: 0.875rem; line-height: 2; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 0; text-align: center; color: rgba(255,255,255,0.3); font-size: 0.75rem; }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .split-photo { height: 300px; }
  .location-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .main-nav.open { display: flex; }
  .header-inner { position: relative; }
  .split-text { padding: 3rem 1.5rem; }
}
