
/* ============================================================
   Home Page — CSS
   ============================================================ */

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  color: #fff;
  margin-bottom: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  /* 100lvh = large-viewport height (browser chrome hidden) — ensures the hero
     always fills the full screen on mobile even when the address bar is visible,
     preventing the next section from peeking in at the bottom edge. */
  min-height: 100vh;
  min-height: 100lvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--navbar-height) + clamp(4rem, 12vh, 6rem));
  padding-bottom: clamp(4rem, 12vh, 6rem);
  padding-left: 0;
  padding-right: 0;
  background-color: #171a22;
  background-image:
    linear-gradient(
      90deg,
      rgba(36, 72, 118, 0.14) 0%,
      rgba(36, 72, 118, 0.06) 14%,
      transparent 28%,
      transparent 72%,
      rgba(36, 72, 118, 0.06) 86%,
      rgba(36, 72, 118, 0.14) 100%
    ),
    linear-gradient(
      105deg,
      rgba(16, 18, 26, 0.78) 0%,
      rgba(17, 20, 30, 0.5) 45%,
      rgba(14, 17, 26, 0.66) 100%
    ),
    linear-gradient(
      125deg,
      rgba(45, 85, 130, 0.085) 0%,
      rgba(30, 65, 110, 0.065) 45%,
      rgba(22, 52, 95, 0.078) 100%
    ),
    url('../images/hero-bg1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(28, 58, 98, 0.12) 0%,
      transparent 18%,
      transparent 82%,
      rgba(28, 58, 98, 0.12) 100%
    ),
    radial-gradient(
      ellipse 100% 85% at 50% 45%,
      transparent 0%,
      rgba(12, 22, 42, 0.32) 100%
    );
  pointer-events: none;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-text {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2.35rem, 4.75vw, 3.95rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin-bottom: 1.65rem;
}

.hero-text p {
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.35rem;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  justify-content: center;
}

.hero-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-buttons .primary-btn {
  background: linear-gradient(135deg, #0052a3, #0066cc);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.4);
}

.hero-buttons .primary-btn:hover {
  background: linear-gradient(135deg, #004080, #0052a3);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.5);
}

.hero-buttons .secondary-btn {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: none;
}

.hero-buttons .secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-3px) scale(1.04);
}

/* ── Google Reviews Badge (hero overlay) ─────────────────── */
.google-reviews-badge {
  position: absolute;
  left: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vh, 2rem);
  z-index: 2;
  background: #ffffff;
  border-radius: 14px;
  padding: 1.1rem 1.9rem;
  min-width: 260px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  text-align: left;
  animation: grb-fade-in 0.6s ease both;
  animation-delay: 0.35s;
}

@keyframes grb-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.grb-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.grb-g {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.grb-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3c4043;
  letter-spacing: 0.01em;
}

.grb-mid {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.grb-rating {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}

.grb-stars {
  font-size: 1.7rem;
  line-height: 1;
  color: #fbbc05;
  letter-spacing: 0.05em;
}

.grb-count {
  font-size: 0.9rem;
  color: #70757a;
  margin: 0.45rem 0 0;
}

@media (max-width: 600px) {
  /* Stack hero content and keep it vertically centered so the badge
     can sit inline, directly below the buttons. */
  .hero {
    flex-direction: column;
    justify-content: center;
  }

  .google-reviews-badge {
    position: static;
    margin: 1.75rem auto 0;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    animation: none;
  }

  .grb-top { justify-content: center; }
  .grb-mid { justify-content: center; margin-top: 0.3rem; }
  .grb-label { font-size: 0.8rem; }
  .grb-g { width: 20px; height: 20px; }
  .grb-rating { font-size: 1.2rem; }
  .grb-stars { font-size: 1rem; }
  .grb-count { font-size: 0.68rem; margin-top: 0.35rem; text-align: center; }
}


/* ── Testimonials Section ────────────────────────────────── */
.testimonials {
  margin-bottom: 0;
  background: linear-gradient(180deg, #f5f7fa 0%, #eef1f6 100%);
  padding: 5rem 0;
  text-align: center;
}

.testimonials .section-header h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #111;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  position: relative;
}

.testimonials .section-header h3::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #004080, #0066cc);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.testimonials .section-header p {
  font-size: 1.05rem;
  color: #555;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
}

.testimonial-cards {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.testimonials-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Individual card */
.testimonial-card {
  flex: 1;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 32, 80, 0.07),
              0 1px 4px rgba(0, 32, 80, 0.05);
  border: 1px solid rgba(0, 64, 128, 0.06);
  text-align: left;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 32, 80, 0.14),
              0 4px 12px rgba(0, 32, 80, 0.08);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  font-size: 4rem;
  line-height: 1;
  color: #004080;
  opacity: 0.08;
  font-family: 'Lora', Georgia, serif;
  pointer-events: none;
}

.card-title {
  text-align: center;
  color: #004080;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 64, 128, 0.08);
}

.client-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
}

.stars {
  height: 18px;
}

/* ── Practice Areas Section ──────────────────────────────── */
.practice-areas {
  padding: 6rem 0;
  margin-bottom: 0;
  background-color: #0a1628;
  background-image: linear-gradient(180deg, #0a1628 0%, #001122 50%, #001933 100%);
  color: #fff;
}

.practice-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Header: heading top left, subtitle + read more inline */
.practice-header {
  max-width: 600px;
}

.practice-header h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.practice-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.practice-read-more {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.practice-read-more:hover {
  color: #3385d6;
}

/* Four equal cards in a row */
.practice-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
}

.practice-card {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
  text-decoration: none;
  overflow: hidden;
  background-color: #001122;
  transition: transform 0.15s cubic-bezier(0.25, 0, 0, 1);
  will-change: transform;
}

/* Full-cover background image — separate texture from card's transform layer */
.practice-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Permanent dark tint so text is always legible */
.practice-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 51, 102, 0.4) 0%, rgba(0, 17, 34, 0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Extra dark overlay that fades in on hover */
.practice-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 17, 34, 0.38);
  opacity: 0;
  transition: opacity 0.15s ease;
  will-change: opacity;
  z-index: 2;
  pointer-events: none;
}

.practice-card:hover {
  transform: scale(1.02);
}

.practice-card:hover::after {
  opacity: 1;
}

.practice-card-heading {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  position: relative;
  z-index: 3;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    0 2px 12px rgba(0, 0, 0, 0.45);
}

.practice-card-hover-content {
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.25, 0, 0, 1);
  will-change: opacity, transform;
  width: 100%;
}

.practice-card:hover .practice-card-hover-content {
  opacity: 1;
  transform: translateY(0);
}

.practice-card-hover-content p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.75rem;
}

.practice-card-find-more {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}



/* ── Call to Action Section ──────────────────────────────── */
.cta-section {
  background-color: #001122;
  background-image: linear-gradient(135deg, #001122 0%, #001933 60%, #003366 100%);
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 102, 204, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

/* Stack in-flow content above ::after (pages that use .container only, e.g. practices) */
.cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-pretext {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.cta-text {
  font-size: clamp(1.15rem, 2.5vw, 1.9rem);
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 100%;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #0052a3, #0066cc);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-btn:hover {
  background: linear-gradient(135deg, #004080, #0052a3);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.5);
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    min-height: 100vh;
    min-height: 100lvh;
    padding-top: calc(var(--navbar-height) + 3.5rem);
    padding-bottom: 3.5rem;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-container {
    justify-content: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .testimonials {
    padding: 4rem 0;
  }

  .practice-areas {
    padding: 4rem 0;
  }

  .practice-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .practice-card {
    min-height: 220px;
  }

  .cta-section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .cta-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .testimonial-cards {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .practice-cards {
    grid-template-columns: 1fr;
  }

  .practice-card {
    aspect-ratio: unset;
    min-height: 160px;
    padding: 1.75rem;
  }

  /* Always show card content on mobile (no hover on touch) */
  .practice-card-hover-content {
    opacity: 1;
    transform: translateY(0);
  }

  .practice-card-heading {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }
}

/* Bottom CTA — less bulky on small phones (home + all pages that load home.css) */
@media (max-width: 480px) {
  /* section. beats page-specific .cta-section rules that load later */
  section.cta-section {
    padding: 2.35rem 1.1rem;
  }

  .cta-pretext {
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
  }

  .cta-text {
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.48;
    margin-bottom: 1.25rem;
    padding: 0 0.2rem;
  }

  /* Inner pages: h2 + body copy in .container */
  .cta-section > .container > h2 {
    font-size: 1.18rem;
    line-height: 1.32;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
    padding: 0 0.35rem;
  }

  .cta-section > .container > p {
    font-size: 0.93rem;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 1.2rem;
    opacity: 0.94;
    padding: 0 0.5rem;
    max-width: 21rem;
    margin-left: auto;
    margin-right: auto;
  }
}
