/* ============================================================
   DEG WEBSITE — ADDITIONS & ENHANCEMENTS
   Photos · Toggle · WhatsApp · FAQ · Preloader · Floats
   ============================================================ */

/* ---- Skip to Content (Accessibility) ---- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 99999;
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---- Mobile Nav Backdrop ---- */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 998;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-backdrop.active {
  display: block;
  opacity: 1;
}

/* Mobile nav close button */
.nav-mobile-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-mobile-close:hover {
  background: var(--red);
  color: #fff;
}

/* ---- Preloader ---- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.preloader-triangle {
  animation: tri-pulse 1.1s ease-in-out infinite;
}
@keyframes tri-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.7; }
}
.preloader-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.preloader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  animation: preloader-load 1.5s ease-in-out forwards;
}
@keyframes preloader-load {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

/* ---- Scroll Progress Bar ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red) 0%, #e85560 40%, #2da86c 70%, var(--green) 100%);
  z-index: 2000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 92px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: wa-ring 2.2s infinite;
}
@keyframes wa-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---- Emergency Float ---- */
.emergency-float {
  position: fixed;
  bottom: 152px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  border-radius: 30px;
  padding: 10px 18px 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 500;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(196,30,36,0.45);
  white-space: nowrap;
  max-width: 52px;
  overflow: hidden;
  transition: max-width 0.35s ease, box-shadow 0.25s ease;
}
.emergency-float:hover {
  max-width: 220px;
  box-shadow: 0 8px 28px rgba(196,30,36,0.5);
}
.emergency-float .ef-icon {
  font-size: 1rem;
  flex-shrink: 0;
  animation: pulse-bolt 1.5s infinite;
}
@keyframes pulse-bolt {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1);    opacity: 0.9; }
  70%  { transform: scale(1.4);  opacity: 0; }
  100% { transform: scale(1.4);  opacity: 0; }
}
.emergency-float .ef-text {
  white-space: nowrap;
  overflow: hidden;
}

/* ============================================================
   SOLUTIONS TOGGLE SECTION
   ============================================================ */
.solutions-section {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
}
.solutions-section.solar-active { background: #0b4a2c; }
.solutions-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transition: opacity 0.5s;
}

.solutions-header {
  text-align: center;
  margin-bottom: 52px;
}

/* The toggle pill */
.sol-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}
.sol-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 60px;
  padding: 6px;
  gap: 0;
  position: relative;
}
.sol-toggle-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  width: calc(50% - 3px);
  background: var(--red);
  border-radius: 50px;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.38s ease;
  z-index: 0;
  box-shadow: 0 4px 18px rgba(196,30,36,0.4);
}
.sol-toggle-slider.solar {
  transform: translateX(calc(100% + 6px));
  background: #1e7a4e;
  box-shadow: 0 4px 18px rgba(30,122,78,0.5);
}
.sol-toggle-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
  background: none;
  border: none;
}
.sol-toggle-btn.active { color: #fff; }
.sol-toggle-btn i { font-size: 1.1rem; }

/* Solution panels */
.solution-panel {
  display: none;
  opacity: 0;
  animation: panel-fade-in 0.45s ease forwards;
}
.solution-panel.active {
  display: block;
}
@keyframes panel-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Panel inner layout */
.sol-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.sol-feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.sol-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.solar-active .sol-feature-card::before {
  background: linear-gradient(90deg, #1e7a4e, transparent);
}
.sol-feature-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-4px); }
.sol-feature-card:hover::before { transform: scaleX(1); }

.sol-feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(196,30,36,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: var(--red);
  transition: background 0.3s, color 0.3s;
}
.solar-active .sol-feature-icon {
  background: rgba(30,122,78,0.15);
  color: #2da86c;
}
.sol-feature-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 10px;
}
.sol-feature-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Sol project cards */
.sol-projects {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.sol-project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
  transition: var(--transition);
}
.sol-project-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }

.sol-project-img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.sol-project-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.72) 100%);
}
.sol-proj-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.solar-active .sol-proj-badge { background: #1e7a4e; }
.sol-proj-power {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.sol-proj-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 2px;
}
.sol-proj-loc {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}

/* Sol stats row */
.sol-stats-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sol-stat {
  text-align: center;
}
.sol-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.sol-stat-num span { color: var(--red); }
.solar-active .sol-stat-num span { color: #2da86c; }
.sol-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  background: var(--gray-bg);
  padding: 90px 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-mid);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item.open {
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(27,58,92,0.1);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1.4;
}
.faq-chevron {
  width: 28px;
  height: 28px;
  background: var(--gray-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s;
  font-size: 0.75rem;
  color: var(--navy);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--navy);
  color: #fff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--gray-mid);
  padding-top: 16px;
  margin: 0 24px;
}

/* ============================================================
   WHY DEG SECTION
   ============================================================ */
.why-deg-section {
  background: var(--white);
  padding: 90px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-icon {
  width: 46px;
  height: 46px;
  background: rgba(27,58,92,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--navy);
  transition: var(--transition);
}
.why-item:hover .why-icon {
  background: var(--navy);
  color: #fff;
  transform: scale(1.05);
}
.why-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.why-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.why-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.why-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,58,92,0.08) 0%, transparent 60%);
}
.why-cert-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(27,58,92,0.9), transparent);
  padding: 20px 20px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   PROJECT CARD GRADIENTS — clean branded colors, no PDF slides
   ============================================================ */

/* Diesel / Electrical projects — navy-to-blue family */
.photo-golf-club    { background: linear-gradient(145deg, #0f2744 0%, #1B3A5C 50%, #2C5F8A 100%); }
.photo-diplomax     { background: linear-gradient(145deg, #122840 0%, #1e4b78 50%, #2C5F8A 100%); }
.photo-beirut-tower { background: linear-gradient(145deg, #0d1f35 0%, #1B3A5C 45%, #3d7ab0 100%); }
.photo-raouche      { background: linear-gradient(145deg, #14304f 0%, #255080 50%, #3878ad 100%); }
.photo-damac        { background: linear-gradient(145deg, #1a1040 0%, #2a2060 50%, #3d3a90 100%); }
.photo-arab-bank    { background: linear-gradient(145deg, #0a1628 0%, #142340 50%, #1B3A5C 100%); }

/* Solar / Hybrid projects — green family */
.photo-obhur    { background: linear-gradient(145deg, #062218 0%, #0d4028 50%, #1a6040 100%); }
.photo-un       { background: linear-gradient(145deg, #071f20 0%, #0e3d3e 50%, #1a6060 100%); }
.photo-marona   { background: linear-gradient(145deg, #0a2d12 0%, #0d5c36 50%, #1e7a4e 100%); }
.photo-hadchiti { background: linear-gradient(145deg, #0b2e1a 0%, #0f5530 50%, #1a7044 100%); }
.photo-eau-tower{ background: linear-gradient(145deg, #082814 0%, #0d5c36 50%, #1e8050 100%); }
.photo-le-blanc { background: linear-gradient(145deg, #132808 0%, #205010 50%, #2e7a18 100%); }

/* Shared decorative overlay on all project cards — diagonal light sweep */
.photo-golf-club::after,
.photo-diplomax::after,
.photo-beirut-tower::after,
.photo-raouche::after,
.photo-damac::after,
.photo-arab-bank::after,
.photo-obhur::after,
.photo-un::after,
.photo-marona::after,
.photo-hadchiti::after,
.photo-eau-tower::after,
.photo-le-blanc::after {
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.45)) !important;
}

/* ============================================================
   ABOUT SECTION VISUAL — clean branded gradient
   ============================================================ */
.about-photo-real {
  background: linear-gradient(145deg, #0d1f35 0%, #1B3A5C 40%, #2C5F8A 75%, #1e4068 100%);
  position: relative;
  overflow: hidden;
}
.about-photo-real::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.about-photo-real::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,30,36,0.12) 0%, transparent 70%);
}

/* ============================================================
   SERVICE DETAIL IMAGES — clean gradient panels with icon accent
   ============================================================ */
.service-photo-maintenance {
  background: linear-gradient(145deg, #0f2030 0%, #1B3A5C 55%, #2a5580 100%);
}
.service-photo-repair {
  background: linear-gradient(145deg, #1a0a0a 0%, #3d1010 50%, #C41E24 100%);
}
.service-photo-panels {
  background: linear-gradient(145deg, #0d1f35 0%, #1e3d6e 55%, #2C5F8A 100%);
}
.service-photo-voltacar {
  background: linear-gradient(145deg, #0a1e18 0%, #0d5c36 55%, #1e7a4e 100%);
}
.service-photo-training {
  background: linear-gradient(145deg, #12100a 0%, #3a3010 55%, #6a5820 100%);
}
.service-photo-solar {
  background: linear-gradient(145deg, #062218 0%, #0d5c36 50%, #1e9055 100%);
}

/* Grid pattern overlay for all service images */
.service-photo-maintenance::before,
.service-photo-repair::before,
.service-photo-panels::before,
.service-photo-voltacar::before,
.service-photo-training::before,
.service-photo-solar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ============================================================
   SOLAR IDENTITY ENHANCEMENTS
   ============================================================ */

/* Testimonial card — solar client gets a green left border accent */
.testimonial-card.solar-client {
  border-left: 3px solid var(--green);
  background: linear-gradient(135deg, rgba(30,122,78,0.04) 0%, transparent 50%);
}
.testimonial-card.solar-client .quote-mark {
  color: var(--green);
  opacity: 0.35;
}

/* Green cert badge variant (for LCEC, UN Approved) */
.cert-badge.cert-solar {
  background: rgba(30,122,78,0.18);
  border-color: rgba(30,122,78,0.35);
  color: #5ddb99;
}

/* Footer solar service links — subtle green tint */
.footer-links a.solar-link {
  color: rgba(93,219,153,0.7);
}
.footer-links a.solar-link:hover {
  color: #5ddb99;
}
.footer-links a.solar-link::before {
  background: var(--green-light);
}

/* Footer bottom solar certs */
.cert-badge.cert-solar-footer {
  background: rgba(30,122,78,0.15);
  border-color: rgba(30,122,78,0.3);
  color: #5ddb99;
}

/* About — 100% Solar-Powered HQ feature item */
.feature-item.solar-hq {
  background: rgba(30,122,78,0.1);
  border-color: rgba(30,122,78,0.25);
  color: var(--green);
  font-weight: 700;
}

/* CTA solar button */
.btn-solar {
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
}
.btn-solar:hover {
  background: #186b42;
  border-color: #186b42;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,122,78,0.35);
}

/* Hero dual-badge row */
.hero-dual-badge {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-badge-solar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30,122,78,0.15);
  border: 1px solid rgba(30,122,78,0.3);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5ddb99;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge-solar .dot {
  width: 6px;
  height: 6px;
  background: #5ddb99;
  border-radius: 50%;
  animation: dot-blink 2s ease-in-out infinite 0.4s;
}

/* Premises photo grid (legacy, keep for layout) */
.premises-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* App screenshot */
.app-screenshot {
  width: 100%;
  max-width: 280px;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(27,58,92,0.4);
  border: 4px solid rgba(255,255,255,0.1);
}

/* Premises grid */
.premises-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.premises-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.premises-grid img:hover { transform: scale(1.04); }
.premises-grid .p-main {
  grid-row: span 2;
}
.premises-grid-outer {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ============================================================
   HERO WITH REAL PHOTO OVERLAY
   ============================================================ */
.hero-photo-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(196,30,36,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(44,95,138,0.12) 0%, transparent 55%);
  z-index: 0;
}

/* ============================================================
   CLIENT LOGOS REAL (from PDF)
   ============================================================ */
.clients-logo-real {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.clients-logo-real img {
  width: 100%;
  height: auto;
  display: block;
  /* Crop to just the logo area */
  object-fit: cover;
  object-position: center 60%;
  max-height: 200px;
}

/* ============================================================
   ENERGY CALCULATOR SECTION
   ============================================================ */
.calc-section {
  background: var(--gray-bg);
}
.calc-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Tab switcher */
.calc-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.calc-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--gray-mid);
  background: var(--white);
  color: var(--text-muted);
  transition: var(--transition);
}
.calc-tab:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.calc-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 6px 24px rgba(27,58,92,0.25);
}
.calc-tab[data-calc="solar"].active {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 6px 24px rgba(30,122,78,0.3);
}
.calc-tab[data-calc="solar"]:hover:not(.active) {
  border-color: var(--green);
  color: var(--green);
}

/* Panels */
.calc-panel { display: none; }
.calc-panel.active { display: block; }

/* Two-col grid */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Input side */
.calc-inputs {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.calc-inputs-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 28px;
}

/* Range field */
.calc-field {
  margin-bottom: 28px;
}
.calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.calc-unit {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.calc-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-mid);
  outline: none;
  cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(30,122,78,0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.calc-range-val {
  font-weight: 700;
  color: var(--green);
  font-size: 0.85rem;
}
/* Solar radio selection uses green accent */
#calc-solar .calc-radio:has(input:checked) {
  border-color: var(--green);
  background: rgba(30,122,78,0.07);
  color: var(--green);
}
#calc-solar .calc-radio input { accent-color: var(--green); }

/* Radio group */
.calc-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-radio {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-mid);
  background: var(--white);
  transition: var(--transition);
}
.calc-radio:has(input:checked) {
  border-color: var(--navy);
  background: rgba(27,58,92,0.06);
  color: var(--navy);
  font-weight: 700;
}
.calc-radio input { accent-color: var(--navy); }

/* Results side */
.calc-results {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.calc-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30,122,78,0.09);
  color: var(--green);
  border: 1px solid rgba(30,122,78,0.2);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 28px;
}
.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.calc-result-item {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  border: 1px solid var(--gray-mid);
  transition: var(--transition);
}
.calc-result-item.highlight {
  background: var(--green);
  border-color: var(--green);
}
.calc-result-item.highlight .calc-result-val { color: #fff; }
.calc-result-item.highlight .calc-result-label { color: rgba(255,255,255,0.75); }
.calc-result-val {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 6px;
}
.calc-result-val span {
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.7;
}
.calc-result-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}
.calc-co2 {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30,122,78,0.07);
  border: 1px solid rgba(30,122,78,0.15);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--green);
  margin-bottom: 12px;
}
.calc-co2 i { flex-shrink: 0; }
.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

/* Generator appliance grid */
.gen-appliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gen-appliance {
  background: var(--gray-bg);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.gen-appliance label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.gen-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.gen-step-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.gen-step-btn:hover { background: var(--red); }
.gen-step-val {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  min-width: 28px;
  text-align: center;
}
.gen-watt {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.gen-total-kw {
  font-family: var(--font-head);
  font-size: 2.8rem;
  color: var(--navy);
  line-height: 1;
}
.gen-kva-display {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}
.gen-kva-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.gen-kva-val {
  font-family: var(--font-head);
  font-size: 3rem;
  color: #fff;
  line-height: 1;
}
.gen-kva-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}
.gen-brands-suggest {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--gray-mid);
}
.gen-brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gen-brand-chip {
  background: var(--white);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 900px) {
  .sol-panel-inner    { grid-template-columns: 1fr 1fr; }
  .sol-projects       { grid-template-columns: 1fr 1fr; }
  .sol-stats-row      { grid-template-columns: repeat(2,1fr); }
  .faq-grid           { grid-template-columns: 1fr; }
  .why-grid           { grid-template-columns: 1fr; }
  .why-visual         { display: none; }
  .calc-grid          { grid-template-columns: 1fr; }
  .calc-results       { position: static; }
  .gen-appliance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sol-toggle-btn     { padding: 12px 20px; font-size: 0.82rem; }
  .sol-panel-inner    { grid-template-columns: 1fr; }
  .sol-projects       { grid-template-columns: 1fr; }
  .sol-stats-row      { grid-template-columns: repeat(2,1fr); }
  .emergency-float    { bottom: 152px; right: 20px; }
  .calc-result-grid   { grid-template-columns: 1fr 1fr; }
  .calc-inputs        { padding: 24px 20px; }
  .calc-results       { padding: 24px 20px; }
  .whatsapp-float  { bottom: 92px; right: 20px; }
  #back-to-top     { right: 20px; }
  .premises-grid   { height: 280px; }
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: background .2s, color .2s, transform .2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: rotate(20deg);
}

/* ============================================================
   CLIENT LOGO TICKER
   ============================================================ */
.clients-ticker-section {
  background: var(--white);
  border-top: 1px solid rgba(27,58,92,0.08);
  border-bottom: 1px solid rgba(27,58,92,0.08);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.clients-ticker-section::before,
.clients-ticker-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.clients-ticker-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
}
.clients-ticker-section::after {
  right: 0;
  background: linear-gradient(270deg, var(--white) 0%, transparent 100%);
}
.ticker-label {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(27,58,92,0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 3;
  display: none;
}
#client-ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}
#client-ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.65;
  transition: opacity .2s;
  border-right: 1px solid rgba(27,58,92,0.12);
}
.ticker-item:hover { opacity: 1; }
.ticker-item img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter .2s, opacity .2s;
}
.ticker-item:hover img { filter: none; opacity: 1; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   PROJECT LIGHTBOX
   ============================================================ */
#deg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  backdrop-filter: blur(6px);
}
#deg-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lb-img {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block;
}
.lb-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}
.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 1;
}
.lb-close:hover { background: rgba(196,30,36,0.7); }
.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 1;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.22); }
@media (max-width: 600px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ============================================================
   CALCULATOR QUOTE CTA
   ============================================================ */
.calc-quote-cta-wrap {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.calc-quote-cta-wrap p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}
#calc-quote-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  letter-spacing: 0.02em;
}
#calc-quote-cta:hover { background: #186b42; transform: translateY(-1px); }

/* ============================================================
   CMS LOADING SKELETON
   ============================================================ */
@keyframes cms-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.cms-loading [data-project],
.cms-loading [data-service] {
  background-image: linear-gradient(90deg,
    rgba(27,58,92,0.6) 25%,
    rgba(44,95,138,0.8) 50%,
    rgba(27,58,92,0.6) 75%) !important;
  background-size: 400px 100%;
  animation: cms-shimmer 1.4s ease-in-out infinite;
}

/* ============================================================
   GOOGLE MAP EMBED
   ============================================================ */
.map-section {
  padding: 80px 0;
  background: var(--gray-bg);
}
.map-embed-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(27,58,92,0.15);
  border: 2px solid rgba(27,58,92,0.1);
  aspect-ratio: 16/7;
  position: relative;
}
.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
@media (max-width: 700px) {
  .map-embed-wrap { aspect-ratio: 4/3; }
}

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
[data-theme="dark"] {
  --white:   #071422;
  --gray-bg: #0a1828;
}

[data-theme="dark"] body {
  background: var(--gray-bg);
  color: rgba(255,255,255,0.82);
}

/* Text in light sections */
[data-theme="dark"] .section-title,
[data-theme="dark"] .section-title--light,
[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4 {
  color: #fff;
}
[data-theme="dark"] .section-label { color: rgba(255,255,255,0.5); }
[data-theme="dark"] p { color: rgba(255,255,255,0.72); }
[data-theme="dark"] strong { color: rgba(255,255,255,0.92); }

/* Nav */
[data-theme="dark"] #navbar {
  background: rgba(4,10,20,0.97) !important;
  border-bottom-color: rgba(255,255,255,0.06) !important;
}

/* Feature items / pills */
[data-theme="dark"] .feature-item {
  background: rgba(44,95,138,0.2) !important;
  color: rgba(255,255,255,0.8) !important;
  border-color: rgba(44,95,138,0.3) !important;
}

/* About image box */
[data-theme="dark"] .about-img-box,
[data-theme="dark"] .about-img-wrap {
  background: rgba(27,58,92,0.5) !important;
  border-color: rgba(44,95,138,0.25) !important;
}

/* Service cards / content cards */
[data-theme="dark"] .service-card,
[data-theme="dark"] .product-card {
  background: #102030 !important;
  border-color: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.8);
}
[data-theme="dark"] .service-card p,
[data-theme="dark"] .product-card p { color: rgba(255,255,255,0.65); }

/* FAQ items */
[data-theme="dark"] .faq-item {
  background: #102030 !important;
  border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .faq-question { color: #fff !important; }
[data-theme="dark"] .faq-answer p,
[data-theme="dark"] .faq-answer   { color: rgba(255,255,255,0.68) !important; }

/* Contact form */
[data-theme="dark"] .contact-form-wrap,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-card {
  background: #102030 !important;
  border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .contact-label,
[data-theme="dark"] label { color: rgba(255,255,255,0.6) !important; }
[data-theme="dark"] input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: rgba(255,255,255,0.3) !important; }
[data-theme="dark"] select option { background: #0f2035; }

/* Diagonal section breaks */
[data-theme="dark"] .diagonal-bottom-gray::after { background: #0a1828; }

/* Ticker */
[data-theme="dark"] .clients-ticker-section {
  background: #071422;
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .clients-ticker-section::before {
  background: linear-gradient(90deg, #071422 0%, transparent 100%);
}
[data-theme="dark"] .clients-ticker-section::after {
  background: linear-gradient(270deg, #071422 0%, transparent 100%);
}
[data-theme="dark"] .ticker-item { color: rgba(255,255,255,0.6); }

/* Generator brand chips */
[data-theme="dark"] .gen-brand-chip {
  background: rgba(44,95,138,0.2) !important;
  border-color: rgba(44,95,138,0.4) !important;
  color: rgba(255,255,255,0.8) !important;
}

/* Map */
[data-theme="dark"] .map-section { background: #0a1828; }
[data-theme="dark"] .map-embed-wrap { border-color: rgba(255,255,255,0.08); }

/* About page team/timeline */
[data-theme="dark"] .timeline-item,
[data-theme="dark"] .team-card {
  background: #102030 !important;
  border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .team-card-name { color: #fff !important; }
[data-theme="dark"] .team-card-role,
[data-theme="dark"] .timeline-date  { color: rgba(255,255,255,0.5) !important; }
[data-theme="dark"] .timeline-content p { color: rgba(255,255,255,0.68) !important; }

/* Products page */
[data-theme="dark"] .brand-logo-card,
[data-theme="dark"] .distributor-card {
  background: #102030 !important;
  border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .brand-logo-card img { filter: brightness(0.85); }

/* Scrollbar in dark mode */
[data-theme="dark"] ::-webkit-scrollbar-track { background: #071422; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #1B3A5C; }

/* ============================================================
   PRINT STYLESHEET
   ============================================================ */
@media print {
  #navbar, nav, .whatsapp-float, #back-to-top,
  .emergency-float, #scroll-progress, #preloader,
  .hero-buttons, .calc-section, .hero-wave,
  .footer-cta, .nav-mobile, .theme-toggle { display: none !important; }

  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .hero { min-height: auto; padding: 30px 0 !important; }
  .hero-title { font-size: 24pt; color: #1B3A5C !important; }
  .section, .section-dark, .section-darker { background: #fff !important; }
  .section-title, h2, h3 { color: #1B3A5C !important; page-break-after: avoid; }
  .project-card-full, .service-card, .testimonial-card { page-break-inside: avoid; }
  a[href]:after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  a.nav-btn:after, a.btn:after { content: none; }
  .container { max-width: 100%; padding: 0 16px; }
  footer { background: #1B3A5C !important; color: #fff !important; }
}

