/* ============================================================
   GOF, Shared Design System v3 (enhanced full-width megamenu)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --brand: #0A2540;
  --brand-light: #1B3A5C;
  --accent: #C9A227;
  --accent-light: #E0BF4D;
  --action: #C0392B;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --muted: #595959;
  --border: #E5E5E0;
  --shadow-sm: 0 1px 3px rgba(10,37,64,.06), 0 1px 2px rgba(10,37,64,.04);
  --shadow-md: 0 4px 16px rgba(10,37,64,.08), 0 2px 6px rgba(10,37,64,.04);
  --shadow-lg: 0 16px 48px rgba(10,37,64,.12), 0 4px 12px rgba(10,37,64,.06);
  --shadow-mega: 0 24px 56px rgba(10,37,64,.16), 0 8px 16px rgba(10,37,64,.08);
  --max-w: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--brand);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ============================================================
   UTILITY BAR (slim, no duplicate Contact)
   ============================================================ */
.utility-bar { background: var(--brand); color: #fff; font-size: 12px; padding: 8px 0; }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.util-tag { color: rgba(255,255,255,.7); letter-spacing: 0.04em; font-weight: 500; }
.util-links { display: flex; align-items: center; gap: 14px; }
.utility-bar a { opacity: .85; transition: opacity .15s, color .15s; }
.utility-bar a:hover { opacity: 1; color: var(--accent-light); }
.utility-bar .sep { opacity: .3; }
.util-links .lang { display: inline-flex; gap: 6px; padding-left: 6px; }
.util-links .lang a { font-weight: 600; font-size: 11px; padding: 2px 6px; border-radius: 3px; }
.util-links .lang a.active { background: rgba(201,162,39,.18); color: var(--accent-light); opacity: 1; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; position: relative;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 600; color: var(--brand);
  letter-spacing: -0.01em; z-index: 105; position: relative; white-space: nowrap;
}
.logo .accent { color: var(--accent); }

.nav-links { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-links > li { position: static; }
.nav-links > li:not(.has-mega) { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: color .15s, background .15s;
  padding: 10px 14px; border-radius: 4px;
}
.nav-links > li > a:hover { color: var(--brand); background: rgba(10,37,64,.04); }
.nav-links > li.active > a { color: var(--brand); }
.nav-links > li.active > a::before {
  content: ''; position: absolute; bottom: -2px; left: 14px; right: 14px;
  height: 2px; background: var(--accent);
}

.caret {
  display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .5;
  transition: transform .25s, opacity .15s; margin-top: 2px;
}
.has-mega:hover > a .caret, .has-mega:focus-within > a .caret {
  opacity: 1; transform: rotate(180deg);
}

/* ===== Full-width MEGAMENU ===== */
.megamenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  width: min(var(--max-w), calc(100vw - 64px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-mega);
  padding: 36px 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 90;
}
.megamenu::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.has-mega:hover > .megamenu, .has-mega:focus-within > .megamenu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-inner { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 36px; }
.mega-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.mega-col a {
  display: block; padding: 9px 12px 9px 12px; border-radius: 4px;
  margin-left: -12px; margin-right: -12px;
  transition: background .12s, transform .12s;
}
.mega-col a:hover { background: rgba(201,162,39,.06); transform: translateX(3px); }
.mega-col .mega-title {
  display: block; font-size: 14px; font-weight: 600; color: var(--brand);
  line-height: 1.3; margin-bottom: 2px;
}
.mega-col a:hover .mega-title { color: var(--accent); }
.mega-col .mega-desc {
  display: block; font-size: 12px; color: var(--muted); line-height: 1.45;
}

/* Featured panel */
.mega-feature {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; padding: 28px; border-radius: 10px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mega-feature.accent-feat { background: linear-gradient(160deg, #8B7220 0%, var(--accent) 100%); }
.mega-feature.action-feat { background: linear-gradient(160deg, #8B2820 0%, var(--action) 100%); }
.mega-feature .feat-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.85);
  padding: 4px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 100px;
  margin-bottom: 16px; width: fit-content;
}
.mega-feature h5 {
  font-family: 'Fraunces', serif; font-size: 22px; color: #fff; font-weight: 500;
  line-height: 1.2; margin-bottom: 10px;
}
.mega-feature p {
  font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.55; margin-bottom: 18px;
}
.mega-feature .feat-link {
  display: inline-block; font-size: 13px; font-weight: 600; color: #fff;
  padding-bottom: 2px; border-bottom: 2px solid rgba(255,255,255,.5);
  width: fit-content; transition: border-color .15s;
}
.mega-feature .feat-link:hover { border-color: #fff; }

/* Backdrop behind megamenu */
.mega-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,37,64,.25); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
  z-index: 80; pointer-events: none;
}
.mega-backdrop.visible { opacity: 1; visibility: visible; }

.btn-donate {
  background: var(--action) !important; color: #fff !important;
  padding: 10px 22px !important; border-radius: 4px;
  font-weight: 600 !important;
  transition: transform .15s, box-shadow .15s, background .15s !important;
  margin-left: 12px;
}
.btn-donate:hover {
  transform: translateY(-1px); box-shadow: var(--shadow-md);
  background: #a4332a !important;
}
.btn-donate::before { display: none !important; }

/* Mobile menu button */
.mobile-menu-btn {
  display: none; background: none; border: none;
  width: 36px; height: 36px; cursor: pointer;
  padding: 8px; position: relative; z-index: 110;
}
.mobile-menu-btn span {
  display: block; height: 2px; background: var(--brand);
  margin: 4px 0; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #0A2540 0%, #1B3A5C 100%);
  color: #fff; padding: 80px 0 60px;
}
.page-hero .breadcrumb {
  font-size: 13px; opacity: .75; margin-bottom: 16px; letter-spacing: 0.04em;
}
.page-hero .breadcrumb a { color: var(--accent-light); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(36px, 4.5vw, 60px); color: #fff;
  margin-bottom: 16px; font-weight: 500; max-width: 820px;
}
.page-hero p.lead {
  font-size: 18px; color: rgba(255,255,255,0.85);
  max-width: 720px; line-height: 1.55;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 4px;
  font-weight: 600; font-size: 15px; font-family: 'Inter', sans-serif;
  border: none; cursor: pointer; transition: all .15s;
  text-align: center; text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--brand); }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--brand); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--brand); }
.btn-action { background: var(--action); color: #fff; }
.btn-action:hover { background: #a4332a; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ============================================================
   SECTIONS
   ============================================================ */
section.block { padding: 80px 0; }
.section-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(30px, 3.5vw, 44px); margin-bottom: 16px; max-width: 800px;
}
.section-lead {
  font-size: 18px; color: var(--muted); max-width: 720px;
  margin-bottom: 48px; line-height: 1.6;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px; transition: all .2s;
}
.card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  background: #051628; color: rgba(255,255,255,0.7);
  padding: 60px 0 28px; font-size: 14px; margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; display: block; }
.footer-brand .logo .accent { color: var(--accent); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.footer-brand .ein { font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.site-footer h4 {
  color: #fff; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 16px; font-family: 'Inter', sans-serif;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.7); transition: color .15s; font-size: 13px; }
.site-footer a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], textarea, select {
  font-family: 'Inter', sans-serif; font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 4px; background: var(--surface); color: var(--text); width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}
label { font-size: 13px; font-weight: 600; color: var(--brand); display: block; margin-bottom: 6px; }

.badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(201,162,39,.15); color: #8E7220; letter-spacing: 0.04em;
}
.badge-brand { background: rgba(10,37,64,.08); color: var(--brand); }
.badge-green { background: rgba(46,125,50,.1); color: #2E7D32; }
.badge-red { background: rgba(192,57,43,.1); color: var(--action); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .nav-links > li > a { padding: 10px 10px; font-size: 13px; }
  .mega-inner { gap: 24px; }
}
@media (max-width: 1024px) {
  .mobile-menu-btn { display: block; }
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--surface); flex-direction: column; gap: 0;
    padding: 80px 24px 32px;
    transform: translateX(100%); transition: transform .35s ease;
    align-items: stretch; overflow-y: auto; z-index: 100;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { border-bottom: 1px solid var(--border); }
  .nav-links > li:last-child { border-bottom: none; padding-top: 16px; }
  .nav-links > li > a { padding: 16px 0; font-size: 16px; font-weight: 600; }
  .nav-links > li.active > a::before { display: none; }
  .has-mega > a .caret { margin-left: auto; }
  .megamenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 0 0 16px; width: auto; display: none;
  }
  .has-mega.expanded > .megamenu { display: block; }
  .has-mega.expanded > a .caret { transform: rotate(180deg); opacity: 1; }
  .mega-inner { grid-template-columns: 1fr; gap: 16px; }
  .mega-col h4 { font-size: 10px; margin-bottom: 8px; padding-bottom: 6px; }
  .mega-col a { padding: 8px 0; margin-left: 0; margin-right: 0; }
  .mega-col .mega-title { font-size: 14px; }
  .mega-feature { padding: 20px; }
  .mega-feature h5 { font-size: 18px; }
  .mega-backdrop { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .util-tag { display: none; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  section.block { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .utility-bar { padding: 6px 0; }
  .util-links { gap: 10px; font-size: 11px; }
}
