/* ============================================================
   eLightInfo — Main Stylesheet
   CSS Custom Properties, Reset, Typography, Base Utilities
   ============================================================ */

/* --- Google Fonts Import --- */
/* Space Grotesk = headings (geometric, technical) */
/* DM Sans = subheadings (Bold 700) + body copy (Regular 400/500/600) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  /* Colors */
  --color-dark:         #0A1628;
  --color-navy:         #0D2045;
  --color-navy-mid:     #1D3070;
  --color-indigo:       #2B3A8F;
  --color-blue:         #1D6AEB;
  --color-cyan:         #00C2FF;
  --color-white:        #FFFFFF;
  --color-surface:      #F0F4FA;
  --color-border:       #D0DBF0;
  --color-text-dark:    #1A2540;
  --color-text-mid:     #7A8BA8;
  --color-text-light:   #B0C0D8;
  --color-green:        #10D98B;
  --color-amber:        #F59E0B;

  /* Gradients */
  --grad-hero:     linear-gradient(135deg, #0A1628 0%, #0D2045 40%, #1D3070 100%);
  --grad-cta:      linear-gradient(135deg, #1D6AEB 0%, #00C2FF 100%);
  --grad-card:     linear-gradient(135deg, #0D2045 0%, #2B3A8F 100%);
  --grad-accent:   linear-gradient(135deg, #1D6AEB 0%, #2B3A8F 100%);
  --grad-dark-cta: linear-gradient(135deg, #0D2045 0%, #1D6AEB 100%);

  /* Typography */
  --font-heading:    'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-subheading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:       'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(10,22,40,0.12), 0 1px 2px rgba(10,22,40,0.08);
  --shadow-md:   0 4px 16px rgba(10,22,40,0.18), 0 2px 6px rgba(10,22,40,0.10);
  --shadow-lg:   0 10px 40px rgba(10,22,40,0.25), 0 4px 12px rgba(10,22,40,0.15);
  --shadow-glow: 0 0 24px rgba(29,106,235,0.35);
  --shadow-card: 0 4px 20px rgba(10,22,40,0.12);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max:  1280px;
  --nav-height:     72px;
}

/* --- CSS Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-cyan); }

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* h1 + h2 → New Panam Skyline placeholder (Syne) */
h1, h2 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 800;
  color: var(--color-text-dark);
}

/* h3–h6 → DM Sans Bold (alternate subheadings) */
h3, h4, h5, h6 {
  font-family: var(--font-subheading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text-dark);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

/* --- Section Utilities --- */
.section {
  padding-block: var(--space-20);
}
.section-sm {
  padding-block: var(--space-12);
}
.section-lg {
  padding-block: var(--space-24);
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.section-dark h1, .section-dark h2,
.section-dark h3, .section-dark h4 {
  color: var(--color-white);
}

.section-navy {
  background: var(--color-navy);
  color: var(--color-white);
}
.section-navy h1, .section-navy h2,
.section-navy h3, .section-navy h4 {
  color: var(--color-white);
}

.section-surface {
  background: var(--color-surface);
}

.section-gradient {
  background: var(--grad-hero);
  color: var(--color-white);
}
.section-gradient h1, .section-gradient h2,
.section-gradient h3, .section-gradient h4 {
  color: var(--color-white);
}

/* --- Typography Scale --- */
.text-display {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.text-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.text-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}
.text-h3 {
  font-family: var(--font-subheading);
  font-size: 1.5rem;
  font-weight: 700;
}
.text-h4 {
  font-family: var(--font-subheading);
  font-size: 1.25rem;
  font-weight: 700;
}
.text-lead {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-mid);
}
.text-small {
  font-size: 0.875rem;
}
.text-xs {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Color modifiers */
.text-white    { color: var(--color-white) !important; }
.text-blue     { color: var(--color-blue) !important; }
.text-cyan     { color: var(--color-cyan) !important; }
.text-muted    { color: var(--color-text-mid) !important; }
.text-light    { color: var(--color-text-light) !important; }
.text-green    { color: var(--color-green) !important; }

/* Text alignment */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-cta);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(29,106,235,0.35);
}
.btn-primary:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29,106,235,0.50);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  color: var(--color-white);
  border-color: var(--color-cyan);
  background: rgba(0,194,255,0.08);
}

.btn-outline-blue {
  background: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}
.btn-outline-blue:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* --- Badges / Tags --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-blue {
  background: rgba(29,106,235,0.15);
  color: var(--color-cyan);
  border: 1px solid rgba(29,106,235,0.3);
}
.badge-green {
  background: rgba(16,217,139,0.15);
  color: var(--color-green);
  border: 1px solid rgba(16,217,139,0.3);
}
.badge-amber {
  background: rgba(245,158,11,0.15);
  color: var(--color-amber);
  border: 1px solid rgba(245,158,11,0.3);
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-8);
}
.divider-dark {
  background: rgba(255,255,255,0.08);
}

/* --- Section Header (centered title block) --- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: var(--space-3);
}
.section-header h2 {
  margin-bottom: var(--space-4);
}
.section-header p {
  color: var(--color-text-mid);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.section-dark .section-header p,
.section-navy .section-header p,
.section-gradient .section-header p {
  color: var(--color-text-light);
}

/* --- Grid Utilities --- */
.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto-fill-280 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* --- Flex Utilities --- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* --- Spacing Utilities --- */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* --- Highlight / Gradient Text --- */
.text-gradient {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Underline accent --- */
.underline-accent {
  position: relative;
  display: inline-block;
}
.underline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-cta);
  border-radius: 2px;
}

/* --- Icon Box --- */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(29,106,235,0.12);
  color: var(--color-blue);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.icon-box-lg {
  width: 72px;
  height: 72px;
  font-size: 2rem;
  border-radius: var(--radius-xl);
}
.icon-box-cyan {
  background: rgba(0,194,255,0.12);
  color: var(--color-cyan);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb {
  background: var(--color-blue);
  border-radius: 3px;
}

/* --- Selection --- */
::selection {
  background: var(--color-blue);
  color: var(--color-white);
}

/* --- Focus ring --- */
:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

/* --- Skip link (accessibility) --- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 1rem;
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  z-index: 10001;
  transform: translateY(-100%);
  transition: transform 0.18s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-cyan);
  outline-offset: -3px;
}

/* --- Animate on scroll (base states) --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll[data-delay="100"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="200"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="300"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="400"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="500"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}
.breadcrumb a {
  color: var(--color-text-light);
}
.breadcrumb a:hover { color: var(--color-cyan); }
.breadcrumb-sep { opacity: 0.5; }

/* --- Horizontal rule --- */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}
