/* ==========================================================================
   Category 5 Robotics (team3489.com) — Motorsport / Aerospace Editorial CSS
   FRC 3489 · FRC 10367 Storm Surge · FTC 28355
   Responsive across Mobile, 4:3 iPads, Amazon Fire 7 / HD 8 / HD 10 / Max 11,
   Laptops, and Ultrawide Screens.
   ========================================================================== */

:root {
  --storm-deep: #0a1220;
  --storm-panel: #122038;
  --storm-elevated: #192b49;
  --storm-line: #273d61;

  --stone-bg: #f4f3ee;
  --white-bg: #ffffff;
  --stone-subtle: #eae8e0;
  --stone-line: #d6d4ca;

  --ink-dark: #0e1829;
  --ink-body: #39485e;
  --ink-muted: #627289;
  --ink-light: #f8fafd;
  --ink-light-sub: #bdcce0;

  --cat5-red: #d42029;
  --cat5-red-hover: #b51820;
  --surge-blue: #1874e8;
  --surge-blue-hover: #125ec0;
  --ftc-slate: #2b3e58;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

section[id] {
  scroll-margin-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dark);
  background-color: var(--stone-bg);
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 16px; /* Prevents Silk / mobile browser auto-zoom */
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Sticky Header Navigation (Replaces Overflowing 12-Link Wix Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--storm-deep);
  border-bottom: 1px solid var(--storm-line);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-anchor {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-wordmark {
  height: 48px;
  width: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--ink-light-sub);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--storm-line);
  background-color: var(--storm-panel);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.menu-bars {
  width: 18px;
  height: 2px;
  background-color: #ffffff;
  position: relative;
  display: inline-block;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: #ffffff;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

.mobile-drawer {
  background-color: var(--storm-panel);
  border-top: 1px solid var(--storm-line);
  padding: 12px 24px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.drawer-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 14px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}

.drawer-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Buttons & Typography Helpers
   ========================================================================== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.cta-btn:active {
  transform: translateY(1px);
}

.cta-lg {
  min-height: 50px;
  padding: 12px 24px;
  font-size: 15.5px;
}

.cta-sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
}

.cta-full {
  width: 100%;
}

.cta-red {
  background-color: var(--cat5-red);
  color: #ffffff;
}

.cta-red:hover {
  background-color: var(--cat5-red-hover);
}

.cta-blue {
  background-color: var(--surge-blue);
  color: #ffffff;
}

.cta-blue:hover {
  background-color: var(--surge-blue-hover);
}

.cta-secondary {
  background-color: var(--white-bg);
  color: var(--ink-dark);
  border-color: var(--stone-line);
}

.cta-secondary:hover {
  background-color: var(--stone-subtle);
}

.cta-outline-light {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
}

.cta-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.program-kicker,
.section-eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.program-kicker {
  color: #6cb0ff;
}

.section-eyebrow {
  color: var(--cat5-red);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.06;
  margin: 0;
}

/* ==========================================================================
   BAND 1: Hero Showcase
   ========================================================================== */
.hero-band {
  background-color: var(--storm-deep);
  color: var(--ink-light);
  padding: 56px 0 64px;
  border-bottom: 4px solid var(--cat5-red);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hero-copy-col h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  font-weight: 800;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-summary {
  margin: 0 0 26px;
  font-size: 17px;
  color: var(--ink-light-sub);
  max-width: 58ch;
}

.hero-summary strong {
  color: #ffffff;
}

.hero-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.impact-telemetry-bar {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--storm-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.telemetry-stat dt {
  font-size: 12.5px;
  color: var(--ink-light-sub);
  font-weight: 600;
}

.telemetry-stat dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
}

.hero-photo-frame {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--storm-line);
  background-color: var(--storm-panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.photo-caption-bar {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-light-sub);
  background-color: var(--storm-panel);
}

/* ==========================================================================
   Editorial Section Containers
   ========================================================================== */
.section-light {
  background-color: var(--stone-bg);
  padding: 68px 0;
  border-bottom: 1px solid var(--stone-line);
}

.section-white {
  background-color: var(--white-bg);
  padding: 68px 0;
  border-bottom: 1px solid var(--stone-line);
}

.section-dark {
  background-color: var(--storm-deep);
  color: var(--ink-light);
  padding: 68px 0;
}

.section-intro-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.section-intro-split h2 {
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  font-weight: 800;
  max-width: 24ch;
}

.section-intro-copy {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-body);
  font-size: 16px;
}

/* ==========================================================================
   BAND 2: Three Robotics Programs & Championship Honors
   ========================================================================== */
.programs-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.program-card {
  background-color: var(--white-bg);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.program-code-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  color: #ffffff;
}

.badge-red {
  background-color: var(--cat5-red);
}

.badge-blue {
  background-color: var(--surge-blue);
}

.badge-slate {
  background-color: var(--ftc-slate);
}

.program-meta-tag {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.program-card h3 {
  font-size: 28px;
  font-weight: 800;
}

.program-card p {
  margin: 0;
  color: var(--ink-body);
  font-size: 15px;
}

.program-highlights {
  margin: auto 0 0;
  padding: 14px 0 0 18px;
  border-top: 1px solid var(--stone-subtle);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dark);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.honors-photo-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.honor-figure {
  margin: 0;
  background-color: var(--white-bg);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.honor-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.honor-figure figcaption {
  padding: 14px 18px;
}

.honor-figure figcaption strong {
  display: block;
  font-size: 15.5px;
  color: var(--ink-dark);
}

.honor-figure figcaption span {
  font-size: 14px;
  color: var(--ink-body);
}

/* ==========================================================================
   BAND 3: Interactive 6 Student Divisions Explorer
   ========================================================================== */
.division-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.div-tab {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stone-line);
  background-color: var(--stone-bg);
  color: var(--ink-dark);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
}

.div-tab.is-active {
  background-color: var(--storm-deep);
  border-color: var(--storm-deep);
  color: #ffffff;
}

.division-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.division-detail-panel {
  background-color: var(--stone-bg);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.division-detail-panel h3 {
  font-size: 30px;
  margin-bottom: 8px;
}

.division-detail-panel p {
  margin: 0;
  color: var(--ink-body);
  font-size: 16px;
}

.div-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-badge {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
  background-color: var(--white-bg);
  border: 1px solid var(--stone-line);
  color: var(--ink-dark);
}

.div-deliverable-note {
  padding-top: 14px;
  border-top: 1px solid var(--stone-line);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-dark);
}

.division-shop-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stone-line);
  background-color: var(--storm-deep);
  display: flex;
  flex-direction: column;
}

.division-shop-photo img {
  width: 100%;
  flex: 1;
  object-fit: cover;
}

.division-shop-photo figcaption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--ink-light-sub);
}

/* ==========================================================================
   BAND 4: 4-Step Student Join Checklist & Inquiry Form
   ========================================================================== */
.checklist-progress-pill {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: var(--storm-deep);
  color: #ffffff;
}

.join-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
  gap: 26px;
  align-items: start;
}

.steps-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card {
  background-color: var(--white-bg);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.step-card.is-complete {
  background-color: #eef7f2;
  border-color: #8bc9a8;
}

.step-check-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-checkbox {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: var(--cat5-red);
}

.step-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-muted);
}

.step-body h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.step-body p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink-body);
}

.step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inquiry-panel {
  background-color: var(--white-bg);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.inquiry-panel h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.inquiry-panel > p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--ink-body);
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-dark);
}

.form-row input,
.form-row select,
.form-row textarea {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stone-line);
  background-color: var(--stone-bg);
  color: var(--ink-dark);
}

.form-status-msg {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
}

.direct-email-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--stone-subtle);
  font-size: 13.5px;
  color: var(--ink-muted);
}

.direct-email-note a {
  color: var(--surge-blue);
  font-weight: 700;
}

/* ==========================================================================
   BAND 5: Outreach & Interactive Season Schedule
   ========================================================================== */
.outreach-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 30px;
  align-items: start;
}

.outreach-story-col h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin-bottom: 12px;
}

.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.initiative-item {
  background-color: var(--stone-bg);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.initiative-item h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.initiative-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-body);
}

.outreach-photo-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stone-line);
  background-color: var(--stone-bg);
}

.outreach-photo-card img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.outreach-photo-card figcaption {
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--ink-body);
}

.schedule-card {
  background-color: var(--stone-bg);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-md);
  padding: 22px;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.schedule-header h3 {
  font-size: 26px;
}

.cal-filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cal-pill {
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stone-line);
  background-color: var(--white-bg);
  color: var(--ink-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cal-pill.is-active {
  background-color: var(--cat5-red);
  border-color: var(--cat5-red);
  color: #ffffff;
}

.calendar-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-event-row {
  background-color: var(--white-bg);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cal-date-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 4px;
  background-color: var(--stone-bg);
  text-align: center;
  color: var(--cat5-red);
}

.cal-event-body strong {
  display: block;
  font-size: 15px;
  color: var(--ink-dark);
}

.cal-event-body span {
  font-size: 13.5px;
  color: var(--ink-body);
}

/* ==========================================================================
   BAND 6: Sponsors & Hurricane Partnership Tiers
   ========================================================================== */
.sponsors-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.sponsor-plate {
  min-height: 96px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sponsor-plate img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.sponsor-plate-dark {
  background-color: var(--storm-panel);
  border: 1px solid var(--storm-line);
}

.sponsor-plate-dark img {
  max-height: 64px;
}

.sponsor-plate-text {
  background-color: var(--storm-panel);
  border: 1px solid var(--storm-line);
  color: #ffffff;
}

.sp-wordmark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sponsor-plate-text small {
  font-size: 12px;
  color: var(--ink-light-sub);
}

.hurricane-tiers-box {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.tiers-left {
  background-color: var(--storm-panel);
  border: 1px solid var(--storm-line);
  border-radius: var(--radius-md);
  padding: 26px;
}

.tiers-left h3 {
  font-size: 28px;
  margin-bottom: 6px;
}

.tiers-lead {
  margin: 0 0 16px;
  color: var(--ink-light-sub);
  font-size: 15px;
}

.tier-selector-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tier-btn {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--storm-line);
  background-color: var(--storm-deep);
  color: var(--ink-light-sub);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.tier-btn.is-active {
  background-color: var(--surge-blue);
  border-color: var(--surge-blue);
  color: #ffffff;
}

.tier-detail-card {
  background-color: var(--storm-deep);
  border: 1px solid var(--storm-line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.tier-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tier-detail-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
}

.tier-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #6cb0ff;
}

.tier-perks {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-light-sub);
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.donate-direct-card {
  background-color: var(--storm-panel);
  border: 1px solid var(--storm-line);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.donate-mark {
  height: 44px;
  width: auto;
}

.donate-direct-card h3 {
  font-size: 26px;
}

.donate-direct-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-light-sub);
}

.donate-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   BAND 7: Open-Source Code & Team Media Resources
   ========================================================================== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  background-color: var(--white-bg);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-md);
  padding: 22px;
  text-decoration: none;
  color: var(--ink-dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.resource-card:hover {
  border-color: var(--surge-blue);
  transform: translateY(-2px);
}

.res-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--surge-blue);
}

.resource-card h3 {
  font-size: 22px;
}

.resource-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-body);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--storm-deep);
  color: var(--ink-light-sub);
  padding: 52px 0 28px;
  border-top: 1px solid var(--storm-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--storm-line);
}

.footer-brand-col p {
  margin: 12px 0 0;
  max-width: 38ch;
  font-size: 14.5px;
}

.footer-links-col h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-links-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-col a {
  color: var(--ink-light-sub);
  text-decoration: none;
  font-size: 14.5px;
}

.footer-links-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ==========================================================================
   MULTI-ASPECT-RATIO & AMAZON FIRE TABLET ADAPTATIONS
   ========================================================================== */

/* 1. Short Landscape Viewports: Amazon Fire 7 (1024x600), Fire HD 8 (1280x800), Phone Landscape (844x390) */
@media (orientation: landscape) and (max-height: 780px) {
  .header-container {
    padding: 6px 18px;
  }

  .header-wordmark {
    height: 38px;
  }

  .hero-band {
    padding: 28px 0 34px;
  }

  .hero-copy-col h1 {
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    margin-bottom: 10px;
  }

  .hero-summary {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .hero-button-group {
    margin-bottom: 18px;
  }

  .section-light,
  .section-white,
  .section-dark {
    padding: 44px 0;
  }
}

/* Ensure mobile drawer never stays stuck open alongside desktop nav above 1080px */
@media (min-width: 1081px) {
  .mobile-drawer {
    display: none !important;
  }
}

.cta-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-status-msg a {
  color: var(--surge-blue);
  font-weight: 700;
  text-decoration: underline;
}

/* 2. Tablets & Compact Laptops (<= 1080px: Fire 7 1024x600, iPad 1024x768, Portrait Fire HD 800x1280) */
@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle-btn {
    display: inline-flex;
  }

  .programs-trio-grid,
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sponsors-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-layout-grid,
  .outreach-split,
  .hurricane-tiers-box {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 3. Portrait Tablets & Phones (<= 820px: 768x1024, 600x1024, 390x844) */
@media (max-width: 820px) {
  .hero-grid,
  .division-showcase-grid,
  .honors-photo-spread,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .impact-telemetry-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 4. Phones (<= 600px: 360x800, 390x844, 320x568) */
@media (max-width: 600px) {
  .container,
  .header-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-wordmark {
    height: 36px;
  }

  #header-apply-btn {
    display: none;
  }

  .programs-trio-grid,
  .initiatives-grid,
  .resources-grid,
  .sponsors-logo-grid,
  .form-row-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-check-col {
    flex-direction: row;
    justify-content: flex-start;
  }

  .cal-event-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .cal-date-chip {
    text-align: left;
    width: fit-content;
  }
}
