/* ==========================================================================
   RS ACADEMY — ORIGINAL CONTRACTOR ENGINEERING DESIGN SYSTEM
   Theme: Authentic Dark Industrial Engineering matching rsele-hvac.com
   Palette: Solid Charcoal/Obsidian (#090c10), Precision Cards (#12161c / #181d24),
            RS Signature Gold (#ffbe2e), Crisp White Headings (#ffffff),
            and High-Legibility Zinc Body Copy (#c9d1d9).
   Preserves: Floating borderless pill navbar & all live visual elements.
   Loaded LAST on every page to guarantee consistent theme rendering.
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root, html {
  --navy-deep: #090c10 !important;
  --navy-surface: #12161c !important;
  --navy-card: #181d24 !important;
  --charcoal: #050709 !important;
  --rs-navy: #090c10 !important;
  --rs-charcoal: #050709 !important;
  --rs-gold: #ffbe2e !important;
  --rs-gold-hover: #ffd066 !important;
  --brand-gold: #ffbe2e !important;
  --accent-teal: #e2e8f0 !important;
  --light-bg: #0d1117 !important;
  --light-card: #12161c !important;
  --text-white: #ffffff !important;
  --text-body: #c9d1d9 !important;
  --text-muted: #8b949e !important;
  --border-dark: rgba(255, 255, 255, 0.12) !important;
  --border-gold: rgba(255, 190, 46, 0.45) !important;
  --radius-sm: 4px !important;
  --radius-md: 6px !important;
  --radius-lg: 8px !important;
  --shadow-gold: 0 4px 20px rgba(255, 190, 46, 0.25) !important;
  --ease: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 2. BASE DOCUMENT CANVAS ------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background-color: #090c10 !important;
  color-scheme: dark;
}

body {
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-color: #090c10 !important;
  background-image: none !important; /* Pure solid contractor canvas matching rsele-hvac.com */
  color: #c9d1d9 !important;
  position: relative;
  min-height: 100vh;
  margin: 0;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

img, video, svg { max-width: 100%; height: auto; }

::selection {
  background: rgba(255, 190, 46, 0.35);
  color: #ffffff;
}

/* Thin engineering scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.20) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #090c10; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.20); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--rs-gold); }

/* 3. TYPOGRAPHY ENFORCEMENT ----------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.section-title, .hero-title, .card-title,
.dept-title, .metric-value, .stat-value {
  color: #ffffff !important;
  font-family: 'IBM Plex Sans', sans-serif !important;
  letter-spacing: -0.02em;
}

p, li, dd, dt, label {
  color: #c9d1d9 !important;
}

.text-muted, .section-subtitle, .stat-label, .card-desc, .dept-lead {
  color: #8b949e !important;
}

code, kbd, samp, pre, .font-mono, .badge-mono {
  font-family: 'IBM Plex Mono', monospace !important;
}

/* 4. FLOATING BORDERLESS NAVBAR PILL (PERFECT FIT & SYMMETRY) ------------- */
.site-header {
  position: sticky !important;
  top: 14px !important;
  z-index: 1000 !important;
  max-width: 1720px !important;
  width: min(1720px, calc(100% - 48px)) !important;
  margin: 14px auto 18px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  outline: none !important;
  background: rgba(14, 18, 24, 0.96) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  backdrop-filter: blur(24px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  box-sizing: border-box !important;
  transition: all 0.3s var(--ease) !important;
}

.site-header.is-scrolled {
  background: rgba(10, 14, 19, 0.98) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75) !important;
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
}

.site-nav-container {
  height: 60px !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 18px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  border: none !important;
  border-bottom: none !important;
  box-sizing: border-box !important;
}

/* Brand Logo Treatment */
.brand-logo-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.brand-logo-box {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  outline: none !important;
}

.brand-logo-img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
}

.brand-title {
  font-family: 'Oswald', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
.brand-title span {
  color: var(--rs-gold) !important;
}

.brand-desc {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.52rem !important;
  letter-spacing: 0.04em !important;
  color: #8b949e !important;
  margin-top: 1px !important;
  white-space: nowrap !important;
}

/* Nav Menu List (Precise Desktop Fit - No Wrapping, No Overlap) */
.nav-menu-list {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 1 auto !important;
}

.nav-item-link {
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #c9d1d9 !important;
  text-decoration: none !important;
  padding: 6px 8px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  transition: all 0.2s var(--ease) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.nav-item-link:hover,
.nav-item-link.is-active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.nav-item-link span.caret {
  font-size: 0.58rem !important;
  opacity: 0.7 !important;
  transition: transform 0.2s ease !important;
}
.nav-dropdown-trigger:hover .caret {
  transform: rotate(180deg) !important;
}

/* Nav Action CTA */
.nav-action-cluster {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  margin-left: 4px !important;
}

.nav-cta {
  background: var(--rs-gold) !important;
  color: #090c10 !important;
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.74rem !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  border: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(255, 190, 46, 0.3) !important;
  transition: all 0.2s var(--ease) !important;
}
.nav-cta:hover {
  background: #ffd066 !important;
  transform: translateY(-1px) !important;
}

/* Mega Dropdowns */
.nav-dropdown-trigger {
  position: relative !important;
}
.mega-dropdown-menu {
  background: #12161c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75) !important;
  border-radius: 8px !important;
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
  display: none !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 8px !important;
  z-index: 10001 !important;
  flex-direction: column !important;
  gap: 5px !important;
}
.mobile-toggle-btn span {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  background-color: #ffffff !important;
  transition: all 0.25s ease !important;
}

/* Responsive Threshold (Switch cleanly below 1140px before any overlap can occur) */
@media (max-width: 1140px) {
  .nav-menu-list,
  .nav-action-cluster {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: flex !important;
  }
  .site-header {
    width: calc(100% - 32px) !important;
    top: 10px !important;
    margin: 8px auto 14px !important;
    border-radius: 999px !important;
  }
  .site-nav-container {
    height: 56px !important;
    padding: 0 16px !important;
  }
}

@media (max-width: 640px) {
  .brand-desc {
    display: none !important;
  }
  .site-header {
    width: calc(100% - 20px) !important;
    border-radius: 14px !important;
  }
}

/* 5. TOP ANNOUNCEMENT & RADAR TICKER BORDERLESS BARS ----------------------- */
.top-announcement-bar {
  background: #0d1117 !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
}
.radar-ticker-wrap {
  background: #12161c !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
}
.radar-ticker-inner span {
  color: #c9d1d9 !important;
}
.ticker-action-link {
  color: #ffbe2e !important;
  font-weight: 700 !important;
}

/* Universal strict zero-border on header elements */
.site-header,
.site-nav-container,
.top-announcement-bar,
.top-announcement-inner,
.radar-ticker-wrap,
.radar-ticker-inner,
.brand-logo-box {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  outline: none !important;
}

/* 6. ORIGINAL SOLID CONTRACTOR CARDS & PANELS ------------------------------ */
.site-card,
.card,
.feature-card,
.course-card,
.step-card,
.faq-card,
.testimonial-card,
.stat-card,
.dept-card,
.dept-card-enhanced,
.blueprint-card,
.benefit-card,
.curriculum-module,
.partner-logo-item {
  background: #12161c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease) !important;
}

.site-card:hover,
.card:hover,
.feature-card:hover,
.course-card:hover,
.dept-card-enhanced:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(255, 190, 46, 0.5) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 190, 46, 0.15) !important;
}

/* Convert all inline dark surface cards seamlessly */
div[style*="background:var(--navy-surface)"],
div[style*="background: var(--navy-surface)"],
div[style*="background:var(--navy-card)"],
div[style*="background: var(--navy-card)"],
div[style*="background:#14171A"],
div[style*="background: #14171A"],
div[style*="background:#0F1216"],
div[style*="background:rgba(255,255,255,0.03)"],
div[style*="background: rgba(255,255,255,0.03)"],
div[style*="background:rgba(255, 255, 255, 0.03)"],
div[style*="background:rgba(16, 26, 48"],
div[style*="background: rgba(16, 26, 48"],
div[style*="background:rgba(255, 255, 255, 0.75)"],
div[style*="background:rgba(255, 255, 255, 0.88)"],
div[style*="background:rgba(241, 245, 249"],
div[style*="background:#f8fafc"],
div[style*="background: #f8fafc"] {
  background: #12161c !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* 7. 12 LEARNING DEPARTMENT CARDS (AUTHENTIC CONTRACTOR STYLING) ----------- */
.dept-card-enhanced {
  background: #12161c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 26px !important;
  color: #c9d1d9 !important;
}
.dept-card-enhanced h3,
.dept-card-enhanced h4 {
  color: #ffffff !important;
}
.dept-code-pill {
  background: rgba(255, 190, 46, 0.14) !important;
  border: 1px solid rgba(255, 190, 46, 0.4) !important;
  color: #ffbe2e !important;
  font-family: 'IBM Plex Mono', monospace !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  font-size: 0.78rem !important;
}
.dept-span-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  font-family: 'IBM Plex Mono', monospace !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  font-size: 0.78rem !important;
}
.dept-module-item {
  background: #181d24 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
  padding: 14px !important;
  margin-bottom: 10px !important;
}
.dept-module-item strong {
  color: #ffbe2e !important;
  font-size: 0.88rem !important;
}
.dept-module-item p {
  color: #c9d1d9 !important;
  font-size: 0.82rem !important;
  margin: 4px 0 0 !important;
}

/* 8. PARTNER LOGO STRIP & CONTRACTOR FOUNDATION ---------------------------- */
.partner-logo-item {
  background: #12161c !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
}
.partner-logo-item img {
  filter: grayscale(100%) brightness(1.2) contrast(1.1) !important;
  opacity: 0.85 !important;
  transition: all 0.3s var(--ease) !important;
}
.partner-logo-item:hover img {
  filter: none !important;
  opacity: 1 !important;
}

/* 9. BUTTONS & CALL-TO-ACTION ELEMENTS ------------------------------------- */
.btn-gold-cta,
.btn-primary,
.cta-button-gold,
button.btn-primary,
a.btn-gold-cta,
input[type="submit"].btn-primary {
  background: #ffbe2e !important;
  color: #090c10 !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 16px rgba(255, 190, 46, 0.3) !important;
  transition: all 0.2s var(--ease) !important;
}
.btn-gold-cta:hover,
.btn-primary:hover,
.cta-button-gold:hover {
  background: #ffd066 !important;
  box-shadow: 0 6px 22px rgba(255, 190, 46, 0.45) !important;
  transform: translateY(-1px) !important;
}

.btn-ghost,
.btn-outline,
a.btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  transition: all 0.2s var(--ease) !important;
}
.btn-ghost:hover,
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #ffbe2e !important;
  color: #ffbe2e !important;
}

/* 10. FORMS & INPUT CONTROLS ---------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  background: #0d1117 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  padding: 10px 14px !important;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease) !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: #ffbe2e !important;
  box-shadow: 0 0 0 3px rgba(255, 190, 46, 0.2) !important;
}

/* 11. FOOTER -------------------------------------------------------------- */
.site-footer,
footer {
  background: #050709 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
}
.site-footer a {
  color: #8b949e !important;
  transition: color 0.2s var(--ease) !important;
}
.site-footer a:hover {
  color: #ffbe2e !important;
}

/* 12. RESPONSIVE OPTIMIZATIONS -------------------------------------------- */
@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 20px) !important;
    top: 10px !important;
    margin: 8px auto 12px !important;
    border-radius: 18px !important;
    border: none !important;
  }
  .site-nav-container {
    height: 60px !important;
    padding: 0 16px !important;
  }
}

/* 13. PARTNER & CLIENT LOGO RIBBON (SOLID CONTRACTOR ENGINEERING) --------- */
.client-ribbon-wrapper {
  overflow: hidden;
  position: relative;
  padding: 20px 0 16px;
  background: #0d1117 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}
.client-ribbon-wrapper::before,
.client-ribbon-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.client-ribbon-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #090c10 0%, transparent 100%);
}
.client-ribbon-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #090c10 0%, transparent 100%);
}
.client-ribbon-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: clientRibbonScroll 45s linear infinite;
}
.client-ribbon-track:hover {
  animation-play-state: paused;
}
@keyframes clientRibbonScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo-card {
  flex-shrink: 0;
  background: #12161c !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
  user-select: none;
}
.client-logo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 190, 46, 0.45) !important;
}
.client-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}
.client-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.client-logo-info {
  display: flex;
  flex-direction: column;
}
.client-logo-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.25;
}
.client-logo-industry {
  font-size: 0.72rem;
  color: #ffbe2e !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.client-logo-sub {
  font-size: 0.7rem;
  color: #8b949e !important;
}

/* ==========================================================================
   PRECISION SYMMETRY, ALIGNMENT & DESIGN STANDARDS ENGINE
   ========================================================================== */

/* 1. UNIFIED HORIZONTAL CONTAINER GUIDELINES */
.container,
.footer-main-container,
.footer-container {
  max-width: 1720px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(20px, 3vw, 56px) !important;
  padding-right: clamp(20px, 3vw, 56px) !important;
  box-sizing: border-box !important;
}

/* 2. STANDARDIZED SECTION VERTICAL RHYTHM */
section.section,
section:not(.compact-section):not(.radar-ticker-wrap):not(.site-header):not(.top-announcement-bar) {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
  box-sizing: border-box !important;
}

section.hero-section {
  padding-top: 56px !important;
  padding-bottom: 72px !important;
}

/* 3. SYMMETRICAL CARD FLEX & HEIGHT EQUALIZATION */
div[style*="display:grid"] > div,
div[style*="grid-template-columns"] > div,
.dept-card,
.feature-card,
.course-card,
.card {
  box-sizing: border-box !important;
}

div[style*="grid-template-columns: 1fr 1fr"],
div[style*="grid-template-columns:1fr 1fr"],
div[style*="grid-template-columns:repeat(4"],
div[style*="grid-template-columns: repeat(4"],
div[style*="grid-template-columns:repeat(3"],
div[style*="grid-template-columns: repeat(3"],
div[style*="grid-template-columns:repeat(auto-fit"] {
  align-items: stretch !important;
}

/* Symmetrical CTA baseline alignment */
.card-action,
.dept-card > div:last-child,
div[style*="display:flex"][style*="flex-direction:column"] > a.btn-gold-cta,
div[style*="display:flex"][style*="flex-direction:column"] > a.btn-ghost,
div[style*="display:flex"][style*="flex-direction:column"] > a.btn-outline-light {
  margin-top: auto !important;
}

/* Image aspect ratio standard inside cards */
.card-img-wrap,
div[style*="display:flex"][style*="flex-direction:column"] > div[style*="border-radius"] > img {
  width: 100% !important;
  object-fit: cover !important;
}

/* ==========================================================================
   POLISH LAYER: HERO BALANCE, BUTTON SYSTEM, RHYTHM
   ========================================================================== */

/* Hero: balanced columns, controlled headline scale */
section.hero-section h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.1rem) !important;
  line-height: 1.12 !important;
  max-width: 16em;
}
section.hero-section > .container > div[style*="grid-template-columns"] {
  align-items: stretch !important;
  gap: clamp(32px, 4vw, 56px) !important;
}
section.hero-section > .container > div[style*="grid-template-columns"] > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Hero CTAs: equal-width pair */
section.hero-section div[style*="flex-wrap:wrap"][style*="margin-bottom:28px"] > a {
  flex: 1 1 260px !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 52px !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.03em !important;
  padding: 12px 18px !important;
  box-sizing: border-box !important;
}

/* Unified button language: soft 10px radius, consistent weight/height */
a.btn-gold-cta,
a.btn-outline-light,
a.btn-ghost,
a.nav-cta ~ a,
a[style*="border-radius:4px"][style*="padding:1"] {
  border-radius: 10px !important;
}
a.btn-gold-cta,
a.btn-outline-light {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}
a.btn-gold-cta:hover,
a.btn-outline-light:hover {
  transform: translateY(-2px) !important;
}
a.btn-outline-light:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.55) !important;
}

/* Cards: unified radius, gentle lift on hover */
div[style*="background:var(--navy-surface)"][style*="border-radius"],
div[style*="background:var(--navy-card)"][style*="border-radius"],
.dept-card, .feature-card, .course-card {
  border-radius: 14px !important;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.dept-card:hover, .feature-card:hover, .course-card:hover,
div[style*="background:var(--navy-card)"][style*="border-radius"]:hover {
  transform: translateY(-3px);
  border-color: rgba(255,190,46,0.45) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}

/* Section rhythm: alternate surface tint so long page reads in bands */
main > section:nth-of-type(even):not(.hero-section),
body > section:nth-of-type(even):not(.hero-section):not(.radar-ticker-wrap) {
  background: #0c1016 !important;
}

/* Section headings: tighter, consistent underline accent */
section .section-title, section h2 {
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Smooth scrolling and focus clarity */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
a:focus-visible, button:focus-visible { outline: 2px solid #ffbe2e !important; outline-offset: 3px; }

@media (max-width: 900px) {
  section.hero-section > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  section.hero-section h1 { max-width: none; }
}

/* Hero refinements */
section.hero-section > .container > div[style*="grid-template-columns"] > div:first-child > div:first-child {
  align-self: flex-start;
}
section.hero-section div[style*="flex-wrap:wrap"][style*="margin-bottom:28px"] > a {
  font-size: 0.78rem !important;
  letter-spacing: 0.01em !important;
  padding: 12px 10px !important;
  white-space: nowrap !important;
}

/* Section header blocks align flush with the grid */
.container > .text-center[style*="max-width"] { margin-left: 0 !important; margin-right: auto !important; padding-left: 0 !important; padding-right: 0 !important; text-align: left !important; }


/* ==========================================================================
   LEGACY LIGHT-THEME CLASS NEUTRALISER (fixes dark-on-dark text)
   ========================================================================== */
.section-light {
  background-color: transparent !important;
  color: #c9d1d9 !important;
}
.section-light h1, .section-light h2, .section-light h3, .section-light h4, .section-light strong {
  color: #ffffff !important;
}
.section-light p, .section-light li, .section-light div, .section-light span {
  color: inherit;
}
.section-light p { color: #c9d1d9 !important; }
.card-light {
  background-color: #12161c !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #c9d1d9 !important;
}
.card-light h1, .card-light h2, .card-light h3, .card-light h4 { color: #ffffff !important; }
.card-light p { color: #c9d1d9 !important; }

/* Gold surfaces always carry dark, readable text */
a.btn-gold-cta, a.btn-gold-cta *, .nav-cta, .nav-cta * { color: #090c10 !important; }

/* ==========================================================================
   FORMS: CONSENT ROW, FOCUS STATES, VALIDATION FEEDBACK
   ========================================================================== */
.form-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 6px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #c9d1d9;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ffbe2e;
}
.form-consent a { color: #ffbe2e; text-decoration: underline; }
form input:focus, form select:focus, form textarea:focus {
  outline: none !important;
  border-color: #ffbe2e !important;
  box-shadow: 0 0 0 3px rgba(255, 190, 46, 0.2) !important;
}
form input:user-invalid, form select:user-invalid, form textarea:user-invalid {
  border-color: #f87171 !important;
}
.form-status.err { color: #fca5a5; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.4); border-radius: 8px; padding: 12px 14px; margin-top: 14px; font-size: 0.86rem; }
form button[type="submit"]:disabled { cursor: not-allowed; }