:root {
  --navy: #0B2545;          /* primary headings, CTA hover */
  --navy-deep: #061730;     /* deepest accent (rare) */
  --blue: #A48A4B;          /* brass — primary buttons, links */
  --offwhite: #F5F1EA;      /* ivory page background */
  --pale-blue: #EBE5D6;     /* section bands */
  --pale-blue-2: #E0D8C4;   /* slightly darker for footer / CTA */
  --charcoal: #1A1A1A;      /* body text */
  --muted: #6B6356;
  --border: #D6CDB8;

  /* Aliases kept for any inline style="background:var(--cream-dark)" in the HTML */
  --cream: var(--offwhite);
  --cream-dark: var(--pale-blue);
  --gold: var(--blue);
  --gold-dark: var(--navy);
  --navy-dark: var(--navy-deep);

  --max-width: 1100px;
  --radius: 4px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--offwhite);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

a { color: var(--blue); }
a:hover { color: var(--navy); }

p { margin-bottom: 1rem; max-width: 65ch; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== ATTORNEY ADVERTISING BAR ===== */
.attorney-advertising-bar {
  background: var(--pale-blue);
  color: var(--navy);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

/* ===== HEADER ===== */
.site-header {
  background: var(--offwhite);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: relative;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 82px;
  width: auto;
}

.logo-mark {
  color: var(--blue);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a:hover, .main-nav a.active { color: var(--navy); }

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}

.nav-cta {
  background: var(--blue);
  color: white !important;
  padding: 0.6rem 1.35rem !important;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(11, 37, 69, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-cta:hover {
  background: var(--navy);
  color: white !important;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.28);
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--navy);
  padding: 0.25rem 0.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover { background: var(--navy); color: white; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover { background: var(--navy); color: white; }

/* ===== HERO ===== */
.hero {
  background: var(--offwhite);
  color: var(--charcoal);
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero .eyebrow { color: var(--blue); }

.hero h1 {
  color: var(--navy);
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--charcoal);
  margin-bottom: 2.25rem;
  max-width: 52ch;
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-hero {
  background: var(--offwhite);
  color: var(--charcoal);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { color: var(--navy); margin-bottom: 0.75rem; }
.page-hero p { color: var(--charcoal); opacity: 0.85; max-width: 60ch; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--blue); }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--pale-blue);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}

.eb5-badge {
  display: block;
  width: 120px;
  height: auto;
  mix-blend-mode: multiply;
  margin-top: 1.5rem;
}

.trust-item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ===== SECTIONS ===== */
section { padding: 5rem 0; }

.section-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-intro p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.timeline-label {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* centers a trailing partial row of cards under the row above */
.card-grid--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card-grid--centered .card {
  flex: 0 1 calc(33.333% - 16px);
  min-width: 280px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(44, 74, 107, 0.10);
}

.card .step-num {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.card h3 { color: var(--navy); margin-bottom: 0.75rem; }
.card p { color: var(--charcoal); margin-bottom: 0; }

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.card-link:hover { color: var(--navy); }

/* ===== BIO ===== */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.bio-photo {
  background: var(--pale-blue);
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--border);
  overflow: hidden;
}

.bio-photo:has(img) {
  padding: 0;
  border: none;
  background: transparent;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  display: block;
}

.bio-content h2 { margin-top: 0; }

.credentials-list {
  background: var(--pale-blue);
  padding: 1.75rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.credentials-list dt {
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.25rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
}

.credentials-list dt:first-child { margin-top: 0; }
.credentials-list dd { color: var(--charcoal); margin-top: 0.25rem; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after { content: '–'; }

.faq-item .answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--charcoal);
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--pale-blue-2);
  color: var(--charcoal);
  padding: 4.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band h2 { color: var(--navy); margin-bottom: 1rem; }

.cta-band p {
  color: var(--charcoal);
  margin: 0 auto 2rem;
  opacity: 0.85;
  max-width: 50ch;
}

/* ===== BOOKING ===== */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 3rem;
  align-items: start;
}

#booking-embed {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

#booking-embed .booking-fallback {
  padding: 3rem 2rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.booking-fallback h3 { margin-bottom: 0.75rem; color: var(--navy); }

.booking-fallback p {
  color: var(--muted);
  margin: 0 auto 1.25rem;
  max-width: 42ch;
}

.booking-fallback code {
  background: var(--pale-blue);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--navy);
}

.intake-info {
  background: var(--pale-blue);
  padding: 2rem;
  border-radius: var(--radius);
}

.intake-info h3 { margin-bottom: 1rem; font-size: 1.15rem; color: var(--navy); }

.sof-list {
  list-style: none;
  columns: 2;
  column-gap: 2.5rem;
  margin-top: 0.75rem;
}

.sof-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.65rem;
  break-inside: avoid;
}

.sof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

@media (max-width: 600px) {
  .sof-list { columns: 1; }
}

.intake-info ul {
  list-style: none;
  padding: 0;
}

.intake-info li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.intake-info li:last-child { border-bottom: none; }

.intake-info li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== TIMELINE ===== */
.timeline {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 0.75rem;
}

.timeline-step {
  flex: 0 0 230px;
  position: relative;
  text-align: center;
  padding: 0 1.15rem;
}

/* straight horizontal connector through the row of circles */
.timeline-step::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.timeline-step:first-child::before { display: none; }

/* numbered circle, sitting on the connector line */
.timeline-step .step-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin: 0 auto 0.9rem;
}

.timeline-step h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.timeline-step p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0; }

@media (max-width: 768px) {
  .timeline { flex-direction: column; }
  .timeline-step {
    flex: none;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1rem;
    padding: 0 0 1.75rem 0;
  }
  /* vertical connector down the left spine */
  .timeline-step::before {
    top: 40px;
    left: 19px;
    width: 2px;
    height: 100%;
  }
  .timeline-step:first-child::before { display: block; }
  .timeline-step:last-child::before { display: none; }
  .timeline-step .step-num { margin: 0; flex-shrink: 0; }
  .timeline-step h3 { margin-bottom: 0; font-size: 1rem; }
  .timeline-step p {
    flex-basis: 100%;
    padding-left: 56px;
    margin-top: 0.35rem;
  }
}

/* ===== SERVICE DETAIL ===== */
.service-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-of-type { border-bottom: none; }

.service-block h2 { margin-bottom: 0.75rem; }

.service-block .service-meta {
  background: var(--pale-blue);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.service-meta h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-meta p { font-size: 0.95rem; margin-bottom: 0; }

/* ===== TESTIMONIAL ===== */
.testimonial {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--blue);
}

.testimonial p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--charcoal);
}

.testimonial .attribution {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  margin-bottom: 0;
  letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--pale-blue-2);
  color: var(--charcoal);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.site-footer h4 {
  color: var(--navy);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-footer .footer-brand p { color: var(--charcoal); opacity: 0.85; }

.footer-logo {
  display: block;
  width: 170px;
  height: auto;
  margin-bottom: 1.25rem;
}

.site-footer ul li { margin-bottom: 0.5rem; }

.site-footer a { color: var(--blue); }
.site-footer a:hover { color: var(--navy); }

.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-disclaimer p { margin-bottom: 0.75rem; max-width: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--offwhite);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0 1.5rem; align-items: stretch; }
  .main-nav li { padding: 0.5rem 0; }
  .nav-cta { display: inline-block; margin-top: 0.5rem; }

  .hero { padding: 4rem 0 3rem; }
  .page-hero { padding: 3rem 0 2.5rem; }

  .bio-grid, .booking-grid, .service-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section { padding: 3.5rem 0; }
}
