/* ==========================================================================
   HOME  (front-page.php)
   ========================================================================== */

/* ------------------------------- 1. Hero -------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #0b131c 0%, #0f1923 45%, #1a2735 100%);
  border-bottom: 1px solid var(--border-accent);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 82% 18%,
    var(--accent-dim),
    transparent 55%
  );
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  min-height: 540px;
  /* Top space only; the figure is anchored to the section bottom (the banner). */
  padding-block: clamp(60px, 7.5vw, 99px) 0;
}
.hero__content {
  padding-bottom: clamp(60px, 7.5vw, 99px);
}
.hero__title {
  margin-bottom: 20px;
}
.hero__sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-body);
  max-width: 620px;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
/* Cut-out figure — absolutely anchored to the hero's bottom-right, so it fills
   the height and meets the banner below without inflating the hero. */
.hero__media {
  position: relative;
  align-self: stretch;
}
.hero__photo {
  position: absolute;
  right: 0;
  bottom: 120px;
  height: 100%;
  margin: 0;
  line-height: 0;
}
.hero__photo img {
  height: 1000px;
  width: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}

/* ------------------------ 2. 10-Day Urgency Banner ---------------------- */
.urgency-banner {
  background: var(--accent);
}
.urgency-banner[hidden] {
  display: none;
}
.urgency-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 13px;
  padding-right: 34px;
  text-align: center;
}
.urgency-banner p {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--bg);
  margin: 0;
}
.urgency-banner a {
  color: var(--bg);
  text-decoration: underline;
  font-weight: 700;
}
.urgency-banner a:hover {
  color: var(--bg);
  opacity: 0.8;
}
.urgency-banner__close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--bg);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 6px;
}
.urgency-banner__close:hover,
.urgency-banner__close:focus {
  opacity: 1;
  background: none;
}

/* ------------------------------ 3. Trust Bar ---------------------------- */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.trust-bar .mlg-container {
  padding-block: 0;
}
.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-inline: 1px solid var(--border);
}
.trust-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
  padding: 28px 22px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.35;
}

/* -------------------- Section backgrounds (each differs
   from the one before it, per spec) --------------------- */
.home-intro {
  background: var(--bg);
} /* after Trust Bar (surface) */
.home-practice {
  background: var(--surface-mid);
} /* after Intro (bg) */
.home-testimonials {
  background: var(--bg);
} /* after Practice (surface-mid) */
/* Credential = surface-mid, CTA band = gold — both set in their own blocks. */

/* --------------------------- 4. Intro + Form ---------------------------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
/* Copy column stays in view while the taller form scrolls. */
.intro__copy {
  position: sticky;
  top: 100px;
}
.intro__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  color: var(--text-head);
  margin-bottom: 20px;
}

/* ------------------------- 5. Practice Areas Grid ----------------------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.practice-card {
  display: flex;
  flex-direction: column;
}
.practice-card__link {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.practice-card__link i {
  transition: transform 0.2s ease;
}
.practice-card__link:hover i {
  transform: translateX(4px);
}

/* Section 6 (Testimonials) uses the shared .testimonial styles in component.css */

/* ----------------------- 7. Appellate Credential ------------------------ */
.credential {
  background: var(--surface-mid);
  border-block: 1px solid var(--border-accent);
}
.credential__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.credential__photo img {
  border-radius: 12px;
  border: 1px solid var(--border-accent);
  width: 100%;
  object-fit: cover;
}
.credential__body h2 {
  margin-bottom: 18px;
}
.credential__body .btn {
  margin-top: 10px;
}

/* Section 8 (CTA Band) uses the shared .cta-band styles in component.css */

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1024px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  /* Single column — content first (above), Chris's image second (below) and
     flush with the bottom of the hero section (feet meeting the banner). */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
  }
  .hero__content {
    padding-bottom: 0;
  }
  .hero__media {
    position: static;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }
  .hero__photo {
    position: static;
    height: auto;
  }
  .hero__photo img {
    height: auto;
    max-height: 440px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .intro__copy {
    position: static;
  }
  .credential__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .practice-grid {
    grid-template-columns: 1fr;
  }
  .trust-bar__grid {
    grid-template-columns: 1fr;
  }
}
