/* ==========================================================================
   HELIOS EPC & SOLARIS - Clean White & Daylight Solar Luxury Theme
   Pristine White Backgrounds, Radiant Solar Amber, Azure Sky, Emerald Accents
   ========================================================================== */

:root {
  /* Daylight & Pristine White Theme Palette */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-card-subtle: #f1f5f9;
  --bg-input: #ffffff;
  
  /* Real Solar Gold, Amber & Sunfire Accents */
  --sun-gold: #f59e0b;
  --sun-gold-light: #d97706;
  --sun-amber: #b45309;
  --sun-flare: #fef08a;
  --sun-glow: rgba(245, 158, 11, 0.25);
  
  /* Atmospheric Sky & Electric Accents */
  --sky-blue: #0284c7;
  --sky-light: #e0f2fe;
  --electric-cyan: #0891b2;
  --electric-cyan-glow: #0284c7;
  --energy-green: #059669;
  --energy-green-glow: #10b981;
  --energy-green-bg: #ecfdf5;
  
  /* Typography & High Contrast Slate */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-card: rgba(15, 23, 42, 0.06);
  --border-glow: rgba(245, 158, 11, 0.4);
  
  /* Layout & Diffused Shadows */
  --container-max: 1280px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-card: 0 12px 36px -8px rgba(15, 23, 42, 0.08), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 20px 48px -10px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.2);
  --shadow-cyan: 0 0 30px rgba(8, 145, 178, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric Sun-Kissed Mesh */
.bg-grid-mesh {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(rgba(245, 158, 11, 0.06) 1px, transparent 1px),
    radial-gradient(rgba(2, 132, 199, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.bg-ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.45), rgba(245, 158, 11, 0.15), transparent 70%);
  top: -120px;
  right: -100px;
}
.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.6), rgba(2, 132, 199, 0.08), transparent 70%);
  bottom: 25%;
  left: -150px;
}
.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(209, 250, 229, 0.5), rgba(5, 150, 105, 0.06), transparent 70%);
  top: 60%;
  right: -100px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text-solar {
  background: linear-gradient(135deg, #0f172a 15%, #b45309 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-energy {
  background: linear-gradient(135deg, #b45309 0%, #059669 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b45309;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
}

.google-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  justify-content: center;
}

.mobile-nav-cta {
  display: none;
}

.section-tag.cyan {
  background: #f0f9ff;
  border-color: rgba(2, 132, 199, 0.3);
  color: #0369a1;
}

.section-tag.green {
  background: #ecfdf5;
  border-color: rgba(5, 150, 105, 0.3);
  color: #047857;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-solar-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.35);
}

.btn-solar-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.45);
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.btn-solar-outline {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #b45309;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-solar-outline:hover {
  background: #fffbeb;
  border-color: #b45309;
  color: #92400e;
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.3);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* --------------------------------------------------------------------------
   Header & Navigation (Clean Daylight White)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-img {
  height: 65px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  color: var(--text-main);
  white-space: nowrap;
}

.brand-accent {
  color: var(--sun-gold-light);
}

.brand-subtitle {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #b45309;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: #f59e0b;
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

.header-call-btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.header-quote-btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  background: #f1f5f9;
}

/* --------------------------------------------------------------------------
   Hero Section & Interactive Energy Simulation
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 45%, #f8fafc 100%);
}

/* Feathered Daylight Transition between Hero and Next Section */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.75) 60%, #f8fafc 100%);
  pointer-events: none;
  z-index: 2;
}

/* Canvas Energy Simulation Background */
.hero-sim-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#energySimCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
}

.hero-headline {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
  color: #0f172a;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  color: #334155;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-item svg {
  color: #d97706;
  flex-shrink: 0;
}

/* Hero Interactive Simulation HUD / Telemetry Card */
.sim-hud-card {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 370px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  z-index: 15;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12), 0 0 25px rgba(245, 158, 11, 0.15);
  pointer-events: auto;
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hud-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hud-metric {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
}

.hud-metric-label {
  font-size: 0.725rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hud-metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.hud-metric-value span {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.hud-metric-value.solar {
  color: #b45309;
}

.hud-metric-value.battery {
  color: #059669;
}

.hud-metric-value.grid {
  color: #0284c7;
}

/* Simulation Controls */
.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sim-slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sim-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #475569;
  font-weight: 600;
}

.sim-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
}

.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  cursor: pointer;
}

.sim-toggle-row {
  display: flex;
  gap: 0.5rem;
}

.sim-btn-pill {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sim-btn-pill.active {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
  font-weight: 700;
}

/* Live Stats Bar (Clean White Card) */
.live-stats-bar {
  position: relative;
  z-index: 10;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  flex-shrink: 0;
}

.stat-icon.cyan {
  background: #f0f9ff;
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284c7;
}

.stat-icon.green {
  background: #ecfdf5;
  border-color: rgba(5, 150, 105, 0.3);
  color: #059669;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   Calculator Section: Solar Savings, ROI & PM Surya Ghar Subsidy
   -------------------------------------------------------------------------- */
.calculator-section {
  padding: 6rem 0 7rem 0;
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 160px, #ffffff 100%);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.calc-inputs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.input-group {
  margin-bottom: 2rem;
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.input-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.input-value-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: #b45309;
  background: #fffbeb;
  padding: 0.3rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.slider-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.range-slider-styled {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
}

.range-slider-styled::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.range-slider-styled::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.pill-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.pill-btn {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: #475569;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
}

.pill-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.pill-btn.active {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
  font-weight: 700;
}

/* Calculator Results Card */
.calc-results-card {
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card), 0 0 30px rgba(245, 158, 11, 0.08);
  position: relative;
  overflow: hidden;
}

.calc-results-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.35), transparent 70%);
  pointer-events: none;
}

.subsidy-highlight-banner {
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.subsidy-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  flex-shrink: 0;
}

.subsidy-text h4 {
  font-size: 1.05rem;
  color: #047857;
  margin-bottom: 0.2rem;
}

.subsidy-text p {
  font-size: 0.85rem;
  color: #475569;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.res-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.res-label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.res-number {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.res-number.highlight {
  color: #b45309;
}

.res-number.green {
  color: #059669;
}

.cost-breakdown-bar {
  margin-bottom: 2rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  color: #334155;
}

.breakdown-row.total {
  border-bottom: none;
  font-weight: 800;
  font-size: 1.2rem;
  color: #b45309;
  padding-top: 0.9rem;
}

.btn-calc-cta {
  font-size: 0.95rem;
}

.calc-eco-footprint {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.eco-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.eco-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.eco-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.eco-value {
  font-size: 0.9rem;
  color: #0f172a;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Turnkey EPC Workflow (6-Step Kinetic Roadmap)
   -------------------------------------------------------------------------- */
.process-section {
  padding: 7rem 0;
  position: relative;
  background: #f8fafc;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  position: relative;
  padding: 2.25rem 2rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.05);
  line-height: 1;
}

.step-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b45309;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.step-card:hover .step-icon-wrap {
  transform: scale(1.1) rotate(5deg);
  background: #fef3c7;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.step-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

.step-meta {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #0369a1;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Commercial & Industrial (C&I) vs Residential Solutions
   -------------------------------------------------------------------------- */
.solutions-section {
  padding: 7rem 0;
  position: relative;
  background: #ffffff;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.tab-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: #475569;
  border-radius: var(--radius-full);
  padding: 0.85rem 2.25rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tab-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #d97706;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.35);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.models-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.model-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  position: relative;
  box-shadow: var(--shadow-card);
}

.model-card.featured {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, #fffdf8, #ffffff);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.1);
}

.badge-top {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.model-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.model-subtitle {
  color: #475569;
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #1e293b;
}

.feature-list li svg {
  color: #059669;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   Equipment & Technology Showcase
   -------------------------------------------------------------------------- */
.tech-section {
  padding: 7rem 0;
  position: relative;
  background: #f8fafc;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tech-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 16px 40px rgba(2, 132, 199, 0.12);
}

.tech-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  border-radius: var(--radius-md);
  background: #f0f9ff;
  border: 1px solid rgba(2, 132, 199, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
}

.tech-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.tech-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tech-spec-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   Project Portfolio & Case Studies
   -------------------------------------------------------------------------- */
.portfolio-section {
  padding: 7rem 0;
  position: relative;
  background: #ffffff;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: #475569;
  border-radius: var(--radius-full);
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--shadow-card-hover);
}

.project-banner {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff, #e2e8f0);
}

.project-banner-svg {
  width: 100%;
  height: 100%;
}

.project-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: #b45309;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.project-details {
  padding: 1.75rem;
}

.project-details h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.project-location {
  color: #64748b;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.p-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.p-stat-lbl {
  font-size: 0.78rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   PM Surya Ghar Subsidy Guide Section
   -------------------------------------------------------------------------- */
.subsidy-section {
  padding: 7rem 0;
  position: relative;
  background: #f8fafc;
}

.subsidy-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.subsidy-tier-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.subsidy-tier-card.popular {
  border-color: #059669;
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
  box-shadow: 0 16px 40px rgba(5, 150, 105, 0.12);
}

.subsidy-badge {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.3);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 1rem;
}

.subsidy-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: #059669;
  margin-bottom: 0.5rem;
}

.subsidy-tier-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.subsidy-tier-card p {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Brands & Ecosystem
   -------------------------------------------------------------------------- */
.brands-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
}

.brands-title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 2rem;
}

.brands-marquee {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 3rem;
}

.brand-chip {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.brand-chip:hover {
  color: #d97706;
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Lead Capture & Quote Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 20;
}

.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.step-indicator-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  padding-right: 3.5rem; /* Ensure step bar never collides with close button */
}

.step-bar-seg {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.step-bar-seg.active {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: #0f172a;
  font-size: 16px; /* 16px prevents iOS Safari automatic page zoom on focus */
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

/* --------------------------------------------------------------------------
   Floating Quick Action Widgets
   -------------------------------------------------------------------------- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  left: auto;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.2);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
}

.float-btn.whatsapp {
  background: #25d366;
}

.float-btn.whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.6);
}

.float-btn.phone {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.float-btn.phone:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
}

/* --------------------------------------------------------------------------
   Footer (Clean Modern Slate)
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5rem 0 2rem 0;
  position: relative;
  z-index: 10;
  color: #f8fafc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .brand-logo {
  color: #ffffff;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.925rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #fbbf24;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries & Mobile Usability / Orientation
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .header-status-pill {
    display: none;
  }
  .nav-links {
    gap: 1.15rem;
  }
  .nav-link {
    font-size: 0.875rem;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    display: none;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
  }

  .header-status-pill {
    display: none;
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .live-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 48px;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-call-btn span {
    display: none;
  }
  .header-call-btn {
    padding: 0.55rem;
    width: 40px;
    height: 40px;
    justify-content: center;
  }

  .header-quote-btn {
    display: none !important;
  }

  .mobile-nav-cta {
    display: block !important;
    width: 100%;
    margin-top: 0.75rem;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: 3rem;
    min-height: auto;
    overflow-x: clip;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.25rem;
  }

  /* Hide duplicate hero badges on mobile (2x2 stats bar below already covers this) */
  .hero-trust-badges {
    display: none !important;
  }

  /* Usable Touch Tab Navigation */
  .tab-nav {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 2rem;
  }

  .tab-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  /* Calculator Mobile Enhancements - Zero Overflow & Full Visibility */
  .calculator-section {
    padding-top: 3.5rem !important;
    padding-bottom: 6rem !important;
    overflow-x: clip !important;
  }

  .calc-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .calc-inputs-card,
  .calc-results-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem 1rem 1.75rem 1rem !important;
    margin-bottom: 1.5rem;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .calc-results-card::after {
    display: none !important;
  }

  .input-label-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    margin-bottom: 0.75rem !important;
  }

  .input-label {
    font-size: 0.88rem !important;
    flex: 1 1 auto;
    word-break: break-word;
  }

  .input-value-badge {
    font-size: 0.95rem !important;
    padding: 0.25rem 0.65rem !important;
    flex-shrink: 0;
    margin-left: auto;
  }

  .slider-scale-labels {
    font-size: 0.7rem !important;
    gap: 0.25rem;
  }

  .btn-calc-cta {
    white-space: normal !important;
    line-height: 1.35 !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.92rem !important;
    text-align: center !important;
  }

  .pill-group {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .pill-btn {
    padding: 0.65rem 0.4rem !important;
    font-size: 0.8rem !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    min-width: 0 !important;
  }

  .subsidy-highlight-banner {
    padding: 0.85rem 0.75rem !important;
    gap: 0.65rem !important;
    margin-bottom: 1.25rem !important;
  }

  .subsidy-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .subsidy-text h4 {
    font-size: 0.92rem !important;
    line-height: 1.25 !important;
  }

  .subsidy-text p {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  .results-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
    margin-bottom: 1.25rem !important;
  }

  .res-box {
    padding: 0.75rem 0.6rem !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .res-number {
    font-size: 1.3rem !important;
    word-break: break-word !important;
  }

  .res-label {
    font-size: 0.7rem !important;
    line-height: 1.25 !important;
  }

  .cost-breakdown-bar {
    margin-bottom: 1.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Financial Breakdown Rows - Full Visibility without Clipping */
  .breakdown-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 0.25rem 0.5rem !important;
    font-size: 0.85rem !important;
    padding: 0.55rem 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .breakdown-row span:first-child {
    flex: 1 1 55% !important;
    font-size: 0.84rem !important;
    line-height: 1.3 !important;
  }

  .breakdown-row span:last-child,
  .breakdown-row strong:last-child {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    font-weight: 800 !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-size: 0.95rem !important;
  }

  .calc-eco-footprint {
    gap: 0.5rem !important;
    padding-top: 0.85rem !important;
  }

  .eco-icon {
    font-size: 1.25rem !important;
  }

  .eco-label {
    font-size: 0.7rem !important;
  }

  .eco-value {
    font-size: 0.82rem !important;
  }

  /* Modal Mobile Ergonomics */
  .modal-overlay {
    padding: 0.75rem;
    align-items: flex-start;
    overflow-y: auto;
  }

  .modal-box {
    padding: 1.75rem 1.25rem;
    max-height: none;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
  }

  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
  }

  .step-indicator-bar {
    padding-right: 2.75rem;
    margin-bottom: 1.5rem;
  }

  /* Shortened & Streamlined EPC Lifecycle on Mobile */
  .roadmap-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .step-card {
    padding: 0.95rem 1rem !important;
    border-radius: var(--radius-md) !important;
  }

  .step-card h3 {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
  }

  .step-card p {
    font-size: 0.825rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.35rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .step-meta {
    font-size: 0.75rem !important;
    padding-top: 0.35rem !important;
  }

  .step-number {
    font-size: 1.35rem !important;
    top: 0.65rem !important;
    right: 0.85rem !important;
    opacity: 0.4 !important;
  }

  .step-icon-wrap {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    margin-bottom: 0.5rem !important;
  }

  .step-icon-wrap svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Grid Stack to 1-Column for other grids */
  .subsidy-tiers-grid,
  .tech-grid,
  .portfolio-grid,
  .reviews-grid {
    grid-template-columns: 1fr !important;
  }

  .live-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.25rem 1rem;
    gap: 0.85rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 20px rgba(245, 158, 11, 0.08);
  }

  .stat-item {
    gap: 0.65rem;
    padding: 0.65rem 0.5rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-md);
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Safe Area Support for Floating Action Buttons (Aligned to Bottom-Right) */
  .floating-actions {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: calc(0.75rem + env(safe-area-inset-right, 0px));
    left: auto;
    gap: 0.6rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  }

  .floating-actions.mobile-hidden {
    transform: translateY(85px);
    opacity: 0;
    pointer-events: none;
  }

  .float-btn {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .nav-container {
    gap: 0.4rem;
  }

  .brand-logo-img {
    height: 42px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    font-size: 0.54rem;
    letter-spacing: 0.1em;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .calc-inputs-card,
  .calc-results-card {
    padding: 1rem 0.75rem 1.5rem 0.75rem !important;
  }

  .breakdown-row {
    font-size: 0.82rem !important;
  }

  .breakdown-row span:first-child {
    font-size: 0.8rem !important;
  }

  .breakdown-row span:last-child,
  .breakdown-row strong:last-child {
    font-size: 0.88rem !important;
  }

  .breakdown-row.total {
    font-size: 0.95rem !important;
  }

  .res-number {
    font-size: 1.15rem !important;
  }

  .res-label {
    font-size: 0.68rem !important;
  }
}

/* --------------------------------------------------------------------------
   Mobile Landscape Orientation Optimization (e.g. Phone sideways)
   -------------------------------------------------------------------------- */
@media (orientation: landscape) and (max-height: 520px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    height: 60px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .brand-icon svg {
    width: 26px;
    height: 26px;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    font-size: 0.55rem;
  }

  .nav-links {
    top: 60px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 1rem 1.5rem;
    gap: 0.85rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(60px + 1.25rem);
    padding-bottom: 2.5rem;
  }

  .modal-overlay {
    padding: 0.5rem;
    align-items: flex-start;
  }

  .modal-box {
    max-height: 94vh;
    padding: 1.15rem 1.25rem;
    overflow-y: auto;
    margin: 0.5rem auto;
  }

  .floating-actions {
    bottom: 0.5rem;
    right: 0.75rem;
    left: auto;
    gap: 0.5rem;
  }

  .float-btn {
    width: 42px;
    height: 42px;
  }
}
