/* ============================================================
   YOUR ENERGY BEST — Global Stylesheet
   To change the logo site-wide: replace img/logo.png
   ============================================================ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Design Tokens ─── */
:root {
  /* Brand – pulled directly from logo */
  --teal:        #22A8B3;
  --teal-dark:   #1A8A94;
  --teal-light:  #5CC5CE;
  --orange:      #FB9B47;
  --orange-dark: #E88530;
  --orange-light:#FDB87A;

  /* Neutrals */
  --navy:        #1E293B;
  --navy-mid:    #334155;
  --navy-light:  #475569;
  --slate:       #64748B;
  --cream:       #FFFBEB;
  --cream-dark:  #FEF3C7;
  --white:       #FFFFFF;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Layout */
  --max-w:     1200px;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow:    0 2px 12px rgba(30,41,59,.08);
  --shadow-md: 0 4px 24px rgba(30,41,59,.12);
  --shadow-lg: 0 8px 40px rgba(30,41,59,.18);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p  { font-size: 1.05rem; color: var(--navy-light); max-width: 680px; }
.lead { font-size: 1.2rem; color: var(--navy-mid); }
small { font-size: 0.82rem; color: var(--slate); }

/* ─── Layout Helpers ─── */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}
.section {
  padding: var(--space-3xl) 0;
}
.section--tight { padding: var(--space-2xl) 0; }
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover { background: var(--orange-dark); }

.btn--teal {
  background: var(--teal);
  color: var(--white);
}
.btn--teal:hover { background: var(--teal-dark); }

.btn--outline {
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
}
.btn--outline:hover { background: var(--teal); color: var(--white); }

.btn--ghost {
  color: var(--teal);
  padding-left: 0;
}
.btn--ghost:hover { color: var(--teal-dark); }
.btn--ghost svg { transition: transform .2s; }
.btn--ghost:hover svg { transform: translateX(3px); }

.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn--lg { padding: 0.95rem 2rem; font-size: 1.05rem; }

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo img {
  height: 42px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-mid);
  position: relative;
  padding-bottom: 4px;
  transition: color .2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width .25s;
}
.nav__links a:hover { color: var(--teal); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--teal); }
.nav__links a.active::after { width: 100%; }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: .3s;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(34,168,179,.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(251,155,71,.1) 0%, transparent 55%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}
.hero__text .eyebrow {
  display: inline-block;
  background: rgba(34,168,179,.15);
  color: var(--teal-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  margin-bottom: var(--space-md);
}
.hero__text h1 { color: var(--white); margin-bottom: var(--space-md); }
.hero__text h1 em { color: var(--orange); font-style: italic; }
.hero__text p { color: rgba(255,255,255,.72); margin-bottom: var(--space-lg); font-size: 1.1rem; }
.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }

.hero__visual {
  display: grid;
  gap: var(--space-md);
}
.hero__card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.hero__card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: var(--space-lg);
  backdrop-filter: blur(4px);
  transition: background .25s, border-color .25s;
  text-decoration: none;
  display: block;
}
.hero__card:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}
.hero__card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}
.hero__card__icon--teal { background: rgba(34,168,179,.2); }
.hero__card__icon--orange { background: rgba(251,155,71,.2); }
.hero__card__icon--green { background: rgba(74,222,128,.2); }
.hero__card h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.3rem; }
.hero__card p { color: rgba(255,255,255,.55); font-size: 0.82rem; margin: 0; }

/* ─── Section Headings ─── */
.section-head { margin-bottom: var(--space-xl); }
.section-head .tag {
  display: inline-block;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.section-head h2 { margin-bottom: var(--space-sm); }
.section-head p { color: var(--slate); }

/* ─── Stats Bar ─── */
.stats {
  background: var(--navy);
  padding: var(--space-xl) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat__label {
  color: rgba(255,255,255,.6);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ─── Cards ─── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}
.card__img .placeholder-icon {
  opacity: .3;
}
.card__body { padding: var(--space-lg); }
.card__tag {
  display: inline-block;
  background: rgba(34,168,179,.1);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  margin-bottom: var(--space-sm);
}
.card__body h3 { margin-bottom: 0.4rem; }
.card__body p { font-size: 0.9rem; margin: 0; }

/* ─── FAQ Accordion ─── */
.faq { max-width: 780px; margin-inline: auto; }
.faq__item {
  border-bottom: 1px solid var(--gray-200);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
}
.faq__q:hover { color: var(--teal); }
.faq__q .icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .3s;
}
.faq__q .icon svg { width: 12px; height: 12px; }
.faq__item.open .faq__q .icon { background: var(--teal); transform: rotate(45deg); }
.faq__item.open .faq__q .icon svg { stroke: var(--white); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.7;
}
.faq__item.open .faq__a { max-height: 600px; padding-bottom: var(--space-md); }

/* ─── Testimonials ─── */
.testimonial {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
}
.testimonial__quote {
  font-size: 2.5rem;
  color: var(--teal);
  opacity: .4;
  line-height: 1;
  margin-bottom: var(--space-sm);
  font-family: Georgia, serif;
}
.testimonial p {
  font-size: 0.93rem;
  color: var(--navy-mid);
  font-style: italic;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}
.testimonial__author-info strong { font-size: 0.88rem; color: var(--navy); display: block; }
.testimonial__author-info small { color: var(--slate); }

/* ─── Partner Logos ─── */
.partners {
  background: var(--gray-100);
  padding: var(--space-xl) 0;
}
.partners__label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--space-md);
}
.partners__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg) var(--space-xl);
}
.partners__logos span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.partners__logos .logo-icon {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: var(--white);
  font-weight: 700;
}
.logo-icon--tesla  { background: #222; }
.logo-icon--enphase { background: #1A8B3C; }
.logo-icon--rec    { background: #0066B2; }
.logo-icon--qcell  { background: #00538C; }
.logo-icon--silfab { background: #2E4057; }
.logo-icon--franklin { background: #C8102E; }
.logo-icon--nabcep { background: var(--teal); }

/* ─── CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%; right: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -50%; left: -15%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: var(--space-sm); }
.cta-banner p { color: rgba(255,255,255,.75); margin-inline: auto; margin-bottom: var(--space-lg); }
.cta-banner .btn--primary { background: var(--orange); }

/* ─── Instagram Embed Section ─── */
.instagram-section { background: var(--cream); }
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.instagram-placeholder {
  aspect-ratio: 1;
  background: var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 500;
}
.instagram-placeholder svg { opacity: .4; }

/* ─── Rebate Alert Banner ─── */
.rebate-alert {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.rebate-alert__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1rem;
}
.rebate-alert h4 { color: var(--navy); margin-bottom: 0.25rem; font-size: 0.95rem; }
.rebate-alert p { font-size: 0.85rem; margin: 0; color: var(--navy-mid); }
.rebate-alert a { color: var(--teal); font-weight: 600; text-decoration: underline; }

/* ─── Form Styles (Zoho override) ─── */
.zoho-form-wrap {
  max-width: 520px;
  margin-inline: auto;
}
.zoho-form-wrap iframe {
  width: 100%;
  border: none;
  border-radius: var(--radius);
  min-height: 480px;
}

/* ─── Footer ─── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo { height: 38px; margin-bottom: var(--space-md); filter: brightness(0) invert(1); }
.footer__col h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.footer__col a {
  display: block;
  font-size: 0.87rem;
  color: rgba(255,255,255,.55);
  padding: 0.3rem 0;
  transition: color .2s;
}
.footer__col a:hover { color: var(--teal-light); }
.footer__col p { font-size: 0.87rem; line-height: 1.7; }
.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: background .2s, color .2s;
  font-size: 0.9rem;
}
.footer__social a:hover { background: var(--teal); color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  font-size: 0.8rem;
  color: rgba(255,255,255,.35);
}
.footer__bottom a { color: rgba(255,255,255,.45); }
.footer__bottom a:hover { color: var(--teal-light); }

/* ─── Page Hero (interior pages) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%);
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,168,179,.12) 0%, transparent 70%);
}
.page-hero h1 { color: var(--white); position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,.65); position: relative; z-index: 1; max-width: 600px; }
.page-hero .eyebrow {
  display: inline-block;
  background: rgba(34,168,179,.15);
  color: var(--teal-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: var(--space-sm);
  position: relative; z-index: 1;
}

/* ─── Utility ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.visually-hidden { display: none; }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fadeUp {
  opacity: 0;
  animation: fadeUp .6s ease forwards;
}
.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }
.anim-delay-4 { animation-delay: .4s; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__card-grid { grid-template-columns: repeat(2,1fr); }
  .stats__grid { grid-template-columns: repeat(2,1fr); gap: var(--space-xl); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .instagram-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  .nav__links { display: none; position: fixed; inset: 0; top: 72px; background: var(--white); flex-direction: column; padding: var(--space-xl); gap: var(--space-lg); z-index: 99; }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
  .hero__card-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .instagram-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .cta-banner { padding: var(--space-2xl) var(--space-lg); }
  .rebate-alert { flex-direction: column; align-items: center; text-align: center; }
}
