@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --bg:         hsl(40, 14%, 96%);
  --fg:         hsl(240, 20%, 10%);
  --primary:    hsl(0, 66%, 32%);
  --primary-fg: hsl(40, 14%, 96%);
  --secondary:  hsl(240, 20%, 10%);
  --secondary-fg: hsl(40, 14%, 96%);
  --muted:      hsl(40, 10%, 90%);
  --muted-fg:   hsl(240, 5%, 46%);
  --border:     hsl(40, 10%, 85%);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; font-weight: 400; line-height: 1.2; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-sm  { max-width: 48rem; }
.container-md  { max-width: 56rem; }
.container-lg  { max-width: 64rem; }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: rgba(12, 12, 26, 0.95);
  backdrop-filter: blur(4px);
}
@media (min-width: 768px) { .navbar { padding: 1.25rem 3rem; } }

.navbar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--secondary-fg);
}
@media (min-width: 768px) { .navbar-logo { font-size: 1.25rem; } }
.navbar-logo .accent { color: var(--secondary-fg); }

.navbar-menu-btn {
  display: flex;
  align-items: center;
  color: var(--secondary-fg);
  transition: color 0.2s;
}
.navbar-menu-btn:hover { color: var(--primary); }

/* ── Nav Overlay ─────────────────────────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 5rem 1.5rem 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

.nav-overlay-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  display: flex;
  align-items: center;
  color: var(--secondary-fg);
  transition: color 0.2s;
}
@media (min-width: 768px) { .nav-overlay-close { right: 3rem; } }
.nav-overlay-close:hover { color: var(--primary); }

.nav-overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.nav-overlay-links li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.nav-overlay.open .nav-overlay-links li          { opacity: 1; transform: translateY(0); }
.nav-overlay.open .nav-overlay-links li:nth-child(1) { transition-delay: 0.10s; }
.nav-overlay.open .nav-overlay-links li:nth-child(2) { transition-delay: 0.16s; }
.nav-overlay.open .nav-overlay-links li:nth-child(3) { transition-delay: 0.22s; }
.nav-overlay.open .nav-overlay-links li:nth-child(4) { transition-delay: 0.28s; }
.nav-overlay.open .nav-overlay-links li:nth-child(5) { transition-delay: 0.34s; }
.nav-overlay.open .nav-overlay-links li:nth-child(6) { transition-delay: 0.40s; }
.nav-overlay.open .nav-overlay-links li:nth-child(7) { transition-delay: 0.46s; }
.nav-overlay.open .nav-overlay-links li:nth-child(8) { transition-delay: 0.52s; }
.nav-overlay.open .nav-overlay-links li:nth-child(9) { transition-delay: 0.58s; }

.nav-overlay-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.625rem;
  letter-spacing: 0.02em;
  color: var(--secondary-fg);
  transition: color 0.2s;
}
@media (min-width: 768px) { .nav-overlay-link { font-size: 2.25rem; } }
.nav-overlay-link:hover,
.nav-overlay-link.active { color: var(--primary); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(246, 244, 240, 0.3);
  padding: 0.75rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary-fg);
  transition: border-color 0.3s, color 0.3s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.75rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: background 0.2s;
}
.btn-primary:hover { background: hsl(0, 66%, 27%); }

/* ── Section Fade-In ─────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Hero: Home (full-screen slideshow) ──────────────────────────────────── */
.hero-home { position: relative; height: 100vh; overflow: hidden; }

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 1;
}
.hero-slide img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    filter: blur(2.5px) saturate(0.9) brightness(0.92);
    transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 26, 0.6);
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-title {
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  color: var(--secondary-fg);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-in-up 1s ease-out 0.2s forwards;
}
@media (min-width: 768px)  { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }
.hero-title .accent { color: var(--secondary-fg); }

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246, 244, 240, 0.6);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-in 0.8s ease-out 0.8s forwards;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 0.875rem; } }

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(246, 244, 240, 0.8);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fade-in-up 0.8s ease-out 1.1s forwards;
}
@media (min-width: 768px) { .hero-tagline { font-size: 1rem; } }

.hero-cta {
  opacity: 0;
  animation: fade-in-up 0.8s ease-out 1.4s forwards;
}

/* ── Hero Banner (inner pages) ───────────────────────────────────────────── */
.hero-banner {
  position: relative;
  height: 50vh;
  min-height: 400px;
  overflow: hidden;
}
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 26, 0.7);
}
.hero-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-banner-title {
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  color: var(--secondary-fg);
}
@media (min-width: 768px) { .hero-banner-title { font-size: 3.75rem; } }

/* ── Section Wrappers ────────────────────────────────────────────────────── */
.section-light { padding: 6rem 0; background: var(--bg); }
.section-dark  {
  padding: 6rem 0;
  background: var(--secondary);
  color: var(--secondary-fg);
  text-align: center;
}
.section-dark h2 { font-size: 1.875rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .section-dark h2 { font-size: 2.25rem; } }
.section-dark p { color: var(--muted-fg); margin-bottom: 2.5rem; line-height: 1.7; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { background: var(--secondary); color: var(--secondary-fg); }

.footer-main { padding: 4rem 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.25rem; margin-bottom: 1rem; }
.footer-logo .accent { color: var(--secondary-fg); }
.footer-tagline { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.7; }

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}
.footer-address { font-size: 0.875rem; line-height: 1.8; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-copy { font-size: 0.75rem; color: var(--muted-fg); }

.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.75rem; color: var(--muted-fg); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

.footer-disclaimer { border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 1rem 0; }
.footer-disclaimer p { font-size: 0.625rem; color: rgba(125, 125, 145, 0.6); line-height: 1.6; }

/* ── About ───────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 3fr 2fr; } }

.about-prose p { line-height: 1.8; margin-bottom: 1.5rem; }
.about-prose p.lead { font-size: 1.125rem; color: var(--fg); }
.about-prose p:not(.lead) { color: var(--muted-fg); }

.sidebar-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.practice-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.practice-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  color: var(--fg);
  transition: border-color 0.2s, color 0.2s;
}
.practice-tag:hover { border-color: var(--primary); color: var(--primary); }

/* ── Attorneys ───────────────────────────────────────────────────────────── */
.page-intro {
  text-align: center;
  color: var(--muted-fg);
  margin-bottom: 4rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.attorneys-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px)  { .attorneys-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .attorneys-grid { grid-template-columns: repeat(4, 1fr); } }

.attorney-card { text-align: left; width: 100%; }
.attorney-portrait {
  aspect-ratio: 3/4;
  background: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.attorney-initials {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: rgba(80, 80, 100, 0.3);
}
.attorney-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: var(--fg);
  transition: color 0.2s;
}
.attorney-card:hover .attorney-name { color: var(--primary); }
.attorney-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-fg);
  margin-top: 0.25rem;
}

/* Bio Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 12, 26, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--bg);
  max-width: 42rem;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@media (min-width: 768px) { .modal-box { padding: 3rem; } }
.modal-overlay.open .modal-box { opacity: 1; transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  display: flex;
  align-items: center;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.modal-close:hover { color: var(--fg); }
.modal-name { font-size: 1.5rem; margin-bottom: 0.25rem; }
@media (min-width: 768px) { .modal-name { font-size: 1.875rem; } }
.modal-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.modal-email {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.modal-email:hover { color: var(--primary); }
.modal-bio { font-size: 0.875rem; line-height: 1.8; color: var(--muted-fg); margin-bottom: 1rem; }
.modal-education { font-size: 0.75rem; color: var(--muted-fg); }
.modal-education strong { color: var(--fg); }
.modal-bio ul { margin: 0.75rem 0 0.75rem 1.25rem; }
.modal-bio li { margin-bottom: 0.5rem; }

/* ── Achievements ────────────────────────────────────────────────────────── */
.achievement-item {
  display: block;
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  padding-left: 0;
  color: inherit;
  transition: padding-left 0.3s ease;
}

.achievement-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.achievement-year { font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 0.5rem; }
.achievement-case {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
@media (min-width: 768px) { .achievement-case { font-size: 1.25rem; } }
.achievement-desc { font-size: 0.875rem; color: var(--muted-fg); }

.achievement-result { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.achievement-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: var(--primary);
}

/* ── FAQs ────────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }

.faq-trigger {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--fg);
  transition: color 0.2s;
}
@media (min-width: 768px) { .faq-trigger { font-size: 1.125rem; } }
.faq-trigger:hover { color: var(--primary); }

.faq-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.faq-icon::before { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }
.faq-icon::after  { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); transition: transform 0.3s, opacity 0.3s; }
.faq-item.open .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.8; padding-bottom: 1.5rem; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1.5rem; }
.form-field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus { border-bottom-color: var(--primary); }
.form-field textarea { resize: none; }

.thank-you { display: none; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 4rem 0; }
.thank-you.visible { display: flex; }
.thank-you h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.thank-you p { font-size: 0.875rem; color: var(--muted-fg); }

.office-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.offices-row { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-evenly; width: 100%; }
.offices-row .office-section { flex: 1; min-width: 260px; max-width: 400px; margin-bottom: 0; }
.office-section { margin-bottom: 2.5rem; }
.office-details { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.office-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.office-detail svg { flex-shrink: 0; margin-top: 0.125rem; color: var(--primary); }

/* ── Case Lists (Recent Cases / Court Orders / Settlements) ──────────────── */
.case-item {
  display: block;
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
  padding-left: 0;
  color: inherit;
  transition: padding-left 0.3s ease;
}
.case-item:hover { padding-left: 1rem; }

.case-item-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.case-info { flex: 1; min-width: 0; }

.case-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-fg);
  margin-bottom: 0.4rem;
}

.case-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: var(--fg);
  line-height: 1.3;
  transition: color 0.2s;
}
@media (min-width: 768px) { .case-name { font-size: 1.25rem; } }
.case-item:hover .case-name { color: var(--primary); }

.case-pdf-icon {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.case-item:hover .case-pdf-icon { opacity: 1; transform: translateX(3px); }

/* ── Case Dropdowns (Settlements) ────────────────────────────────────────── */
.case-dropdown {
  border-bottom: 1px solid var(--border);
}
.case-dropdown > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 0;
  cursor: pointer;
  list-style: none;
  transition: padding-left 0.3s ease;
}
.case-dropdown > summary::-webkit-details-marker { display: none; }
.case-dropdown > summary::marker { display: none; }
.case-dropdown:hover > summary { padding-left: 1rem; }
.case-dropdown:hover .case-name { color: var(--primary); }

.case-chevron-icon {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.3s ease;
}
.case-dropdown[open] .case-chevron-icon { transform: rotate(180deg); }

.case-files {
  list-style: none;
  margin: 0;
  padding: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.case-file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg);
  font-size: 0.95rem;
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.case-file-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.02);
}
.case-file-link svg { color: var(--primary); flex-shrink: 0; }
