/* ============================================================
   RPM BASEBALL design system
   Palette + type sampled from the printed brochure:
   navy #003049 · rpm red #D7411E · paper #F2F0EE
   Anton (display) · Oswald (labels) · Lato (body)
   ============================================================ */

:root {
  --red: #D7411E;
  --red-dark: #B93312;
  --navy: #003049;
  --navy-deep: #00121D;
  --paper: #F2F0EE;
  --paper-2: #EAE7E3;
  --white: #FFFFFF;
  --muted: #51677A;
  --line: rgba(0, 48, 73, 0.55);
  --line-soft: rgba(0, 48, 73, 0.30);
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-label: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Lato", "Helvetica Neue", sans-serif;
  --pad-x: clamp(20px, 5vw, 72px);
  --max-w: 1240px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* printed-paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/img/paper-texture.jpg");
  background-size: 900px;
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2147483647;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
strong { font-weight: 700; }

::selection { background: var(--red); color: var(--white); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 10px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- type helpers ---------- */

.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }
.eyebrow.on-dark { color: #FF7B52; }

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.h2 .accent { color: var(--red); }
.h2.on-dark { color: var(--paper); }

/* ---------- utility bar ---------- */

.utility-bar {
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 56px);
  padding: 9px var(--pad-x);
}
.utility-bar a { color: var(--white); text-decoration: none; }
.utility-bar a:hover { color: #FF9C7A; }
.utility-bar strong { color: #FF9C7A; font-weight: 600; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--pad-x);
  height: 76px;
  background: var(--paper);
  border-bottom: 3px solid var(--navy);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}
.logo-img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
}
.nav-links a {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--red); color: var(--navy); }

.nav-burger { display: none; }
.mobile-menu { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  line-height: 1;
  border: 3px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(2px); }

.btn-solid { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-solid:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.btn-ghost { background: transparent; color: var(--navy); border: 3px dotted var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.btn-paper { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-paper:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

.btn-lg { padding: 19px 30px; font-size: 15px; }

.nav-cta { padding: 12px 20px; font-size: 13px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(32px, 4.5vw, 72px);
  padding: clamp(52px, 9vh, 110px) 0 clamp(44px, 7vh, 84px);
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 11.5vw, 168px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--navy);
  margin: 10px 0 0;
}
.hero-h1 span { display: block; }
.hero-h1 .outline {
  color: transparent;
  -webkit-text-stroke: 3px var(--red);
  text-stroke: 3px var(--red);
}
.hero-h1 .accent { color: var(--red); }

.hero-side {
  border-top: 3px dotted var(--line);
  padding-top: 28px;
  padding-bottom: 8px;
}

.hero-sub {
  font-size: clamp(17px, 1.5vw, 19px);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }

.hero-micro { font-size: 14px; color: var(--muted); }
.hero-micro a { color: var(--muted); font-weight: 700; }

/* stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--navy);
  border-bottom: 3px solid var(--navy);
  position: relative;
  z-index: 2;
  background: var(--paper);
}
.stat {
  padding: 22px 10px 20px;
  text-align: center;
}
.stat + .stat { border-left: 2px dotted var(--line-soft); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1;
  color: var(--red);
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- schools marquee ---------- */

.schools {
  background: var(--white);
  padding: clamp(48px, 7vh, 76px) 0 clamp(52px, 8vh, 84px);
  border-bottom: 3px solid var(--navy);
}
.schools-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 52px);
  text-align: center;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: clamp(36px, 5vh, 54px);
}
.schools-h2 .dot { color: var(--red); }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  flex: none;
  gap: clamp(40px, 5vw, 72px);
  padding-right: clamp(40px, 5vw, 72px);
}
.marquee-group img {
  height: 58px;
  width: auto;
  flex: none;
}
@keyframes marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- sections ---------- */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 110px) var(--pad-x);
}

.section-head { margin-bottom: clamp(36px, 6vh, 56px); }

/* double frame: solid outer, dotted inner (brochure signature) */
.frame {
  position: relative;
  border: 3px solid var(--navy);
  background: var(--white);
}
.frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dotted var(--line-soft);
  pointer-events: none;
}

/* ---------- programs ---------- */

.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}

.program-card { padding: clamp(28px, 3.5vw, 44px); }

.pc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.pc-index {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  order: 2;
}
.pc-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--navy);
}
.pc-copy { margin-bottom: 20px; max-width: 52ch; }

.pc-list { list-style: none; margin-bottom: 26px; }
.pc-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 2px dotted var(--line-soft);
  font-size: 15.5px;
}
.pc-list li:first-child { border-top: 2px dotted var(--line-soft); }
.pc-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 9px;
  height: 9px;
  background: var(--red);
}

.pc-foot {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.pc-link {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 3px solid var(--red);
  padding-bottom: 3px;
}
.pc-link:hover { color: var(--red); }

/* ---------- method ---------- */

.method {
  max-width: none;
  background: var(--navy);
  color: var(--paper);
}
.method .section-head,
.method-grid {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.method-step {
  border-top: 3px solid rgba(242, 240, 238, 0.9);
  padding-top: 22px;
  position: relative;
}
.ms-num {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 80px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--red);
  display: block;
  margin-bottom: 14px;
}
.ms-title {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--white);
}
.ms-copy { color: rgba(242, 240, 238, 0.82); font-size: 16px; max-width: 40ch; }

/* ---------- evaluation ticket ---------- */

.evaluation { padding-bottom: clamp(72px, 11vh, 120px); }

.ticket {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
}
.ticket-main { padding: clamp(28px, 4vw, 48px); }
.ticket-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
}
.ticket-list { list-style: none; margin-bottom: 22px; }
.ticket-list li {
  padding: 11px 0 11px 28px;
  position: relative;
  border-bottom: 2px dotted var(--line-soft);
  font-size: 16px;
}
.ticket-list li:first-child { border-top: 2px dotted var(--line-soft); }
.ticket-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 9px;
  height: 9px;
  background: var(--red);
}
.ticket-after { font-size: 15px; color: var(--muted); max-width: 58ch; }

.ticket-stub {
  border-left: 3px dotted var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 2.5vw, 32px);
  text-align: center;
}
.ts-price {
  font-family: var(--font-display);
  font-size: clamp(72px, 8vw, 104px);
  line-height: 0.9;
  color: var(--red);
}
.ts-call {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
}
.ts-call:hover { color: var(--red); }
.ts-pitching { font-size: 13.5px; color: var(--muted); }
.ts-pitching a { color: var(--muted); font-weight: 700; }

/* ---------- results / quotes ---------- */

.results { background: var(--white); max-width: none; border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); }
.results .section-head,
.results .quote-feature,
.results .quote-grid {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.quote-feature {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  margin-bottom: clamp(22px, 3vw, 36px);
  background: var(--paper);
}
.quote-feature.reverse { grid-template-columns: 1fr minmax(240px, 340px); }
.quote-feature.reverse .qf-media { order: 2; }
.qf-media img { width: 100%; height: 100%; object-fit: cover; }
.qf-body { padding: clamp(26px, 3.5vw, 46px); align-self: center; }
.qf-body blockquote {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 22px;
}

.q-attr { display: flex; flex-direction: column; gap: 2px; }
.q-attr.with-photo {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.q-attr.with-photo img {
  width: 56px; height: 56px;
  object-fit: cover;
  border: 3px solid var(--navy);
}
.q-attr.with-photo > div { display: flex; flex-direction: column; gap: 2px; }
.q-name {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.q-role {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}
.quote-card {
  border: 2px dotted var(--line);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  background: var(--white);
}
.quote-card blockquote { font-style: italic; font-size: 17px; }

/* ---------- faq ---------- */

.faq { max-width: 900px; }

.faq-item { border-bottom: 2px dotted var(--line); }
.faq-item:first-child { border-top: 2px dotted var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  cursor: pointer;
}
.faq-idx {
  font-family: var(--font-display);
  font-size: 20px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  flex: none;
}
.faq-text {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 19px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  flex: 1;
}
.faq-icon {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--red);
  transition: transform .25s ease;
}
.faq-icon::before { left: 0; top: 7px; width: 18px; height: 4px; }
.faq-icon::after { left: 7px; top: 0; width: 4px; height: 18px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { padding: 0 4px 22px 58px; color: var(--muted); max-width: 68ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- final cta ---------- */

.final-cta {
  background: var(--navy);
  color: var(--paper);
  text-align: center;
  padding: clamp(72px, 12vh, 130px) var(--pad-x);
  border-top: 6px solid var(--red);
}
.fc-h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 18px;
}
.fc-h2 .accent { color: var(--red); }
.fc-sub { font-size: 18px; color: rgba(242, 240, 238, 0.8); margin-bottom: 34px; }
.fc-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}
.fc-address { font-size: 15px; color: rgba(242, 240, 238, 0.7); }
.fc-address a { color: var(--paper); }

/* ---------- footer ---------- */

.footer {
  background: var(--navy-deep);
  color: rgba(242, 240, 238, 0.75);
  padding: clamp(48px, 7vh, 72px) var(--pad-x) 0;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
}
.f-brand .logo-link { margin-bottom: 18px; display: inline-flex; }
.f-brand .logo-img { height: 38px; }
.f-tag {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.f-blurb { font-size: 15px; max-width: 30ch; }

.f-col h4 {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.f-col .f-gap { margin-top: 24px; }
.f-col p { font-size: 15px; margin-bottom: 10px; }
.f-label {
  display: block;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 240, 238, 0.5);
}
.f-col a { color: rgba(242, 240, 238, 0.9); text-decoration: none; }
.f-col a:hover { color: #FF9C7A; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(242, 240, 238, 0.15);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .faq-a { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-side { max-width: 640px; }
}

@media (max-width: 880px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    height: 3px;
    background: var(--navy);
  }
  .mobile-menu.show {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 76px;
    z-index: 49;
    background: var(--paper);
    border-bottom: 3px solid var(--navy);
    padding: 18px var(--pad-x) 26px;
  }
  .mobile-menu a {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 2px dotted var(--line-soft);
  }
  .mobile-menu .btn { margin-top: 16px; text-align: center; border-bottom: none; color: var(--white); }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 2px dotted var(--line-soft); }

  .program-grid, .quote-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; gap: 36px; }

  .ticket { grid-template-columns: 1fr; }
  .ticket-stub {
    border-left: none;
    border-top: 3px dotted var(--line);
  }

  .quote-feature, .quote-feature.reverse { grid-template-columns: 1fr; }
  .quote-feature .qf-media { order: -1; }
  .qf-media img { max-height: 380px; object-position: center 12%; }

  .utility-bar .ub-address { display: none; }
}

@media (max-width: 560px) {
  .utility-bar { gap: 12px; }
  .utility-bar .ub-item:last-child { display: none; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: clamp(56px, 17vw, 76px); }
  .marquee-group img { height: 44px; }
  .btn-lg { width: 100%; text-align: center; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .faq-a-inner p { padding-left: 4px; }
}
