/* Longhorn Racing fundraising page. Approved design: rev. 2 mockup (see DESIGN.md). */

@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("/assets/fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("/assets/fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-sans-3-600.woff2") format("woff2"); }

:root {
  /* Brand (sampled from the Longhorn Racing logo) */
  --lhr-blue: #085E84;
  --lhr-orange: #FD9405;
  --lhr-amber: #FDB527;
  --lhr-gold: #FFC871;
  /* Proposed supporting colors */
  --navy: #0B2F42;
  --text: #1E2A32;
  --text-2: #4E5B63;
  --on-accent: #1B1B1B;
  --bg: #FFFFFF;
  --surface: #F4F6F7;
  --line: #DCE4E9;
  --line-soft: #E6EBEE;
  --control-border: #B9C6CE;
  --callout: #FFF4D6;
  --muted: #8A979F;
  --footer-muted: #C9D4DB;

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --radius: 6px;
  --radius-lg: 8px;
  --max-width: 1280px;
  --gutter: 20px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
#benefits, #other-ways { scroll-margin-top: var(--space-4); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--navy); margin: 0; }
p, ul, ol { margin: 0; }
a { color: var(--lhr-blue); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lhr-blue); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 10;
  background: var(--navy); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-2); color: #fff; }
.wrap { max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }
.icon { display: inline-block; vertical-align: -1px; flex: none; }
.fine { font-size: 14px; line-height: 1.45; color: var(--text-2); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-2); }
.logo-link img { height: 34px; width: auto; }
.header-link {
  font-family: var(--font-display); font-weight: 600; font-size: 14px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
}
@media (min-width: 768px) { .logo-link img { height: 38px; } }

/* First screen */
.hero { display: grid; gap: var(--space-8); padding-block: var(--space-5) var(--space-8); }
.hero-main { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
h1 { font-size: clamp(28px, 2.2vw + 18px, 36px); line-height: 1.15; letter-spacing: -0.01em; }
.intro { max-width: 60ch; }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-10); padding-block: var(--space-6) var(--space-8); align-items: start; }
}

/* Progress module: the three panels share one grid cell so the height never jumps. */
.progress {
  display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}
@media (min-width: 768px) { .progress { padding: var(--space-5) 22px; } }
.progress-panel { grid-area: 1 / 1; visibility: hidden; min-width: 0; }
.progress[data-state="loading"] .progress-loading,
.progress[data-state="ok"] .progress-figures,
.progress[data-state="delayed"] .progress-figures,
.progress[data-state="unavailable"] .progress-unavailable { visibility: visible; }

.progress-figures { display: flex; flex-direction: column; gap: 14px; }
.progress-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.progress-amounts { min-width: 0; }
.raised { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.raised-amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 2.6vw + 22px, 46px); line-height: 1.08; color: var(--navy); }
.raised-label { font-size: 19px; font-weight: 600; }
@media (max-width: 479px) { .raised-label, .progress-stats .progress-ends { flex-basis: 100%; } }
.goal { color: var(--text-2); }
.donut { width: 84px; height: 84px; flex: none; }
@media (min-width: 768px) { .donut { width: 96px; height: 96px; } }
.donut circle { fill: none; stroke-width: 12; }
.donut-track { stroke: var(--line); }
/* pathLength=100: offset 100 = empty, 0 = full. Animated on load from empty. */
.donut-fill { stroke: var(--lhr-blue); stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1400ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.donut-value { font-family: var(--font-display); font-weight: 700; font-size: 23px; fill: var(--navy); }
.donut-value.is-long { font-size: 19px; }
.donut-label { font-family: var(--font-body); font-size: 14px; fill: var(--text-2); }
.bar { height: 12px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--lhr-blue); border-radius: 6px; transition: width 1400ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.progress-stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-5); font-size: 15px; }
.progress-ends { color: var(--text-2); font-size: 15px; }

.progress-loading { display: flex; flex-direction: column; gap: var(--space-3); justify-content: center; color: var(--text-2); }
.skeleton { background: #EEF2F4; border-radius: 4px; }
.skeleton-amount { width: min(240px, 60%); height: 44px; }
.skeleton-bar { height: 12px; border-radius: 6px; }
.progress-unavailable { display: flex; flex-direction: column; justify-content: center; gap: var(--space-2); }
.unavailable-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--navy); }

/* Donate */
.donate { display: flex; flex-direction: column; gap: 10px; }
.donate-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--lhr-orange); color: var(--on-accent); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  padding: 14px 28px; min-height: 52px; border-radius: var(--radius);
  transition: background-color 150ms ease;
}
.btn-primary:hover { background: var(--lhr-amber); color: var(--on-accent); }
.text-link { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 639px) {
  .donate-row { flex-direction: column; align-items: stretch; gap: var(--space-1); }
  .donate-row .text-link { align-self: flex-start; }
}

/* Recognition tiers */
.tiers { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.tiers h2 { font-size: 22px; line-height: 1.25; }
.tier-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tier-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.35; }
.tier-table thead tr { background: var(--surface); }
.tier-table th, .tier-table td { padding: 8px 6px; }
.tier-table .benefit-col { text-align: left; padding: 10px 14px; font-weight: 600; font-size: 13px; color: var(--text-2); vertical-align: bottom; }
.tier-col { padding-top: 0 !important; text-align: center; vertical-align: bottom; min-width: 76px; }
.tier-col .tier-swatch { display: block; height: 5px; border-radius: 0 0 3px 3px; margin-bottom: 8px; }
.tier-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.tier-min { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); }
.tier-table tbody tr { border-top: 1px solid var(--line-soft); }
.tier-table tbody th { text-align: left; font-weight: 400; padding-inline: 14px; }
.tier-table td { text-align: center; }
.check { display: inline-block; vertical-align: middle; fill: none; stroke: var(--lhr-blue); stroke-width: 2.6; }
.cell-text { font-weight: 600; font-size: 14px; }
.cell-none { color: var(--muted); }

.tier-list { list-style: none; padding: 0; display: none; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tier-item { padding: 14px var(--space-4); display: flex; flex-direction: column; gap: 6px; }
.tier-item + .tier-item { border-top: 1px solid var(--line-soft); }
.tier-item h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--text); }
.tier-item .tier-swatch { width: 6px; height: 20px; border-radius: 3px; flex: none; }
.tier-item .tier-min { display: inline; margin-left: auto; font-family: var(--font-body); font-size: 16px; }
.tier-prior { font-size: 15px; color: var(--text-2); }
.tier-item ul { padding-left: 20px; font-size: 15px; }
@media (max-width: 639px) {
  .tier-table-wrap { display: none; }
  .tier-list { display: block; }
}

.title-partner { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 14px 18px; display: flex; flex-direction: column; gap: var(--space-1); }
.title-partner h3 { color: #fff; font-size: 17px; line-height: 1.3; }
.title-partner h3 span { color: var(--lhr-gold); }
.title-partner p { font-size: 14px; line-height: 1.5; }
.tier-notes { display: flex; flex-direction: column; gap: var(--space-1); font-size: 14px; line-height: 1.45; }
.tier-notes p:first-child { color: var(--text-2); }
.tier-notes a { font-weight: 600; }

/* Photos (full-bleed left half on desktop), about, other ways */
.band { background: var(--surface); }
.band-row { display: flex; flex-direction: column; }
.slideshow { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); min-width: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms ease-in-out; }
.slide.is-active { opacity: 1; }
.slide picture { display: block; width: 100%; height: 100%; }
.slide-img { width: 100%; height: 100%; object-fit: cover; }
.slideshow-toggle {
  position: absolute; right: var(--space-3); bottom: var(--space-3);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(11, 47, 66, 0.72); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0.85; transition: opacity 150ms ease;
}
.slideshow-toggle:hover, .slideshow-toggle:focus-visible { opacity: 1; }
.slideshow-toggle:focus-visible { outline-color: #fff; }
.slideshow-toggle[hidden] { display: none; }
.slideshow-toggle .i-play { display: none; }
.slideshow-toggle[data-paused="true"] .i-play { display: block; }
.slideshow-toggle[data-paused="true"] .i-pause { display: none; }
.band-side { padding: var(--space-8) var(--gutter); }
@media (min-width: 1024px) {
  /* Photo fills the whole left half, edge to edge and full band height;
     text stays aligned with the page's content column on the right. */
  .band-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .slideshow { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .band-side { padding: var(--space-8) max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter))) var(--space-8) var(--space-10); }
}

.band-side { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.band-side h2 { font-size: 22px; margin-bottom: var(--space-2); }
.band-side > section > p { font-size: 16px; }
.other-ways { display: flex; flex-direction: column; gap: var(--space-3); }
.other-ways h2 { margin-bottom: 0; }
.route { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4) 18px; display: flex; flex-direction: column; gap: var(--space-2); }
.route h3 { font-size: 17px; color: var(--text); }
.route p { font-size: 15px; }
.callout { background: var(--callout); padding: var(--space-2) var(--space-3); border-radius: var(--radius); }
.callout a { font-weight: 600; }
.btn-secondary {
  align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-2);
  border: 2px solid var(--lhr-blue); color: var(--lhr-blue); text-decoration: none; background: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: var(--space-2) var(--space-4); min-height: 44px; border-radius: var(--radius);
  transition: background-color 150ms ease, color 150ms ease;
}
.btn-secondary:hover { background: var(--lhr-blue); color: #fff; }

/* Teams */
.teams { padding-block: 36px var(--space-10); display: flex; flex-direction: column; gap: var(--space-6); }
.teams > h2 { font-size: 26px; line-height: 1.2; }
.team-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Grid rows stretch, so the three team cards are always the same height; the link sits at the bottom. */
.team { display: flex; flex-direction: column; min-width: 0; height: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.team picture { display: block; }
.team-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.team-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: var(--space-4) var(--space-5) var(--space-3); }
.team-link { margin-top: auto; }
.team h3 { font-size: 21px; color: var(--lhr-blue); }
.team p, .team ul { font-size: 15px; }
.team ul { padding-left: 18px; display: flex; flex-direction: column; gap: var(--space-1); line-height: 1.45; }

/* UT reminder dialog */
.ut-dialog {
  width: min(480px, calc(100vw - 2 * var(--gutter))); padding: var(--space-6); border: 0;
  border-radius: var(--radius-lg); color: var(--text); background: #fff;
  box-shadow: 0 18px 48px rgba(11, 47, 66, 0.28);
}
.ut-dialog::backdrop { background: rgba(11, 47, 66, 0.55); }
.ut-dialog h2 { font-size: 22px; line-height: 1.25; margin-bottom: var(--space-3); }
.ut-dialog p + p { margin-top: var(--space-3); }
.ut-dialog #ut-dialog-text { font-size: 18px; }
.ut-dialog a:not(.btn-primary) { font-weight: 600; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-6); }
.btn-plain {
  min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--control-border); border-radius: var(--radius);
  background: #fff; color: var(--text); font: 600 16px var(--font-body); cursor: pointer;
}
.btn-plain:hover { border-color: var(--lhr-blue); }

/* Footer */
.site-footer { background: var(--navy); color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); padding-block: var(--space-6); font-size: 14px; }
.footer-logo { height: 30px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.footer-links a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:focus-visible { outline-color: var(--lhr-gold); }
.footer-address { width: 100%; color: var(--footer-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
