/* === DAVIDSON LAW OFFICES - PRACTICE AREA TEMPLATE CSS === */
/* Shared styles for all practice area sub-pages rendered from /_templates/practice-area.html */

/* ========================
   HERO SECTION (.pa-hero)
======================== */
.pa-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.pa-hero .container {
  position: relative;
  z-index: 1;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.pa-hero-inner {
  max-width: 780px;
}

/* Breadcrumb */
.pa-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-6);
}

.pa-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.pa-breadcrumb a:hover {
  color: var(--color-accent);
}

.pa-breadcrumb span[aria-hidden] {
  color: rgba(255, 255, 255, 0.45);
}

.pa-breadcrumb span[aria-current] {
  color: var(--color-accent);
}

.pa-hero .accent-line {
  margin-bottom: var(--space-6);
  background: var(--color-accent);
}

.pa-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  line-height: var(--line-height-tight);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-6);
}

.pa-hero-sub {
  font-family: var(--font-body);
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.88);
  line-height: var(--line-height-relaxed);
  max-width: 620px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-10);
}

.pa-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* White outline button variant for dark hero backgrounds */
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  font-family: var(--font-body);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* ========================
   OVERVIEW SECTION (.pa-overview)
======================== */
.pa-overview {
  background: var(--color-bg);
}

.pa-overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  align-items: center;
}

.pa-overview-text {
  flex: 1 1 480px;
}

.pa-overview-text h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-4);
}

.pa-overview-text .accent-line {
  margin-bottom: var(--space-6);
}

.pa-overview-text p {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-5);
}

.pa-overview-callout {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--color-bg-secondary);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-6);
}

.pa-overview-callout svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: var(--space-1);
}

.pa-overview-callout p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.pa-overview-image {
  flex: 1 1 380px;
}

.pa-overview-image img {
  width: 100%;
  height: auto;
  border-radius: var(--img-radius);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ========================
   CASES SECTION (.pa-cases)
======================== */
.pa-cases {
  background: var(--color-secondary);
  padding: var(--section-padding-y) var(--section-padding-x);
}

.pa-cases-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.pa-cases-header h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-4);
}

.pa-cases-header .accent-line {
  background: var(--color-accent);
  margin-left: auto;
  margin-right: auto;
}

.pa-cases-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gutter);
  justify-content: center;
}

.pa-case-card {
  flex: 0 0 calc(33.333% - var(--grid-gutter) * 2 / 3);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  padding: var(--space-8) var(--space-6);
  transition: all var(--duration-normal) var(--ease-default);
}

.pa-case-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pa-case-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: var(--space-5);
}

.pa-case-icon svg {
  width: 24px;
  height: 24px;
}

.pa-case-card h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: #ffffff;
  margin-bottom: var(--space-3);
  line-height: var(--line-height-snug);
}

.pa-case-card p {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.72);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* ========================
   PROCESS SECTION (.pa-process)
======================== */
.pa-process {
  background: var(--color-bg-secondary);
}

.pa-process-header {
  max-width: 680px;
  margin-bottom: var(--space-12);
}

.pa-process-header h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-4);
}

.pa-process-header .accent-line {
  margin-bottom: var(--space-5);
}

.pa-process-header p {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.pa-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.pa-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  background: var(--color-bg);
  border-radius: var(--card-radius);
  padding: var(--space-6) var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--duration-normal) var(--ease-default);
}

.pa-step:hover {
  box-shadow: var(--shadow-md);
}

.pa-step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pa-step-body h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-snug);
}

.pa-step-body p {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.pa-process-closing {
  margin-top: var(--space-10);
  padding: var(--space-6) var(--space-8);
  background: var(--color-primary);
  border-radius: var(--card-radius);
}

.pa-process-closing p {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.95);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* ========================
   WHY SECTION (.pa-why)
======================== */
.pa-why {
  background: var(--color-bg);
}

.pa-why-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  align-items: flex-start;
}

.pa-why-text {
  flex: 1 1 480px;
}

.pa-why-text h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-4);
}

.pa-why-text .accent-line {
  margin-bottom: var(--space-8);
}

.pa-why-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.pa-why-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.pa-why-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: var(--space-1);
}

.pa-why-item-text h4 {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-secondary);
  margin-bottom: var(--space-1);
  line-height: var(--line-height-snug);
}

.pa-why-item-text p {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Stat callout box */
.pa-why-callout {
  flex: 0 0 320px;
  background: var(--color-secondary);
  border-radius: var(--card-radius);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-8));
}

.pa-why-callout-number {
  font-family: var(--font-heading);
  font-size: var(--font-size-7xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-accent);
  line-height: var(--line-height-none);
  margin-bottom: var(--space-4);
}

.pa-why-callout h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: #ffffff;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-4);
}

.pa-why-callout p {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* ========================
   FAQ SECTION (.pa-faq)
======================== */
.pa-faq {
  background: var(--color-bg-secondary);
}

.pa-faq-header {
  margin-bottom: var(--space-4);
}

.pa-faq-header h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-4);
}

.pa-faq-header .accent-line {
  margin-bottom: 0;
}

/* ========================
   CTA SECTION (.pa-cta)
======================== */
.pa-cta {
  background-image:
    linear-gradient(rgba(6, 26, 35, 0.82), rgba(6, 26, 35, 0.88)),
    url('https://connect.mediaserve.io/storage/v1/object/public/media/78dba5ff-e514-44fd-bc2d-1f49dd7a0a6f/8bd094a2-511c-4717-becd-3e152d36cdd5/media/images/close-up-justice-building.webp');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  text-align: center;
  position: relative;
}

.pa-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-tight);
}

.pa-cta p {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--line-height-relaxed);
  max-width: 680px;
  margin: 0 auto var(--space-10);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.pa-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
  .pa-cases-grid .pa-case-card {
    flex: 0 0 calc(50% - var(--grid-gutter) / 2);
  }

  .pa-why-callout {
    position: static;
    flex: 1 1 100%;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .pa-hero {
    min-height: 75vh;
  }

  .pa-hero h1 {
    font-size: clamp(1.875rem, 6vw, 2.5rem);
  }

  .pa-hero-sub {
    font-size: var(--font-size-base);
  }

  .pa-overview-grid,
  .pa-why-grid {
    flex-direction: column;
  }

  .pa-overview-image {
    flex: 1 1 100%;
  }

  .pa-cases-grid .pa-case-card {
    flex: 0 0 100%;
  }

  .pa-step {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-5);
  }

  .pa-why-callout {
    flex: 1 1 100%;
  }

  .pa-why-callout-number {
    font-size: var(--font-size-5xl);
  }

  .pa-hero-ctas,
  .pa-cta-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .pa-cta-buttons {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .pa-breadcrumb {
    font-size: var(--font-size-xs);
  }
}
