/* Shared stylesheet for guide pages, county pages, and utility pages.
   Matches the design system used on index.html (navy / gold / cream). */
:root {
  --navy: #0D1B2A; --navy-mid: #1A2E42; --gold: #C9A84C; --gold-light: #E8C97A; --gold-pale: #FDF6E3;
  --cream: #FAF8F3; --slate: #4A5568; --muted: #718096; --border: #E2D9C8; --white: #FFFFFF;
  --success: #2D6A4F; --danger: #C53030; --radius: 4px; --radius-lg: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--navy); background: var(--cream); line-height: 1.7; font-size: 16px; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.2; }
a { color: #8A6D1F; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.btn { display: inline-block; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 15px; letter-spacing: 0.04em; padding: 14px 32px; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; transition: all 0.2s ease; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); text-decoration: none; }

/* Top bar + nav */
.topbar { background: var(--navy); color: rgba(255,255,255,0.8); font-size: 13px; padding: 10px 0; border-bottom: 1px solid rgba(201,168,76,0.3); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: var(--gold); }
nav.site-nav { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(13,27,42,0.08); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; max-width: 1140px; margin: 0 auto; gap: 16px; }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 22px; color: var(--navy); text-decoration: none; line-height: 1.1; }
.nav-logo span { color: var(--gold); }
.nav-logo small { display: block; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--slate); }
.nav-links a:hover { color: var(--navy); text-decoration: none; }

/* Page hero */
.page-hero { background: var(--navy); color: var(--white); padding: 56px 0 48px; position: relative; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.breadcrumbs { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumbs a { color: var(--gold); }
.breadcrumbs span.sep { margin: 0 8px; opacity: 0.5; }
.page-hero h1 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 14px; }
.page-hero .lead { font-size: 18px; color: rgba(255,255,255,0.78); max-width: 760px; font-weight: 300; }
.hero-meta { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.55); }
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Article layout */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 56px 24px 72px; max-width: 1140px; margin: 0 auto; }
.article h2 { font-size: 30px; margin: 40px 0 14px; color: var(--navy); }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 22px; margin: 28px 0 10px; }
.article p { margin-bottom: 16px; color: #2D3748; }
.article ul, .article ol { margin: 0 0 18px 22px; color: #2D3748; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--navy); }
.answer-box { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 28px; }
.answer-box p:last-child { margin-bottom: 0; }
.answer-box .label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #8A6D1F; font-weight: 500; margin-bottom: 6px; display: block; }
.note-box { background: #FFF8ED; border: 1px solid #F4D58D; border-radius: var(--radius-lg); padding: 18px 22px; margin: 24px 0; font-size: 15px; }
.data-table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; background: var(--white); font-size: 15px; }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--border); vertical-align: top; }
.data-table th { background: var(--gold-pale); font-weight: 500; }

/* Sidebar */
.sidebar > * + * { margin-top: 24px; }
.side-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: relative; }
.side-card.sticky { position: sticky; top: 96px; }
.side-card h3 { font-size: 22px; margin-bottom: 10px; }
.side-price { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 600; line-height: 1; margin-bottom: 4px; }
.side-card ul { list-style: none; margin: 14px 0 18px; }
.side-card li { font-size: 14px; color: var(--slate); padding: 4px 0 4px 22px; position: relative; }
.side-card li::before { content: '\2713'; position: absolute; left: 0; color: var(--success); }
.side-card .small { font-size: 12px; color: var(--muted); margin-top: 10px; }
.side-links { list-style: none; }
.side-links li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.side-links li:last-child { border-bottom: none; }
.side-card .side-links li { padding-left: 0; }
.side-card .side-links li::before { content: none; }

/* Attorney box */
.attorney-box { display: flex; gap: 20px; align-items: flex-start; background: var(--gold-pale); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin: 36px 0 8px; }
.attorney-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--gold); }
.attorney-box .name { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; }
.attorney-box .role { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.attorney-box p { font-size: 14px; color: var(--slate); margin: 0; }

/* FAQ */
.faq-block { margin-top: 12px; }
.faq-block details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.faq-block summary { cursor: pointer; padding: 16px 20px; font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; list-style: none; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: '+'; float: right; color: var(--gold); }
.faq-block details[open] summary::after { content: '\2212'; }
.faq-block .faq-a { padding: 0 20px 16px; color: #2D3748; font-size: 15px; }

/* Grids / cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 18px 0 28px; }
.link-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; color: var(--navy); transition: border-color 0.2s, box-shadow 0.2s; }
.link-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(201,168,76,0.15); text-decoration: none; }
.link-card strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 19px; }
.link-card span { font-size: 13px; color: var(--muted); }
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 14px 0 32px; list-style: none; }
.county-grid a { display: block; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 14px; font-size: 14px; color: var(--navy); }
.county-grid a:hover { border-color: var(--gold); text-decoration: none; }

/* CTA band */
.cta-band { background: var(--gold-pale); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; padding: 60px 0; }
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; }
.cta-band p { color: var(--slate); margin-bottom: 24px; }

/* Footer */
footer.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 36px; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.footer-brand span { color: var(--gold); }
footer.site-footer p { font-size: 14px; }
footer.site-footer h2 { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 7px; font-size: 14px; }
.footer-links a { color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-offices { font-size: 13px; line-height: 1.6; }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,0.45); line-height: 1.6; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); }

@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; padding-top: 36px; }
  .side-card.sticky { position: relative; top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { padding: 12px 16px; }
  .nav-inner .btn { padding: 9px 12px; font-size: 12px; letter-spacing: 0; }
  .nav-inner { gap: 10px; }
  .nav-logo { font-size: 19px; white-space: nowrap; }
  .nav-logo small { display: none; }
  .topbar-inner > a { display: none; }
  .topbar { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .attorney-box { flex-direction: column; }
}
