/* ==========================================================================
   Homepage Additions — 2026-03-15
   New styles for services grid, testimonials, FAQ, trust bar badges,
   CTA overlay, and icon-feature-grid header
   ========================================================================== */

/* ---------- Trust Bar — Badge variant ---------- */
.is-homepage .meb-trust--badges {
  background: #0C1B33;
  border: none;
  padding: 1.25rem 1.5rem;
}

.is-homepage .meb-trust--badges .meb-trust__inner {
  gap: 1.5rem;
}

.is-homepage .meb-trust__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.is-homepage .meb-trust__badge-icon {
  color: #C17F4E;
  display: flex;
  align-items: center;
}

.is-homepage .meb-trust__badge-icon svg {
  width: 20px;
  height: 20px;
}

.is-homepage .meb-trust__badge-text {
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .is-homepage .meb-trust--badges .meb-trust__inner {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ---------- Services Grid — 2x2 Cards ---------- */
.home-services-grid-section {
  padding: 5rem 1.5rem;
  background: #fff;
}

.home-services-grid-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.home-services-kicker {
  color: #C17F4E;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 500;
  text-align: center;
  margin: 0 0 0.5rem;
}

.home-services-heading {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #0C1B33;
  text-align: center;
  margin: 0 0 3rem;
  line-height: 1.15;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.home-sg-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(12, 27, 51, 0.08);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.home-sg-card:hover {
  box-shadow: 0 8px 32px rgba(12, 27, 51, 0.12);
  transform: translateY(-2px);
}

.home-sg-img {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.home-sg-content {
  padding: 1.5rem;
}

.home-sg-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #0C1B33;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.home-sg-desc {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.9375rem;
  color: #4A5568;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .home-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HOME APPROACH — "We don't just replace shingles"
   Full-width dark section: science + stat + process timeline + CTA
   ========================================================================== */
.home-approach {
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

/* --- Top area: text left, stat right --- */
.ha-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
  align-items: start;
}

.ha-heading {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.ha-lead {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  margin: 0 0 2.5rem;
  max-width: 540px;
}

.ha-lead em {
  font-style: italic;
  color: #fff;
}

/* --- Three pillars with inline SVG icons --- */
.ha-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ha-pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ha-pillar-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #C17F4E;
  margin-top: 0.15rem;
}

.ha-pillar strong {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.ha-pillar span {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
}

/* --- Stat block (right side) --- */
.ha-top-stat {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ha-stat-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: center;
}

.ha-stat-num {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 800;
  color: #C17F4E;
  line-height: 0.85;
  display: block;
  margin-bottom: 0.75rem;
}

.ha-stat-pct {
  font-size: 0.5em;
  vertical-align: super;
}

.ha-stat-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0 0 0.5rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.ha-stat-sub {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
}

.ha-stat-source {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* --- Process timeline (horizontal) --- */
.ha-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto 3.5rem;
  position: relative;
}

.ha-process-line {
  position: absolute;
  top: 1.125rem;
  left: calc(12.5% + 0.75rem);
  right: calc(12.5% + 0.75rem);
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.ha-step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.ha-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: #0C1B33;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #C17F4E;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.ha-step h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
}

.ha-step p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* --- Bottom CTA row --- */
.ha-cta-row {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ha-cta-primary {
  background: #C17F4E;
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  border-radius: 0.25rem;
  transition: background 0.25s ease;
}

.ha-cta-primary:hover {
  background: #B85C3A;
  color: #fff;
}

.ha-cta-secondary {
  color: rgba(255,255,255,0.5);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.ha-cta-secondary:hover {
  color: #fff;
}

/* --- Mobile --- */
@media (max-width: 960px) {
  .ha-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ha-stat-block {
    max-width: 360px;
    margin: 0 auto;
  }

  .ha-process {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ha-process-line {
    display: none;
  }

  .ha-step {
    text-align: left;
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    padding: 0;
  }

  .ha-step-num {
    grid-row: 1 / 3;
    align-self: start;
    margin: 0;
  }

  .ha-step h3 {
    align-self: end;
  }

  .ha-step p {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .home-approach {
    padding: 4rem 1.25rem 3.5rem;
  }

  .ha-cta-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ha-cta-primary {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Icon Feature Grid — Match approach section style ---------- */
.is-homepage .meb-ifgrid--dark {
  padding: 5rem 1.5rem;
}

.is-homepage .meb-ifgrid__header {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.is-homepage .meb-ifgrid__kicker {
  color: #C17F4E;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.is-homepage .meb-ifgrid__section-heading {
  color: #fff;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.is-homepage .meb-ifgrid--dark .meb-ifgrid__item {
  text-align: left;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
}

.is-homepage .meb-ifgrid--dark .meb-ifgrid__icon {
  color: #C17F4E;
  margin-bottom: 0.75rem;
  width: 32px;
  height: 32px;
}

.is-homepage .meb-ifgrid--dark .meb-ifgrid__icon svg {
  width: 32px;
  height: 32px;
}

.is-homepage .meb-ifgrid--dark .meb-ifgrid__heading {
  color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.is-homepage .meb-ifgrid--dark .meb-ifgrid__desc {
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .is-homepage .meb-ifgrid__header {
    text-align: left;
  }
  
  .is-homepage .meb-ifgrid--dark .meb-ifgrid__item {
    text-align: left;
  }
}

/* ---------- Testimonials Section ---------- */
.home-testimonials-section {
  background: #F5F7FA;
  padding: 5rem 1.5rem;
}

.home-testimonials-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.home-testimonials-kicker {
  color: #C17F4E;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 500;
  text-align: center;
  margin: 0 0 0.5rem;
}

.home-testimonials-heading {
  color: #0C1B33;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 3rem;
  line-height: 1.15;
}

.home-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home-tcard {
  background: #fff;
  border: 1px solid rgba(12, 27, 51, 0.08);
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.home-tcard:hover {
  box-shadow: 0 4px 16px rgba(12, 27, 51, 0.08);
}

.home-tcard--featured {
  /* no accent border */
}

.home-tcard-stars {
  color: #FBBF24;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.home-tcard-quote {
  color: #4A5568;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.home-tcard-author {
  color: #8A8F96;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 1.25rem 0 0;
}

@media (max-width: 768px) {
  .home-testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ Section ---------- */
.home-faq-section {
  padding: 5rem 1.5rem;
  background: #fff;
}

.home-faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.home-faq-kicker {
  color: #C17F4E;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 500;
  text-align: center;
  margin: 0 0 0.5rem;
}

.home-faq-heading {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #0C1B33;
  text-align: center;
  margin: 0 0 2.5rem;
  line-height: 1.15;
}

.home-faq-list {
  border-top: 1px solid #DDE2E8;
}

.home-faq-item {
  border-bottom: 1px solid #DDE2E8;
}

.home-faq-item[open] .home-faq-question::after {
  transform: rotate(45deg);
}

.home-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0C1B33;
}

.home-faq-question::-webkit-details-marker {
  display: none;
}

.home-faq-question::after {
  content: "+";
  color: #8A8F96;
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

.home-faq-answer {
  color: #4A4F57;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  padding: 0 0 1.25rem;
  margin: 0;
}

/* ---------- FAQ inline link ---------- */
.home-faq-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #C17F4E;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.home-faq-link:hover {
  color: #B85C3A;
}

/* ---------- CTA Band — Overlay support ---------- */
.is-homepage .meb-cta--has-bg {
  position: relative;
  overflow: hidden;
}

.is-homepage .meb-cta--has-bg .meb-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.is-homepage .meb-cta--has-bg .meb-cta__inner {
  position: relative;
  z-index: 2;
}

/* ---------- Hero — Fix button alignment ---------- */
.is-homepage .meb-hero__actions {
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.is-homepage .meb-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.is-homepage .meb-hero__cta--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .is-homepage .meb-hero {
    min-height: calc(100svh - 8.5rem) !important; /* viewport minus nav + trust bar */
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .is-homepage .meb-hero__content {
    padding: 1.5rem 1.25rem !important;
  }

  .is-homepage .meb-hero__eyebrow {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .is-homepage .meb-hero__heading {
    font-size: 2rem !important;
    margin-bottom: 0.5rem;
  }

  .is-homepage .meb-hero__subtext {
    font-size: 0.9375rem !important;
    margin-bottom: 1rem;
  }

  .is-homepage .meb-hero__actions {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 1rem;
  }

  .is-homepage .meb-hero__cta,
  .is-homepage .meb-hero__cta--secondary {
    text-align: center;
    box-sizing: border-box;
    padding: 0.75rem 1.5rem;
    font-size: 0.8125rem;
  }

  .is-homepage .meb-hero__pills {
    gap: 0.375rem;
    margin-top: 0 !important;
  }

  .is-homepage .meb-hero__pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }

  /* Trust bar — compact on mobile */
  .is-homepage .meb-trust--badges {
    padding: 1rem 1.25rem;
  }

  .is-homepage .meb-trust--badges .meb-trust__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .is-homepage .meb-trust__badge-icon svg {
    width: 16px;
    height: 16px;
  }

  .is-homepage .meb-trust__badge-text {
    font-size: 0.6875rem;
  }
}

/* ---------- CTA Band — Accent variant with image ---------- */
.is-homepage .meb-cta--accent.meb-cta--has-bg {
  background: transparent;
  padding: 4rem 1.5rem;
}

.is-homepage .meb-cta--accent .meb-cta__headline {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.is-homepage .meb-cta--accent .meb-cta__subtext {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

/* ---------- Section spacing cleanup ---------- */
.is-homepage .wp-block-html {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}