/* ==========================================================================
   VIHAAN SOLAR — PURE WHITE DESIGN SYSTEM & TYPOGRAPHY TOKENS
   4 Distinct Typography Stacks:
   - Variant 1: Enterprise EPC ('DM Sans' + 'Inter')
   - Variant 2: FinTech Savings ('Plus Jakarta Sans' + 'Inter')
   - Variant 3: Nordic CleanTech ('Outfit' + 'DM Sans')
   - Variant 4: Editorial Impact ('Newsreader' Serif Accents + 'DM Sans')
   ========================================================================== */

:root {
  /* --- Brand Color Matrix --- */
  --vhn-navy: #0C2340;          /* Deep Vihaan Navy */
  --vhn-navy-dark: #071526;     /* Dark Charcoal Navy for topbar/footer */
  --vhn-navy-light: #16365C;
  --vhn-blue: #0E64B8;          /* Bright Energy Blue */
  --vhn-blue-light: #2587E8;
  --vhn-blue-soft: #EEF6FC;     /* Soft Blue Tint */
  --vhn-orange: #F37021;        /* Vivid Solar Orange */
  --vhn-orange-hover: #D95D12;
  --vhn-orange-soft: #FFF4EC;   /* Warm Orange Glow */
  --vhn-yellow: #FFB300;        /* Sun Gold */
  --vhn-yellow-light: #FFD54F;
  --vhn-green: #10B981;         /* Eco Emerald */
  --vhn-green-soft: #ECFDF5;

  /* --- Pure White Background Foundation --- */
  --vhn-bg: #FFFFFF;            /* Pure Crisp White */
  --vhn-bg-alt: #FAFAFC;        /* Subtle Off-White / Soft Studio Gray */
  --vhn-bg-subtle: #F1F5F9;
  --vhn-border: #E2E8F0;
  --vhn-border-subtle: #F1F5F9;

  /* --- Typography Colors --- */
  --vhn-text-primary: #0F172A;   /* Slate 900 for razor-sharp readability */
  --vhn-text-secondary: #334155; /* Slate 700 */
  --vhn-text-muted: #64748B;     /* Slate 500 */
  --vhn-text-subtle: #94A3B8;
  --vhn-text-white: #FFFFFF;

  /* --- Curated Font Stacks --- */
  --font-epc: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-fintech: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-nordic: 'Outfit', 'DM Sans', -apple-system, sans-serif;
  --font-editorial: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'DM Sans', var(--font-body);

  /* --- Elevation & Shadows --- */
  --shadow-xs: 0 1px 2px rgba(12, 35, 64, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(12, 35, 64, 0.07), 0 2px 4px -2px rgba(12, 35, 64, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(12, 35, 64, 0.08), 0 4px 6px -4px rgba(12, 35, 64, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(12, 35, 64, 0.10), 0 8px 10px -6px rgba(12, 35, 64, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(12, 35, 64, 0.18);
  --shadow-orange: 0 10px 25px -5px rgba(243, 112, 33, 0.35);
  --shadow-blue: 0 10px 25px -5px rgba(14, 100, 184, 0.30);

  /* --- Layout & Radii --- */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --trans-fast: 0.15s ease;
  --trans-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--vhn-text-primary);
  background-color: var(--vhn-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Typography Defaults --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--vhn-navy);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--vhn-text-secondary);
  line-height: 1.65;
}

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

a:hover {
  color: var(--vhn-navy);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

.section-wrapper {
  padding: 85px 0;
  position: relative;
  background-color: var(--vhn-bg);
}

@media (max-width: 768px) {
  .section-wrapper {
    padding: 50px 0 !important;
  }
}

.section-wrapper.bg-alt {
  background-color: var(--vhn-bg-alt);
  border-top: 1px solid var(--vhn-border);
  border-bottom: 1px solid var(--vhn-border);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--vhn-text-muted);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--vhn-blue-soft);
  color: var(--vhn-blue);
  border: 1px solid rgba(14, 100, 184, 0.15);
}

.eyebrow-pill.pill-orange {
  background: var(--vhn-orange-soft);
  color: var(--vhn-orange);
  border-color: rgba(243, 112, 33, 0.2);
}

.eyebrow-pill.pill-green {
  background: var(--vhn-green-soft);
  color: var(--vhn-green);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Content Visibility & Micro-Transitions */
.reveal-on-scroll {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* ==========================================================================
   MODERN INFOGRAPHIC UI SYSTEM (Universal Components)
   ========================================================================== */

/* 1. Infographic Flow Diagram Nodes */
.info-flow-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  position: relative;
  margin: 36px 0;
}

.info-flow-step {
  background: #FFFFFF;
  border: 1.5px solid var(--vhn-border);
  border-radius: 20px;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  transition: all var(--trans-normal);
  box-shadow: var(--shadow-xs);
}

.info-flow-step:hover {
  border-color: var(--vhn-orange);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.info-flow-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--vhn-navy);
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(12, 35, 64, 0.2);
}

.info-flow-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.info-flow-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--vhn-navy);
  margin-bottom: 6px;
}

.info-flow-desc {
  font-size: 0.85rem;
  color: var(--vhn-text-muted);
  line-height: 1.5;
}

/* 2. Visual Progress & Efficiency Gauges */
.info-gauge-wrap {
  background: #FFFFFF;
  border: 1px solid var(--vhn-border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.info-gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--vhn-navy);
}

.info-gauge-bar-track {
  height: 10px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.info-gauge-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10B981, #059669);
  transition: width 1s ease-in-out;
}

.info-gauge-bar-fill.orange {
  background: linear-gradient(90deg, #F37021, #FFB300);
}

.info-gauge-bar-fill.blue {
  background: linear-gradient(90deg, #0E64B8, #2587E8);
}

/* 3. Infographic Stat Badge Rings */
.info-radial-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
  border: 1.5px solid var(--vhn-border);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: var(--shadow-xs);
  transition: all var(--trans-fast);
}

.info-radial-stat:hover {
  transform: translateY(-4px);
  border-color: var(--vhn-blue);
  box-shadow: var(--shadow-sm);
}

.info-radial-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: conic-gradient(#10B981 0% 90%, #E2E8F0 90% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.info-radial-ring::after {
  content: '';
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
}

.info-radial-center {
  position: absolute;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--vhn-navy);
}

.info-radial-content {
  display: flex;
  flex-direction: column;
}

.info-radial-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--vhn-navy);
  line-height: 1.2;
}

.info-radial-lbl {
  font-size: 0.82rem;
  color: var(--vhn-text-muted);
  font-weight: 600;
}

/* 4. Infographic Cost Breakdown Stacked Bar */
.info-stacked-cost-card {
  background: #FAFAFC;
  border: 1.5px solid var(--vhn-border);
  border-radius: 20px;
  padding: 24px;
  margin: 20px 0;
}

.info-stacked-bar {
  display: flex;
  height: 22px;
  border-radius: 8px;
  overflow: hidden;
  margin: 14px 0 10px 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.info-stacked-segment-pay {
  background: var(--vhn-blue);
  height: 100%;
}

.info-stacked-segment-sub {
  background: var(--vhn-orange);
  height: 100%;
}

.info-stacked-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--vhn-navy);
}
