/* ==========================================================================
   Homepage Enhancement — Landing-Page-Quality Styling
   Scoped to .is-homepage body class. Does NOT affect landing pages.
   ========================================================================== */

/* ---------- Hero — Full viewport, left-aligned, like landing pages ---------- */
.is-homepage .meb-hero {
  min-height: 85vh;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
}

.is-homepage .meb-hero__overlay {
  background: linear-gradient(
    to top,
    rgba(7, 16, 31, 0.92) 0%,
    rgba(7, 16, 31, 0.6) 40%,
    rgba(7, 16, 31, 0.35) 100%
  );
  opacity: 1 !important; /* override inline opacity — gradient handles it */
}

.is-homepage .meb-hero__content {
  text-align: left;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.is-homepage .meb-hero__eyebrow {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.is-homepage .meb-hero__heading {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  max-width: 700px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.is-homepage .meb-hero__subtext {
  max-width: 580px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.is-homepage .meb-hero__actions {
  justify-content: flex-start;
}

.is-homepage .meb-hero__pills {
  justify-content: flex-start;
  margin-top: 2rem;
}

.is-homepage .meb-hero__pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  font-size: 0.8125rem;
  padding: 0.4rem 0.9rem;
}

/* ---------- Trust Bar — Dark, compact, matching landing pages ---------- */
.is-homepage .meb-trust {
  background: #0C1B33;
  border: none;
  padding: 1.25rem 1.5rem;
}

.is-homepage .meb-trust__item {
  color: #fff;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.is-homepage .meb-trust__dot {
  color: rgba(255, 255, 255, 0.25);
}

/* ---------- Stats — Clean, impactful numbers ---------- */
.is-homepage .meb-stats {
  padding: 4.5rem 1.5rem;
  background: #F5F7FA;
}

.is-homepage .meb-stats__number {
  font-size: clamp(2.75rem, 5vw, 4rem);
  color: #0C1B33;
}

.is-homepage .meb-stats__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ---------- Services Section ---------- */
.is-homepage .home-services {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.is-homepage .home-services .meb-scard {
  margin: 0 auto 2rem;
  box-shadow: 0 4px 16px rgba(12, 27, 51, 0.08);
  border-radius: 0.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.is-homepage .home-services .meb-scard:hover {
  box-shadow: 0 8px 32px rgba(12, 27, 51, 0.12);
  transform: translateY(-2px);
}

.is-homepage .home-services .meb-scard:last-child {
  margin-bottom: 0;
}

/* ---------- Icon Feature Grid — Dark section like lp-why ---------- */
.is-homepage .meb-ifgrid--dark {
  background: linear-gradient(
    160deg,
    rgba(12, 27, 51, 0.95) 0%,
    rgba(21, 45, 80, 0.92) 100%
  );
  padding: 5rem 1.5rem;
}

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

.is-homepage .meb-ifgrid--dark .meb-ifgrid__icon {
  color: #C17F4E;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.is-homepage .meb-ifgrid--dark .meb-ifgrid__heading {
  color: #fff;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* ---------- Testimonials Section ---------- */
.is-homepage .home-testimonials {
  padding: 5rem 1.5rem;
  max-width: none;
  margin: 0;
  background: #F5F7FA;
}

.is-homepage .home-testimonials > .wp-block-heading {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #0C1B33;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Featured testimonial — full width, prominent */
.is-homepage .home-testimonials .meb-testimonial--featured {
  background: #fff;
  border-radius: .75rem;
  padding: 3.5rem 2.5rem;
  margin-bottom: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: none;
}

/* Non-featured testimonials — side by side */
.is-homepage .home-testimonials .meb-testimonial:not(.meb-testimonial--featured) {
  padding: 2rem 2.5rem;
  background: #fff;
  border-radius: .75rem;
  max-width: 1200px;
  margin: 0 auto 1rem;
  box-shadow: none;
}

/* Testimonial stars */
.is-homepage .meb-testimonial__stars {
  color: #FBBF24;
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

/* ---------- Content CTA — Service Areas ---------- */
.is-homepage .meb-ccta {
  margin: 0;
  padding: 0;
}

.is-homepage .meb-ccta__inner {
  background: linear-gradient(160deg, #0C1B33 0%, #1a2f52 100%);
  border-left: none;
  border-radius: 0;
  padding: 5rem 2rem;
  text-align: center;
  max-width: none;
  color: #fff;
}

.is-homepage .meb-ccta__headline {
  color: #fff;
}

.is-homepage .meb-ccta__text {
  color: rgba(255, 255, 255, 0.8);
}

.is-homepage .meb-ccta__headline {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.is-homepage .meb-ccta__text {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- FAQ Section ---------- */
.is-homepage .meb-faq {
  padding: 5rem 1.5rem;
  background: #fff;
}

.is-homepage .meb-faq__inner {
  max-width: 800px;
}

.is-homepage .meb-faq__heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.is-homepage .meb-faq__item {
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0;
  overflow: hidden;
}

.is-homepage .meb-faq__item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.is-homepage .meb-faq__item[open] {
  background: #F8FAFC;
}

.is-homepage .meb-faq__answer {
  padding: 0 1.5rem 1.25rem;
  line-height: 1.65;
  color: #4A5568;
}

/* ---------- Bottom CTA Band ---------- */
.is-homepage .meb-cta--dark {
  padding: 4rem 1.5rem;
  background: linear-gradient(
    160deg,
    #0C1B33 0%,
    #152D50 100%
  );
}

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

/* ---------- Global Section Rhythm ---------- */
.is-homepage .page-landing > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* Remove unwanted gaps between sections */
.is-homepage .page-landing > .wp-block-group {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.is-homepage .home-services,
.is-homepage .home-testimonials {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .is-homepage .meb-hero {
    min-height: 75vh;
  }

  .is-homepage .meb-hero__content {
    padding: 3rem 1.25rem 3.5rem;
  }

  .is-homepage .meb-hero__pills {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }

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

  .is-homepage .home-services,
  .is-homepage .home-testimonials {
    padding: 3rem 1.25rem;
  }

  .is-homepage .meb-ifgrid--dark .meb-ifgrid__item {
    text-align: center;
  }

  .is-homepage .home-testimonials .meb-testimonial--featured {
    padding: 2.5rem 1.5rem;
  }

  .is-homepage .meb-ccta__inner {
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .is-homepage .meb-hero {
    min-height: 85vh;
  }

  .is-homepage .meb-stats__grid {
    gap: 2rem;
  }
}
/* ===== Testimonial 3-column grid ===== */
.is-homepage .home-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.is-homepage .home-testimonials > .wp-block-heading {
  grid-column: 1 / -1;
}

.is-homepage .home-testimonials .meb-testimonial {
  background: #fff;
  border-radius: .75rem;
  padding: 1.5rem;
  box-shadow: none; border: 1px solid rgba(12,27,51,.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
}

.is-homepage .home-testimonials .meb-testimonial__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.is-homepage .home-testimonials .meb-testimonial__quote {
  font-size: 1rem;
  flex: 1;
}

.is-homepage .home-testimonials .meb-testimonial__cite {
  margin-top: auto;
  padding-top: 1rem;
}

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

/* Fix heading alignment — ensure all section headings are centered */
.is-homepage .home-services > .wp-block-heading,
.is-homepage .home-testimonials > .wp-block-heading,
.is-homepage .meb-ifgrid--dark > .wp-block-heading {
  text-align: center !important;
  width: 100%;
}

/* Content grid alignment fix */
.is-homepage .home-services .meb-scard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
