/* ─── Variables ────────────────────────────────────────────────────────────── */
:root {
  --navy:       #000080;
  --green:      #1B5E20;
  --green-mid:  #2E7D32;
  --green-light:#E8F5E9;
  --gold:       #F9A825;
  --white:      #ffffff;
  --bg:         #ffffff;
  --bg-alt:     #f8fafc;
  --text:       #1a1a2e;
  --text-muted: #64748b;
  --border:     #e2e8f0;
  --gray-light: #f4f6f8;
  --header-h:   72px;
}

/* ─── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Oswald', sans-serif; font-weight: 700; line-height: 1.2; }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .65rem 1.5rem; border-radius: 4px;
  font-family: 'Oswald', sans-serif; font-size: .95rem; font-weight: 400;
  letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-mid); border-color: var(--green-mid); text-decoration: none; }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; text-decoration: none; }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--green); text-decoration: none; }
.btn--full { width: 100%; text-align: center; }
.btn--lg { padding: .85rem 2.5rem; font-size: 1.05rem; }

/* ─── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.15);
  height: var(--header-h);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; gap: 2rem;
}
.site-logo { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; }
.logo-text { font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: .03em; }
.logo-amp { color: var(--gold); }
.logo-sub { font-family: 'Open Sans', sans-serif; font-size: .65rem; color: rgba(255,255,255,.65); letter-spacing: .1em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.site-nav > a { color: rgba(255,255,255,.85); font-size: .875rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; transition: color .15s; }
.site-nav > a:hover { color: #fff; }
.nav-donate { background: var(--gold); color: var(--navy) !important; padding: .35rem .9rem; border-radius: 3px; font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nav-donate:hover { background: #f0a000; }

.nav-dropdown { position: relative; height: var(--header-h); display: flex; align-items: center; }
.nav-dropdown-toggle { background: none; border: none; cursor: pointer; color: rgba(255,255,255,.85); font-size: .875rem; font-weight: 600; letter-spacing: .02em; padding: 0; display: flex; align-items: center; gap: .3rem; font-family: 'Open Sans', sans-serif; height: 100%; }
.nav-dropdown-toggle:hover { color: #fff; }
.nav-caret { font-size: .7rem; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.12); min-width: 180px; padding: .5rem 0; z-index: 200; }
.nav-dropdown-menu a { display: block; padding: .55rem 1.1rem; color: var(--text); font-size: .85rem; transition: background .1s; }
.nav-dropdown-menu a:hover { background: var(--gray-light); text-decoration: none; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .25rem; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero--home {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background-image: url('../images/players-wide.jpg');
  background-size: cover; background-position: center top;
  overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,20,.55); }
.hero-content { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem; }
.hero-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; }
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: #fff; margin-bottom: 1rem; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.85); max-width: 520px; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.page-hero { background: var(--navy); padding: 3rem 1.5rem; text-align: center; }
.page-hero h1 { font-family: 'Oswald', sans-serif; font-size: 2.25rem; color: #fff; }
.page-hero p { color: rgba(255,255,255,.7); margin-top: .5rem; font-size: .95rem; }
.page-hero--sm { padding: 2rem 1.5rem; }

/* ─── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 4rem 1.5rem; }
.section--alt { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { font-family: 'Oswald', sans-serif; font-size: 2rem; color: var(--navy); text-align: center; margin-bottom: .5rem; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 2.5rem; }
.mission-text { max-width: 720px; margin: 0 auto; color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; text-align: center; }

/* ─── Photo Gallery ─────────────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── Programs Grid ─────────────────────────────────────────────────────────── */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.program-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 2rem; text-align: center; }
.program-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.program-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.3rem; color: var(--navy); margin-bottom: .75rem; }
.program-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin-bottom: 1.5rem; }

/* ─── Products Grid (golf tournament) ───────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; position: relative; display: flex; flex-direction: column; gap: .75rem; }
.product-card--featured { border-color: var(--green); border-width: 2px; }
.product-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .75rem; border-radius: 20px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.product-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.1rem; color: var(--navy); }
.product-price { font-family: 'Oswald', sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--green); }
.product-desc { color: var(--text-muted); font-size: .85rem; line-height: 1.5; flex: 1; }
.product-card .btn { margin-top: auto; text-align: center; }

/* ─── Event Details ─────────────────────────────────────────────────────────── */
.event-details-card { background: var(--green-light); border: 1px solid #c8e6c9; border-radius: 8px; padding: 1.5rem 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem 2rem; }
.event-detail { font-size: .9rem; }
.event-detail strong { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-mid); margin-bottom: .2rem; }

/* ─── Checkout ──────────────────────────────────────────────────────────────── */
.checkout-wrap { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem; display: grid; grid-template-columns: 340px 1fr; gap: 2.5rem; align-items: start; }
.checkout-wrap--narrow { grid-template-columns: 280px 1fr; }

.checkout-summary { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.checkout-summary h2 { font-family: 'Oswald', sans-serif; font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.summary-product { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: .35rem; }
.summary-desc { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.summary-total { display: flex; justify-content: space-between; font-family: 'Oswald', sans-serif; font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--border); padding-top: .75rem; margin-top: .5rem; }
.summary-change { display: block; margin-top: 1rem; font-size: .8rem; color: var(--text-muted); }

.checkout-form-wrap h2 { font-family: 'Oswald', sans-serif; font-size: 1.15rem; color: var(--navy); margin-bottom: 1rem; }
.field-group { margin-bottom: 1.1rem; }
.field-group label { display: block; font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: .3rem; }
.field-group input, .field-group select, .field-group textarea {
  width: 100%; padding: .6rem .85rem; border: 1px solid var(--border); border-radius: 6px;
  font-size: .9rem; font-family: inherit; background: #fff; transition: border-color .15s;
}
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,94,32,.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-alert { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: .875rem; }
.form-alert--error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.form-alert--success { background: var(--green-light); color: var(--green-mid); border: 1px solid #c8e6c9; }

/* Amount presets */
.amount-presets { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .25rem; }
.amount-btn { padding: .45rem 1rem; border: 2px solid var(--border); border-radius: 4px; background: #fff; font-family: 'Oswald', sans-serif; font-size: .95rem; cursor: pointer; transition: border-color .15s, background .15s; }
.amount-btn:hover, .amount-btn.active { border-color: var(--green); background: var(--green-light); }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.input-prefix span { padding: .6rem .85rem; background: var(--gray-light); color: var(--text-muted); font-weight: 600; border-right: 1px solid var(--border); }
.input-prefix input { border: none; border-radius: 0; flex: 1; }
.input-prefix input:focus { outline: none; box-shadow: none; }

/* ─── Result Page ───────────────────────────────────────────────────────────── */
.result-page { display: flex; justify-content: center; padding: 4rem 1.5rem; }
.result-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 2.5rem 2rem; max-width: 480px; width: 100%; text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.result-icon { font-size: 3rem; margin-bottom: 1rem; }
.result-card h1 { font-family: 'Oswald', sans-serif; font-size: 1.75rem; color: var(--navy); margin-bottom: .75rem; }
.result-card p { color: var(--text-muted); margin-bottom: .5rem; line-height: 1.6; }
.receipt { background: var(--bg-alt); border-radius: 6px; padding: 1rem; margin: 1.25rem 0; text-align: left; }
.receipt-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .35rem 0; }
.receipt-total { display: flex; justify-content: space-between; font-weight: 700; border-top: 1px solid var(--border); padding-top: .5rem; margin-top: .5rem; }
.event-reminder { background: var(--green-light); border-radius: 6px; padding: .85rem 1rem; margin: 1rem 0; font-size: .875rem; text-align: left; line-height: 1.6; }

/* ─── Sponsors ──────────────────────────────────────────────────────────────── */
.sponsors-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3rem 4rem; padding: 1rem 0; }
.sponsor-item img { max-height: 80px; max-width: 240px; width: auto; height: auto; object-fit: contain; filter: grayscale(20%); transition: filter .2s; }
.sponsor-item img:hover { filter: grayscale(0%); }

/* ─── Board ─────────────────────────────────────────────────────────────────── */
.board-list { display: flex; flex-direction: column; gap: 1.5rem; }
.board-member { padding: 1.5rem; background: var(--bg-alt); border-radius: 8px; border: 1px solid var(--border); }
.board-member h3 { font-family: 'Oswald', sans-serif; font-size: 1.2rem; color: var(--navy); margin-bottom: .2rem; }
.board-title { font-size: .8rem; font-weight: 700; color: var(--green-mid); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6rem; }
.board-bio { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* ─── Donate CTA ────────────────────────────────────────────────────────────── */
.donate-cta { background: var(--navy); }
.donate-cta .section-title { color: #fff; }
.donate-cta .section-sub { color: rgba(255,255,255,.7); }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { background: #0f1729; color: rgba(255,255,255,.7); padding: 3rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-brand .logo-text { font-size: 1.1rem; }
.footer-tagline { font-size: .8rem; color: rgba(255,255,255,.4); margin-top: .4rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-links strong { display: block; color: #fff; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .6rem; }
.footer-links a { display: block; color: rgba(255,255,255,.6); font-size: .875rem; margin-bottom: .35rem; transition: color .15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem; font-size: .8rem; color: rgba(255,255,255,.4); display: flex; flex-direction: column; gap: .25rem; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: flex-start;
    padding: 1rem 1.5rem; gap: 0; border-top: 1px solid rgba(255,255,255,.1);
  }
  .site-nav.open { display: flex; }
  .nav-dropdown { height: auto; flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-dropdown-toggle { height: auto; }
  .site-nav > a, .nav-dropdown-toggle { padding: .65rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-dropdown-menu { position: static; transform: none; box-shadow: none; border: none; border-radius: 0; background: rgba(255,255,255,.06); padding: 0; min-width: 0; width: 100%; }
  .nav-dropdown-menu a { color: rgba(255,255,255,.7); padding: .5rem 1rem; }
  .nav-dropdown-menu a:hover { background: rgba(255,255,255,.1); }
  .nav-donate { background: none; padding: .65rem 0; color: rgba(255,255,255,.85) !important; }

  .checkout-wrap, .checkout-wrap--narrow { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}
