
/* ─── FONT DISPLAY SWAP — improves LCP ─── */
@font-face {
  font-family: 'Barlow Condensed';
  font-display: swap;
  src: local('Barlow Condensed');
}
@font-face {
  font-family: 'Barlow';
  font-display: swap;
  src: local('Barlow');
}

/* ============================================
   ECHELON LIGHTING SOLUTIONS — GLOBAL STYLES
   Better Light. Smarter Futures.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

:root {
  --blue: #2b8cff;
  --blue-dark: #1a6fd4;
  --black: #080808;
  --off-black: #0d0d0d;
  --dark: #0a0a0a;
  --card: #0d0d0d;
  --border: rgba(255,255,255,0.07);
  --muted: #888;
  --dim: #fff;
  --text: #fff;
  --accent-dark: #0b1828;

  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', sans-serif;

  --nav-h: 64px;
  --max-w: 1200px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── NAV ─── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-h);
  border-bottom: 0.5px solid var(--border);
  background: var(--off-black);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav-brand { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 4px; color: #fff; line-height: 1; }
.nav-sub { font-family: var(--font-display); font-size: 9px; letter-spacing: 3px; color: #a0a0a0; line-height: 1; margin-top: 2px; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { color: #c0c0c0; font-size: 12px; letter-spacing: 1.5px; text-decoration: none; transition: color 0.2s; font-family: var(--font-display); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta {
  background: var(--blue-dark); color: #fff; border: none; padding: 10px 22px;
  font-size: 11px; letter-spacing: 2px; cursor: pointer; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; transition: background 0.2s;
  text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: #0d4a9e; }
.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-mobile-toggle span { display: block; width: 22px; height: 1.5px; background: #fff; transition: all 0.3s; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 2px;
  color: #fff; margin-bottom: 28px;
}
.breadcrumb a { color: #fff; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { margin: 0 8px; color: #888; }

/* ─── PAGE HERO ─── */
.page-hero {
  position: relative; padding: 64px 48px 72px;
  overflow: hidden; border-bottom: 0.5px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #080808 0%, #0b1828 55%, #080808 100%);
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43,140,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,140,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px; z-index: 0;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 680px; }
.eyebrow {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 3.5px;
  color: var(--blue); margin-bottom: 16px; font-weight: 500;
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; line-height: 1.05; letter-spacing: 1px; margin-bottom: 20px;
}
.page-hero h1 span { color: var(--blue); }
.page-hero .lead { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 32px; max-width: 520px; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 48px; padding-top: 36px;
  border-top: 0.5px solid var(--border); flex-wrap: wrap;
}
.hero-stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat-num span { color: var(--blue); }
.hero-stat-label { font-family: var(--font-display); font-size: 10px; color: var(--dim); letter-spacing: 2px; margin-top: 5px; font-weight: 600; }

/* ─── SECTIONS ─── */
section { padding: 80px 48px; }

.label { font-family: var(--font-display); font-size: 11px; letter-spacing: 3px; color: var(--blue); margin-bottom: 10px; font-weight: 500; }
h2 { font-family: var(--font-display); font-size: 36px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.5px; }
h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: 0.5px; color: #fff; }
.sub { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 48px; max-width: 520px; }
p { font-size: 14px; color: #b0b0b0; line-height: 1.7; }

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.05);
}
.service-card { background: var(--card); padding: 36px 30px; transition: background 0.2s; text-decoration: none; display: block; }
.service-card:hover { background: #111; }
.service-icon { width: 38px; height: 38px; min-width: 38px; max-width: 38px; margin-bottom: 20px; display: block; }
.service-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 10px; letter-spacing: 0.5px; color: #fff; }
.service-desc { font-size: 13px; color: #b0b0b0; line-height: 1.7; }
.service-link { display: inline-block; margin-top: 18px; font-size: 10px; color: var(--blue); letter-spacing: 1.5px; font-family: var(--font-display); font-weight: 600; }

/* ─── GENERIC GRIDS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.05); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.05); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.05); }
.grid-card { background: var(--card); padding: 32px 28px; transition: background 0.2s; }
.grid-card:hover { background: #111; }
.grid-card .card-num { font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; color: var(--blue); margin-bottom: 14px; font-weight: 600; }
.grid-card p { font-size: 13px; color: #b0b0b0; line-height: 1.7; }

/* ─── FEATURE ROW ─── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  padding: 56px 0; border-bottom: 0.5px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-content p { font-size: 14px; color: #b0b0b0; line-height: 1.75; margin-bottom: 12px; }
.feature-visual {
  background: #080808; border: 0.5px solid var(--border); border-radius: 6px;
  padding: 2.5rem; min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.feature-visual::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(43,140,255,0.08) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.vis-label { font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; color: #a0a0a0; font-weight: 600; }
.vis-big { font-family: var(--font-display); font-size: 72px; font-weight: 700; color: var(--blue); line-height: 1; }
.vis-sub { font-size: 11px; color: #fff; }

/* ─── CHECK LIST ─── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #b0b0b0; line-height: 1.55; }
.check-list li::before { content: '→'; color: var(--blue); font-size: 11px; flex-shrink: 0; margin-top: 2px; font-family: var(--font-display); font-weight: 600; }

/* ─── PROCESS STEPS ─── */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
.process-step { padding: 28px 24px 28px 0; border-top: 2px solid rgba(43,140,255,0.35); }
.process-step-num { font-family: var(--font-display); font-size: 10px; color: var(--blue); letter-spacing: 2px; margin-bottom: 14px; font-weight: 600; }
.process-step-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 10px; color: #fff; }
.process-step-text { font-size: 13px; color: #b0b0b0; line-height: 1.65; }

/* ─── FAQ ─── */
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 0.5px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer;
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  letter-spacing: 0.3px; color: #ddd; gap: 16px;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--blue); flex-shrink: 0; font-weight: 300; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; font-size: 13px; line-height: 1.75; color: #b0b0b0; padding-bottom: 20px; }
.faq-a a { color: var(--blue); }
.faq-item.open .faq-a { display: block; }

/* ─── TESTIMONIAL ─── */
.testimonial-block { border-left: 2px solid var(--blue); padding: 24px 28px; background: #080808; border-radius: 0 4px 4px 0; margin: 24px 0; }
.testimonial-block blockquote { font-size: 18px; font-weight: 300; line-height: 1.65; color: #ddd; margin-bottom: 16px; }
.testimonial-block blockquote em { color: var(--blue); font-style: normal; }
.testimonial-block cite { font-family: var(--font-display); font-size: 11px; letter-spacing: 1.5px; color: #fff; font-style: normal; font-weight: 500; }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--blue-dark); padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-title { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: 0.5px; color: #fff; }
.cta-sub { font-size: 14px; color: #fff; margin-top: 5px; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--blue-dark); color: #fff; border: none; padding: 14px 30px;
  font-size: 11px; letter-spacing: 2px; cursor: pointer; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; transition: background 0.2s;
  display: inline-block; text-decoration: none;
}
.btn-primary:hover { background: #0d4a9e; }
.btn-outline {
  background: transparent; color: #ccc; border: 0.5px solid rgba(255,255,255,0.25);
  padding: 14px 30px; font-size: 11px; letter-spacing: 2px; cursor: pointer;
  border-radius: var(--radius); font-family: var(--font-display); font-weight: 600;
  transition: border-color 0.2s, color 0.2s; display: inline-block; text-decoration: none;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-white {
  background: #fff; color: var(--blue-dark); border: none; padding: 14px 30px;
  font-size: 11px; letter-spacing: 2px; cursor: pointer; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; transition: opacity 0.2s;
  white-space: nowrap; text-decoration: none; display: inline-block;
}
.btn-white:hover { opacity: 0.9; }

/* ─── DATA TABLE ─── */
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 13px; }
.data-table th { background: #080808; color: #fff; font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; padding: 12px 16px; text-align: left; border-bottom: 0.5px solid var(--border); font-weight: 600; }
.data-table td { padding: 12px 16px; border-bottom: 0.5px solid var(--border); color: #b0b0b0; }
.data-table tr:hover td { background: var(--card); }
.data-table td:first-child { color: #ddd; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.data-table td.accent { color: var(--blue); font-weight: 600; }

/* ─── ARTICLE ─── */
.article-body h2 { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin: 40px 0 12px; color: #fff; letter-spacing: 0.5px; }
.article-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 28px 0 10px; color: #ddd; }
.article-body p { font-size: 15px; line-height: 1.8; color: #c0c0c0; margin-bottom: 18px; }
.article-body ul { list-style: none; margin: 10px 0 18px; display: flex; flex-direction: column; gap: 7px; }
.article-body ul li { padding-left: 20px; position: relative; font-size: 14px; line-height: 1.65; color: #b0b0b0; }
.article-body ul li::before { content: '→'; color: var(--blue); position: absolute; left: 0; font-family: var(--font-display); font-weight: 600; font-size: 12px; }
.pull-quote { border-left: 2px solid var(--blue); padding: 18px 24px; background: #080808; margin: 28px 0; }
.pull-quote p { font-size: 16px !important; color: #ddd !important; font-weight: 300; margin: 0 !important; line-height: 1.65; }
.inline-cta { background: var(--accent-dark); border: 0.5px solid rgba(43,140,255,0.3); border-radius: 4px; padding: 20px 28px; margin: 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inline-cta p { margin: 0 !important; color: #c0c0c0 !important; font-size: 13px !important; }

/* ─── CALCULATOR ─── */
.calc-wrap { background: var(--card); border: 0.5px solid var(--border); border-radius: 4px; padding: 40px; margin: 24px 0; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.field label { display: block; font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; color: #fff; margin-bottom: 8px; font-weight: 600; }
.field input, .field select { width: 100%; background: #080808; border: 0.5px solid var(--border); color: #ddd; font-family: var(--font-body); font-size: 14px; padding: 12px 14px; border-radius: var(--radius); transition: border-color 0.2s; -webkit-appearance: none; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field select option { background: var(--card); }
.calc-btn { width: 100%; padding: 14px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 2px; border: none; border-radius: var(--radius); cursor: pointer; transition: background 0.2s; font-family: var(--font-display); }
.calc-btn:hover { background: var(--blue-dark); }
.results { display: none; margin-top: 28px; padding-top: 28px; border-top: 0.5px solid var(--border); }
.results.show { display: block; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.05); margin-bottom: 24px; }
.result-card { background: var(--card); padding: 24px; text-align: center; }
.result-num { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 6px; }
.result-label { font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; color: #fff; font-weight: 600; }
.progress-bar { height: 3px; background: rgba(255,255,255,0.07); margin: 14px 0; }
.progress-fill { height: 100%; background: var(--blue); transition: width 0.8s ease; }
.disclaimer { font-size: 11px; color: #a0a0a0; line-height: 1.65; margin-top: 14px; }

/* ─── GLOSSARY ─── */
.alpha-heading { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 0.5px solid var(--border); }
.term-block { padding: 18px 0; border-bottom: 0.5px solid var(--border); }
.term-block:last-child { border-bottom: none; }
.term-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.term-tag { display: inline-block; font-family: var(--font-display); font-size: 9px; letter-spacing: 2px; padding: 2px 8px; background: var(--card); border: 0.5px solid var(--border); border-radius: var(--radius); color: #fff; margin-bottom: 8px; font-weight: 600; }
.term-def { font-size: 13px; color: #b0b0b0; line-height: 1.75; }
.term-def a { color: var(--blue); }

/* ─── INDUSTRY GRID ─── */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.05); margin-top: 24px; }
.industry-card { background: var(--card); padding: 32px 28px; display: block; text-decoration: none; transition: background 0.2s; border-top: 2px solid transparent; }
.industry-card:hover { background: #111; }
.industry-card.featured { border-top-color: rgba(43,140,255,0.5); }
.industry-card:hover .card-arrow { color: var(--blue); }
.industry-num { font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; color: #fff; margin-bottom: 12px; font-weight: 600; }
.industry-card h2 { font-size: 22px; margin-bottom: 10px; color: #fff; }
.industry-card p { font-size: 13px; color: #b0b0b0; line-height: 1.65; margin-bottom: 14px; }
.card-arrow { font-family: var(--font-display); font-size: 10px; letter-spacing: 1.5px; color: #fff; font-weight: 600; transition: color 0.2s; }

/* ─── FOOTER ─── */
footer { background: #060606; padding: 52px 48px 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 0.5px solid var(--border); }
.footer-brand { max-width: 240px; }
.footer-tagline { font-size: 12px; color: #fff; line-height: 1.65; margin-top: 12px; }
.footer-col-title { font-family: var(--font-display); font-size: 10px; letter-spacing: 2.5px; color: var(--blue); margin-bottom: 16px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: #fff; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-size: 11px; color: #a0a0a0; }
.footer-badges { display: flex; gap: 16px; }
.footer-badge { font-family: var(--font-display); font-size: 10px; color: #fff; letter-spacing: 1.5px; font-weight: 500; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--off-black); border-bottom: 0.5px solid var(--border);
    padding: 20px 24px; gap: 16px; z-index: 99;
  }
  .nav-mobile-toggle { display: flex; }
  section { padding: 60px 24px; }
  .page-hero { padding: 48px 24px 56px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse { direction: ltr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 24px; }
  .calc-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  footer { padding: 40px 24px 24px; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 600px) {
  .services-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 34px; }
  h2 { font-size: 28px; }
}

/* ─── NAV DROPDOWN ─── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  color: #999;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-family: var(--font-display);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--blue); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: #0d0d0d;
  border: 0.5px solid var(--border);
  border-radius: 2px;
  list-style: none;
  min-width: 180px;
  z-index: 200;
  padding: 8px 0;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #999;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover { color: var(--blue); background: rgba(43,140,255,0.05); }
@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    border: none;
    border-left: 1px solid var(--border);
    background: transparent;
    padding: 4px 0 4px 12px;
    margin-top: 4px;
  }
  .nav-dropdown-menu li a { padding: 6px 0; font-size: 11px; }
}

/* ─── CLS REDUCTION ─── */
/* Reserve space for nav and hero elements before fonts load */
.nav-cta {
  min-width: 110px;
  min-height: 38px;
}
.hero-btns {
  min-height: 48px;
}
.hero-desc, .page-hero .lead, .hero-desc {
  min-height: 60px;
}
/* Prevent font swap reflow by sizing fallback close to Barlow */
body {
  font-size-adjust: 0.52;
}
