/* ══════════════════════════════════════════════════════════════
   HOLSEN SOLAR — Shared Stylesheet
   All pages link this file. Page-specific styles remain inline.
   ══════════════════════════════════════════════════════════════ */

/* ── BRAND TOKENS ── */
:root {
  --solar-orange:    #E8621A;
  --solar-orange-dk: #C04E0F;
  --solar-orange-lt: #F2834A;
  --solar-orange-bg: #FDF0E8;

  --sun-gold:        #F5A800;
  --sun-gold-dk:     #C98900;
  --sun-gold-lt:     #FFCA4A;
  --sun-gold-bg:     #FFFBEE;

  --sky-blue:        #29ABE2;
  --sky-blue-dk:     #1B8AB8;
  --sky-blue-lt:     #6ECDF2;
  --sky-blue-bg:     #EAF7FD;

  --deep-blue:       #1565A0;
  --deep-blue-dk:    #0D4372;
  --deep-blue-lt:    #2B80C5;
  --deep-blue-bg:    #E8F1FB;

  --ink:             #0D0D0D;
  --ink-mid:         #1E2A35;
  --text-dark:       #1C2B3A;
  --text-mid:        #4A5E6E;
  --text-light:      #8FA3B2;
  --border:          #DDE4EA;
  --surface:         #F5F7F9;
  --white:           #FFFFFF;

  --font-brand: 'Rajdhani', sans-serif;
  --font-body:  'DM Sans', sans-serif;

  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  40px;
  --sp-2xl: 64px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font-brand); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
a { color: var(--sky-blue); text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── UTILITIES ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--sp-xl); }
.section { padding: 96px 0; }
.section--alt   { background: var(--surface); }
.section--dark  { background: var(--ink); color: var(--white); }
.section--navy  { background: var(--deep-blue); color: var(--white); }
.section--deep  { background: var(--deep-blue-dk); color: var(--white); }
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── TYPOGRAPHY HELPERS ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--solar-orange);
  margin-bottom: var(--sp-sm);
}
.eyebrow--light { color: var(--solar-orange-lt); }
.eyebrow--blue  { color: var(--sky-blue-lt); }
.section-title { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: var(--sp-sm); }
.section-sub { font-size: 17px; color: var(--text-mid); max-width: 560px; line-height: 1.65; margin-bottom: var(--sp-xl); }
.section-sub--light { color: rgba(255,255,255,0.55); }
.lead { font-size: 18px; line-height: 1.75; color: var(--text-mid); max-width: 680px; margin-bottom: var(--sp-lg); }

/* ── LAYOUT HELPERS ── */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); align-items: start; }
.two-col--center { align-items: center; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.four-col  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-sm);
  padding: 12px var(--sp-lg);
  border-radius: var(--radius-sm);
  font-family: var(--font-brand);
  font-size: 14px; font-weight: 600; letter-spacing: 0.3px;
  cursor: pointer; border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--solar-orange); color: var(--white); }
.btn--primary:hover { background: var(--solar-orange-dk); transform: translateY(-1px); }
.btn--gold { background: var(--sun-gold); color: var(--ink); }
.btn--gold:hover { background: var(--sun-gold-dk); color: var(--white); }
.btn--outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn--outline-white:hover { background: rgba(255,255,255,0.08); }
.btn--outline-orange { background: transparent; color: var(--solar-orange); border: 1.5px solid var(--solar-orange); }
.btn--outline-orange:hover { background: var(--solar-orange-bg); }
.btn--outline-blue { background: transparent; color: var(--sky-blue); border: 1.5px solid var(--sky-blue); }
.btn--outline-blue:hover { background: var(--sky-blue-bg); }
.btn--lg { padding: 15px var(--sp-xl); font-size: 15px; }
.btn--sm { padding: var(--sp-sm) var(--sp-md); font-size: 12px; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  height: 64px; display: flex; align-items: center;
  padding: 0 var(--sp-xl); justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a { font-family: var(--font-brand); font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.55); transition: color var(--transition); display: flex; align-items: center; gap: 4px; }
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--solar-orange-lt); }
.nav-has-dropdown > a::after { content: '▾'; font-size: 10px; opacity: 0.5; transition: var(--transition); }
.nav-has-dropdown:hover > a::after, .nav-has-dropdown.nav-open > a::after { opacity: 1; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 2px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #111;
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  min-width: 220px; padding: var(--sp-sm) 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 200;
}
.nav-dropdown::before {
  content: ''; position: absolute;
  top: -2px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(255,255,255,0.1);
}
.nav-has-dropdown:hover .nav-dropdown, .nav-has-dropdown.nav-open .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown a { display: flex !important; align-items: center; gap: var(--sp-sm); padding: 10px var(--sp-lg); font-size: 13px; color: rgba(255,255,255,0.55) !important; white-space: nowrap; border-radius: 0; }
.nav-dropdown a:hover { color: var(--white) !important; background: rgba(255,255,255,0.05); }
.nav-dropdown a .drop-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--solar-orange); opacity: 0; transition: opacity var(--transition); flex-shrink: 0; }
.nav-dropdown a:hover .drop-dot { opacity: 1; }
.nav-dropdown a .drop-dot--gold { background: var(--sun-gold); }
.nav-dropdown a .drop-dot--blue { background: var(--sky-blue); }
.nav-dropdown-divider { height: 0.5px; background: rgba(255,255,255,0.07); margin: var(--sp-xs) 0; }
.nav-dropdown-label { font-family: var(--font-brand); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.25); padding: var(--sp-sm) var(--sp-lg) 4px; }
.nav-right { display: flex; align-items: center; gap: var(--sp-md); }
.nav-phone { font-family: var(--font-brand); font-size: 14px; font-weight: 600; color: var(--sun-gold); }
.nav-phone:hover { color: var(--sun-gold-lt); }

/* ── TRUST BAR ── */
.trust-bar { background: var(--ink-mid); border-bottom: 0.5px solid rgba(255,255,255,0.06); padding: 14px var(--sp-xl); display: flex; gap: 0; overflow-x: auto; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: var(--sp-sm); font-family: var(--font-brand); font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.45); padding: 0 var(--sp-lg); border-right: 0.5px solid rgba(255,255,255,0.08); white-space: nowrap; flex-shrink: 0; }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: none; }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--solar-orange); flex-shrink: 0; }

/* ── PAGE HERO (service pages) ── */
.page-hero { background: var(--ink); padding: 140px 0 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -80px; right: -60px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(232,98,26,0.08) 0%, transparent 65%); pointer-events: none; }
.page-hero::after  { content: ''; position: absolute; bottom: -60px; left: -40px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(41,171,226,0.06) 0%, transparent 65%); pointer-events: none; }
.page-hero-inner { display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-2xl); align-items: center; position: relative; z-index: 1; }
.page-hero-badge { display: inline-flex; align-items: center; gap: var(--sp-sm); background: rgba(232,98,26,0.12); border: 0.5px solid rgba(232,98,26,0.3); color: var(--solar-orange-lt); font-family: var(--font-brand); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; margin-bottom: var(--sp-md); }
.page-hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--solar-orange); flex-shrink: 0; }
.page-hero h1 { font-size: clamp(34px, 4.5vw, 54px); color: var(--white); margin-bottom: var(--sp-md); line-height: 1.1; }
.page-hero h1 em { color: var(--solar-orange-lt); font-style: normal; }
.page-hero-sub { font-size: 17px; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 520px; margin-bottom: var(--sp-xl); }
.hero-ctas { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }

/* ── FEATURE CARDS ── */
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: var(--transition); position: relative; overflow: hidden; }
.feature-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--solar-orange); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.feature-card:hover { border-color: rgba(232,98,26,0.3); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon { width: 44px; height: 44px; background: var(--solar-orange-bg); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-md); }
.feature-icon svg { width: 22px; height: 22px; stroke: var(--solar-orange); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-family: var(--font-brand); font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: var(--sp-sm); }
.feature-card p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* ── PROCESS STEPS ── */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl); }
.process-step { position: relative; }
.process-step::after { content: '→'; position: absolute; top: 28px; right: -28px; color: var(--border); font-size: 20px; }
.process-step:nth-child(3n)::after, .process-step:last-child::after { display: none; }
.step-num { font-family: var(--font-brand); font-size: 40px; font-weight: 700; color: var(--solar-orange-bg); line-height: 1; margin-bottom: var(--sp-sm); }
.process-step h4 { font-family: var(--font-brand); font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: var(--sp-sm); }
.process-step p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* ── STATS BAND ── */
.stats-band { background: var(--deep-blue); padding: var(--sp-2xl) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,0.06); gap: 1px; }
.stat-cell { background: var(--deep-blue); padding: var(--sp-xl) var(--sp-lg); text-align: center; }
.stat-num { font-family: var(--font-brand); font-size: 46px; font-weight: 700; color: var(--sun-gold-lt); letter-spacing: -2px; line-height: 1; }
.stat-label { font-family: var(--font-brand); font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.45); margin-top: var(--sp-sm); }

/* ── SERVICE AREAS ── */
.areas-flex { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.area-pill { display: inline-flex; align-items: center; background: var(--white); border: 1px solid var(--border); padding: var(--sp-sm) var(--sp-md); border-radius: 100px; font-family: var(--font-brand); font-size: 13px; font-weight: 500; color: var(--text-mid); transition: var(--transition); }
.area-pill:hover { border-color: var(--solar-orange); color: var(--solar-orange); }
.area-pill--featured    { background: var(--solar-orange-bg); border-color: rgba(232,98,26,0.25); color: var(--solar-orange-dk); font-weight: 600; }
.area-pill--mn          { border-color: rgba(41,171,226,0.3); color: var(--sky-blue-dk); background: var(--sky-blue-bg); }
.area-pill--nd          { border-color: rgba(232,98,26,0.3); color: var(--solar-orange-dk); background: var(--solar-orange-bg); }
.area-pill--sd          { border-color: rgba(21,101,160,0.3); color: var(--deep-blue); background: var(--deep-blue-bg); }
.area-pill--commercial  { border-color: var(--sun-gold-dk); color: var(--sun-gold-dk); background: var(--sun-gold-bg); font-weight: 600; }

/* ── CTA BAND ── */
.cta-band { background: var(--ink); padding: 96px var(--sp-xl); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(232,98,26,0.07), transparent 70%); pointer-events: none; }
.cta-band h2 { font-family: var(--font-brand); font-size: clamp(28px, 4vw, 44px); color: var(--white); margin-bottom: var(--sp-sm); position: relative; }
.cta-band p  { font-size: 17px; color: rgba(255,255,255,0.45); max-width: 520px; margin: 0 auto var(--sp-xl); line-height: 1.65; position: relative; }
.cta-btns { display: flex; gap: var(--sp-sm); justify-content: center; flex-wrap: wrap; position: relative; }
.cta-sub { font-family: var(--font-brand); font-size: 12px; color: rgba(255,255,255,0.25); margin-top: var(--sp-md); position: relative; letter-spacing: 0.5px; }

/* ── FOOTER ── */
.footer { background: var(--deep-blue-dk); padding: var(--sp-2xl) var(--sp-xl) 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-xl); padding-bottom: var(--sp-2xl); border-bottom: 0.5px solid rgba(255,255,255,0.07); }
.footer-grid--5col { grid-template-columns: auto 2fr 1fr 1fr 1fr; }
.footer-logo-col { display: flex; align-items: flex-start; justify-content: center; padding-right: var(--sp-lg); }
.footer-logo { font-family: var(--font-brand); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: var(--sp-sm); }
.footer-logo span { color: var(--solar-orange); }
.footer-about { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.75; margin-bottom: var(--sp-md); }
.footer-contact { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.9; }
.footer-contact a { color: var(--sky-blue-lt); }
.footer-social { display: flex; gap: var(--sp-md); margin-top: var(--sp-md); }
.footer-social a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-social a:hover { color: var(--solar-orange-lt); }
.footer-col h5 { font-family: var(--font-brand); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: var(--sp-md); }
.footer-col a { display: block; font-family: var(--font-brand); font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.5); margin-bottom: var(--sp-sm); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { padding: var(--sp-md) 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-sm); }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer-licenses { font-size: 11px; color: rgba(255,255,255,0.18); font-family: var(--font-brand); letter-spacing: 0.5px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.65s ease both; }
.delay-1 { animation-delay: 0.10s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }

/* ── MOBILE NAV — hamburger + drawer ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: var(--sp-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-hamburger:hover span { background: var(--white); }

.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-mobile-overlay.is-visible { display: block; }
.nav-mobile-overlay.is-open    { opacity: 1; }

.nav-mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  background: #0D0D0D;
  border-left: 0.5px solid rgba(255,255,255,0.08);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-mobile-drawer.is-open { transform: translateX(0); }

.nav-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-lg);
  height: 64px;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.nav-mobile-head img { height: 30px; width: auto; }

.nav-mobile-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.nav-mobile-close:hover { color: var(--white); }

.nav-mobile-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-sm) 0;
}

.nav-mobile-item {
  display: block;
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  padding: 12px var(--sp-lg);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.2px;
}
.nav-mobile-item:hover   { color: var(--white); background: rgba(255,255,255,0.04); }
.nav-mobile-item.active  { color: var(--solar-orange-lt); }

.nav-mobile-sub {
  display: block;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  padding: 7px var(--sp-lg) 7px calc(var(--sp-lg) + 12px);
  transition: color var(--transition);
}
.nav-mobile-sub:hover { color: rgba(255,255,255,0.7); }

.nav-mobile-divider {
  height: 0.5px;
  background: rgba(255,255,255,0.07);
  margin: var(--sp-xs) 0;
}

.nav-mobile-foot {
  padding: var(--sp-lg);
  border-top: 0.5px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  flex-shrink: 0;
}
.nav-mobile-phone {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 700;
  color: var(--sun-gold);
  display: block;
  text-align: center;
  letter-spacing: -0.5px;
}
.nav-mobile-phone:hover { color: var(--sun-gold-lt); }
.nav-mobile-cta { justify-content: center; width: 100%; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-right .nav-phone { display: none; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .three-col { grid-template-columns: 1fr 1fr; }
  .four-col  { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid--5col { grid-template-columns: 1fr 1fr; }
  .footer-logo-col { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 var(--sp-md); }
  .section { padding: var(--sp-2xl) 0; }
  .three-col, .four-col, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; }
}
