/* ============================================================
   NJFOGR — Main Stylesheet
   Navy/Gold Military Aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ---- CSS Variables --------------------------------------- */
:root {
  --navy-900: #060e1c;
  --navy-800: #0a1628;
  --navy-700: #122038;
  --navy-600: #162444;
  --navy-400: #2a4070;
  --navy-200: #6880a8;
  --navy-100: #a8b4cc;
  --navy-50:  #e8edf5;

  --gold-700: #a07820;
  --gold-600: #b58c28;
  --gold-500: #c9a84c;
  --gold-400: #d4b868;
  --gold-200: #e8d4a0;
  --gold-100: #f5ecd0;
  --gold-50:  #fdf8ee;

  --white:    #ffffff;
  --off-white:#f5f4f0;
  --gray-100: #e8e6e0;
  --gray-200: #ccc9c0;
  --gray-400: #888070;
  --gray-600: #555048;
  --gray-800: #2a2720;

  --success:  #1a6b3c;
  --danger:   #8b1a1a;
  --warning:  #7a5500;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);

  --max-width: 1100px;
  --nav-height: 64px;
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--off-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-800); text-decoration: none; }
a:hover { color: var(--gold-500); }

/* ---- Announcement ribbon --------------------------------- */
.ribbon {
  background: var(--gold-500);
  color: var(--navy-800);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ribbon a { color: var(--navy-800); text-decoration: underline; }

/* ---- Navigation ------------------------------------------ */
.site-nav {
  background: var(--navy-800);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.nav-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: var(--gold-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-brand .brand-icon svg { width: 20px; height: 20px; }
.nav-brand span { color: var(--gold-500); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  color: var(--navy-100);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-500);
  background: rgba(201,168,76,0.08);
}
.nav-links .btn-nav {
  background: var(--gold-500);
  color: var(--navy-800) !important;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-links .btn-nav:hover {
  background: var(--gold-400);
  color: var(--navy-800) !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--white);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
  transition: all 0.3s;
}

/* ---- Hero ------------------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--navy-600) 100%);
  padding: 80px 24px 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 500px; height: 500px;
  border: 60px solid rgba(201,168,76,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  color: var(--gold-500);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 em {
  color: var(--gold-500);
  font-style: normal;
}
.hero-lead {
  color: var(--navy-100);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
}
.hero-stat { margin-bottom: 20px; }
.hero-stat:last-child { margin-bottom: 0; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold-500);
  font-weight: 700;
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--navy-200);
  margin-top: 3px;
}
.hero-divider {
  border: none;
  border-top: 0.5px solid rgba(201,168,76,0.2);
  margin: 16px 0;
}

/* ---- Stats band ------------------------------------------ */
.stats-band {
  background: var(--navy-900);
  padding: 0;
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 22px 24px;
  text-align: center;
  border-right: 0.5px solid rgba(255,255,255,0.06);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-500);
  font-weight: 700;
}
.stat-label {
  font-size: 11px;
  color: #4a5a70;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 3px;
}

/* ---- Sections -------------------------------------------- */
.section {
  padding: 64px 24px;
}
.section-white { background: var(--white); }
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-header { margin-bottom: 36px; }
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy-800);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 16px;
  color: var(--gray-400);
  max-width: 540px;
}

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
  line-height: 1;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-800);
}
.btn-primary:hover { background: var(--gold-400); color: var(--navy-800); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-secondary:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-600); color: var(--white); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy-800);
  border: 1px solid var(--navy-400);
}
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ---- Cards ----------------------------------------------- */
.card {
  background: var(--white);
  border: 0.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-img {
  height: 180px;
  background: var(--navy-700);
  position: relative;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold-500);
  color: var(--navy-800);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-body { padding: 20px; }
.card-date {
  font-size: 11px;
  color: var(--navy-200);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy-800);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}
.card-excerpt {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 14px;
}
.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-600);
}
.card-link:hover { color: var(--gold-500); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---- Golf tournament section ----------------------------- */
.golf-banner {
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: center;
}
.golf-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}
.golf-title span { color: var(--gold-500); }
.golf-desc { color: var(--navy-100); font-size: 14px; margin-bottom: 20px; }
.golf-meta { display: flex; gap: 28px; margin-bottom: 24px; }
.golf-meta-item strong {
  display: block;
  font-size: 10px;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.golf-meta-item span { color: var(--navy-100); font-size: 14px; }
.golf-btns { display: flex; gap: 12px; }
.golf-progress-wrap { text-align: center; }
.golf-progress-label {
  font-size: 11px;
  color: #6a7a96;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.golf-progress-ring { position: relative; width: 130px; height: 130px; margin: 0 auto; }
.golf-progress-ring svg { width: 130px; height: 130px; }
.golf-progress-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.golf-progress-pct {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-500);
  font-weight: 700;
  line-height: 1;
}
.golf-progress-sub { font-size: 10px; color: #6a7a96; }

.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.tier-card {
  background: var(--navy-700);
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  transition: border-color 0.2s;
}
.tier-card.featured { border-color: var(--gold-500); border-width: 1px; }
.tier-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.tier-card.featured .tier-name { color: var(--gold-500); }
.tier-card:not(.featured) .tier-name { color: var(--navy-200); }
.tier-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 8px;
}
.tier-perks { font-size: 11px; color: #5a6a80; line-height: 1.6; }

/* ---- Donate strip ---------------------------------------- */
.donate-strip {
  background: var(--gold-500);
  padding: 36px 24px;
}
.donate-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.donate-strip h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy-800);
  font-weight: 700;
  margin-bottom: 4px;
}
.donate-strip p { font-size: 14px; color: #3d2e0a; }
.donate-amounts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.amt-btn {
  background: rgba(10,22,40,0.10);
  color: var(--navy-800);
  border: 1px solid rgba(10,22,40,0.2);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.amt-btn:hover,
.amt-btn.active {
  background: var(--navy-800);
  color: var(--gold-500);
  border-color: var(--navy-800);
}
.paypal-btn {
  background: #003087;
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.paypal-btn:hover { background: #001f5b; color: var(--white); }

/* ---- Mission section ------------------------------------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.mission-text h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--navy-800);
  margin-bottom: 16px;
}
.mission-text p { color: var(--gray-600); margin-bottom: 16px; }
.mission-badge {
  background: var(--navy-50);
  border-left: 3px solid var(--gold-500);
  padding: 16px 20px;
  margin-top: 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.mission-badge p { margin: 0; font-size: 14px; font-style: italic; color: var(--navy-600); }
.mission-features { display: grid; gap: 16px; }
.mission-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; color: var(--gold-700); }
.feature-text h4 { font-size: 15px; font-weight: 600; color: var(--navy-800); margin-bottom: 4px; }
.feature-text p { font-size: 13px; color: var(--gray-400); margin: 0; line-height: 1.5; }

/* ---- Page header ----------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: 48px 24px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 10px;
}
.page-header p {
  color: var(--navy-100);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--navy-200);
  margin-bottom: 14px;
  list-style: none;
}
.breadcrumb a { color: var(--gold-400); }
.breadcrumb li::after { content: '›'; margin-left: 8px; }
.breadcrumb li:last-child::after { content: ''; }

/* ---- Forms ----------------------------------------------- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--navy-400);
  box-shadow: 0 0 0 3px rgba(42,64,112,0.12);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Flash messages -------------------------------------- */
.flash {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}
.flash-success { background: #e8f5ec; color: var(--success); border-left: 3px solid var(--success); }
.flash-error   { background: #f5e8e8; color: var(--danger);  border-left: 3px solid var(--danger); }
.flash-warning { background: #fdf4e3; color: var(--warning); border-left: 3px solid var(--warning); }
.flash-info    { background: var(--navy-50); color: var(--navy-700); border-left: 3px solid var(--navy-400); }

/* ---- Footer ---------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}
.footer-brand-name span { color: var(--gold-500); }
.footer-desc { font-size: 13px; color: #3a4a60; line-height: 1.7; margin-bottom: 16px; }
.footer-501 {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  border: 0.5px solid rgba(201,168,76,0.25);
  color: var(--gold-400);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}
.footer-col h5 {
  font-size: 11px;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: #3a4a60;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--navy-100); }
.footer-bottom {
  border-top: 0.5px solid #0f1e32;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 12px; color: #2a3a50; }
.footer-powered { font-size: 11px; color: #1a2a3a; }

/* ---- Utilities ------------------------------------------- */
.text-center { text-align: center; }
.text-gold { color: var(--gold-500); }
.text-navy { color: var(--navy-800); }
.text-muted { color: var(--gray-400); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none; }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--navy-800);
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: 1fr; }
  .golf-banner { grid-template-columns: 1fr; }
  .golf-progress-wrap { display: none; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-strip-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .card-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
