/* =====================================================
   Solar Sight – Global Design System
   ANTIGRAVITY-001 | v0.1
   Palette: Deep navy primary, solar amber accent
   ===================================================== */

/* Solar Sight uses Lota Grotesque for Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

@font-face {
  font-family: 'Lota Grotesque';
  src: url('/assets/fonts/lota-grotesque-alt-1/Los Andes  Lota Grotesque Alt 1 Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lota Grotesque';
  src: url('/assets/fonts/lota-grotesque-alt-1/Los Andes  Lota Grotesque Alt 1 Semi Bold.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lota Grotesque';
  src: url('/assets/fonts/lota-grotesque-alt-1/Los Andes  Lota Grotesque Alt 1 Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lota Grotesque';
  src: url('/assets/fonts/lota-grotesque-alt-1/Los Andes  Lota Grotesque Alt 1 Black.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ─── Tokens ─── */
:root {
  /* Colours */
  --navy:        #2474B8;
  --navy-dark:   #1A5282;
  --navy-light:  #3A8BCD;
  --amber:       #76BCE8;
  --amber-dark:  #53A2D4;
  /* CTA colour — dark navy blue for light backgrounds */
  --cta:         #2474B8;
  --cta-dark:    #1A5282;

  --white:       #FFFFFF;
  --off-white:   #F9F8F6;
  --slate-50:    #F1F3F7;
  --slate-100:   #E2E6EF;
  --slate-400:   #8896B3;
  --slate-600:   #4A5568;
  --text:        #1A1A1A;
  --text-muted:  #5A6478;

  /* Typography */
  --font:        'Lota Grotesque', 'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-v:   96px;
  --max-w:       1200px;
  --radius:      8px;
  --radius-lg:   12px;

  /* Transition */
  --t:           all 0.25s ease;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.12);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* prevent ANY element from creating horizontal scroll */
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── Shared Utilities ─── */
.ss-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.ss-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy);            /* dark blue – readable on white/light backgrounds */
  margin-bottom: 14px;
  display: block;
}

/* Eyebrow on dark/navy section backgrounds — use light blue for contrast */
.content-section--navy .ss-eyebrow,
.metric-bar .ss-eyebrow,
.tech-trust .ss-eyebrow,
.home-cta-banner .ss-eyebrow,
.cta-banner .ss-eyebrow,
.ss-eyebrow.on-dark {
  color: var(--amber);           /* light blue #76BCE8 – readable on dark navy */
  opacity: 1;
}

.ss-section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.ss-section-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
}

/* ─── Buttons ─── */
.ss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--t);
  white-space: nowrap;
  line-height: 1;
}

.ss-btn--primary {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}
.ss-btn--primary:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(36,116,184,0.35);
}

/* Inverse primary — white button for dark/navy section backgrounds */
.ss-btn--primary-inv {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.ss-btn--primary-inv:hover {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.ss-btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.ss-btn--navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.ss-btn--ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.ss-btn--ghost-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.ss-btn--lg { padding: 17px 36px; font-size: 16px; }
.ss-btn--sm { padding: 10px 20px; font-size: 14px; }

/* ─── Header ─── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-100);
  transition: var(--t);
  font-family: var(--font);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.logo a {
  display: block;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}


nav ul {
  display: flex;
  list-style: none;
  gap: 2px;
}

nav a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--t);
}

nav a:hover, nav a.active { color: var(--navy); background: var(--slate-50); }

.header-cta { flex-shrink: 0; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--navy);
}

/* ─── Footer ─── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  font-family: var(--font);
  border: none;
  padding: 0;
  text-align: left;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 40px 40px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-img {
  height: 38px;
  width: auto;
  margin-bottom: 20px;
}


.footer-brand .logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.footer-brand .logo-text span { color: var(--amber); }

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 16px;
}

.footer-disclaimer {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  /* ⚠️ PLACEHOLDER — Karl/Sam to provide DC/MD regulatory compliant disclaimer text before launch */
  font-style: italic;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: var(--t);
}
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: var(--t);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* Legacy overrides — remove old .footer-nav */
.footer-nav { display: none !important; }

/* ─── Forms (global) ─── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 11px 14px;
  border: 1.5px solid var(--slate-100);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: var(--t);
  outline: none;
  width: 100%;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  padding: 13px 16px;
  font-size: 16px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238896B3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--slate-400); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(36,116,184,0.08);
}

.form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
}

.prequal-success {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #059669;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid #D1FAE5;
}

.prequal-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.prequal-success p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
  /* Safety net: auto-reveal after 2s even if JS never fires */
  animation: revealFallback 0s 2s forwards;
}
.reveal.visible { opacity: 1; transform: translateY(0); animation: none; }

/* If JS initialises the reveal system, it adds .visible before this fires.
   If JS crashes, this guarantees content appears after 2s. */
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  :root { --section-v: 64px; }

  .ss-container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 20px 32px; }
  .footer-bottom { padding: 20px; flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  nav { display: none; }
  nav.open { display: block; }
  .nav-toggle { display: flex; }

  nav ul {
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-100);
    padding: 12px 20px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ─── Very small screens: 400px and below (∼360px target) ─── */
@media (max-width: 400px) {
  :root { --section-v: 48px; }

  /* Tighter container + header */
  .ss-container   { padding: 0 14px; }
  .header-inner   { padding: 0 14px; }

  /* Hide primary nav CTA in header — too cramped at 360px;
     every hero section already has a full CTA */
  .header-cta     { display: none; }

  /* Navigation mobile panel */
  nav ul { padding: 10px 14px 16px; }

  /* Headings: prevent long words from breaking layout */
  .ss-section-title,
  .cta-banner__title,
  h1, h2, h3 {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Buttons: shrink large variant */
  .ss-btn--lg   { padding: 13px 18px; font-size: 14px; }
  .ss-btn--sm   { padding: 9px 14px;  font-size: 12px; }

  /* Footer */
  .footer-inner       { grid-template-columns: 1fr; gap: 20px; padding: 36px 14px 24px; }
  .footer-bottom      { padding: 16px 14px; }
  .footer-brand p     { font-size: 13px; }
  .footer-disclaimer  { font-size: 11px; }
}
