
/* ============================================================
   About Page — CSS
   Spacing scale (rem): 0.5 | 1 | 1.5 | 2 | 3 | 4 | 6 | 8
   ============================================================ */

/* ── About Hero Section ──────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, #001122 0%, #001933 50%, #003366 100%);
  color: #fff;
  text-align: center;
  padding: calc(6rem + var(--navbar-height)) 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0, 102, 204, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero > .container {
  position: relative;
  z-index: 1;
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  opacity: 0.88;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ── Attorney Section ────────────────────────────────────── */
.attorney-section {
  padding: 6rem 2rem;
  background-color: #ffffff;
}

.attorney-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.attorney-image {
  flex: 1 1 30%;
  display: flex;
  justify-content: center;
}

.attorney-image img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 16px;
  display: block;
  box-shadow: 0 24px 72px rgba(0, 32, 80, 0.22);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.attorney-image img:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 80px rgba(0, 32, 80, 0.28);
}

.attorney-text {
  flex: 1 1 65%;
}

.attorney-text h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #003366;
  letter-spacing: -0.01em;
}

.attorney-text h3::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #004080, #0066cc);
  border-radius: 2px;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.attorney-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #2a2a2a;
}

.attorney-text p strong {
  font-weight: 600;
  color: #001933;
}

.attorney-text p a {
  color: #0066cc;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-weight: 500;
  transition: color 0.2s ease;
}

.attorney-text p a:hover {
  color: #1385eb;
}


/* ── Testimonial Carousel Section ───────────────────────── */
.testimonial-carousel-section {
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, #f5f7fa 0%, #eef1f6 100%);
}

.testimonial-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-carousel-section h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #111111;
  letter-spacing: -0.01em;
  position: relative;
}

/* Inline Google rating line (no box) */
.google-rating-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 3rem;
}

.grl-g {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

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

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

.grl-count {
  font-size: 1rem;
  color: #555;
  line-height: 1;
}

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

/* ── Carousel wrapper & track ─── */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1.5rem;
  scroll-behavior: smooth;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* ── Testimonial Card ─── */
.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: #ffffff;
  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);
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 64, 128, 0.06);
  position: relative;
}

.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 inner elements ─── */
.card-title {
  text-align: center;
  font-size: 1.05rem;
  color: #004080;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.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;
}

/* ── Carousel Buttons ─── */
.carousel-btn {
  background: linear-gradient(135deg, #003366, #004080);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 32, 80, 0.2);
  transition: background 0.3s ease,
              transform 0.25s ease,
              box-shadow 0.25s ease;
}

.carousel-btn:hover {
  background: linear-gradient(135deg, #004080, #0066cc);
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 32, 80, 0.3);
}

.carousel-btn:active {
  transform: scale(0.97);
}


/* ── CTA Section ─────────────────────────────────────────── */
.cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.88;
  font-size: 1.05rem;
  max-width: 100%;
  margin: 0 auto 2rem;
  line-height: 1.7;
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-hero {
    padding: calc(4rem + var(--navbar-height)) 1.5rem 3rem;
  }

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

  .attorney-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
  }

  .attorney-image,
  .attorney-text {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .attorney-text h3::after {
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-card {
    flex: 0 0 80%;
  }

  .testimonial-carousel-section {
    padding: 3.5rem 0 4rem;
  }

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

@media (max-width: 600px) {
  .attorney-container {
    gap: 2rem;
  }

  /* Stack nav buttons below the card so the card gets the full container width */
  .carousel-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1.25rem;
  }

  .carousel-track {
    flex: 0 0 100%;
    order: 1;
    scroll-snap-type: x mandatory;
  }

  .carousel-btn {
    order: 2;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    margin: 0 0.5rem;
  }

  /* Full-width card so content is never clipped */
  .testimonial-card {
    flex: 0 0 100%;
    padding: 1.5rem;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  /* Prevent stars image from overflowing the card header */
  .stars {
    max-height: 16px;
    width: auto;
  }
}
