/* ==========================================================================
   OG Elite Basketball Foundation — Global Styles
   Clean, readable design matching ogelitebasketball.com
   ========================================================================== */

:root {
  /* OG Elite brand: red / black / white (matches ogelitebasketball.com) */
  --navy:      #141417;   /* near-black — headings & dark sections */
  --navy-2:    #1f1f24;
  --navy-soft: #7a1228;   /* dark maroon — used in hero gradient */
  --orange:    #c12544;   /* primary crimson (brand accent) */
  --orange-dk: #7a1228;   /* dark maroon (hover) */
  --red-br:    #d62e50;   /* bright pink-red highlight */
  --gold:      #ffc21a;   /* yellow — reserved for Donate */
  --gold-dk:   #e6a900;
  --silver:    #b8bfc7;
  --ink:       #141417;
  --muted:     #5c5c63;
  --line:      #e6e6e9;
  --bg:        #ffffff;
  --bg-soft:   #f6f6f7;
  --bg-soft-2: #eeeef0;
  --radius:    14px;
  --shadow:    0 10px 30px rgba(20, 20, 23, 0.12);
  --shadow-sm: 0 4px 14px rgba(20, 20, 23, 0.10);
  --maxw:      1140px;
  --font:      'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Sora', 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-quote:'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.hl { color: var(--red-br); }  /* pink-red highlight for headline accents */
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }

a { color: var(--orange-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: .8rem;
}

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #dfe6ef; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: 48px 0; }

.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--orange-dk); }
/* Donate buttons use the brand crimson to match ogelitebasketball.com.
   (The one big yellow Donate bubble on the donate page uses .donate-bubble.) */
.btn--gold { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--orange-dk); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn--lg { font-size: 1.1rem; padding: 16px 34px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--orange);
  display: grid; place-items: center;
  font-weight: 800;
  font-family: var(--font-head);
  font-size: .95rem;
  flex: 0 0 auto;
}
.brand__sub { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--orange-dk); font-weight: 700; }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); margin: 5px 0;
  transition: .2s;
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,46,80,.40), transparent 70%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding: 86px 0;
  position: relative; z-index: 1;
}
.hero h1 { color: #fff; }
.hero p { color: #cdd7e3; font-size: 1.2rem; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: #eaf1f9;
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding: 60px 0; gap: 32px; }
}

/* ---------- Photos (shown in full, not cropped) ---------- */
.photo { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Mission statement card (hero) ---------- */
.mission-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--orange);
}
.mission-card h3 { margin: 2px 0 14px; font-size: 1.5rem; }
.mission-card p { font-size: .97rem; line-height: 1.6; color: #33333a; }
.mission-card p:last-child { margin-bottom: 0; }

/* ---------- Placeholder blocks (for user's own images) ---------- */
.ph {
  position: relative;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #f2f2f4 0 14px, #e9e9ec 14px 28px);
  border: 2px dashed #c7c7cd;
  display: grid; place-items: center;
  text-align: center;
  color: #6b6b72;
  min-height: 240px;
  padding: 24px;
  overflow: hidden;
}
.ph--dark {
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(193,37,68,.30), transparent 55%),
    repeating-linear-gradient(45deg, #201016 0 14px, #141417 14px 28px);
  border-color: rgba(255,255,255,.25);
  color: #d8c2c8;
}
.ph__label { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #3a3a40; }
.ph--dark .ph__label { color: #f5e8ec; }
.ph__hint { font-size: .82rem; margin-top: 6px; opacity: .85; }
.ph__icon { font-size: 2rem; margin-bottom: 8px; }
.ph--tall { min-height: 360px; }
.ph--wide { min-height: 300px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.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: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(232,119,34,.12); color: var(--orange-dk);
  display: grid; place-items: center; font-size: 1.4rem;
  margin-bottom: 16px;
}
.card__link { font-weight: 600; display: inline-block; margin-top: 8px; }

/* two-column feature */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature--reverse .feature__media { order: 2; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature--reverse .feature__media { order: 0; } }

/* quote / callout box */
.callout {
  background: var(--bg-soft);
  border-left: 5px solid var(--orange);
  border-radius: 10px;
  padding: 24px 28px;
  font-size: 1.25rem;
  font-family: var(--font-quote);
  font-style: italic;
  line-height: 1.4;
  color: var(--navy);
}
.callout strong { color: var(--orange-dk); }

/* progress bar */
.progress-wrap { background: #fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.progress { height: 18px; background: var(--bg-soft-2); border-radius: 999px; overflow: hidden; margin: 12px 0; }
.progress__bar { height: 100%; width: 48%; background: linear-gradient(90deg, var(--orange), var(--gold)); border-radius: 999px; }
.progress__meta { display: flex; justify-content: space-between; font-weight: 600; color: var(--muted); font-size: .9rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat__label { color: var(--muted); font-weight: 600; margin-top: 6px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Board members ---------- */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .board-grid { grid-template-columns: 1fr; } }
.member { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); }
.member__photo { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.member .ph { border-radius: 0; min-height: 0; aspect-ratio: 1/1; border-width:0 0 2px 0; }
.member__body { padding: 22px 22px 26px; }
.member__name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--navy); margin: 0; }
.member__role { color: var(--orange-dk); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 12px; }
.member__bio { font-size: .96rem; color: var(--muted); margin-bottom: 12px; }
.member__email { font-size: .9rem; font-weight: 600; }

/* ---------- Grant / form ---------- */
.form-embed {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.form-embed iframe { width: 100%; border: 0; display: block; min-height: 1200px; }
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700;
}

/* ---------- Donate page ---------- */
.donate-hero { text-align: center; }
.donate-bubble {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: min(300px, 78vw); height: min(300px, 78vw);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd44d, var(--gold) 55%, var(--gold-dk));
  color: var(--navy);
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  box-shadow: 0 18px 50px rgba(230,169,0,.5), inset 0 -8px 24px rgba(0,0,0,.08);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .2s ease;
  margin: 20px auto;
  animation: bob 3s ease-in-out infinite;
}
.donate-bubble:hover { transform: scale(1.05); text-decoration: none; box-shadow: 0 24px 60px rgba(230,169,0,.6); }
.donate-bubble small { font-size: .9rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

.tier { display:flex; gap:18px; align-items:flex-start; background:#fff; border:1px solid var(--line); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.tier__amt { font-family: var(--font-head); font-weight:800; color: var(--orange); font-size: 1.4rem; flex:0 0 auto; min-width: 78px; }
.tier__name { font-weight:700; color: var(--navy); }

/* ---------- Partners ---------- */
.partner { display:flex; flex-direction:column; }
.partner-slot { min-height:150px; width:100%; }
.partner-logo { width:100%; height:150px; object-fit:contain; padding:10px; }
.partner-name { margin:14px 0 2px; font-family:var(--font-head); font-weight:700; color:var(--navy); }
.partner-loc { margin:0; font-size:.85rem; color:var(--muted); }

/* ---------- Trust / Candid seal ---------- */
.trust-bar { background: var(--bg-soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.trust-inner { display:flex; align-items:center; justify-content:center; gap: 40px; flex-wrap: wrap; padding: 28px 0; }
.trust-item { display:flex; align-items:center; gap:12px; color: var(--muted); font-weight:600; font-size:.95rem; }
.trust-item strong { color: var(--navy); }

/* Candid / Transparency seal (placeholder – swap with official embed) */
.candid-seal {
  width: 132px; height: 132px; border-radius: 50%;
  background: linear-gradient(145deg, #d9dee4, #a9b2bd);
  color: var(--navy);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding: 12px;
  box-shadow: inset 0 2px 6px rgba(255,255,255,.6), var(--shadow-sm);
  border: 3px solid #c3cad3;
  flex: 0 0 auto;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
}
a.candid-seal:hover { transform: translateY(-2px); text-decoration: none; box-shadow: inset 0 2px 6px rgba(255,255,255,.6), var(--shadow); }
.candid-seal .cs-top { font-size:.6rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.candid-seal .cs-star { font-size: 1.5rem; color:#6b7480; margin: 2px 0; }
.candid-seal .cs-mid { font-family: var(--font-head); font-weight:800; font-size:.9rem; line-height:1.05; }
.candid-seal .cs-bot { font-size:.58rem; font-weight:700; letter-spacing:.08em; margin-top:3px; }

/* ---------- Legal ---------- */
.legal-box { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-sm); }
.legal-box dl { display:grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin:0; }
.legal-box dt { font-weight:700; color: var(--navy); }
.legal-box dd { margin:0; color: var(--muted); }
@media (max-width:560px){ .legal-box dl { grid-template-columns: 1fr; gap:2px 0; } .legal-box dd{ margin-bottom:10px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b7c4d4; padding: 56px 0 28px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color:#fff; font-size:1rem; margin-bottom: 14px; }
.site-footer a { color:#b7c4d4; }
.site-footer a:hover { color:#fff; }
.footer-links { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.footer-brand .brand { color:#fff; }
.footer-brand .brand__sub { color:#8fa2b8; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:40px; padding-top:20px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.85rem; color:#8fa2b8; }

/* ---------- Donation popup modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(9,16,28,.62);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s ease;
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal {
  background: #fff;
  border-radius: 20px;
  max-width: 440px; width: 100%;
  padding: 40px 34px 34px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  position: relative;
  transform: translateY(14px) scale(.98);
  transition: transform .25s ease;
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal__badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center; margin: 0 auto 18px;
  font-size: 1.8rem; box-shadow: var(--shadow-sm);
}
.modal h3 { font-size: 1.6rem; margin-bottom: .4em; }
.modal p { color: var(--muted); margin-bottom: 1.4em; }
.modal__close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 1.6rem; line-height: 1;
  color: #9aa6b3; cursor: pointer; padding: 6px;
}
.modal__close:hover { color: var(--navy); }
.modal .btn { width: 100%; justify-content: center; }
.modal__dismiss { display:block; margin-top: 14px; background:none; border:none; color:#9aa6b3; font-size:.9rem; cursor:pointer; text-decoration: underline; }

/* editor note (visible to site owner, easy to find & remove) */
.editor-note {
  background: #fff7e6; border: 1px dashed #f0c453; color: #7a5b00;
  border-radius: 10px; padding: 12px 16px; font-size: .88rem; margin: 14px 0;
}
.editor-note strong { color: #6a4e00; }
