/* ==========================================================================
   LS ELECTRIX LTD - PREMIUM MULTI-PAGE STYLESHEET (CLEAN & BUG-FREE)
   ========================================================================== */

:root {
  --bg-primary: #070d18;
  --bg-secondary: #0c1626;
  --bg-card: #101c30;
  --bg-card-hover: #162640;
  --bg-glass: rgba(10, 19, 35, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --eco-emerald: #10b981;
  --eco-emerald-glow: rgba(16, 185, 129, 0.25);
  --solar-amber: #f59e0b;
  --solar-amber-glow: rgba(245, 158, 11, 0.25);
  --tech-cyan: #06b6d4;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-max: 1240px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Accents & Typography */
.accent { color: var(--eco-emerald); }
.accent-amber { color: var(--solar-amber); }
.text-eco { color: var(--eco-emerald); font-weight: 800; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eco-emerald);
  margin-bottom: 0.6rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Top Notice Bar ─────────────────────────────────────────── */
.top-notice-bar {
  background: #040810;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  padding: 0.45rem 0;
  color: var(--text-secondary);
}

.top-notice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-notice-inner a {
  color: var(--eco-emerald);
  font-weight: 700;
}

.top-notice-inner span i {
  color: var(--eco-emerald);
  margin-right: 4px;
}

.tnb-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--eco-emerald);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--solar-amber), var(--eco-emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px var(--eco-emerald-glow);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--eco-emerald);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--eco-emerald);
  box-shadow: 0 0 10px var(--eco-emerald);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-phone-quick {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.btn-phone-quick:hover {
  border-color: var(--eco-emerald);
  color: var(--eco-emerald);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #000;
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--eco-emerald-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--eco-emerald);
  color: var(--eco-emerald);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* ── Hero Sections ──────────────────────────────────────────── */
.home-hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(ellipse at 50% -10%, rgba(16, 185, 129, 0.12) 0%, transparent 65%),
              linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.sub-hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(ellipse at 50% -10%, rgba(16, 185, 129, 0.14) 0%, transparent 65%),
              linear-gradient(180deg, #050a14 0%, var(--bg-secondary) 100%);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--eco-emerald);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-hero h1, .sub-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Trust Strip */
.trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 980px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trust-item i {
  color: var(--eco-emerald);
  font-size: 1rem;
}

.trust-item strong {
  color: var(--text-primary);
}

/* ── Section Containers ─────────────────────────────────────── */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Front Page Compact 4-Card Service Grid ─────────────────── */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--eco-emerald);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}

.service-card-thumb {
  position: relative;
  width: calc(100% - 1.5rem);
  height: 100px;
  margin: 0.75rem 0.75rem 0 0.75rem;
  border-radius: 10px;
  overflow: hidden;
  background: #040812;
}

.service-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-thumb img {
  transform: scale(1.05);
}

.service-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(7, 13, 24, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  color: var(--eco-emerald);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.service-card-body {
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eco-emerald);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.service-price {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.service-price strong {
  color: var(--eco-emerald);
  font-size: 0.95rem;
  font-weight: 800;
}

.service-btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--eco-emerald);
  font-weight: 700;
  font-size: 0.78rem;
}

.service-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eco-emerald);
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.service-price {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.service-price strong {
  color: var(--eco-emerald);
  font-size: 1.1rem;
  font-weight: 800;
}

.service-btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--eco-emerald);
  font-weight: 700;
  font-size: 0.88rem;
}

.service-card:hover .service-btn-arrow i {
  transform: translateX(4px);
  transition: transform 0.2s;
}

/* ── Interactive Calculator Widget (Homepage) ───────────────── */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.calc-control {
  margin-bottom: 1.5rem;
}

.calc-control label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.calc-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--eco-emerald);
  cursor: pointer;
  box-shadow: 0 0 10px var(--eco-emerald-glow);
}

.calc-result-box {
  background: rgba(7, 13, 24, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
}

.calc-savings-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--eco-emerald);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.calc-savings-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.calc-details-row {
  display: flex;
  justify-content: space-around;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.calc-detail-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.calc-detail-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Brand Deep-Dive Cards (Battery, Solar, EV, Electrical) ─── */
.brand-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.brand-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.brand-detail-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
}

.bdc-main {
  display: grid;
  grid-template-columns: 1fr 340px;
}

.bdc-content {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.bdc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--eco-emerald);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.bdc-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.bdc-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.bdc-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.bdc-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.bdc-perks li i {
  color: var(--eco-emerald);
  margin-top: 3px;
  flex-shrink: 0;
}

.bdc-price-box {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 13, 24, 0.5);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.bdc-price-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bdc-price-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--eco-emerald);
}

.bdc-image {
  background: #040812;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bdc-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.bdc-specs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 13, 24, 0.4);
}

.bdc-spec {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--border-subtle);
  text-align: center;
}

.bdc-spec:last-child {
  border-right: none;
}

.bdc-spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.bdc-spec-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ── Packages 3-Col Grid ────────────────────────────────────── */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.package-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.4);
}

.package-card.featured {
  border-color: var(--eco-emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.15);
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--eco-emerald);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.package-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.package-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--eco-emerald);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.package-vat-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.package-features li i {
  color: var(--eco-emerald);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── Comparison Table ────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.compare-table th {
  background: rgba(7, 13, 24, 0.8);
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  color: var(--eco-emerald);
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table th:first-child {
  text-align: left;
  color: var(--text-secondary);
}

.compare-table td {
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.compare-table td:first-child {
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(7, 13, 24, 0.3);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: rgba(16, 185, 129, 0.03);
}

/* ── Gallery Grid & Lightbox ────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  height: 220px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 13, 24, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.gallery-caption {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 18, 0.94);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 920px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--eco-emerald);
  color: #000;
  transform: rotate(90deg);
}

.lightbox-media {
  width: 100%;
  height: 480px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-footer {
  padding: 1.25rem 1.75rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lightbox-footer-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}

.lightbox-nav-btn:hover {
  background: var(--eco-emerald);
  color: #000;
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.open {
  border-color: rgba(16, 185, 129, 0.35);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 700;
  font-family: inherit;
}

.faq-question i {
  color: var(--eco-emerald);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.25s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}


/* ── Roof Mounting Showcase Grid ──────────────────────────── */
.roof-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.roof-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.roof-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.roof-card-media {
  position: relative;
  height: 240px;
  overflow: hidden;
  cursor: pointer;
}
.roof-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.roof-card:hover .roof-card-media img {
  transform: scale(1.05);
}
.roof-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--eco-emerald);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.roof-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.roof-card-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--eco-emerald);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.roof-card-body h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.roof-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.roof-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.roof-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.45;
}
.roof-feature-list li i {
  color: var(--eco-emerald);
  margin-top: 0.2rem;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .roof-showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Contact Section ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eco-emerald);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #060b14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--eco-emerald);
}

.form-group textarea {
  resize: vertical;
  min-height: 85px;
}

.alert-box {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--eco-emerald);
  color: #34d399;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* ── Reviews Grid ────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.review-stars {
  color: var(--solar-amber);
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--eco-emerald), #059669);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.review-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.review-loc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: #040810;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--eco-emerald);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Mobile Floating Bar ─────────────────────────────────────── */
.mobile-floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 13, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.6rem 1rem;
  z-index: 999;
  justify-content: space-between;
  gap: 0.75rem;
}

.mobile-float-btn {
  flex: 1;
  text-align: center;
  padding: 0.65rem;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ── Responsive Queries ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .service-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .service-card-thumb { height: 110px; }
}

@media (max-width: 900px) {
  .packages-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .bdc-main { grid-template-columns: 1fr; }
  .bdc-specs-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-notice-bar { display: none; }
  .nav-actions { display: none; }
  .mobile-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 74px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 74px);
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--border-subtle);
    overflow-y: auto;
  }
  .nav-links.open { left: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-floating-bar { display: flex; }
  body { padding-bottom: 60px; }
  .trust-strip { gap: 1rem; }
}

@media (max-width: 600px) {
  .service-cards-grid { grid-template-columns: 1fr; }
  .service-card-thumb { height: 120px; }
}
