/* ============================================================
   PRACTICE-AREAS.CSS — Page-specific styles for practice-areas.html
   ============================================================ */

/* ============================================================
   1. HERO & STATS
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding-top: clamp(6rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  background: var(--primary-dark);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.22;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(84, 28, 51, 0.92) 0%,
    rgba(110, 35, 67, 0.85) 60%,
    rgba(126, 43, 78, 0.75) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.page-hero__breadcrumb a {
  color: var(--accent);
  transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
  color: var(--surface);
}

.page-hero__breadcrumb .active {
  color: var(--surface);
}

.page-hero__title {
  color: var(--surface);
  margin-bottom: 1.25rem;
}

.page-hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
}

.stats {
  background: var(--primary-dark);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.stats__grid {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}

.stats__item {
  flex: 1;
  text-align: center;
  padding: 1rem 1.5rem;
}

.stats__num {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  display: inline-block;
}

.stats__plus {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--accent);
}

.stats__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.5rem;
}

.stats__divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  align-self: stretch;
}

/* ============================================================
   2. STICKY SIDEBAR & SERVICE CARDS LAYOUT
   ============================================================ */
.practice-main {
  background: var(--background);
}

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

/* Horizontal Filter Bar */
.practice-filterbar {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.5rem;
}

.filter-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-btn {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--background);
  color: var(--primary);
  border-color: var(--border);
  border-bottom-color: var(--primary);
}

.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.72rem;
}

/* Service Card Grid */
.practice-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  contain: layout;
  align-items: stretch;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: all var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  border-top-color: var(--accent);
  transform: translateY(-4px);
}

.service-card__media {
  display: none !important;
}

.service-card__body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card__icon {
  color: var(--primary);
  width: 48px;
  height: 48px;
  background: rgba(110, 35, 67, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.service-card__desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-card__list-wrap {
  background: var(--background);
  border-left: 3px solid var(--primary);
  padding: 1rem;
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.service-card__list-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-card__list li {
  font-size: 0.8rem;
  color: var(--text);
  position: relative;
  padding-left: 0.9rem;
}

.service-card__list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  font-size: 0.4rem;
  color: var(--primary);
  top: 0.3rem;
}

.service-card__action {
  margin-top: 1rem;
}

.service-card__action .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
}

/* ============================================================
   3. ACCORDION FAQ
   ============================================================ */
.faq-section {
  background: var(--surface);
}

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid var(--border);
  background: var(--background);
  transition: border-color var(--transition-fast);
}

.accordion-item.active {
  border-color: var(--primary);
  background: var(--surface);
}

.accordion-header {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary-dark);
  cursor: pointer;
  background: transparent;
  border: none;
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding-inline: 2rem;
}

.accordion-item.active .accordion-body {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.accordion-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */


/* ============================================================
   CTA BANNER — Navbar-matching dark maroon style
   ============================================================ */

/* Override the background overlay to match the scrolled navbar */
.cta-banner__overlay {
  background: rgba(84, 28, 51, 0.97) !important;
  opacity: 1 !important;
}

/* Hide the background image so the solid color shows clean */
.cta-banner__bg-img {
  opacity: 0.06 !important;
  filter: grayscale(100%);
}

/* Gold overline — matches nav accent */
.cta-banner .section-subtitle {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* White heading */
.cta-banner .display-md,
.cta-banner h2 {
  color: #ffffff;
}

/* Slightly softer white for body paragraph */
.cta-banner p.body-lg {
  color: rgba(255, 255, 255, 0.78);
}

/* Gold line under subtitle */
.cta-banner .gold-line {
  background: var(--accent);
  opacity: 0.8;
}

@media (max-width: 1100px) {
  .practice-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .practice-content {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .stats__divider {
    display: none;
  }
}
