/* ============================================================
   Big Sky Little League — All-Star Fund
   Shared styles. Plain CSS, no build step, no framework.
   Brand carried over from the Command Center prototype.
   ============================================================ */

:root {
  /* Brand palette */
  --navy:    #0b1c33;
  --navy-2:  #16304f;
  --navy-3:  #2a4a6e;
  --cream:   #f4edd8;
  --cream-2: #fbf6e8;
  --paper:   #e4d8bd;
  --gold:    #e0b23c;
  --red:     #b4262b;
  --red-dark:#8f1c20;
  --green:   #2f7d4f;
  --ink:     #1c1a17;
  --muted:   #5c5340;
  --line:    #cdbf9f;
  --sky:     #8fb8dd;   /* light text on navy */
  --sky-dim: #6f92b5;

  --maxw: 1080px;
  --radius: 10px;
  --shadow: 0 10px 40px rgba(11,28,51,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* `hidden` is how the JS shows and hides things — make sure nothing outranks it. */
[hidden] { display: none !important; }

/* ---- Typography ---- */
.kicker {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}
.kicker--gold { color: var(--gold); }
h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: var(--navy);
}
h1 { font-size: clamp(38px, 7vw, 76px); letter-spacing: .01em; }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 8px; }
h3 { font-size: 22px; }
p  { text-wrap: pretty; }
a  { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
strong { color: inherit; }

.lede { max-width: 720px; font-size: 19px; }
.lede--tight { margin-bottom: 24px; }

/* Keyboard users get a real way past the hero. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--gold); color: var(--navy);
  font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .06em;
  font-size: 14px; padding: 12px 18px; border-radius: 0 0 6px 6px;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; text-decoration: none; color: var(--navy); }

/* One visible focus treatment for everything interactive. */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---- Layout ---- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 0 60px rgba(0,0,0,.18);
}
.section { padding: 56px clamp(20px, 5vw, 56px); }
.section--tight { padding-top: 28px; padding-bottom: 28px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 17px;
  padding: 15px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s, color .2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--primary { background: var(--red); color: var(--cream); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #cf9f2a; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: rgba(11,28,51,.06); color: var(--navy); }
.btn--on-dark { color: var(--cream); border-color: rgba(244,237,216,.4); }
.btn--on-dark:hover { background: rgba(244,237,216,.12); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { font-size: 19px; padding: 18px 34px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  min-height: 440px;            /* stands on its own with OR without a photo */
  display: flex;
  align-items: flex-end;
}
.hero__photo {
  position: absolute; inset: 0;  /* fills the hero; height no longer depends on it */
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .36;
  object-position: center 28%;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,28,51,.5) 0%, rgba(11,28,51,.35) 40%, rgba(11,28,51,.96) 100%);
}
.hero__body {
  position: relative; z-index: 1;  /* normal flow, sits above photo + scrim */
  width: 100%;
  padding: 40px clamp(20px, 5vw, 56px) 34px;
}
.hero__eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 13px;
  font-weight: 500;
  color: var(--sky);
}
.hero h1 { color: var(--cream); margin: 8px 0 0; }
.hero h1 .accent { color: var(--gold); display: block; }
.hero__lead {
  font-size: clamp(18px, 2.4vw, 21px);
  max-width: 640px;
  margin: 16px 0 0;
  color: #e9e0c8;
  line-height: 1.4;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Fact chips — the proof points, at a glance */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fact {
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: .06em; font-size: 12px; font-weight: 500;
  background: rgba(22,48,79,.85); border: 1px solid var(--navy-3);
  color: #dce8f4; border-radius: 20px; padding: 7px 15px;
}
.fact--urgent { border-color: var(--gold); color: var(--gold); }

/* ---- Progress / the road ---- */
.progress-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 30px clamp(20px, 4vw, 36px);
}
.progress-top {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 16px;
}
.progress-raised {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: clamp(38px, 6vw, 60px); line-height: .9; color: var(--gold);
  margin-top: 2px;
}
.progress-card.is-empty .progress-raised { color: var(--cream); }
.progress-goalbox { text-align: right; }
.progress-goal {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: 26px; line-height: 1.1; color: var(--cream); margin-top: 2px;
}
.progress-label {
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: .14em; font-size: 12px; color: var(--sky);
}
.progress-sub { font-size: 15px; color: var(--sky); margin-top: 6px; }

.road { margin-top: 24px; }
.road__track {
  position: relative; height: 16px; background: var(--navy-2);
  border-radius: 9px; margin-bottom: 10px;
  /* Faint mile ticks so the bar reads as a road, not a battery */
  background-image: repeating-linear-gradient(
    90deg, transparent 0 calc(10% - 2px), rgba(143,184,221,.28) calc(10% - 2px) 10%);
}
.road__fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 9px; transition: width .8s ease;
}
.road__pin {
  position: absolute; top: 50%; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--gold);
  transform: translate(-50%, -50%);
  transition: left .8s ease;
  box-shadow: 0 0 0 4px rgba(11,28,51,.55);
}
.road__ends {
  display: flex; justify-content: space-between;
  font-family: 'Oswald', sans-serif; font-size: 12px;
  letter-spacing: .06em; color: var(--sky-dim); text-transform: uppercase;
}

/* ---- Cards / where-it-goes ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.card {
  background: var(--cream-2); border: 1px solid var(--line);
  border-top: 4px solid var(--gold); border-radius: 8px; padding: 22px 20px;
}
.card h3 { color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--muted); }

/* ---- Give section ---- */
.give-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px clamp(18px, 3vw, 30px);
}
.panel--venmo { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.panel__title { font-size: 22px; display: flex; align-items: center; }
.panel__title--light { color: var(--cream); }
.panel__lead { margin-top: 14px; color: #c9d6e6; font-size: 17px; }
.panel__lead strong { color: var(--gold); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: 'Oswald', sans-serif;
  font-weight: 700; font-size: 16px; margin-right: 10px;
}
.step-num--gold { background: var(--gold); color: var(--navy); }

.mail-row {
  margin-top: 14px; background: var(--navy-2);
  border-radius: 8px; padding: 14px 16px;
}
.mail-row--center { margin: 16px auto 0; max-width: 420px; }
.mail-row__label {
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: .1em; font-size: 12px; color: var(--sky);
}
.mail-row__addr { color: var(--cream); font-size: 17px; margin-top: 4px; }

/* ---- Form ---- */
.gift-form { margin-top: 18px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: .06em; font-size: 12px; color: var(--muted); margin-bottom: 6px;
}
.field .req { color: var(--red); }
.field .opt {
  color: var(--muted); font-family: 'Newsreader', serif;
  text-transform: none; letter-spacing: 0; font-size: 13px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: 'Newsreader', serif; font-size: 16px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,28,51,.12);
}
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); }
.field textarea { resize: vertical; min-height: 72px; }

/* Amount box with a permanent dollar sign */
.money-input { display: flex; align-items: stretch; }
.money-input__sign {
  display: flex; align-items: center; padding: 0 14px;
  font-family: 'Oswald', sans-serif; font-size: 19px; color: var(--muted);
  background: var(--cream-2); border: 1px solid var(--line); border-right: none;
  border-radius: 6px 0 0 6px;
}
.money-input input { border-radius: 0 6px 6px 0; font-size: 19px; }

/* Suggested gifts — baseball names, real dollars, the mile math done for you */
/* Flex rather than grid so the last row stretches to fill — no ragged gap,
   whatever number of tiers CONFIG.tiers ends up holding. */
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  flex: 1 1 132px;
  display: flex; flex-direction: column; gap: 1px; text-align: left;
  font-family: 'Oswald', sans-serif; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--navy); cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.chip:hover { border-color: var(--navy); background: var(--cream-2); }
.chip__name { text-transform: uppercase; letter-spacing: .05em; font-size: 12px; color: var(--red); }
.chip__amt  { font-weight: 700; font-size: 21px; line-height: 1.05; }
.chip__miles{ font-size: 12px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.chip[aria-pressed="true"] {
  background: var(--navy); color: var(--cream); border-color: var(--navy);
}
.chip[aria-pressed="true"] .chip__name  { color: var(--gold); }
.chip[aria-pressed="true"] .chip__miles { color: var(--sky); }

/* Live "= N miles" feedback under the amount */
.readout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 10px; font-size: 15px; color: var(--muted); min-height: 26px;
}
.readout.is-on { color: var(--ink); }
.readout__tier {
  font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .07em;
  font-size: 11px; font-weight: 600; color: var(--navy);
  background: var(--gold); border-radius: 20px; padding: 3px 10px;
}

/* Optional extras, folded away so the form reads short */
.more {
  border-top: 1px solid var(--line); margin: 4px 0 18px; padding-top: 14px;
}
.more > summary {
  cursor: pointer; list-style: none;
  font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .06em;
  font-size: 13px; color: var(--red);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: '+ '; font-weight: 700; }
.more[open] > summary::before { content: '– '; }
.more > summary:hover { color: var(--red-dark); }
.more .field { margin-top: 14px; margin-bottom: 0; }

.form-note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.form-status { margin-top: 12px; font-size: 15px; min-height: 1.2em; }
.form-status.error { color: var(--red); }

/* Spam trap — off-screen rather than display:none so bots still find it */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* ---- Venmo panel ---- */
.venmo-handle {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 22px;
  color: var(--gold); letter-spacing: .02em;
}
.qr {
  background: #fff; border-radius: 10px; padding: 14px; width: 210px; height: 210px;
  display: flex; align-items: center; justify-content: center; margin: 16px 0;
}
.qr img { width: 100%; height: 100%; object-fit: contain; }
.venmo-note { font-size: 15px; color: #c9d6e6; margin-top: 18px; }
.venmo-note strong { color: #fff; }
.venmo-note a { color: var(--gold); }
.pill {
  display:inline-block; font-family:'Oswald',sans-serif; text-transform:uppercase;
  letter-spacing:.08em; font-size:11px; color:var(--navy); background:var(--gold);
  padding:4px 10px; border-radius:20px; font-weight:600;
}

/* ---- Supporter wall ---- */
.wall {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.wall li {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 20px;
  padding: 7px 16px; font-size: 15px; color: var(--navy);
}

/* ---- Footer ---- */
.foot {
  background: var(--navy); color: #cdd9e6;
  padding: 34px clamp(20px, 5vw, 56px);
  font-size: 15px;
}
.foot__note { max-width: 720px; }
.foot__note p { margin-top: 8px; }
.foot__contact { color: var(--sky); }
.foot__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid #1f3c5e; margin-top: 20px; padding-top: 16px;
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: .1em; font-size: 12px; color: var(--sky-dim);
}
.foot__row--bare { border-top: none; margin-top: 0; }
.foot a { color: var(--sky); }

/* ---- Thank-you page ---- */
.ty { text-align: center; max-width: 640px; margin: 0 auto; }
.ty__check {
  width: 74px; height: 74px; border-radius: 50%; background: var(--green);
  color: #fff; font-size: 40px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 18px;
}
.ty__head { font-size: clamp(30px, 5vw, 52px); }
.ty__lead { font-size: 20px; margin: 14px 0 0; }
.ty__back { margin-top: 30px; }
.ty .qr { margin: 20px auto; }
.ty-panel { margin-top: 22px; text-align: center; }
.ty-panel .panel__lead { color: #c9d6e6; }

/* The gift, restated in the campaign's own units */
.ty-receipt {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; margin-top: 22px;
}
.ty-receipt__cell { background: var(--cream-2); padding: 14px 12px; }
.ty-receipt__label {
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: .1em; font-size: 11px; color: var(--muted);
}
.ty-receipt__value {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 24px;
  line-height: 1.1; color: var(--navy); margin-top: 3px;
}
.ty-receipt__value--gold { color: var(--red); }

/* ---- Thank-you method switcher ---- */
.ty-switch {
  margin-top: 26px; font-size: 15px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center;
}
.ty-switch a { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }

/* ---- Pass it on ---- */
.share {
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line);
}
.share__head { font-size: clamp(22px, 3.4vw, 30px); margin-top: 4px; }
.share__sub { color: var(--muted); font-size: 16px; margin-top: 6px; }
.share__row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px;
}
.share__row .btn { font-size: 15px; padding: 12px 20px; }

/* ---- Step-2 preview list (donation page) ---- */
.next-steps {
  margin: 16px 0 0; padding-left: 22px;
  color: #c9d6e6; font-size: 16px; line-height: 1.45;
  display: flex; flex-direction: column; gap: 10px;
}
.next-steps li::marker { color: var(--gold); font-family: 'Oswald', sans-serif; font-weight: 700; }
.next-steps strong { color: var(--cream); }

/* ---- Payment-method segmented control ---- */
.seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff;
}
.seg__btn {
  font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; font-size: 15px; padding: 12px 8px;
  background: #fff; color: var(--navy); border: none; cursor: pointer;
  border-right: 1px solid var(--line); transition: background .15s, color .15s;
}
.seg__btn:last-child { border-right: none; }
.seg__btn:hover { background: rgba(11,28,51,.05); }
.seg__btn[aria-pressed="true"] { background: var(--navy); color: var(--cream); }

/* ---- Sticky give bar (phones) ----------------------------------------
   Sits out of the way until the hero scrolls off, then keeps the ask one
   tap away until the donor reaches the form.
   -------------------------------------------------------------------- */
.givebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--navy); color: var(--cream);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--gold);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.givebar.is-up { transform: translateY(0); }
.givebar__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.givebar__text strong {
  font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .04em;
  font-size: 15px; color: var(--cream);
}
.givebar__text span { font-size: 13px; color: var(--sky); }
.givebar__btn { flex: 0 0 auto; padding: 13px 26px; font-size: 16px; }

@media (max-width: 820px) {
  .givebar { display: flex; }
  /* Extra navy at the bottom so the bar never covers the last footer line */
  .foot { padding-bottom: 100px; }
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .give-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .progress-top { align-items: flex-start; }
  .progress-goalbox { text-align: left; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .section { padding: 40px 20px; }
  .hero { min-height: 400px; }
  .hero__body { padding: 32px 20px 28px; }
  /* Primary ask gets the full width; the secondary shrinks to a link so the
     "give" button stays close to the fold. */
  .hero__cta { gap: 6px; }
  .hero__cta .btn--primary { flex: 1 1 100%; }
  .hero__secondary {
    border-color: transparent; padding: 10px 0; font-size: 15px;
    text-decoration: underline; text-underline-offset: 4px;
  }
  .hero__secondary:hover { background: transparent; }
  .fact { font-size: 11px; padding: 6px 12px; }
  .ty-receipt { grid-template-columns: 1fr; }
  .qr { width: 190px; height: 190px; }
  .share__row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
