* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ================= DEFAULT: LIGHT THEME VARIABLES ================= */
:root {
  --gold: #d97706;
  --gold-glow: rgba(217, 119, 6, 0.22);
  --cyan: #0284c7;
  --bg-deep: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --calc-bg-gradient: linear-gradient(180deg, #f8fafc 0%, #edf4fc 100%);
  --slider-bg: #f8fafc;
  --whatsapp-green: #16a34a;
  --whatsapp-hover: #15803d;
  --sheet-green: #059669;
  --box-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --hero-gradient-subsidy: radial-gradient(circle at 75% 30%, rgba(217, 119, 6, 0.12) 0%, transparent 60%), linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #fef3c7 100%);
  --hero-gradient-installations: radial-gradient(circle at 80% 40%, rgba(2, 132, 199, 0.12) 0%, transparent 60%), linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #e0f2fe 100%);
  --hero-gradient-engineering: radial-gradient(circle at 70% 30%, rgba(217, 119, 6, 0.1) 0%, transparent 60%), linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #fed7aa 100%);
  --hero-gradient-quality: radial-gradient(circle at 75% 45%, rgba(2, 132, 199, 0.14) 0%, transparent 60%), linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #bae6fd 100%);
  --hero-gradient-systemtypes: radial-gradient(circle at 70% 25%, rgba(217, 119, 6, 0.12) 0%, transparent 65%), linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #ffedd5 100%);
  --tag-bg: #fef3c7;
  --tag-border: #fde68a;
  --result-box-bg: #ffffff;
  --highlight-box-bg: #fffbeb;
  --highlight-box-border: #fde68a;
  --net-payable-bg: #f0f9ff;
  --net-payable-border: #bae6fd;
  --savings-banner-bg: #f0fdf4;
  --savings-banner-border: #bbf7d0;
  --savings-text: #166534;
  --input-bg: #ffffff;
}

/* ================= DARK THEME OVERRIDES ================= */
[data-theme="dark"] {
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --cyan: #38bdf8;
  --bg-deep: #070c14;
  --bg-card: #0e1726;
  --bg-card-alt: #131f33;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(7, 12, 20, 0.96);
  --calc-bg-gradient: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08) 0%, #070c14 70%);
  --slider-bg: #070c14;
  --box-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --hero-gradient-subsidy: radial-gradient(circle at 75% 30%, rgba(245, 158, 11, 0.24) 0%, transparent 60%), linear-gradient(135deg, #070c14 0%, #0d1726 60%, #15273f 100%);
  --hero-gradient-installations: radial-gradient(circle at 80% 40%, rgba(56, 189, 248, 0.2) 0%, transparent 60%), linear-gradient(135deg, #060a12 0%, #0c1c2e 60%, #132e4c 100%);
  --hero-gradient-engineering: radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.18) 0%, transparent 60%), linear-gradient(135deg, #070c14 0%, #102135 50%, #163654 100%);
  --hero-gradient-quality: radial-gradient(circle at 75% 45%, rgba(56, 189, 248, 0.22) 0%, transparent 60%), linear-gradient(135deg, #050910 0%, #0f1e31 60%, #193a5c 100%);
  --hero-gradient-systemtypes: radial-gradient(circle at 70% 25%, rgba(245, 158, 11, 0.22) 0%, transparent 65%), linear-gradient(135deg, #070c14 0%, #12243a 60%, #1b3d63 100%);
  --tag-bg: rgba(245, 158, 11, 0.12);
  --tag-border: rgba(245, 158, 11, 0.3);
  --result-box-bg: #0d1726;
  --highlight-box-bg: rgba(245, 158, 11, 0.06);
  --highlight-box-border: rgba(245, 158, 11, 0.25);
  --net-payable-bg: rgba(56, 189, 248, 0.08);
  --net-payable-border: rgba(56, 189, 248, 0.35);
  --savings-banner-bg: rgba(37, 211, 102, 0.08);
  --savings-banner-border: rgba(37, 211, 102, 0.25);
  --savings-text: #d1fae5;
  --input-bg: #141f33;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ================= TOP NAVIGATION (DESKTOP) ================= */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
  padding: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  box-shadow: var(--box-shadow-soft);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.site-logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.footer-logo {
  height: 52px;
  max-width: 240px;
  object-fit: contain;
  margin-bottom: 1.2rem;
  display: block;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
  white-space: nowrap;
  height: 100%;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.nav-dropdown-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  font-family: inherit;
  transition: color 0.2s ease;
}

.nav-dropdown-btn:hover {
  color: var(--gold);
}

.dropdown-arrow {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-width: 220px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  padding: 0.6rem 0;
  display: none;
  flex-direction: column;
  z-index: 1001;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 0.7rem 1.3rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  display: block;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-card-alt);
  color: var(--gold);
}

/* Nav Actions & Theme Toggle */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--gold);
}

:root .moon-icon { display: inline-block; }
:root .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: inline-block; }

.nav-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.nav-call-btn:hover {
  border-color: var(--gold);
}

.nav-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--whatsapp-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-whatsapp-btn:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 7px;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-nav-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.drawer-logo {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.5rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.5rem;
  flex-grow: 1;
}

.drawer-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.drawer-link:hover {
  background: var(--bg-card-alt);
  color: var(--gold);
}

.drawer-accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
}

.drawer-chevron {
  transition: transform 0.3s ease;
  font-size: 0.85rem;
}

.drawer-accordion.open .drawer-chevron {
  transform: rotate(180deg);
}

.drawer-sub-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-card-alt);
  border-radius: 8px;
  padding: 0.4rem 0;
  margin: 0.3rem 0 0.6rem 0.5rem;
}

.drawer-accordion.open .drawer-sub-menu {
  display: flex;
}

.drawer-sub-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
}

.drawer-sub-menu a:hover {
  color: var(--gold);
}

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
  margin-top: 1rem;
}

.drawer-call-btn {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.drawer-wa-btn {
  background: var(--whatsapp-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

/* ================= HERO SLIDER ================= */
.hero-slider-section {
  position: relative;
  width: 100vw;
  height: calc(100vh - 74px);
  min-height: 620px;
  margin-top: 74px;
  overflow: hidden;
  background: var(--slider-bg);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 8vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bg-subsidy { background: var(--hero-gradient-subsidy); }
.bg-installations { background: var(--hero-gradient-installations); }
.bg-engineering { background: var(--hero-gradient-engineering); }
.bg-quality { background: var(--hero-gradient-quality); }
.bg-systemtypes { background: var(--hero-gradient-systemtypes); }

.slide-inner {
  max-width: 820px;
  transform: translateY(20px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide.active .slide-inner {
  transform: translateY(0);
}

.slide-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 1.2rem;
  background: var(--tag-bg);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--tag-border);
}

.slide-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.3rem;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.slide-desc {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.slide-highlights {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-color);
}

.hl-item {
  display: flex;
  flex-direction: column;
}

.hl-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
}

.hl-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.slide-actions {
  display: flex;
  gap: 1.2rem;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 18px var(--gold-glow);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(0.92);
}

.btn-outline {
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  display: inline-block;
  text-align: center;
  background: var(--bg-card);
}

.btn-outline:hover {
  background: var(--bg-card-alt);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.slider-btn:hover {
  background: var(--gold);
  color: #fff;
}

.prev-btn { left: 2rem; }
.next-btn { right: 2rem; }

.slider-dots {
  position: absolute;
  bottom: 3.5rem;
  left: 8vw;
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.dot {
  width: 30px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.dot.active {
  background: var(--gold);
  width: 50px;
}

/* ================= 2. ENERGY CALCULATOR ================= */
.calc-section-bg {
  background: var(--calc-bg-gradient);
  border-bottom: 1px solid var(--border-color);
}

.calc-mobile-tabs,
.calc-mobile-jump-btn {
  display: none;
}

.calculator-card {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--box-shadow-soft);
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group label {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.7rem;
  font-weight: 600;
}

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

.label-badge-row strong {
  color: var(--gold);
  font-size: 1.25rem;
}

.calc-advanced-toggle {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.calc-advanced-toggle summary {
  list-style: none;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.92rem;
  cursor: pointer;
}

.calc-advanced-toggle summary::-webkit-details-marker {
  display: none;
}

.advanced-calc-fields {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tech-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.tech-radio-label {
  display: flex;
  flex-direction: column;
  background: var(--bg-card-alt);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.tech-radio-label input {
  position: absolute;
  opacity: 0;
}

.tech-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.tech-benchmark {
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 600;
}

.tech-radio-label.active {
  border-color: var(--gold);
  background: var(--highlight-box-bg);
  box-shadow: 0 0 15px var(--gold-glow);
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border-color);
  outline: none;
  accent-color: var(--gold);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.calc-select, .calc-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
}

.calc-select:focus, .calc-input:focus {
  border-color: var(--gold);
}

.market-disclaimer-card {
  background: var(--highlight-box-bg);
  border: 1px dashed var(--highlight-box-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--gold);
  cursor: pointer;
}

.market-disclaimer-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.5rem;
}

.calc-results {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.featured-res {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: var(--box-shadow-soft);
}

.res-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.res-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
  margin: 0.3rem 0;
}

.res-sub {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
}

/* 3x3 Metric Cards Grid */
.res-grid.grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.grid-3x3 .result-box {
  background: var(--result-box-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.65rem 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.grid-3x3 .res-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid-3x3 .res-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.15rem 0;
  white-space: nowrap;
}

.grid-3x3 .cost-note {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight-gold { color: var(--gold); }
.highlight-cyan { color: var(--cyan); }
.highlight-green { color: var(--whatsapp-green); }

.subsidy-box { 
  border-color: var(--highlight-box-border) !important; 
  background: var(--highlight-box-bg) !important; 
}
.net-payable-box { 
  background: var(--net-payable-bg) !important; 
  border-color: var(--net-payable-border) !important; 
}
.emi-box { 
  background: var(--highlight-box-bg) !important; 
  border-color: var(--highlight-box-border) !important; 
}

.savings-vs-emi-banner {
  background: var(--savings-banner-bg);
  border: 1px solid var(--savings-banner-border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
}

.badge-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--whatsapp-green);
  margin-bottom: 0.3rem;
}

.savings-vs-emi-banner p {
  font-size: 0.85rem;
  color: var(--savings-text);
  line-height: 1.5;
  margin: 0;
}

.full-width { width: 100%; }

/* ================= SHARED CONTENT SECTIONS ================= */
.content-section {
  padding: 6rem 0;
  width: 100%;
}

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

.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4rem;
}

.subhead {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.section-head h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.mobile-swipe-hint {
  display: none;
}

/* Grids */
.cards-grid {
  display: grid;
  gap: 2rem;
}

.three-cols { grid-template-columns: repeat(3, 1fr); }
.four-cols { grid-template-columns: repeat(4, 1fr); }

/* Service Card */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: var(--box-shadow-soft);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
  color: var(--text-main);
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.bullet-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 0.8rem;
}

.bullet-specs li {
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bullet-specs li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: bold;
}

/* Feature Item */
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--box-shadow-soft);
  transition: transform 0.3s, border-color 0.3s;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.feature-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* System Topology Boxes */
.system-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--box-shadow-soft);
  transition: transform 0.3s, border-color 0.3s;
}

.system-box:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.system-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: var(--tag-bg);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.system-box h3 {
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.system-subtitle {
  font-size: 0.95rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.system-box p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.system-meta {
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.mobile-collapse { cursor: pointer; }
.mobile-collapse summary {
  list-style: none;
  font-weight: 600;
  color: var(--gold);
  font-size: 0.9rem;
  padding: 0.3rem 0;
}
.mobile-collapse summary::-webkit-details-marker { display: none; }

/* ================= 6. CONSULTATION & SURVEY FORM ================= */
.form-section-bg {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border-color);
}

.consultation-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
}

.consultation-info h2 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.consultation-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.method-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.1rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.method-icon { font-size: 1.8rem; }
.method-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.method-card a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.method-card a:hover { color: var(--gold); }

.survey-guarantees {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.consultation-form-card {
  background: var(--bg-card);
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: 20px;
  padding: 2.8rem;
  box-shadow: var(--box-shadow-soft);
  position: relative;
}

.form-header-badge { margin-bottom: 0.8rem; }
.sheets-live-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #065f46;
  background: #d1fae5;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}

.consultation-form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-subtext {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sheet-green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.field-hint-note {
  font-size: 0.82rem;
  color: #0369a1;
  background: var(--net-payable-bg);
  border: 1px solid var(--net-payable-border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-top: 0.45rem;
  line-height: 1.45;
}

.field-hint-note strong { color: var(--text-main); }

.btn-submit-sheets {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  background: var(--sheet-green);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(5, 150, 105, 0.25);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-submit-sheets:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35);
}

.btn-submit-sheets:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner { font-size: 1.1rem; }

.status-banner {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.status-banner.success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #14532d;
}

.status-banner.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
}

.form-privacy {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ================= 7. MODAL STYLES ================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.16);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover { color: var(--text-main); }

/* ================= 8. FOOTER ================= */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col:first-child { max-width: 400px; }
.footer-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.footer-col h4 {
  color: var(--text-main);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Floating WhatsApp Widget */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 54px;
  height: 54px;
  background: var(--whatsapp-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.35);
  z-index: 9995;
  transition: transform 0.25s, box-shadow 0.25s;
}

.floating-whatsapp-widget:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.5);
}

/* ================= COMPREHENSIVE SMARTPHONE OPTIMIZATION (<= 768px) ================= */
@media (max-width: 1024px) {
  .calculator-card,
  .consultation-wrapper {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .top-nav { height: 60px; }
  .nav-container {
    padding: 0 0.85rem;
    gap: 0.4rem;
  }
  .brand-logo-link { margin-right: auto; }
  .site-logo {
    height: 34px;
    max-width: 130px;
  }
  
  .nav-links { display: none; }
  .mobile-menu-toggle { display: flex; }

  .nav-actions { gap: 0.4rem; }
  .nav-call-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
  }
  .nav-call-btn .phone-number { display: none; }
  .nav-whatsapp-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
  }
  .nav-whatsapp-btn .wa-text { display: none; }

  /* Hero Section */
  .hero-slider-section {
    margin-top: 60px;
    height: auto;
    min-height: auto;
    padding: 2rem 0 2.5rem;
  }
  .slide {
    position: relative;
    padding: 0 1rem;
    height: auto;
    opacity: 0;
    display: none;
  }
  .slide.active {
    display: flex;
    opacity: 1;
  }
  .slide-tag {
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
    padding: 0.2rem 0.6rem;
  }
  .slide-title {
    font-size: 1.65rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }
  .slide-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }
  
  .slide-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 1.3rem;
    padding-bottom: 0.9rem;
    text-align: center;
  }
  .hl-val { font-size: 1.15rem; }
  .hl-lbl {
    font-size: 0.65rem;
    letter-spacing: 0px;
  }
  .slide-actions {
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
  }
  .slide-actions .btn-primary,
  .slide-actions .btn-outline {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }
  .slider-btn { display: none; }
  .slider-dots {
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Compact 2-Tab Mobile Calculator */
  .calc-mobile-tabs {
    display: flex;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1rem;
    gap: 4px;
  }

  .calc-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.65rem 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .calc-tab-btn.active {
    background: var(--bg-card);
    color: var(--gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .calc-mobile-jump-btn {
    display: block;
    width: 100%;
    background: var(--net-payable-bg);
    border: 1px solid var(--net-payable-border);
    color: var(--cyan);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.7rem;
    border-radius: 10px;
    margin-top: 0.2rem;
    cursor: pointer;
  }

  .calculator-card {
    padding: 1rem;
    border-radius: 16px;
    gap: 1rem;
    display: block;
  }

  .calculator-card.show-results #calcInputsPanel { display: none !important; }
  .calculator-card.show-results #calcResultsPanel { display: flex !important; }
  .calculator-card:not(.show-results) #calcResultsPanel { display: none !important; }

  .calc-inputs { gap: 0.85rem; }
  .highlight-bill-group {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem;
  }

  .calc-results {
    padding: 0.85rem;
    border-radius: 12px;
    gap: 0.75rem;
    background: var(--bg-card-alt);
  }
  .featured-res { padding: 0.6rem; }
  .res-num {
    font-size: 1.85rem;
    margin: 0.15rem 0;
  }

  /* 3x3 Responsive Grid */
  .res-grid.grid-3x3 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
  }

  .grid-3x3 .result-box {
    padding: 0.45rem 0.35rem !important;
    min-height: 65px;
    border-radius: 8px !important;
  }

  .grid-3x3 .res-lbl { font-size: 0.58rem !important; }
  .grid-3x3 .res-val { font-size: 0.84rem !important; }
  .grid-3x3 .cost-note { font-size: 0.55rem !important; }

  .savings-vs-emi-banner { padding: 0.6rem; }
  .savings-vs-emi-banner p { font-size: 0.75rem; }

  /* Horizontal Scroll Section */
  .content-section { padding: 2.5rem 0; }
  .section-container { padding: 0 1rem; }
  .section-head { margin-bottom: 1.3rem; }
  .section-head h2 {
    font-size: 1.55rem;
    line-height: 1.25;
  }
  .section-head p { font-size: 0.88rem; }
  .mobile-swipe-hint {
    display: block;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.35rem;
  }

  .mobile-horizontal-scroll {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.85rem !important;
    padding: 0.3rem 0.2rem 0.8rem 0.2rem !important;
    scrollbar-width: none;
  }
  .mobile-horizontal-scroll::-webkit-scrollbar { display: none; }

  .scroll-card {
    flex: 0 0 84% !important;
    max-width: 84% !important;
    scroll-snap-align: center !important;
    padding: 1.2rem !important;
    border-radius: 14px !important;
  }

  .service-card h3,
  .feature-item h3,
  .system-box h3 {
    font-size: 1.2rem;
  }

  /* Consultation & Form */
  .consultation-wrapper {
    padding: 0;
    gap: 1.5rem;
  }
  .consultation-info h2 { font-size: 1.55rem; }
  .consultation-info p {
    font-size: 0.86rem;
    margin-bottom: 1.1rem;
  }
  .contact-methods {
    gap: 0.65rem;
    margin-bottom: 0.9rem;
  }
  .method-card {
    padding: 0.7rem 0.9rem;
    gap: 0.75rem;
  }
  .method-icon { font-size: 1.3rem; }
  .method-card a { font-size: 0.92rem; }
  
  .consultation-form-card,
  .modal-card {
    padding: 1.1rem;
    border-radius: 16px;
  }
  .consultation-form-card h3,
  .modal-card h3 {
    font-size: 1.3rem;
  }
  .form-subtext {
    font-size: 0.8rem;
    margin-bottom: 1.1rem;
  }
  .form-group { margin-bottom: 0.9rem; }
  .btn-submit-sheets {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  /* Footer */
  .site-footer { padding: 2.2rem 0 1.2rem; }
  .footer-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  .floating-whatsapp-widget {
    bottom: 0.9rem;
    right: 0.9rem;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }
}

@media (max-width: 360px) {
  .site-logo {
    max-width: 110px;
    height: 28px;
  }
  .slide-title { font-size: 1.45rem; }
  .scroll-card {
    flex: 0 0 90% !important;
    max-width: 90% !important;
  }
  .grid-3x3 .res-val { font-size: 0.78rem !important; }
}

/* 3-column layout for Module Technology */
.tech-three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .tech-three-cols {
    grid-template-columns: 1fr !important;
  }
}
