/* ============================================================
   VIBREEM ENERGY PVT. LTD. — style.css
   Premium light-theme solar energy website
   ------------------------------------------------------------
   CONTENTS
   01. Variables & Reset          08. About
   02. Utilities & Buttons        09. Why Choose Us (carousel)
   03. Preloader                  10. Clients carousel
   04. Top strip                  11. Services
   05. Header & Logo              12. Videos + modal
   06. Marquee strips             13. FAQs
   07. Hero                       14. Testimonials
   15. Contact  16. Footer  17. Mobile nav  18. Chatbot
   19. Subsidy popup  20. Animations  21. Responsive
============================================================ */

/* ---------- 01. VARIABLES & RESET ---------- */
:root {
  --primary-green: #157a44;
  --deep-green:    #0c5530;
  --solar-orange:  #f7941e;
  --solar-yellow:  #ffc93c;
  --cream-bg:      #fdf9f1;
  --light-green:   #e9f5ec;
  --light-orange:  #fef3e2;
  --white:         #ffffff;
  --text-dark:     #1e2b23;
  --text-muted:    #5f6f64;
  --border-soft:   #e8e4d8;

  --grad-solar: linear-gradient(135deg, var(--solar-orange), var(--solar-yellow));
  --grad-green: linear-gradient(135deg, var(--primary-green), #2aa35e);
  --grad-text:  linear-gradient(120deg, var(--primary-green) 20%, var(--solar-orange) 80%);

  --font-head: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Figtree', sans-serif;
  --font-cursive: 'Caveat', cursive;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 40px rgba(30, 43, 35, 0.08);
  --shadow-lift: 0 20px 50px rgba(30, 43, 35, 0.14);
  --header-h: 78px;
}

/* Angle custom property for the rotating gradient card outlines */
@property --ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream-bg);
  line-height: 1.65;
}

img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
}

::selection { background: var(--solar-yellow); color: var(--text-dark); }

/* ---------- 02. UTILITIES & BUTTONS ---------- */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section { padding: 96px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 14px;
}

.section-para { color: var(--text-muted); font-size: 1.05rem; }

/* Cursive highlight words */
.cursive-accent {
  font-family: var(--font-cursive);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--solar-orange);
  display: inline-block;
}

/* Highlight words — solid accent color (no gradient) */
.grad-text {
  color: var(--solar-orange);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  position: relative;
  white-space: nowrap;
}
.btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s ease;
}
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-green);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(21, 122, 68, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 4px rgba(21, 122, 68, 0.14), 0 14px 34px rgba(21, 122, 68, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(21, 122, 68, 0.3);
}

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* Media placeholders — easy to spot & replace */
.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(21, 122, 68, 0.10), rgba(247, 148, 30, 0.12)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(21, 122, 68, 0.05) 14px 28px),
    var(--light-green);
  border: 2px dashed rgba(21, 122, 68, 0.35);
  color: var(--primary-green);
  overflow: hidden;
}
.ph-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
}

/* Filled vs stroked inline SVG icons */
svg { flex-shrink: 0; }
.top-socials svg, .footer-socials svg, .mobile-nav svg,
.chatbot-fab svg, .footer-contact svg, .top-item svg, .contact-ico svg {
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
svg.fill-icon, svg.fill-icon path { fill: currentColor; stroke: none; }
svg .dot { fill: currentColor; stroke: none; }
svg .thin { stroke-width: 1.4; }

/* ---------- 03. PRELOADER ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, var(--cream-bg) 58%, #f4ead6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner { text-align: center; padding: 20px; }

/* Logo with an orbiting solar ring + soft glow */
.pre-logo-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
.pre-logo {
  position: relative;
  width: min(320px, 72vw);
  animation: preLogoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both,
             preGlow 2.2s ease-in-out 0.9s infinite;
}

.pre-bar {
  width: 210px; height: 4px;
  margin: 40px auto 0;
  border-radius: 100px;
  background: rgba(21, 122, 68, 0.15);
  overflow: hidden;
}
.pre-bar span {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: var(--grad-solar);
  animation: loadbar 2s ease forwards;
}

.pre-tagline {
  margin-top: 18px;
  font-family: var(--font-cursive);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--solar-orange);
  opacity: 0;
  animation: heroUp 0.8s ease 0.5s forwards;
}

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loadbar { from { width: 0; } to { width: 100%; } }
@keyframes preLogoIn {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes preGlow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(247, 148, 30, 0.3)); }
  50%      { filter: drop-shadow(0 0 32px rgba(247, 148, 30, 0.6)); }
}

/* ---------- 04. TOP CONTACT STRIP ---------- */
.top-strip {
  background: var(--deep-green);
  color: #dff0e5;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.top-contacts { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.top-item { display: inline-flex; align-items: center; gap: 7px; transition: color 0.3s ease; }
.top-item svg { width: 15px; height: 15px; color: var(--solar-yellow); }
a.top-item:hover { color: var(--solar-yellow); }

.top-socials { display: flex; align-items: center; gap: 6px; }
.top-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.top-socials a svg { width: 15px; height: 15px; }
.top-socials a:hover {
  background: var(--grad-solar);
  color: var(--deep-green);
  transform: translateY(-2px);
}

/* ---------- 05. HEADER & LOGO ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(253, 249, 241, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 8px 30px rgba(30, 43, 35, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

/* Logo — image from /media.
   Header uses logo.png (dark subtitle) so it sits directly on the light header. */
.logo {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}
.logo:hover { transform: translateY(-2px); }
.logo-img { height: 50px; width: auto; display: block; }

/* Pure-CSS fallback logo pieces (kept for reference / easy revert) */
.logo-sun {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 3px dotted var(--solar-orange);
  display: grid;
  place-items: center;
  animation: spin 14s linear infinite;
  flex-shrink: 0;
}
.logo-sun-core {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad-solar);
  box-shadow: 0 0 14px rgba(247, 148, 30, 0.6);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.1em;
  color: var(--primary-green);
}
.logo-sub {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  color: var(--solar-orange);
}

/* Navigation */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--text-dark);
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-solar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--primary-green); }
.nav-link:hover::after { transform: scaleX(1); }
/* Highlighted scheme link */
.nav-link.nav-highlight { color: var(--solar-orange); font-weight: 700; }
.nav-link.nav-highlight::after { background: var(--grad-solar); }
.nav-cta { margin-left: 12px; padding: 11px 22px; font-size: 0.9rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--primary-green);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 06. MARQUEE STRIPS ---------- */
.marquee {
  overflow: hidden;
  padding: 13px 0;
  user-select: none;
}
.marquee-green { background: var(--grad-green); color: var(--white); }
.marquee-orange { background: var(--grad-solar); color: var(--deep-green); }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-group span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 0 18px;
}
.marquee-group i {
  font-style: normal;
  font-size: 0.85rem;
  opacity: 0.85;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 07. HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 46px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 90px 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video.media-placeholder { border: none; border-radius: 0; }
.hero-video .ph-label { font-size: 1.05rem; }

/* Subtle dark overlay so the light text stays readable over the video */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(10, 20, 14, 0.72) 0%,
      rgba(10, 20, 14, 0.55) 45%,
      rgba(10, 20, 14, 0.30) 100%),
    linear-gradient(0deg,
      rgba(10, 20, 14, 0.45) 0%,
      rgba(10, 20, 14, 0) 55%);
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero .cursive-accent {
  color: var(--solar-yellow);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 10px 0 20px;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* solid accent so the highlight words pop on the darker video */
.hero h1 .grad-text {
  color: var(--solar-yellow);
}

.hero-para {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  max-width: 600px;
  margin-bottom: 32px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  padding: 9px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
}
.badge svg {
  width: 15px; height: 15px;
  fill: none; stroke: var(--primary-green);
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  background: var(--light-green);
  border-radius: 50%;
  padding: 2px;
}

/* Hero entrance animation */
.hero-anim {
  opacity: 0;
  transform: translateY(28px);
  animation: heroUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-anim.a1 { animation-delay: 0.15s; }
.hero-anim.a2 { animation-delay: 0.30s; }
.hero-anim.a3 { animation-delay: 0.45s; }
.hero-anim.a4 { animation-delay: 0.60s; }
.hero-anim.a5 { animation-delay: 0.75s; }

@keyframes heroUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 08. ABOUT ---------- */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-media {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1; /* keeps the composition square on every screen */
}
/* Both images are perfect squares (1:1) via aspect-ratio */
.about-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.about-img-1 {
  position: absolute;
  top: 0; left: 0;
  width: 64%;
}
.about-img-2 {
  position: absolute;
  bottom: 0; right: 0;
  width: 60%;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lift);
}
/* Circular rotating-text badge — centered where the two images overlap.
   Negative-margin centering (not translate) so the floaty animation keeps working. */
.about-badge {
  position: absolute;
  left: 50%; top: 50%;
  margin: -60px 0 0 -60px;
  z-index: 3;
  width: 120px; height: 120px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px rgba(21, 122, 68, 0.28);
  animation: floaty 4s ease-in-out infinite;
}
.about-badge-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: spin 14s linear infinite;
}
.about-badge-ring text {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  fill: var(--primary-green);
  text-transform: uppercase;
}
.about-badge-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--grad-solar);
  font-size: 1.6rem;
  box-shadow: 0 8px 22px rgba(247, 148, 30, 0.45);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 20px;
  margin: 26px 0 34px;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 0.95rem;
}
.feat-ico {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--light-green);
  flex-shrink: 0;
}
.feat-ico svg {
  width: 15px; height: 15px;
  fill: none; stroke: var(--primary-green);
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 09. WHY CHOOSE US — CARD CAROUSEL ---------- */
.why {
  background: var(--cream-bg);
  overflow: hidden;
}

.card-carousel {
  overflow: hidden;
  padding: 12px 0 20px;
}

.card-track {
  display: flex;
  gap: 26px;
  width: max-content;
  padding: 6px;
  animation: marquee 45s linear infinite;
}
.card-carousel:hover .card-track { animation-play-state: paused; }

/* Card with moving animated gradient outline */
.g-card {
  position: relative;
  width: 305px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.g-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--ang),
    var(--solar-orange), var(--solar-yellow),
    var(--primary-green), var(--solar-yellow), var(--solar-orange));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  animation: rotateAng 4.5s linear infinite;
  pointer-events: none;
}
.g-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }

@keyframes rotateAng { to { --ang: 360deg; } }

.g-card-inner { padding: 30px 26px; }

.why-ico {
  display: inline-grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--grad-solar);
  box-shadow: 0 8px 20px rgba(247, 148, 30, 0.35);
  margin-bottom: 18px;
}
.why-ico svg {
  width: 28px; height: 28px;
  fill: none; stroke: #fff;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.why-card h3 { font-size: 1.12rem; margin-bottom: 9px; }
.why-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- 10. CLIENTS CAROUSEL ---------- */
.clients { background: var(--white); }

.client-carousel {
  overflow: hidden;
}
.client-track {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 8px;
  /* reverse = moves left → right; infinite = never ends */
  animation: marquee 38s linear infinite reverse;
}
.client-carousel:hover .client-track { animation-play-state: paused; }

.client-logo {
  display: grid;
  place-items: center;
  width: 200px; height: 100px;
  padding: 18px 26px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.client-logo img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  object-fit: contain;
}
.client-logo:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

/* ---------- 11. SERVICES ---------- */
.services {
  background: var(--cream-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--white);
  /* permanent, static, solid medium-bold outline (no gradient) */
  border: 2px solid var(--primary-green);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lift);
  border-color: var(--solar-orange);
}

.service-media { height: 150px; border: none; border-bottom: 2px dashed rgba(21, 122, 68, 0.3); border-radius: 0; }
.service-media .ph-label { font-size: 0.7rem; padding: 6px 12px; }
/* real card photo */
.service-media-img { width: 100%; height: 150px; object-fit: cover; display: block; }

.service-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-ico {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--light-green);
  margin: -46px 0 14px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 2;
  transition: transform 0.35s ease, background 0.35s ease;
}
.service-ico svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--primary-green);
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.service-card:hover .service-ico {
  transform: rotate(-8deg) scale(1.08);
  background: var(--light-orange);
}
.service-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-body p { color: var(--text-muted); font-size: 0.88rem; flex: 1; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary-green);
  transition: color 0.3s ease, gap 0.3s ease;
}
.service-link svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.service-link:hover { color: var(--solar-orange); gap: 12px; }

/* ---------- 12. VIDEOS ---------- */
.videos { background: var(--white); }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row on desktop */
  gap: 24px;
}

.video-card { position: relative; }

/* 4:5 portrait video with a permanent (fixed) outline */
.video-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--primary-green);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: #0a1f14;
}
.video-card:hover .video-frame {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.video-frame .vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Small corner mute/unmute toggle */
.vid-mute {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(10, 31, 20, 0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.vid-mute:hover { background: var(--grad-solar); color: var(--deep-green); transform: scale(1.1); }
.vid-mute svg {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
/* show the correct icon for the current state */
.vid-mute .ico-sound { display: none; }
.vid-mute .ico-mute  { display: block; }
.vid-mute:not(.is-muted) .ico-sound { display: block; }
.vid-mute:not(.is-muted) .ico-mute  { display: none; }

.video-title {
  font-size: 1rem;
  margin-top: 14px;
  text-align: center;
  transition: color 0.3s ease;
}
.video-card:hover .video-title { color: var(--primary-green); }

.modal-close {
  position: absolute;
  top: -14px; right: -14px;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad-solar);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(247, 148, 30, 0.45);
  transition: transform 0.3s ease;
}
.modal-close:hover { transform: rotate(90deg) scale(1.08); }

/* ---------- 13. FAQs ---------- */
.faqs { background: var(--cream-bg); }

.faq-wrap {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(21, 122, 68, 0.14);
}

/* Question — light green→orange gradient (different from answer) */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 19px 22px;
  /* solid green question segment (no gradient) — distinct from the white answer */
  background: var(--primary-green);
  transition: filter 0.3s ease;
}
.faq-q:hover { filter: brightness(1.06); }

.faq-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--solar-yellow);
  flex-shrink: 0;
}
.faq-q-text {
  flex: 1;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: #ffffff;
}
.faq-arrow {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, background 0.4s ease;
  flex-shrink: 0;
}
.faq-arrow svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--primary-green);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.3s ease;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--grad-solar); }
.faq-item.open .faq-arrow svg { stroke: var(--white); }

/* Answer — white/cream (different from question) */
.faq-a {
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-a p {
  padding: 20px 22px 22px 60px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ---------- 14. TESTIMONIALS ---------- */
.testimonials {
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 201, 60, 0.14), transparent 40%),
    radial-gradient(circle at 8% 90%, rgba(21, 122, 68, 0.10), transparent 40%),
    var(--white);
  overflow: hidden;
}

.testi-track { animation-duration: 55s; }
.testi-card { width: 370px; }

.stars {
  color: var(--solar-orange);
  font-size: 1.05rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.testi-text {
  color: var(--text-muted);
  font-size: 0.96rem;
  min-height: 96px;
  margin-bottom: 20px;
}
.testi-person { display: flex; align-items: center; gap: 13px; }
.testi-avatar {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad-green);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testi-person strong { display: block; font-family: var(--font-head); font-size: 0.98rem; }
.testi-person small { color: var(--text-muted); font-size: 0.8rem; }

/* ---------- 15. CONTACT ---------- */
.contact { background: var(--cream-bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 34px;
  margin-bottom: 34px;
}

.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 17px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover { transform: translateX(6px); border-color: rgba(247, 148, 30, 0.5); }

.contact-ico {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--grad-solar);
  color: var(--white);
  flex-shrink: 0;
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: 0.98rem; margin-bottom: 2px; }
.contact-card a, .contact-card p { color: var(--text-muted); font-size: 0.92rem; transition: color 0.3s ease; }
.contact-card a:hover { color: var(--solar-orange); }

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--cream-bg);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(21, 122, 68, 0.12);
  background: var(--white);
}
.form-group ::placeholder { color: #9aa79f; }

.form-note {
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-green);
  margin-top: 12px;
  min-height: 1.2em;
}

.map-placeholder {
  height: 320px;
  border-radius: var(--radius);
}
/* Map inside the contact-info column — grows to fill the column height (desktop) */
.contact-map { height: auto; flex: 1; min-height: 240px; }
.map-embed {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}
.map-embed iframe { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; }

/* ---------- 16. FOOTER (dark theme) ---------- */
.footer {
  background: linear-gradient(180deg, #0c3822 0%, #071f13 100%);
  color: #cfe3d6;
  border-top: 3px solid transparent;
  border-image: var(--grad-solar) 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr;
  gap: 44px;
  padding: 70px 0 50px;
}

/* Logo sits directly on the dark footer — no badge needed here */
.footer .logo {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-bottom: 4px;
}
.footer .logo:hover { transform: translateY(-2px); box-shadow: none; }
.footer-logo-img { height: 56px; }

.footer-brand p {
  color: #a9c3b3;
  font-size: 0.92rem;
  margin: 20px 0 22px;
  max-width: 320px;
}

.footer-socials { display: flex; gap: 9px; }
.footer-socials a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #dff0e5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.footer-socials a svg { width: 17px; height: 17px; }
.footer-socials a:hover {
  background: var(--grad-solar);
  color: var(--deep-green);
  border-color: transparent;
  transform: translateY(-4px);
}

.footer-col h4 {
  font-size: 1.02rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: #ffffff;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  border-radius: 3px;
  background: var(--grad-solar);
}

.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a {
  color: #a9c3b3;
  font-size: 0.92rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-col ul a:hover { color: var(--solar-yellow); padding-left: 6px; }

.footer-contact li { display: flex; align-items: center; gap: 10px; color: #a9c3b3; font-size: 0.92rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--solar-yellow); }
.footer-contact a { transition: color 0.3s ease; }
.footer-contact a:hover { color: var(--solar-yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #8fab9c;
}

/* Admin login button — clearly visible in the footer */
.btn-admin-login {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--grad-solar);
  color: var(--deep-green);
  box-shadow: 0 8px 22px rgba(247, 148, 30, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-admin-login svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.btn-admin-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(247, 148, 30, 0.5);
}

/* ---------- 17. MOBILE BOTTOM NAVIGATION ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;          /* flat, attached to the screen edges */
  z-index: 950;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-soft);   /* only a top divider — no curve */
  border-radius: 0;
  box-shadow: 0 -6px 24px rgba(30, 43, 35, 0.12);
  padding: 8px 6px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
}
.mnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 12px;
  transition: color 0.3s ease, background 0.3s ease;
}
.mnav-item svg { width: 21px; height: 21px; }
.mnav-item:hover, .mnav-item:active { color: var(--primary-green); background: var(--light-green); }

/* Call item matches every other item — only its icon is a warm yellow */
.mnav-call svg { stroke: var(--solar-orange); }
.mnav-call:hover, .mnav-call:active { color: var(--primary-green); background: var(--light-green); }

/* ---------- 18. AI CHATBOT ---------- */
.chatbot-fab {
  position: fixed;
  right: 22px; bottom: 26px;
  z-index: 960;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--grad-green);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 34px rgba(21, 122, 68, 0.45);
  transition: transform 0.3s ease;
  animation: playPulse 2.6s ease-out infinite;
}
.chatbot-fab svg { width: 27px; height: 27px; }
.chatbot-fab:hover { transform: scale(1.1) rotate(-6deg); }

.chatbot-box {
  position: fixed;
  right: 22px; bottom: 98px;
  z-index: 960;
  width: min(360px, calc(100vw - 32px));
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}
.chatbot-box.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chatbot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: var(--grad-green);
  color: var(--white);
}
.chatbot-avatar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-solar);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.chatbot-head strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.chatbot-head small { font-size: 0.72rem; opacity: 0.85; }
.chatbot-close {
  margin-left: auto;
  color: var(--white);
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.chatbot-close:hover { background: rgba(255, 255, 255, 0.18); }

.chatbot-msgs {
  height: 250px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--cream-bg);
}
.bot-msg, .user-msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 0.88rem;
  border-radius: 16px;
  animation: msgIn 0.35s ease;
}
.bot-msg {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.user-msg {
  background: var(--grad-green);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Typing indicator (three bouncing dots) */
.bot-typing { display: flex; gap: 5px; align-items: center; }
.bot-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary-green);
  opacity: 0.5;
  animation: typingDot 1s ease-in-out infinite;
}
.bot-typing span:nth-child(2) { animation-delay: 0.15s; }
.bot-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px 14px;
  background: var(--white);
  border-top: 1px solid var(--border-soft);
}
.chatbot-quick button {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 100px;
  background: var(--light-green);
  color: var(--primary-green);
  border: 1px solid rgba(21, 122, 68, 0.2);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.chatbot-quick button:hover {
  background: var(--grad-solar);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
}

.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 11px 14px;
  background: var(--white);
  border-top: 1px solid var(--border-soft);
}
.chatbot-input input {
  flex: 1;
  border: 1.5px solid var(--border-soft);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 0.88rem;
  outline: none;
  background: var(--cream-bg);
  transition: border-color 0.3s ease;
}
.chatbot-input input:focus { border-color: var(--primary-green); }
.chatbot-input button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-solar);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.chatbot-input button svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.chatbot-input button:hover { transform: scale(1.1); }

/* ---------- 19. SUBSIDY POPUP ---------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.popup.open { opacity: 1; visibility: visible; }

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 43, 35, 0.45);
  backdrop-filter: blur(5px);
}

.popup-box {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
  /* top gradient stripe + light body, painted as layered backgrounds
     so the rounded corners stay intact */
  background:
    linear-gradient(90deg, var(--primary-green), var(--solar-orange), var(--solar-yellow)) top center / 100% 5px no-repeat,
    linear-gradient(180deg, var(--white) 0%, var(--cream-bg) 100%);
  border-radius: var(--radius);
  padding: 40px 34px 32px;
  text-align: center;
  box-shadow: var(--shadow-lift);
  transform: translateY(26px) scale(0.95);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.popup.open .popup-box { transform: translateY(0) scale(1); }

/* Close button sits inside the scrollable popup box */
.popup-box .modal-close { top: 12px; right: 12px; }

/* Logo inside the popup — logo.png (dark subtitle) sits directly on the light popup.
   display:flex (block-level) so the heading text sits BELOW the logo, not beside it. */
.popup-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
}
.popup-logo img { height: 52px; width: auto; display: block; }
.popup-box h3 { font-size: 1.5rem; margin: 4px 0 8px; }
.popup-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 22px; }

/* Skip link — stops the popup for good */
.popup-skip {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: underline;
  background: none;
  border: none;
  transition: color 0.3s ease;
}
.popup-skip:hover { color: var(--primary-green); }

/* ---- DESKTOP: show the popup as a card in the bottom-right corner,
   NOT a centered modal, so the visitor can keep browsing. ---- */
@media (min-width: 993px) {
  .popup { pointer-events: none; }          /* clicks pass through to the page */
  .popup-backdrop { display: none; }         /* no full-screen dimming */
  .popup-box {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 372px;
    max-height: calc(100vh - 48px);
    pointer-events: auto;                     /* the card itself stays interactive */
    padding: 30px 28px 22px;
    box-shadow: 0 24px 60px rgba(30, 43, 35, 0.28);
    transform: translateX(40px) scale(0.98);
  }
  .popup.open .popup-box { transform: translateX(0) scale(1); }
  .popup-box h3 { font-size: 1.3rem; }
  .popup-logo img { height: 44px; }
}
.popup-box .form-group { margin-bottom: 13px; }
.popup-box .form-row { gap: 13px; }

/* ============================================================
   PM SURYA GHAR YOJANA
============================================================ */
/* Homepage highlight section */
.pm-home {
  background:
    radial-gradient(circle at 90% 10%, rgba(255,201,60,0.16), transparent 42%),
    radial-gradient(circle at 5% 90%, rgba(21,122,68,0.10), transparent 42%),
    var(--cream-bg);
}
.pm-home-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: center;
}
.pm-home-media { position: relative; }
.pm-home-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.pm-home-badge {
  position: absolute;
  left: -14px; bottom: 26px;
  background: var(--grad-green);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  box-shadow: 0 16px 40px rgba(21,122,68,0.4);
  animation: floaty 4s ease-in-out infinite;
}
.pm-home-amt { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--solar-yellow); }
.pm-home-badge span:last-child { font-size: 0.82rem; }
.pm-home-content .about-features { margin: 22px 0 28px; }

@media (max-width: 992px) {
  .pm-home-grid { grid-template-columns: 1fr; gap: 40px; }
  .pm-home-content .section-title, .pm-home-content .section-para { text-align: left; }
}
@media (max-width: 640px) {
  .pm-home-img { height: 300px; }
  .pm-home-content .about-features { grid-template-columns: 1fr !important; }
  .pm-home-badge { left: 12px; }
}

/* Govt scheme badge */
.gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  color: var(--primary-green);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}
.gov-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* PM image row */
.pm-image-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 18px;
  margin-bottom: 8px;
}
.pm-image-row img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 4px solid var(--white);
}

/* Subsidy slabs table */
.subsidy-table-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}
.subsidy-table-card h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; margin-bottom: 6px;
}
.subsidy-table-card > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.subsidy-table-wrap { overflow-x: auto; }
.subsidy-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.subsidy-table thead th {
  background: var(--grad-green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-align: left;
  padding: 14px 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.subsidy-table thead th:first-child { border-radius: 10px 0 0 10px; }
.subsidy-table thead th:last-child { border-radius: 0 10px 10px 0; }
.subsidy-table tbody td { padding: 15px 18px; border-bottom: 1px solid var(--border-soft); font-size: 0.95rem; }
.subsidy-table tbody tr:last-child td { border-bottom: none; }
.subsidy-table tbody tr:nth-child(even) { background: var(--cream-bg); }
.subsidy-table .amt { font-family: var(--font-head); font-weight: 800; color: var(--solar-orange); }

/* Info cards (What is / Why choose / How much) */
.pm-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pm-info-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pm-info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.pm-info-ico {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 15px;
  background: var(--grad-solar); margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(247,148,30,0.32);
}
.pm-info-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pm-info-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.pm-info-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 12px; }
.pm-check-list { display: flex; flex-direction: column; gap: 9px; }
.pm-check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; font-weight: 600; }
.pm-check-list .feat-ico { width: 24px; height: 24px; flex-shrink: 0; }

/* Difference between solar systems */
.systems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.system-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  border-top: 4px solid var(--primary-green);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.system-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.system-card.ongrid  { border-top-color: #2f80ed; }
.system-card.offgrid { border-top-color: var(--primary-green); }
.system-card.hybrid  { border-top-color: var(--solar-orange); }
.system-ico {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  margin-bottom: 16px;
}
.system-card.ongrid .system-ico  { background: rgba(47,128,237,0.12); color: #2f80ed; }
.system-card.offgrid .system-ico { background: var(--light-green); color: var(--primary-green); }
.system-card.hybrid .system-ico  { background: var(--light-orange); color: var(--solar-orange); }
.system-ico svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.system-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.system-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Apply-for-subsidy split (info left, form right) */
.pm-apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.pm-benefit-card {
  background: var(--grad-green);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 34px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(21,122,68,0.32);
  position: relative; overflow: hidden;
}
.pm-benefit-card::after {
  content: ""; position: absolute; top: -30px; right: -30px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.pm-benefit-sun {
  display: inline-grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.15); font-size: 1.7rem; margin-bottom: 14px;
}
.pm-benefit-amt { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; margin: 4px 0; color: var(--solar-yellow); }
.pm-benefit-lbl { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.05em; font-size: 0.85rem; text-transform: uppercase; opacity: 0.92; }
.pm-benefit-card ul { text-align: left; margin: 24px 0 0; display: flex; flex-direction: column; gap: 11px; }
.pm-benefit-card ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; }
.pm-benefit-card ul svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--solar-yellow); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

@media (max-width: 992px) {
  .pm-image-row { grid-template-columns: 1fr 1fr; }
  .pm-image-row img:first-child { grid-column: span 2; }
  .pm-info-grid, .systems-grid { grid-template-columns: 1fr; }
  .pm-apply-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pm-image-row { grid-template-columns: 1fr; }
  .pm-image-row img:first-child { grid-column: auto; }
  .pm-image-row img { height: 200px; }
}

/* ============================================================
   ABOUT PAGE — Vision & Mission + CTA band
============================================================ */
.vision-mission { background: var(--white); }
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.vm-card {
  position: relative;
  background: var(--cream-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 40px 36px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.vm-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--grad-solar);
}
.vm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.vm-ico {
  display: inline-grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--grad-green);
  box-shadow: 0 10px 24px rgba(21, 122, 68, 0.3);
  margin-bottom: 18px;
}
.vm-ico svg {
  width: 30px; height: 30px;
  fill: none; stroke: #fff;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.vm-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.vm-card p { color: var(--text-muted); font-size: 1.02rem; }

/* Call-to-action band */
.cta-band {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 201, 60, 0.22), transparent 45%),
    var(--grad-green);
  color: var(--white);
  text-align: center;
}
.cta-band .cursive-accent { color: var(--solar-yellow); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; margin: 6px 0 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 620px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-band .btn-primary { background: var(--white); color: var(--primary-green); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--solar-yellow); color: var(--deep-green); }
.cta-band .btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--primary-green); border-color: var(--white); }
.cta-band-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

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

/* ============================================================
   GALLERY PAGE
============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.gallery-item img,
.gallery-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #0a1f14;
}
.gallery-item .gal-caption {
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Document tile */
.gallery-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 4 / 3;
  background: var(--light-green);
  color: var(--primary-green);
}
.gallery-doc svg {
  width: 44px; height: 44px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.gallery-doc span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gallery-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  font-size: 1.05rem;
}
@media (max-width: 992px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ============================================================
   BLOG PAGES
============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-color: rgba(247,148,30,0.45); }
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--light-green);
}
.blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--solar-orange);
  margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.35; }
.blog-card-body h3 a { transition: color 0.3s ease; }
.blog-card-body h3 a:hover { color: var(--primary-green); }
.blog-card-body p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.blog-empty { text-align: center; color: var(--text-muted); padding: 60px 0; font-size: 1.05rem; }

/* Single blog post */
.post-wrap { max-width: 800px; }
.post-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
}
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 22px;
}
.post-meta .badge-cat {
  background: var(--light-green); color: var(--primary-green);
  padding: 4px 14px; border-radius: 100px;
  font-family: var(--font-head);
}
.post-content { color: var(--text-dark); font-size: 1.04rem; line-height: 1.8; }
.post-content h2, .post-content h3 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
  position: relative; padding-left: 14px;
}
.post-content h2::before, .post-content h3::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 4px; border-radius: 4px; background: var(--grad-solar);
}
.post-content p { margin-bottom: 16px; color: var(--text-muted); }
.post-content ul, .post-content ol { margin: 0 0 16px 22px; color: var(--text-muted); }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 6px; }
.post-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 30px;
  font-family: var(--font-head); font-weight: 700;
  color: var(--primary-green);
  transition: color 0.3s ease, gap 0.3s ease;
}
.post-back:hover { color: var(--solar-orange); gap: 12px; }
.post-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 992px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SERVICE DETAIL (INNER) PAGE
============================================================ */

/* Hero / breadcrumb — background photo (media/HERO IMAGE.webp) with a dark
   overlay so the light text stays readable */
.svc-hero {
  position: relative;
  padding: 84px 0 88px;
  text-align: center;
  background-image:
    linear-gradient(rgba(8, 26, 17, 0.68), rgba(8, 26, 17, 0.74)),
    url("media/HERO IMAGE.webp");
  background-size: cover;
  background-position: center;
}
.svc-hero-inner { max-width: 780px; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.breadcrumb a { color: var(--primary-green); transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--solar-orange); }
.breadcrumb em { font-style: normal; color: var(--text-dark); }
.breadcrumb span { opacity: 0.5; }

/* Light text on the photo hero */
.svc-hero .breadcrumb { color: rgba(255, 255, 255, 0.75); }
.svc-hero .breadcrumb a { color: var(--solar-yellow); }
.svc-hero .breadcrumb a:hover { color: var(--solar-orange); }
.svc-hero .breadcrumb em { color: #ffffff; }
.svc-hero .cursive-accent { color: var(--solar-yellow); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }

.svc-hero-ico {
  display: inline-grid;
  place-items: center;
  width: 74px; height: 74px;
  border-radius: 20px;
  background: var(--grad-solar);
  box-shadow: 0 12px 30px rgba(247, 148, 30, 0.4);
  margin-bottom: 16px;
}
.svc-hero-ico svg {
  width: 36px; height: 36px;
  fill: none; stroke: #fff;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.svc-hero-title {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 4px 0 16px;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.svc-hero-intro {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* Main two-column layout */
.svc-main { padding-top: 64px; }
.svc-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.svc-lead-img {
  height: 340px;
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.svc-lead-img.media-placeholder .ph-label { font-size: 0.85rem; }
/* when the lead/gallery are real <img> photos */
img.svc-lead-img,
img.svc-gallery-img {
  width: 100%;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-soft);
}

.svc-block { margin-bottom: 40px; }
.svc-h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  padding-left: 16px;
}
.svc-h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 5px;
  border-radius: 5px;
  background: var(--grad-solar);
}
.svc-para { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 14px; }

/* Gallery */
.svc-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.svc-gallery-img {
  height: 170px;
  border-radius: var(--radius-sm);
}
.svc-gallery-img.media-placeholder .ph-label { font-size: 0.72rem; padding: 6px 10px; }

/* Benefits */
.svc-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.svc-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.98rem;
}

/* Process steps */
.svc-process { display: flex; flex-direction: column; gap: 18px; }
.svc-step {
  display: flex;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.svc-step:hover { transform: translateX(6px); border-color: rgba(247, 148, 30, 0.45); }
.svc-step-num {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--grad-green);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
}
.svc-step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.svc-step p { color: var(--text-muted); font-size: 0.92rem; }

/* Enquiry form card (left column) — landscape fields via .form-row (2-col),
   which collapses to a single column on mobile via the existing rules. */
.svc-enquiry {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.svc-enquiry .svc-h2 { margin-bottom: 8px; }
.svc-enquiry .svc-para { margin-bottom: 22px; }
.svc-enquiry input[readonly] { background: var(--light-green); color: var(--primary-green); font-weight: 600; cursor: default; }
.svc-enquiry .form-note { text-align: left; }

/* Right sidebar (stats + CTA + process) */
.svc-sidebar { display: flex; flex-direction: column; gap: 22px; }
/* Process block lives in the sidebar — trim the default block spacing & size */
.svc-process-block { margin-bottom: 0; }
.svc-process-block .svc-h2 { font-size: 1.35rem; }

.svc-stats-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.svc-stats-card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.svc-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.svc-stat:last-child { border-bottom: none; padding-bottom: 0; }
.svc-stat-num { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--primary-green); }
.svc-stat-lbl { color: var(--text-muted); font-size: 0.9rem; text-align: right; }

.svc-cta-card {
  background: var(--grad-green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(21, 122, 68, 0.32);
}
.svc-cta-sun {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad-solar);
  font-size: 1.5rem;
  margin-bottom: 12px;
  box-shadow: 0 0 0 6px rgba(255, 201, 60, 0.2);
}
.svc-cta-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.svc-cta-card p { font-size: 0.92rem; opacity: 0.92; margin-bottom: 20px; }
.svc-cta-card .btn-primary {
  background: var(--white);
  color: var(--primary-green);
  box-shadow: none;
}
.svc-cta-card .btn-primary:hover { background: var(--solar-yellow); color: var(--deep-green); box-shadow: 0 10px 26px rgba(0,0,0,0.18); }
.svc-cta-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  transition: color 0.3s ease;
}
.svc-cta-call svg { width: 17px; height: 17px; fill: none; stroke: var(--solar-yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-cta-call:hover { color: var(--solar-yellow); }

/* Other services */
.svc-related { background: var(--white); }
.svc-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.svc-related-card {
  background: var(--cream-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.svc-related-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(247, 148, 30, 0.45);
}
.svc-related-card .service-ico { margin: 0 0 14px; }
.svc-related-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.svc-related-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary-green);
  transition: gap 0.3s ease, color 0.3s ease;
}
.svc-related-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svc-related-card:hover .svc-related-link { color: var(--solar-orange); gap: 11px; }

/* Service page responsive */
@media (max-width: 992px) {
  .svc-layout { grid-template-columns: 1fr; gap: 40px; }
  .svc-sidebar { flex-direction: row; flex-wrap: wrap; }
  .svc-stats-card, .svc-cta-card { flex: 1; min-width: 260px; }
  .svc-process-block { flex-basis: 100%; }
  .svc-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .svc-hero { padding: 40px 0 50px; }
  .svc-lead-img { height: 220px; }
  .svc-gallery { grid-template-columns: 1fr 1fr; }
  .svc-benefits { grid-template-columns: 1fr; }
  .svc-sidebar { flex-direction: column; }
  .svc-related-grid { grid-template-columns: 1fr; }
}

/* ---------- 20. SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-anim { opacity: 1; transform: none; }
}

/* ---------- 21. RESPONSIVE ---------- */

/* Large tablets / small laptops */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .videos-grid { grid-template-columns: repeat(4, 1fr); } /* videos stay 4 on desktop */
  .nav-link { padding: 8px 8px; font-size: 0.85rem; }
}

@media (max-width: 992px) {
  .section { padding: 76px 0; }

  /* Header → hamburger drawer */
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 100px 30px 30px;
    box-shadow: -20px 0 60px rgba(30, 43, 35, 0.15);
    transform: translateX(100%);
    visibility: hidden; /* keeps the closed drawer out of layout & tab order */
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
    z-index: 990;
  }
  .nav.open { transform: translateX(0); visibility: visible; }
  .nav-link { font-size: 1.05rem; width: 100%; padding: 12px 10px; }
  .nav-cta { margin: 16px 0 0; }
  .hamburger { position: relative; z-index: 995; }

  .top-strip { font-size: 0.78rem; }
  .top-contacts { gap: 14px; }
  .top-item span { display: none; }
  .top-contacts a.top-item span, .top-contacts .top-item:first-child span { display: inline; }

  .about-grid { grid-template-columns: 1fr; gap: 54px; }
  .about-media { max-width: 480px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .services-grid, .videos-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 40px; }

  .hero { padding: 64px 0 90px; min-height: auto; }
  .hero-para { font-size: 1rem; }
  .btn-lg { padding: 14px 26px; font-size: 0.95rem; width: 100%; justify-content: center; }
  .hero-btns { flex-direction: column; }

  .top-strip-inner { justify-content: center; }
  .top-socials { display: none; }

  .logo-name { font-size: 1.2rem; }
  .logo-sun { width: 38px; height: 38px; }
  .logo-sun-core { width: 20px; height: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } /* 2 videos per row on mobile */
  .video-title { font-size: 0.85rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form-wrap { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding: 54px 0 40px; }

  /* smaller badge so it doesn't crowd the square images on phones */
  .about-badge { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
  .about-badge-core { width: 54px; height: 54px; font-size: 1.4rem; }
  .about-features { grid-template-columns: 1fr; }
  .faq-a p { padding-left: 22px; }

  .g-card { width: 265px; }
  .testi-card { width: 300px; }
  .client-logo { width: 150px; height: 78px; }

  /* Show mobile bottom nav; lift chatbot above it */
  .mobile-nav { display: flex; }
  .chatbot-fab { bottom: 96px; right: 16px; width: 54px; height: 54px; }
  .chatbot-box { bottom: 160px; right: 16px; }
  body { padding-bottom: 84px; }
  .footer-bottom { padding-bottom: 26px; }

  .popup-box { padding: 32px 22px 26px; }
  .popup-box h3 { font-size: 1.3rem; }
}
