/* =========================================================
   SolarGrid Energy Solutions — Stylesheet
   Palette: Navy #0B2540 | Green #2E8B3D | Gold #F5A623
            Cream #FAFAF7 | Slate #5A6570 | Mint #EAF4EC
   Type: Poppins (display) / Inter (body)
========================================================= */

:root {
  --navy: #0B2540;
  --navy-light: #123457;
  --green: #2E8B3D;
  --green-dark: #1F6A2C;
  --gold: #F5A623;
  --gold-light: #FFD27A;
  --cream: #FAFAF7;
  --mint: #EAF4EC;
  --slate: #5A6570;
  --slate-light: #8A93A0;
  --white: #FFFFFF;
  --border: #E1E7E2;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(11, 37, 64, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 37, 64, 0.10);
  --shadow-lg: 0 20px 60px rgba(11, 37, 64, 0.18);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

img { 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; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { color: var(--slate); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

.energy-divider {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--green) 45%, var(--navy) 100%);
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(46, 139, 61, 0.32);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(245, 166, 35, 0.35);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }

/* =========================================================
   HEADER / NAV
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar {
  background: var(--navy);
  color: #cfe3d3;
  font-size: 0.8rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar-links { display: flex; gap: 22px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; color: #cfe3d3; }
.topbar-links a:hover { color: var(--gold); }
.topbar-tag { color: var(--gold-light); font-weight: 500; letter-spacing: 0.02em; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
}
.brand-text .name span { color: var(--green); }
.brand-text .tagline {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--slate-light);
  font-weight: 600;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition), padding-left var(--transition);
}
.nav-links a:hover { background: rgba(245, 166, 35, 0.12); color: var(--gold-light); border-left-color: var(--gold); padding-left: 24px; }
.nav-links a.active { background: var(--green); color: var(--white); border-left-color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.nav-phone .icon-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.mobile-open .nav-links {
  display: flex;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--navy);
  flex-direction: column;
  gap: 3px;
  padding: 14px 14px 22px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 998;
  animation: navDropIn 0.28s ease;
}
.navbar.mobile-open .nav-links a { width: 100%; }
.navbar.mobile-open .nav-links li:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.08); }

@keyframes navDropIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hamburger -> X animation when menu is open */
.navbar.mobile-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar.mobile-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.mobile-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO (shared pattern, varied per page via modifiers)
========================================================= */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 90px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.35) 0%, rgba(245,166,35,0.08) 55%, transparent 75%);
  z-index: -1;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.6) 40%, transparent 100%);
  z-index: -1;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 16px;
  display: flex; gap: 8px; align-items: center;
}
.breadcrumb a { color: #cfe3d3; }
.breadcrumb a:hover { color: var(--gold); }

.page-hero h1 { color: var(--white); max-width: 780px; }
.page-hero .lede {
  color: #cfe3d3;
  font-size: 1.1rem;
  max-width: 620px;
  margin-top: 16px;
}

/* =========================================================
   HOME HERO
========================================================= */
.home-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 58%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.4) 0%, rgba(245,166,35,0.1) 50%, transparent 72%);
  z-index: -1;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 70px;
}
.home-hero-copy .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46,139,61,0.18);
  border: 1px solid rgba(46,139,61,0.4);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
  max-width: 100%;
  white-space: normal;
}
.home-hero-copy h1 { color: var(--white); }
.home-hero-copy h1 .hl { color: var(--gold); }
.home-hero-copy .lede {
  color: #cfe3d3;
  font-size: 1.12rem;
  max-width: 540px;
  margin: 18px 0 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-stats .stat-label { font-size: 0.82rem; color: #cfe3d3; margin-top: 2px; }

.home-hero-media { position: relative; }
.home-hero-media .frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255,255,255,0.08);
}
.home-hero-media .frame img { width: 100%; height: 440px; object-fit: cover; }
.floating-card {
  position: absolute;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}
.floating-card.card-top {
  top: -24px; left: -24px;
}
.floating-card.card-bottom {
  bottom: -22px; right: -18px;
}
.floating-card .fc-icon {
  width: 42px; height: 42px;
  background: var(--mint);
  color: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.floating-card .fc-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.floating-card .fc-sub { font-size: 0.78rem; color: var(--slate); }

.hero-wave {
  height: 60px;
  background: var(--cream);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 75% 60%, 50% 10%, 25% 60%, 0 0);
}

/* =========================================================
   TRUST STRIP
========================================================= */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.trust-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}
.trust-item .icon-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* =========================================================
   SECTIONS — generic paddings
========================================================= */
.section { padding: 90px 0; }
.section.tight { padding: 70px 0; }
.section.bg-mint { background: var(--mint); }
.section.bg-navy { background: var(--navy); color: var(--white); }
.section.bg-navy h2, .section.bg-navy h3 { color: var(--white); }
.section.bg-navy p { color: #cfe3d3; }
.section.bg-white { background: var(--white); }

/* ---------- Process / Services grid ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.process-card .p-icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.process-card h4 {
  font-size: 0.92rem;
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.process-card .step-tag {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- Two column feature ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-split.reverse .feature-media { order: 2; }
.feature-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.check-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  font-size: 0.98rem;
}
.check-list .check-ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-note { font-size: 0.78rem; color: var(--slate-light); margin-top: 6px; font-family: var(--font-body); font-weight: 400; }

/* ---------- Ideal-for cards ---------- */
.ideal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.ideal-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 18px;
  text-align: center;
  transition: transform var(--transition);
}
.ideal-card:hover { transform: translateY(-6px); background: var(--green-dark); }
.ideal-card .i-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(245,166,35,0.18);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.ideal-card h4 { color: var(--white); font-size: 0.92rem; font-family: var(--font-display); }

/* ---------- Value props strip ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--mint);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-card .v-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.value-card h4 { font-size: 0.98rem; margin-bottom: 4px; }
.value-card p { font-size: 0.85rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  border-radius: var(--radius);
  padding: 50px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.cta-banner h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); }
.cta-banner .cta-actions { display: flex; gap: 14px; flex-shrink: 0; }

/* ---------- Cards: services / products ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.info-card .ic-media { position: relative; }
.info-card .ic-media img { width: 100%; height: 200px; object-fit: cover; }
.info-card .ic-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.04em;
}
.info-card .ic-body { padding: 24px; }
.info-card h4 { font-size: 1.08rem; margin-bottom: 8px; }
.info-card p { font-size: 0.9rem; margin-bottom: 16px; }
.info-card .ic-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--green);
  transition: gap var(--transition);
}
.info-card .ic-link:hover { gap: 10px; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.testi-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi-card p.quote { color: var(--navy); font-size: 0.95rem; margin-bottom: 20px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}
.testi-name { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.testi-loc { font-size: 0.78rem; color: var(--slate-light); }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: var(--navy);
  color: #cfe3d3;
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 44px; }
.footer-brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--white); }
.footer-brand .name span { color: var(--gold); }
.site-footer p { color: #9db3a4; font-size: 0.9rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-display);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #b7c8bc; font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: #b7c8bc; font-size: 0.9rem; }
.footer-contact .icon-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(245,166,35,0.15);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background var(--transition);
}
.social-row a:hover { background: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #8fa596;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-strip {
  background: var(--green-dark);
  text-align: center;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #dff0e2;
}
@media (max-width: 480px) {
  .footer-strip { letter-spacing: 0.06em; font-size: 0.68rem; word-spacing: -1px; }
}

/* =========================================================
   BACK TO TOP
========================================================= */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 500;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   WHATSAPP FLOAT
========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: var(--shadow-md);
  z-index: 500;
  animation: pulse-wa 2.4s infinite;
}
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5), var(--shadow-md); }
  70% { box-shadow: 0 0 0 12px rgba(37,211,102,0), var(--shadow-md); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), var(--shadow-md); }
}

/* =========================================================
   REVEAL ON SCROLL
========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   ABOUT PAGE SPECIFIC
========================================================= */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.mv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  border-top: 4px solid var(--green);
  box-shadow: var(--shadow-sm);
}
.mv-card.gold { border-top-color: var(--gold); }
.mv-card .mv-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -40px; top: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  border: 4px solid var(--mint);
}
.timeline-item .t-year {
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card { text-align: center; }
.team-card .team-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.team-card .team-photo img { height: 240px; width: 100%; object-fit: cover; }
.team-card h4 { font-size: 1rem; margin-bottom: 2px; }
.team-card .role { color: var(--green); font-size: 0.82rem; font-weight: 600; }

/* =========================================================
   SERVICES PAGE SPECIFIC
========================================================= */
.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse { grid-template-columns: 1.1fr 0.9fr; }
.service-block.reverse .sb-media { order: 2; }
.sb-media img { border-radius: var(--radius); width: 100%; height: 360px; object-fit: cover; box-shadow: var(--shadow-md); }
.sb-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.sb-content ul { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.sb-content ul li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; color: var(--navy); font-weight: 500;
}
.sb-content ul li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* =========================================================
   PRODUCTS PAGE
========================================================= */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.product-card .pc-media { position: relative; background: var(--mint); }
.product-card .pc-media img { width: 100%; height: 190px; object-fit: cover; }
.product-card .pc-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--navy); color: var(--white);
  font-size: 0.68rem; font-family: var(--font-display); font-weight: 700;
  padding: 5px 10px; border-radius: 50px;
}
.product-card .pc-body { padding: 22px; }
.product-card .pc-cat { font-size: 0.72rem; color: var(--green); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.product-card h4 { margin: 6px 0 10px; font-size: 1.02rem; }
.product-card .pc-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.product-card .pc-specs span {
  font-size: 0.72rem; background: var(--mint); color: var(--green-dark);
  padding: 4px 10px; border-radius: 50px; font-weight: 600;
}
.product-card .pc-footer { display: flex; justify-content: space-between; align-items: center; }
.product-card .pc-cta { font-family: var(--font-display); font-weight: 600; font-size: 0.84rem; color: var(--navy); display: flex; align-items: center; gap: 6px; }

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

/* =========================================================
   SUBSIDY PAGE
========================================================= */
.subsidy-hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-top: -110px;
  position: relative;
  z-index: 5;
}
.subsidy-stat { text-align: center; padding: 0 10px; }
.subsidy-stat:not(:last-child) { border-right: 1px solid var(--border); }
.subsidy-stat .s-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
}
.subsidy-stat .s-label { font-size: 0.85rem; color: var(--slate); margin-top: 6px; }

.slab-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.slab-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-align: left;
  padding: 16px 22px;
}
.slab-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--navy);
}
.slab-table tr:last-child td { border-bottom: none; }
.slab-table tr:nth-child(even) { background: var(--mint); }
.slab-table .highlight { color: var(--green); font-weight: 700; }

.calc-box {
  background: var(--mint);
  border-radius: var(--radius);
  padding: 40px;
}
.calc-row { margin-bottom: 22px; }
.calc-row label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.calc-row input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}
.calc-range-val {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--slate); margin-top: 6px;
}
.calc-result {
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 26px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.calc-result .r-item { text-align: center; }
.calc-result .r-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.calc-result .r-label { font-size: 0.76rem; color: #cfe3d3; margin-top: 4px; }

/* =========================================================
   GALLERY PAGE
========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .g-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,37,64,0.75), transparent 55%);
  display: flex; align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .g-overlay { opacity: 1; }
.gallery-item .g-cap { color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(11,37,64,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 2000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 30px; right: 40px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* =========================================================
   FAQ PAGE
========================================================= */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  text-align: left;
}
.faq-question .f-plus {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
  font-size: 1.1rem;
}
.faq-item.open .faq-question .f-plus { background: var(--green); color: white; transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner { padding: 0 26px 24px; }
.faq-answer-inner p { font-size: 0.92rem; }
.faq-cats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

/* =========================================================
   CONTACT PAGE
========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
}
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px 38px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 8px; }
.contact-info-card > p { color: #cfe3d3; margin-bottom: 30px; }
.cinfo-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cinfo-item:last-of-type { border-bottom: none; }
.cinfo-item .icon-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(245,166,35,0.18);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cinfo-item .ci-label { font-size: 0.78rem; color: #9db3a4; margin-bottom: 3px; }
.cinfo-item .ci-value { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 38px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--cream);
  transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-msg { margin-top: 16px; font-size: 0.88rem; font-weight: 600; display: none; }
.form-msg.show { display: block; }
.form-msg.success { color: var(--green); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 380px;
  border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-media { order: -1; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .ideal-grid { grid-template-columns: repeat(2, 1fr); } /* 5 items: 3-col left an awkward lone card, 2-col balances better */
  .value-grid, .card-grid, .testi-grid, .grid-3, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-split, .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-media, .service-block .sb-media { order: -1; }
  .mv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .subsidy-hero-card { grid-template-columns: 1fr; gap: 20px; margin-top: -80px; padding: 32px; }
  .subsidy-stat:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .trust-strip .container { flex-wrap: wrap; justify-content: flex-start; gap: 14px 26px; }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .nav-phone span.txt { display: none; }

  .navbar { flex-wrap: nowrap; padding: 12px 0; }
  .navbar .container { flex-wrap: nowrap; }
  .brand img { height: 40px; }
  .brand-text .name { font-size: 1.05rem; }
  .brand-text .tagline { font-size: 0.56rem; }

  /* Keep header controls from overflowing: icon-only phone + smaller CTA + hamburger */
  .nav-cta { gap: 8px; }
  .nav-phone .icon-circle { width: 34px; height: 34px; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 0.82rem; }
}

@media (max-width: 400px) {
  /* Very small phones: drop the Get Free Quote button text down to an icon-friendly size, keep it tappable */
  .nav-cta .btn-primary { padding: 9px 12px; font-size: 0.74rem; }
  .brand-text .tagline { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }

  /* Tighter section spacing so mobile doesn't feel like endless scrolling */
  .section { padding: 56px 0; }
  .section.tight { padding: 44px 0; }
  .section-head { margin-bottom: 32px; }

  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .process-card { padding: 20px 14px; }
  .ideal-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ideal-card { padding: 22px 14px; }
  .value-grid, .card-grid, .testi-grid, .grid-3, .team-grid, .mv-grid { grid-template-columns: 1fr; }
  .value-card { padding: 22px 18px; }

  /* Hero stats: stack cleanly instead of squeezing 3 into one row */
  .hero-stats {
    flex-wrap: wrap;
    gap: 18px 28px;
    justify-content: flex-start;
  }
  .hero-stats .stat-num { font-size: 1.5rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .home-hero-media .frame img { height: 260px; }
  .floating-card { padding: 12px 14px; gap: 10px; max-width: 78%; }
  .floating-card .fc-title { font-size: 0.82rem; }
  .floating-card .fc-sub { font-size: 0.7rem; }
  .floating-card.card-top { top: -16px; left: -10px; }
  .floating-card.card-bottom { bottom: -16px; right: -10px; }

  .cta-banner { flex-direction: column; text-align: center; padding: 32px 22px; gap: 20px; }
  .cta-banner .cta-actions { flex-direction: column; width: 100%; }
  .cta-banner .cta-actions .btn { width: 100%; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 10px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* Trust strip: stack instead of cramming 4 items in a row */
  .trust-strip .container { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Subsidy stat card: avoid heavy negative overlap on small screens */
  .subsidy-hero-card { margin-top: -50px; padding: 26px 22px; }
  .subsidy-stat .s-num { font-size: 1.7rem; }

  .calc-result { grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
  .calc-result .r-num { font-size: 1.2rem; }

  /* Service blocks: reduce media height so it doesn't dominate the screen */
  .service-block, .service-block.reverse { padding: 36px 0; gap: 24px; }
  .sb-media img, .feature-media img { height: 220px; }

  /* Lightbox: keep nav buttons smaller and fully on-screen */
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.1rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 14px; right: 14px; width: 36px; height: 36px; font-size: 1.2rem; }

  .contact-info-card, .contact-form-card { padding: 28px 22px; }

  .team-photo img { height: 200px; }
}
