/* ==========================================
   PAGE SPECIFIC CSS: SERVICES.CSS
   Below-the-fold elements (Mobile First)

   NOTE: The following classes are intentionally
   reused from global.css / about.css and are
   NOT re-declared here:
   - .btn-primary-light
   - .btn-ghost-light
   - .recognition-cta-banner / .banner-ctas
   - .stat-block / .stat-number / .stat-label
   - .location-badge / .gradient-text
   ========================================== */

/* ==========================================
   1. PRACTICE NAV / INDEX STRIP
   ========================================== */
.section-practice-nav {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-height);
  z-index: 100;
}

.practice-nav-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
}

.practice-nav-inner::-webkit-scrollbar {
  display: none;
}

.practice-nav-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.5rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.practice-nav-item:hover,
.practice-nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.practice-nav-item .nav-num {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--primary-light);
}

/* ==========================================
   2. PRACTICE SECTION - SHARED LAYOUT
   ========================================== */
.section-practice {
  padding: 100px 0;
  scroll-margin-top: calc(var(--header-height) + 48px);
}

.section-practice:nth-child(odd) {
  background: var(--bg-section);
}

.section-practice:nth-child(even) {
  background: var(--bg-secondary-section);
}

/* Two-column split: text + panel */
.practice-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

/* Practice header */
.practice-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.practice-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.practice-area-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.practice-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.practice-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 540px;
}

.practice-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Service list - what's included */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.service-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-secondary-section);
  border: 2px solid var(--primary-light);
  margin-top: 2px;
}

/* ==========================================
   3. PRACTICE PANEL (right column visual)
   ========================================== */
.practice-panel {
  background: var(--primary-dark);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle crosshatch texture */
.practice-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.015) 20px,
    rgba(255, 255, 255, 0.015) 21px
  );
  pointer-events: none;
}

.panel-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-light);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.panel-heading::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--primary-light);
}

/* Key facts grid inside panel */
.panel-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 2rem;
}

.panel-fact {
  background: var(--primary-dark);
  padding: 1.5rem 1.2rem;
  position: relative;
  z-index: 1;
}

.panel-fact-val {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.panel-fact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(242, 247, 246, 0.45);
}

/* Process steps inside panel */
.panel-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.panel-step {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.panel-step:last-child {
  border-bottom: none;
}

.step-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  margin-top: 6px;
}

.step-text {
  font-size: 0.88rem;
  color: rgba(242, 247, 246, 0.7);
  line-height: 1.6;
}

.step-text strong {
  color: #ffffff;
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}

/* Court tier list - for litigation section */
.court-tiers {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.court-tier-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.court-tier-item:last-child {
  border-bottom: none;
}

.tier-rank {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(139, 196, 185, 0.15);
  border: 1px solid rgba(139, 196, 185, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--primary-light);
}

.tier-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(242, 247, 246, 0.85);
}

.tier-type {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  background: rgba(139, 196, 185, 0.1);
  color: var(--primary-light);
}

/* ==========================================
   4. COMPLIANCE CHECKLIST (Tax section)
   ========================================== */
.compliance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.compliance-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-section);
  transition: background 0.2s ease;
}

.compliance-row:hover {
  background: var(--bg-page);
}

.compliance-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--primary-light);
  background: var(--bg-secondary-section);
  display: flex;
  align-items: center;
  justify-content: center;
}

.compliance-check i {
  font-size: 0.65rem;
  color: var(--primary);
}

.compliance-text {
  flex: 1;
}

.compliance-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.compliance-text span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.compliance-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  background: var(--bg-secondary-section);
  color: var(--primary);
}

/* ==========================================
   5. CLOSING CTA BANNER
   ========================================== */
.section-services-cta {
  background: var(--primary-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-services-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 24px,
    rgba(255, 255, 255, 0.012) 24px,
    rgba(255, 255, 255, 0.012) 25px
  );
  pointer-events: none;
}

.services-cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.services-cta-text .overline {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-light);
  margin-bottom: 1.2rem;
}

.services-cta-text h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.services-cta-text p {
  font-size: 1rem;
  color: rgba(242, 247, 246, 0.6);
  line-height: 1.8;
  max-width: 500px;
}

.services-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem;
}

.cta-contact-card p {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.cta-contact-card a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}

.cta-contact-card a:last-child {
  margin-bottom: 0;
}

.cta-contact-card a:hover {
  color: var(--primary-light);
}

.cta-contact-card a i {
  width: 16px;
  color: var(--primary-light);
  font-size: 0.9rem;
}

.cta-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================
   DESKTOP OVERRIDES (min-width: 992px)
   ========================================== */
@media (min-width: 992px) {
  .practice-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
  }

  /* Flip layout for even sections */
  .section-practice:nth-child(even) .practice-split {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .section-practice:nth-child(even) .practice-split .practice-text-col {
    order: 2;
  }

  .section-practice:nth-child(even) .practice-split .practice-panel {
    order: 1;
  }

  .practice-title {
    font-size: 2.6rem;
  }

  .services-cta-inner {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 6rem;
  }

  .services-cta-text h2 {
    font-size: 3rem;
  }

  .services-cta-actions {
    flex-direction: column;
  }
}
