/* ============================================================
   YARD Law — Practice area pages (Quastels dark theme)
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.pa-hero {
  position: relative;
  background: var(--bg);
  padding: 140px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.pa-hero::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center bottom,
    rgba(20, 80, 45, 0.5) 0%,
    rgba(10, 50, 28, 0.25) 40%,
    transparent 70%);
  pointer-events: none;
}

.pa-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 2.5rem;
  transition: color 0.2s;
  text-decoration: none;
}
.pa-back:hover { color: var(--green); }

.pa-category {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.pa-category::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--green);
  opacity: 0.6;
}

.pa-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 780px;
  margin-bottom: 2rem;
}

.pa-intro {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.82;
  max-width: 680px;
}

/* ── Content ────────────────────────────────────────────────── */
.pa-content {
  background: var(--bg-black);
  padding: 80px 0 100px;
}

.pa-content .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  align-items: start;
}

/* Single-column layout for article pages (no sidebar) */
.pa-content .container:has(.pa-main) {
  grid-template-columns: 1fr;
  max-width: 860px;
}
.pa-main {
  width: 100%;
}

/* Main body */
.pa-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.pa-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.pa-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.pa-section h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  margin-top: 1.5rem;
}

.pa-section p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.pa-section p:last-child { margin-bottom: 0; }

.pa-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.pa-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.65;
}

.pa-list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 0.52em;
  opacity: 0.8;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.pa-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pa-cta-box {
  background: rgba(20,80,45,0.08);
  border: 1px solid var(--green-border);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.pa-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 180px;
  background: radial-gradient(ellipse at center top,
    rgba(20,80,45,0.45) 0%, transparent 65%);
  pointer-events: none;
}

.pa-cta-label {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  position: relative;
}

.pa-cta-title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  position: relative;
}

.pa-cta-sub {
  font-size: 0.82rem;
  color: var(--gray-dim);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Override old .btn.btn-primary inside CTA */
.pa-cta-box .btn,
.pa-cta-btn {
  display: block;
  text-align: center;
  font-family: var(--font-head) !important;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg) !important;
  background: var(--green) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0.72rem 1.5rem !important;
  transition: all 0.22s;
  text-decoration: none;
  margin-bottom: 1.25rem;
  position: relative;
}
.pa-cta-box .btn:hover,
.pa-cta-btn:hover {
  background: #22c55e !important;
  transform: translateY(-1px);
  color: var(--bg) !important;
}

.pa-cta-phones {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
}

.pa-cta-phones a {
  font-size: 0.82rem;
  color: var(--gray-dim);
  text-align: center;
  transition: color 0.2s;
  text-decoration: none;
}
.pa-cta-phones a:hover { color: var(--green); }

/* Related areas */
.pa-related {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--bg);
}

.pa-related-label {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 1rem;
}

.pa-related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  transition: color 0.2s;
  text-decoration: none;
}
.pa-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.pa-related-item:hover { color: var(--green); }
.pa-related-item::after {
  content: '→';
  font-size: 0.7rem;
  color: var(--green);
  opacity: 1;
  transition: opacity 0.2s;
}
.pa-related-item:hover::after { opacity: 1; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pa-content .container { grid-template-columns: 1fr; }
  .pa-sidebar { position: static; }
}
@media (max-width: 768px) {
  .pa-hero { padding: 120px 0 60px; }
}
