/* =========================================================================
   SOLAR ENERGY — layout: preloader, header, navigation, footer
   ========================================================================= */

/* ============================ 7. PRELOADER ============================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  background: var(--grad-dark);
  transition: opacity .7s var(--ease-out), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }

.preloader__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 140px; height: 140px;
}
.preloader__halo {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,176,32,.55), transparent 62%);
  filter: blur(18px);
  animation: breathe 2.4s var(--ease-io) infinite;
}
.preloader__mark {
  position: relative;
  width: 82px;
  fill: #fff;
  animation: markPop .9s var(--ease-spring) both;
}
.preloader__word {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--sun-300);
  animation: fadeUp .8s var(--ease-out) .25s both;
}
.preloader__bar {
  width: 190px; height: 2px;
  background: rgba(255,255,255,.14);
  border-radius: 2px;
  overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 0;
  background: var(--grad-sun);
  border-radius: 2px;
  animation: loadBar 1.5s var(--ease-io) forwards;
}

@keyframes breathe { 0%,100% { opacity:.55; transform:scale(.94);} 50% { opacity:1; transform:scale(1.08);} }
@keyframes markPop  { from { opacity:0; transform:scale(.6) rotate(-8deg);} to { opacity:1; transform:none;} }
@keyframes fadeUp   { from { opacity:0; transform:translateY(10px);} to { opacity:1; transform:none;} }
@keyframes loadBar  { from { width:0; } to { width:100%; } }

/* ============================ 8. HEADER ============================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .45s var(--ease-out), box-shadow .45s var(--ease-out), backdrop-filter .45s;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height .45s var(--ease-out);
}

/* solid state once scrolled */
.header.is-stuck {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(10,20,14,.07);
}
.header.is-stuck .header__inner { height: 70px; }

.brand { position: relative; display: block; flex: none; }
.brand__logo {
  width: clamp(150px, 15vw, 190px);
  height: auto;
  transition: opacity .4s var(--ease-out);
}
.brand__logo--on-light { position: absolute; inset: 0; opacity: 0; }
.header.is-stuck .brand__logo--on-dark  { opacity: 0; }
.header.is-stuck .brand__logo--on-light { opacity: 1; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.6vw, 1.1rem);
}
.nav__list a {
  position: relative;
  display: block;
  padding: .55rem .35rem;
  font-family: var(--font-display);
  font-size: .96rem;
  font-weight: 500;
  color: rgba(255,255,255,.86);
  transition: color .3s var(--ease-out);
}
.header.is-stuck .nav__list a { color: var(--text); }

.nav__list a::after {
  content: "";
  position: absolute;
  left: .35rem; right: .35rem; bottom: .28rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__list a:hover { color: #fff; }
.header.is-stuck .nav__list a:hover,
.header.is-stuck .nav__list a.is-active { color: var(--brand); }

.nav__cta { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex: none;
}
.header__call {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .93rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  stroke-width: 1.9;
  transition: color .3s;
}
.header__call:hover { color: var(--sun-300); }
.header.is-stuck .header__call { color: var(--text); }
.header.is-stuck .header__call:hover { color: var(--brand); }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .4s var(--ease-out), opacity .25s, background .3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.header.is-stuck .burger span { background: var(--text); }
.burger[aria-expanded="true"] span { background: var(--text); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header__progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: transparent;
}
.header__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-sun);
  box-shadow: 0 0 12px rgba(255,176,32,.7);
}

/* ============================ 23. FOOTER ============================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.62);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer__brand img { width: clamp(190px, 20vw, 230px); margin-bottom: 1.4rem; }
.footer__brand p { font-size: .95rem; line-height: 1.72; max-width: 42ch; }

.footer__social { display: flex; gap: .65rem; margin-top: 1.6rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: rgba(255,255,255,.72);
  stroke-width: 1.9;
  transition: all .35s var(--ease-out);
}
.footer__social a:hover {
  color: #2A1803;
  background: var(--grad-sun);
  border-color: transparent;
  transform: translateY(-3px);
}
.footer__social .icon { width: 1.15rem; height: 1.15rem; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__cols h3 {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun-400);
  margin-bottom: 1.15rem;
}
.footer__cols li { font-size: .94rem; line-height: 2.05; }
.footer__cols a { transition: color .25s; }
.footer__cols a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: .88rem;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__bottom a:hover { color: #fff; }

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

@media (max-width: 980px) {
  .nav::before {
    content: "";
    position: absolute;
    top: -140px; right: -120px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,176,32,.30), transparent 66%);
    filter: blur(70px);
    pointer-events: none;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    padding: 1.05rem .25rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -.02em;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.10);
    opacity: 0;
    transform: translateY(14px);
  }
  .nav.is-open .nav__list a {
    opacity: 1;
    transform: none;
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  }
  .nav.is-open .nav__list li:nth-child(1) a { transition-delay: .14s; }
  .nav.is-open .nav__list li:nth-child(2) a { transition-delay: .19s; }
  .nav.is-open .nav__list li:nth-child(3) a { transition-delay: .24s; }
  .nav.is-open .nav__list li:nth-child(4) a { transition-delay: .29s; }
  .nav.is-open .nav__list li:nth-child(5) a { transition-delay: .34s; }
  .nav.is-open .nav__list li:nth-child(6) a { transition-delay: .39s; }
  .nav__list a::after { display: none; }
  .nav__list a:hover, .nav__list a.is-active { color: var(--sun-400); }
  .nav__cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(14px);
  }
  .nav.is-open .nav__cta {
    opacity: 1;
    transform: none;
    transition: opacity .5s var(--ease-out) .45s, transform .5s var(--ease-out) .45s;
  }
  .burger { display: block; }
  .header__call, .header__quote { display: none; }
  .brand { position: relative; z-index: 101; }
  body.is-locked .header {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.is-locked .brand__logo--on-dark { opacity: 1; }
  body.is-locked .brand__logo--on-light { opacity: 0; }
  body.is-locked .burger span { background: #fff; }
}

@media (max-width: 700px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

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

/* =========================================================================
   PAGE HERO — the compact banner every page except home uses.
   Each page sets its own --ph-image and picks an accent modifier, so the
   shape is shared but no two pages read the same.
   ========================================================================= */
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(340px, 52vh, 560px);
  padding-block: calc(var(--header-h) + 4rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--grad-dark);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: phDrift 24s var(--ease-io) infinite alternate;
}
@keyframes phDrift {
  from { transform: scale(1.08) translate3d(0,0,0); }
  to   { transform: scale(1.16) translate3d(-1.6%,-1%,0); }
}
.page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,16,10,.78) 0%, rgba(6,16,10,.42) 42%, rgba(6,16,10,.88) 100%),
    linear-gradient(100deg, rgba(6,18,10,.86) 0%, rgba(6,18,10,.30) 62%, transparent 100%);
}
/* accent bloom — colour shifts per page */
.page-hero::after {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ph-accent, rgba(255,176,32,.30)), transparent 62%);
  filter: blur(70px);
  pointer-events: none;
}
.page-hero--green { --ph-accent: rgba(23,163,77,.34); }
.page-hero--sun   { --ph-accent: rgba(255,176,32,.36); }
.page-hero--cool  { --ph-accent: rgba(70,197,120,.28); }

.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  color: #fff;
  max-width: 18ch;
}
.page-hero__lead {
  margin-top: 1.3rem;
  max-width: 56ch;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.72;
  color: rgba(255,255,255,.80);
}
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  margin-top: 1.8rem;
  font-size: .9rem;
  color: rgba(255,255,255,.66);
}
.page-hero__meta li { display: flex; align-items: center; gap: .5rem; }
.page-hero__meta .icon { color: var(--sun-400); width: 1.05em; height: 1.05em; }

/* ---------------- breadcrumb ---------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  font-size: .84rem;
  color: rgba(255,255,255,.58);
}
.crumbs a { transition: color .25s; }
.crumbs a:hover { color: var(--sun-300); }
.crumbs span { opacity: .5; }
.crumbs [aria-current] { color: var(--sun-300); }

/* ---------------- header: named phone contact ---------------- */
.header__call strong { font-weight: 700; }
.header__call small {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .62;
  line-height: 1.2;
}
.header__call-text { display: grid; line-height: 1.15; }

/* =========================================================================
   FOOTER CTA + FLOATING WHATSAPP — added for the multi-page build
   ========================================================================= */
.footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer__cta-title {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: .9rem;
}
.footer__cta p { font-size: 1rem; line-height: 1.72; max-width: 52ch; }

.footer__contact { display: grid; gap: .8rem; }
.footer__contact li { display: flex; align-items: center; gap: .65rem; line-height: 1.5; }
.footer__contact .icon { width: 1.05rem; height: 1.05rem; color: var(--sun-400); stroke-width: 1.9; flex: none; }
.footer__contact a { transition: color .25s; }
.footer__contact a:hover { color: #fff; }

.footer__cols { grid-template-columns: repeat(4, 1fr); }

/* ---------------- floating WhatsApp ---------------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.1rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  background: #075E54;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(7,94,84,.42);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .5s var(--ease-spring), opacity .4s, background .3s;
}
.wa-float.is-in { transform: none; opacity: 1; }
.wa-float:hover { background: #0A7466; }
.wa-float .icon { width: 1.35rem; height: 1.35rem; fill: currentColor; flex: none; }

@media (max-width: 1100px) {
  .footer__cta { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 1.5rem; }
}
@media (max-width: 700px) {
  .wa-float span { display: none; }
  .wa-float { padding: .9rem; }
}
@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* ---------------- page-hero kicker (the letterhead's own positioning line) ---------------- */
.page-hero__kicker {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: .42rem 1.05rem;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--sun-300);
  background: rgba(255,176,32,.12);
  border: 1px solid rgba(255,176,32,.32);
  border-radius: var(--r-pill);
}

.footer__gstin {
  font-size: .82rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.45);
}

.brands__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--brand);
}
.brands__link .icon { width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
.brands__link:hover .icon { transform: translateX(3px); }
