/* ============================================================
   HOME PAGE — Carter & Associates
   Hero, Practice Area Cards, Why Us, Stats, Testimonials, CTA
   ============================================================ */

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: var(--z-below);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 23, 38, 0.9) 0%,
    rgba(26, 39, 68, 0.75) 50%,
    rgba(14, 23, 38, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: var(--z-raised);
  padding-top: calc(var(--navbar-height) + var(--sp-12));
  padding-bottom: var(--sp-20);
}

.hero__text {
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-5);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.hero__headline {
  font-size: clamp(var(--fs-4xl), 6.5vw, 5rem);
  color: var(--color-text-light);
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  font-weight: var(--fw-bold);
}

.hero__headline em {
  font-style: italic;
  color: var(--color-accent);
}

.hero__subheading {
  font-size: var(--fs-md);
  color: rgba(232, 232, 232, 0.82);
  line-height: var(--lh-loose);
  max-width: 540px;
  margin-bottom: var(--sp-10);
}

.hero__cta-group {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
}

/* Trust badges row */
.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__trust-num {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  line-height: 1;
}

.hero__trust-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__trust-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border-light);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  z-index: var(--z-raised);
  animation: scrollHintFade 2s ease-in-out infinite;
}

.hero__scroll-text {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  border-radius: var(--radius-full);
}

@keyframes scrollHintFade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}

/* ================================================================
   WHY SECTION — split layout
   ================================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.why-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.why-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 600px;
}

.why-img-badge {
  position: absolute;
  bottom: var(--sp-6);
  right: var(--sp-6);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: var(--color-bg-dark);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-gold-lg);
}

.why-img-badge__num {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  line-height: 1;
}

.why-img-badge__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 80px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.why-list__item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.why-list__icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-list__item strong {
  display: block;
  font-weight: var(--fw-semibold);
  color: var(--color-text-light);
  margin-bottom: var(--sp-1);
}

.why-list__item p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
}

/* ================================================================
   STATS SECTION
   ================================================================ */
.stats-section {
  background: var(--color-bg-dark);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(26, 39, 68, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.stats-section .grid {
  position: relative;
}

.stats-section .stat-item {
  padding: var(--sp-8);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-surface-dark);
  transition: var(--transition-slow);
}

.stats-section .stat-item:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-gold);
}

/* ================================================================
   TESTIMONIALS SLIDER
   ================================================================ */
.testimonials-section {
  overflow: hidden;
}

.testimonial-slider {
  position: relative;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(4, calc(50% - var(--sp-4)));
  gap: var(--sp-6);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  flex-shrink: 0;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: var(--transition-base);
}

.testimonial-btn:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-gold);
}

.testimonial-dots {
  display: flex;
  gap: var(--sp-2);
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  padding: 0;
}

.testimonial-dot.active,
.testimonial-dot:hover {
  background: var(--color-accent);
  width: 24px;
}

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-24);
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-below);
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(14, 23, 38, 0.93) 0%,
    rgba(26, 39, 68, 0.85) 100%);
}

.cta-banner__content {
  position: relative;
  z-index: var(--z-raised);
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.cta-banner__title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  color: var(--color-text-light);
  margin: var(--sp-4) 0 var(--sp-5);
  line-height: var(--lh-snug);
}

.cta-banner__subtitle {
  font-size: var(--fs-md);
  color: rgba(232, 232, 232, 0.8);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-10);
}

.cta-banner__actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   RESPONSIVE — HOME
   ================================================================ */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .why-img-wrap {
    max-height: 420px;
    overflow: hidden;
  }

  .why-img-wrap img {
    max-height: 420px;
  }

  .testimonial-track {
    grid-template-columns: repeat(4, 90%);
  }
}

@media (max-width: 768px) {
  .hero__headline {
    font-size: clamp(var(--fs-3xl), 10vw, var(--fs-4xl));
  }

  .hero__cta-group {
    flex-direction: column;
  }

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__trust {
    gap: var(--sp-4);
  }

  .testimonial-track {
    grid-template-columns: repeat(4, 100%);
  }

  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-banner__actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}
