/* Home Energy Quotes — Homepage Stylesheet (Sage & Cream)
   Loaded only on front-page.php via conditional enqueue.
   Depends on global.css for the brand variables and base styles.
   ═══════════════════════════════════════════════ */

.home { display: block; }
.home-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Shared section heads */
.home-section-head { max-width: 42rem; margin: 0 0 3.5rem; }
.home-section-head--row {
  display: flex; flex-direction: column; gap: 1rem; max-width: none;
  align-items: flex-start; margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .home-section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.home-eyebrow,
.home-section-eyebrow {
  display: inline-block; font-weight: 700;
  text-transform: uppercase; color: var(--text-sage);
}
.home-eyebrow {
  font-size: 10px; letter-spacing: 0.18em; line-height: 1.5;
  background: var(--brand-surface); border-radius: 100px;
  padding: 6px 16px; margin-bottom: 1.75rem;
}
.home-section-eyebrow { font-size: 0.75rem; letter-spacing: 0.22em; margin-bottom: 0.85rem; }
.home-section-eyebrow--light { color: var(--brand-sage); }
.home-section-title {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1; font-size: clamp(1.9rem, 3.4vw, 3rem); color: var(--brand-charcoal);
}
.home-section-title--light { color: var(--brand-cream); }
.home-section-lead { margin-top: 1rem; color: rgba(42,42,42,0.7); max-width: 38rem; }

.home-link-underline {
  align-self: flex-start; font-size: 0.9rem; font-weight: 600;
  color: var(--text-sage); text-decoration: none;
  border-bottom: 2px solid rgba(82,105,76,0.35); padding-bottom: 2px;
  white-space: nowrap;
}
.home-link-underline:hover { border-color: var(--brand-sage-deep); }

/* ── HERO ── */
.home-hero { padding: 4rem 0 4rem; }
.home-hero__intro { max-width: 64rem; margin: 0 auto; text-align: center; padding: 0 24px; }
.home-hero__title {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.02; font-size: clamp(2.2rem, 5vw, 3.75rem);
  max-width: 22ch; margin: 0 auto; color: var(--brand-charcoal); text-wrap: balance;
}
.home-hero__title em { font-style: italic; font-weight: 700; color: var(--text-sage); }
.home-hero__sub {
  max-width: 60ch; margin: 1.5rem auto 0; line-height: 1.7;
  color: rgba(42,42,42,0.72); font-size: 1.05rem;
}
.home-hero__ctas {
  margin-top: 2.5rem; display: flex; flex-direction: column;
  gap: 0.75rem; align-items: center; justify-content: center;
}
@media (min-width: 640px) { .home-hero__ctas { flex-direction: row; } }

.home-hero__media {
  position: relative; max-width: 1280px; margin: 4rem auto 0; padding: 0 24px;
}
.home-hero__media > img {
  width: 100%; height: clamp(320px, 42vw, 520px); object-fit: cover;
  border-radius: 22px; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: block;
}
.home-hero__overlay {
  position: absolute; inset: 0 24px; border-radius: 22px; pointer-events: none;
  background: linear-gradient(to top right, rgba(0,0,0,0.55), rgba(0,0,0,0.15) 45%, transparent 70%);
}
.home-hero__card {
  position: absolute; left: 24px; right: 24px; bottom: 0;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 2rem; color: #fff;
}
@media (min-width: 640px) {
  .home-hero__card { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 3rem; }
}
.home-hero__card-text { max-width: 28rem; }
.home-hero__card-text > * { color: #fff; }
.home-hero__kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.8) !important; }
.home-hero__headline { font-family: var(--serif); font-weight: 700; line-height: 1.2; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-top: 0.5rem; color: #fff !important; }
.home-hero__note { margin-top: 0.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.82) !important; }
.home-hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 18px; padding: 1.25rem 1.5rem;
}
.home-stat { display: flex; flex-direction: column; }
.home-stat__num { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1; }
.home-stat__label { margin-top: 0.4rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.75); }

/* ── MARQUEE ── */
.home-marquee { overflow: hidden; border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); background: var(--brand-cream); padding: 1.5rem 0; }
.home-marquee__track { display: flex; gap: 3rem; white-space: nowrap; width: max-content; animation: bhe-marquee 40s linear infinite; }
.home-marquee__item { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 1.875rem); color: rgba(42,42,42,0.55); display: inline-flex; align-items: center; }
.home-marquee__sep { margin-left: 3rem; color: var(--brand-sage-deep); }
@keyframes bhe-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .home-marquee__track { animation: none; } }

/* ── WHY US ── */
.home-why { padding: 5rem 0; }
.home-why__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .home-why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .home-why__grid { grid-template-columns: repeat(3, 1fr); } }
.home-why__card { border: 1px solid rgba(0,0,0,0.05); background: #fff; border-radius: 22px; padding: 2rem; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.home-why__top { display: flex; align-items: center; justify-content: space-between; }
.home-why__num { font-family: var(--serif); font-weight: 700; font-size: 0.875rem; color: var(--text-sage); }
.home-why__icon { font-size: 1.5rem; }
.home-why__title { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; font-size: 1.25rem; margin-top: 1.25rem; color: var(--brand-charcoal); }
.home-why__body { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.6; color: rgba(42,42,42,0.7); }

/* ── IMPACT (dark band) ── */
.home-impact { background: var(--brand-charcoal); color: var(--brand-cream); padding: 5rem 0; }
.home-impact__grid { display: grid; gap: 1px; border-radius: 22px; overflow: hidden; background: rgba(245,240,232,0.1); grid-template-columns: 1fr; }
@media (min-width: 640px) { .home-impact__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .home-impact__grid { grid-template-columns: repeat(4, 1fr); } }
.home-impact__cell { background: var(--brand-charcoal); padding: 2rem; }
.home-impact__num { font-family: var(--serif); font-weight: 700; line-height: 1; font-size: clamp(2.5rem, 5vw, 3.75rem); color: var(--brand-sage); }
.home-impact__label { margin-top: 1.25rem; font-size: 0.9rem; font-weight: 600; color: var(--brand-cream); }
.home-impact__sub { margin-top: 0.25rem; font-size: 0.78rem; color: rgba(245,240,232,0.55); }

/* ── SERVICES ── */
.home-services { background: rgba(220,229,212,0.3); padding: 5rem 0; }
.home-services__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .home-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .home-services__grid { grid-template-columns: repeat(4, 1fr); } }
.home-card { display: block; text-decoration: none; color: inherit; }
.home-card__media { overflow: hidden; border-radius: 22px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); background: var(--brand-surface); }
.home-card__media img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; display: block; transition: transform 0.7s ease; }
.home-card:hover .home-card__media img { transform: scale(1.05); }
.home-card__body { margin-top: 1.25rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.home-card__title { font-family: var(--serif); font-weight: 700; font-size: 1.125rem; line-height: 1.75rem; letter-spacing: -0.01em; color: var(--brand-charcoal); transition: color 0.2s; }
.home-card:hover .home-card__title { color: var(--brand-sage-deep); }
.home-card__blurb { margin-top: 0.5rem; font-size: 0.82rem; line-height: 1.6; color: rgba(42,42,42,0.7); }
.home-card__teaser { margin-top: 0.75rem; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-sage); }
.home-card__arrow {
  margin-top: 0.25rem; display: grid; place-items: center; width: 2rem; height: 2rem;
  flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); font-size: 0.8rem;
  transition: all 0.2s;
}
.home-card:hover .home-card__arrow { border-color: var(--brand-charcoal); background: var(--brand-charcoal); color: var(--brand-cream); }
.home-services__foot { margin-top: 2rem; font-size: 0.75rem; color: rgba(42,42,42,0.72); }

/* ── STEPS ── */
.home-steps { padding: 5rem 0; }
.home-steps__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .home-steps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .home-steps__grid { grid-template-columns: repeat(4, 1fr); } }
.home-steps__card { border: 1px solid rgba(0,0,0,0.05); background: rgba(220,229,212,0.4); border-radius: 22px; padding: 1.5rem; }
.home-steps__num { font-family: var(--serif); font-weight: 700; font-size: 2.25rem; color: var(--text-sage); margin-bottom: 1rem; }
.home-steps__title { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--brand-charcoal); }
.home-steps__body { margin-top: 0.75rem; font-size: 0.88rem; line-height: 1.6; color: rgba(42,42,42,0.75); }

/* ── SAVINGS CHART ── */
.home-savings { background: rgba(220,229,212,0.3); padding: 5rem 0; }
.home-savings__avg { font-size: 0.9rem; font-weight: 600; color: rgba(42,42,42,0.7); }
.home-savings__panel { background: var(--brand-cream); border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); padding: 2rem; }
@media (min-width: 640px) { .home-savings__panel { padding: 2.5rem; } }
.home-savings__chart {
  display: flex; align-items: flex-end; gap: 0.5rem; height: 16rem;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  background-image: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), rgba(0,0,0,0.08) calc(25% - 1px), rgba(0,0,0,0.08) 25%);
}
@media (min-width: 640px) { .home-savings__chart { gap: 0.75rem; } }
.home-savings__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.home-savings__val { font-size: 0.62rem; font-weight: 700; color: rgba(42,42,42,0.7); margin-bottom: 0.4rem; }
.home-savings__bar { width: 100%; border-radius: 10px 10px 0 0; background: linear-gradient(to top, var(--brand-sage-deep), var(--brand-sage)); transition: filter 0.2s; }
.home-savings__col:hover .home-savings__bar { filter: brightness(1.08); }
.home-savings__x { position: absolute; bottom: -1.6rem; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(42,42,42,0.66); }
@media (min-width: 640px) { .home-savings__x { font-size: 0.62rem; } }
.home-savings__chart { margin-bottom: 1.75rem; }

/* ── GRANT CTA ── */
.home-cta { padding: 2rem 0 6rem; }
.home-cta__panel {
  position: relative; overflow: hidden; border-radius: 40px;
  background: var(--panel-sage); color: var(--brand-cream);
  padding: 3rem 1.5rem; text-align: center;
}
@media (min-width: 1024px) { .home-cta__panel { padding: 5rem; } }
.home-cta__title { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.9rem, 3.5vw, 3rem); color: var(--brand-cream); }
.home-cta__sub { margin: 1.5rem auto 0; max-width: 48rem; color: var(--brand-cream); font-size: 1.05rem; }
.home-cta__actions { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; justify-content: center; }
@media (min-width: 640px) { .home-cta__actions { flex-direction: row; } }
.home-cta__btn {
  display: inline-flex; align-items: center; border-radius: 100px;
  background: var(--brand-cream); color: var(--text-sage);
  padding: 1rem 2rem; font-family: var(--body); font-weight: 600; font-size: 14px;
  text-decoration: none; transition: background 0.2s;
}
.home-cta__btn:hover { background: var(--brand-surface); }
.home-cta__ghost {
  display: inline-flex; align-items: center; border-radius: 100px;
  border: 1px solid rgba(245,240,232,0.4); color: var(--brand-cream);
  padding: 1rem 2rem; font-weight: 700; font-size: 14px; text-decoration: none; transition: background 0.2s;
}
.home-cta__ghost:hover { background: rgba(245,240,232,0.1); }

/* ── DISCLAIMER FOOTNOTE ── */
.home-disclaimer { margin: 0 auto 4rem; max-width: 1280px; font-size: 0.72rem; line-height: 1.6; color: rgba(42,42,42,0.66); }
.home-disclaimer a { color: rgba(42,42,42,0.72); text-decoration: underline; }
.home-why__cta { margin-top: 2rem; text-align: center; }
