/* =========================================================================
 * practice-areas.css — Practice Areas archive (archive-practice_area.php)
 * Source HTML: website/v2/final version/gibson-practice-areas-toggle.html
 *
 * Template-unique selectors only. Tokens, .container, .eyebrow, .h-lg,
 * nav/footer/global-map/popup/.cta-btn live in global.css — not redefined here.
 * Breakpoints mirror the source: 1024 / 768 (source used these two).
 * ========================================================================= */

/* ── PAGE HEADER — Interior Hero ── */
body.separate-containers .page-header {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 140px 0 80px;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(244,100,33,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 30% 70%, rgba(0,180,216,0.03) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--deep-purple) 50%, var(--navy-90) 100%);
}
.page-header-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-header-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.page-header-lines::before,
.page-header-lines::after {
  content: '';
  position: absolute;
  height: 1px;
  background: rgba(255,255,255,0.03);
  left: 0;
  right: 0;
}
.page-header-lines::before { top: 33%; }
.page-header-lines::after { top: 66%; }

.page-header-inner {
  position: relative;
  z-index: 3;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}
.page-header-overline {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--fire);
  font-weight: 600;
  margin-bottom: 24px;
}
.page-header-title {
  font-family: var(--display);
  font-size: clamp(3.75rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.02;
  color: #fff;
  max-width: 880px;
  letter-spacing: -0.5px;
  margin: 0 auto;
}
.page-header-title em {
  color: var(--fire);
  font-style: italic;
  font-weight: 500;
}
.page-header-subtitle {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  color: var(--smoke);
  line-height: 1.5;
  max-width: 720px;
  margin: 28px auto 0;
}

/* ── PRACTICE AREA CARDS ── */
.areas {
  background: var(--chalk);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.areas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='0.6' fill='%23000' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.areas-head {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}
.areas-head .eyebrow { justify-content: center; }
.areas-head h2 {
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.12;
}
.areas-head-sub {
  font-size: 1.05rem;
  color: var(--body-text-soft);
  line-height: 1.8;
  max-width: 540px;
  margin: 20px auto 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.area-card {
  background: #fff;
  border: 1px solid var(--border-softer);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color .4s, box-shadow .4s, transform .3s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border-left: 3px solid transparent;
}
.area-card:hover {
  border-left-color: var(--fire);
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.area-card h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 14px;
}
.area-card p {
  font-size: 0.95rem;
  color: var(--body-text-soft);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}
.area-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fire);
  margin-top: auto;
  transition: gap .3s;
}
.area-card:hover .area-card-link { gap: 14px; }
.area-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform .3s;
}
.area-card:hover .area-card-link svg { transform: translateX(4px); }

/* Cards stay white in dark mode — lock text + border to light-mode values */
[data-theme="dark"] .area-card {
  background: #fff;
  border-color: #e8e3d8;
}
[data-theme="dark"] .area-card h3 { color: #1a1a1a; }
[data-theme="dark"] .area-card p { color: #555; }

/* ── CTA — Bottom ── */
/* .cta / .cta::before / .cta-inner / .cta h2 / .cta p live in global.css
   (CTA close band — single source of truth, pre-ship-qc B1). */
.cta-btn-navy {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 18px 48px;
  transition: transform .3s, box-shadow .3s;
}
.cta-btn-navy:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ── RESPONSIVE — 1024px ── */
@media (max-width: 1024px) {
  body.separate-containers .page-header { padding: 150px 0 80px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ── RESPONSIVE — 768px ── */
@media (max-width: 768px) {
  body.separate-containers .page-header { padding: 130px 0 64px; }
  .page-header-inner { padding: 0 24px; }
  .page-header-title { font-size: clamp(2.2rem, 7vw, 3rem); }
  .page-header-subtitle { font-size: 1.05rem; margin-top: 18px; }

  .areas { padding: 80px 0; }
  .areas-grid { grid-template-columns: 1fr; }
  .area-card { padding: 36px 28px; }

  .cta { padding: 80px 0; }
}
