/* Solar Hub Energy — theme system & brand extensions */

[data-theme="light"] {
  --clr-bg: #f4f7f5;
  --clr-surface: #ffffff;
  --clr-text: #0a120e;
  --clr-text-muted: #5a6b62;
  --clr-border: rgba(15, 90, 40, 0.12);
  --clr-nav-bg: rgba(255, 255, 255, 0.82);
  --clr-card: #ffffff;
  --clr-hero-mesh: radial-gradient(circle at 18% 20%, #e8f5ec 0, var(--clr-bg) 55%);
  --clr-footer: #061008;
}

[data-theme="dark"] {
  --clr-bg: #000000;
  --clr-surface: #0a0a0a;
  --clr-text: #eef2ef;
  --clr-text-muted: #b0bdb4;
  --clr-primary-light: rgba(6, 113, 31, 0.22);
  --clr-border: rgba(255, 255, 255, 0.08);
  --clr-nav-bg: rgba(0, 0, 0, 0.75);
  --clr-card: #111111;
  --clr-hero-mesh: radial-gradient(circle at 18% 20%, rgba(6, 113, 31, 0.18) 0, #000 58%);
  --clr-footer: #000000;
}

html[data-theme="dark"] .section-surface,
html[data-theme="dark"] .bg-white {
  background: var(--clr-surface) !important;
  color: var(--clr-text);
}

html[data-theme="dark"] .text-muted {
  color: var(--clr-text-muted) !important;
}

html[data-theme="dark"] body.she-site {
  color: var(--clr-text);
  --bs-body-color: var(--clr-text);
  --bs-secondary-color: var(--clr-text-muted);
  --bs-emphasis-color: var(--clr-text);
}

html[data-theme="dark"] body.she-site h1,
html[data-theme="dark"] body.she-site h2,
html[data-theme="dark"] body.she-site h3,
html[data-theme="dark"] body.she-site h4,
html[data-theme="dark"] body.she-site h5,
html[data-theme="dark"] body.she-site .hero-title,
html[data-theme="dark"] body.she-site .she-section-title,
html[data-theme="dark"] body.she-site .service-card h5,
html[data-theme="dark"] body.she-site .solution-body h5,
html[data-theme="dark"] body.she-site .why-card h5,
html[data-theme="dark"] body.she-site .contact-info-item strong,
html[data-theme="dark"] body.she-site .about-list strong {
  color: var(--clr-text);
}

html[data-theme="dark"] body.she-site .navbar-hw .nav-link,
html[data-theme="dark"] body.she-site .navbar-toggler {
  color: var(--clr-text);
}

html[data-theme="dark"] body.she-site .navbar-hw.scrolled {
  background: var(--clr-nav-bg) !important;
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] body.she-site .about-list .ic {
  background: var(--clr-primary-light);
  color: #7dcea0;
}

html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .cause-card,
html[data-theme="dark"] .why-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .solution-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
}

html[data-theme="dark"] .navbar-hw.scrolled {
  background: var(--clr-nav-bg);
  border-bottom: 1px solid var(--clr-border);
}

html[data-theme="dark"] .form-control-hw {
  background: #141414;
  border-color: var(--clr-border);
  color: var(--clr-text);
}

html[data-theme="dark"] .stats-band {
  background: linear-gradient(135deg, #045016, #06711f 55%, #0a8a28);
}

html[data-theme="dark"] .footer-wave path {
  fill: var(--clr-footer);
}

html[data-theme="dark"] .footer-hw {
  background: var(--clr-footer);
}

html[data-theme="dark"] .hero {
  background: var(--clr-hero-mesh);
}

html[data-theme="dark"] .float-card,
html[data-theme="dark"] .fc-val {
  color: var(--clr-text);
}

html[data-theme="dark"] .btn-hw-outline {
  background: transparent;
  border-color: var(--clr-border);
  color: var(--clr-text);
}

html[data-theme="dark"] .btn-hw-outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

/* Logo */
.she-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

.she-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--clr-primary), var(--clr-primary-dark));
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px -8px rgba(6, 113, 31, 0.55);
}

.she-logo span.accent {
  color: var(--clr-secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.theme-toggle:hover {
  transform: scale(1.05);
  border-color: var(--clr-primary);
}

html[data-theme="dark"] .theme-icon-light {
  display: none;
}

html[data-theme="light"] .theme-icon-dark {
  display: none;
}

/* Preloader */
#preloader.she-preload {
  background: linear-gradient(160deg, #045016, #06711f 55%, #f47721);
}

.preload-sun {
  animation: she-spin 2.4s linear infinite;
}

@keyframes she-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hero solar grid */
.hero-solar-visual {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #0a0a0a 0%, #122418 45%, #06711f 100%);
  border: 1px solid var(--clr-border);
  overflow: hidden;
}

.hero-solar-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.7;
}

.hero-solar-visual .sun-disc {
  position: absolute;
  top: 12%;
  right: 14%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe8a3, #f47721 55%, #c45a12);
  box-shadow: 0 0 60px rgba(244, 119, 33, 0.55);
  animation: she-pulse 4s ease-in-out infinite;
}

@keyframes she-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.92;
  }
}

.hero-solar-visual .panel-stack {
  position: absolute;
  bottom: 8%;
  left: 8%;
  right: 8%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  transform: perspective(800px) rotateX(12deg);
}

.hero-solar-visual .panel {
  aspect-ratio: 1.6;
  border-radius: 6px;
  background: linear-gradient(135deg, #1a3a5c, #0d2137);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.hero-solar-visual .panel::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.section-alt {
  background: var(--clr-surface);
}

.service-card,
.solution-card,
.project-card {
  background: var(--clr-card);
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  padding: 28px;
  height: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service-card:hover,
.solution-card:hover,
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.service-ic,
.solution-ic {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 18px;
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
}

.solution-ic {
  background: var(--clr-secondary-light);
  color: #b45309;
}

html[data-theme="dark"] .solution-ic {
  color: var(--clr-secondary);
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
}

.project-body {
  padding: 22px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.project-meta span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
}

.pricing-band {
  border-radius: var(--radius);
  padding: 48px 32px;
  background: linear-gradient(135deg, #045016, #06711f 50%, #05631c);
  color: #fff;
  text-align: center;
}

.pricing-band h3 {
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  bottom: 88px;
  left: 22px;
  right: auto;
  z-index: 1040;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  box-shadow: 0 12px 32px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: #fff;
}

.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1035;
  padding: 12px 16px;
  background: var(--clr-nav-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--clr-border);
  display: flex;
  gap: 10px;
}

@media (min-width: 992px) {
  .mobile-cta-bar {
    display: none;
  }
}

.mobile-cta-bar a {
  flex: 1;
  justify-content: center;
}

.map-embed {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  min-height: 220px;
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 28px 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-strip i {
  color: var(--clr-secondary);
  margin-right: 6px;
}

.faq-mini .accordion-item {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-mini .accordion-button {
  background: var(--clr-card);
  color: var(--clr-text);
  font-weight: 600;
  box-shadow: none;
}

.faq-mini .accordion-button:not(.collapsed) {
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
}

html[data-theme="dark"] .faq-mini .accordion-button:not(.collapsed) {
  color: var(--clr-text);
}

.faq-mini .accordion-body {
  color: var(--clr-text-muted);
}

/* ——— Brand logo & flyer-led layout ——— */
.she-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.she-brand__img {
  width: auto;
  height: 36px;
  max-width: min(148px, 42vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.she-brand--footer .she-brand__img {
  height: 48px;
  max-width: min(220px, 70vw);
  background: transparent;
}

.preload-logo {
  width: min(240px, 72vw);
  height: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  animation: she-logo-pulse 1.6s ease-in-out infinite;
}

@keyframes she-logo-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.92;
  }
}

.hero-media-frame--brand {
  border-radius: var(--radius);
  border: 2px solid var(--clr-border);
  box-shadow: var(--shadow-lift);
  background: #fff;
  padding: 8px;
}

.hero-media-frame--brand img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 8px);
  display: block;
}

.she-promo {
  position: relative;
  overflow: hidden;
}

.she-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(244, 119, 33, 0.12), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(6, 113, 31, 0.15), transparent 50%);
  pointer-events: none;
}

.flyer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.flyer-card {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  background: #fff;
}

.flyer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.flyer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flyer-card--featured {
  grid-row: span 2;
}

.solution-card--product {
  padding: 0;
  overflow: hidden;
}

.solution-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0a0a;
}

.solution-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.solution-card--product:hover .solution-img img {
  transform: scale(1.05);
}

.solution-body {
  padding: 22px 24px 26px;
}

.project-thumb {
  position: relative;
  height: 220px;
  padding: 0;
  background: #000;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

.project-thumb-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.about-collage .img-a img,
.about-collage .img-b img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-theme="dark"] .about-badge {
  background: #fff;
  color: #0a120e;
}

html[data-theme="dark"] .about-badge .fw-bold,
html[data-theme="dark"] .about-badge .font-display,
html[data-theme="dark"] .about-badge .ab-ring,
html[data-theme="dark"] .about-badge .ab-ring span {
  color: #0a120e !important;
}

html[data-theme="dark"] .about-badge .text-muted {
  color: #5a6b62 !important;
}

html[data-theme="dark"] .navbar-hw {
  border-bottom: 1px solid transparent;
}

html[data-theme="dark"] .policy-hero {
  background: var(--clr-hero-mesh);
}

.policy-hero .she-brand__img {
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .flyer-grid {
    grid-template-columns: 1fr;
  }

  .flyer-card--featured {
    grid-row: span 1;
  }
}

.text-she-orange {
  color: var(--clr-secondary);
}
