/* ============================================================
   Your Family Lawyer — yourfamilylawyer.net
   Brand kit: Deep Navy #1B2A4A | Slate Blue #3E5C8A |
              Warm Gold #C9A227 | Soft Cream #F7F4EE |
              Charcoal #2B2B2B
   Fonts: Merriweather (headings) | Inter (body)
   ============================================================ */

/* ---- Font faces ----------------------------------------- */
@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather-400i.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('../fonts/merriweather-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Variables ------------------------------------------ */
:root {
  --navy:   #1B2A4A;
  --slate:  #3E5C8A;
  --gold:   #C9A227;
  --cream:  #F7F4EE;
  --coal:   #2B2B2B;
  --white:  #FFFFFF;
  --border: #D4CCB8;
  --muted:  #6B7B99;

  --font-head: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --max-w: 1100px;
  --section-pad: 5rem 1.5rem;
  --radius: 4px;
  --shadow: 0 2px 16px rgba(27,42,74,.10);
}

/* ---- Reset ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--coal);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--navy); }
ul { list-style: none; }

/* ---- Typography ----------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Layout helpers ------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--section-pad); }
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,.85); }

/* ---- Buttons -------------------------------------------- */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.btn--gold  { background: var(--gold); color: var(--navy); }
.btn--outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,.1); }
.btn--slate { background: var(--slate); color: var(--white); }

/* ---- Navigation ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .01em;
  text-decoration: none;
  line-height: 1.2;
}
.site-logo span { color: var(--gold); }
.site-logo:hover { text-decoration: none; opacity: .9; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links .btn { padding: .5rem 1.1rem; font-size: .82rem; text-transform: none; letter-spacing: 0; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: .2s;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .6rem 1.5rem; width: 100%; }
  .nav-links .btn { margin: .75rem 1.5rem 0; width: calc(100% - 3rem); text-align: center; }
}

/* ---- Hero ----------------------------------------------- */
.hero {
  background: var(--navy);
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Interior page hero (slimmer) */
.hero--page {
  padding: 3.5rem 1.5rem 3rem;
}
.hero--page h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.hero--page p { font-size: 1rem; }

/* ---- Trust strip --------------------------------------- */
.trust-strip {
  background: var(--slate);
  padding: 1.25rem 1.5rem;
}
.trust-strip .container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  color: var(--white);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.trust-item::before { content: '✦'; color: var(--gold); font-size: .75rem; }

/* ---- Section headings ---------------------------------- */
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.section-head--left { text-align: left; }
.section-head--left p { margin: 0; }

/* ---- Card grids ---------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .15s;
}
.card:hover { box-shadow: 0 6px 24px rgba(27,42,74,.14); transform: translateY(-2px); }
.card--navy { background: var(--navy); border-color: transparent; }
.card--navy h3, .card--navy h4 { color: var(--white); }
.card--navy p { color: rgba(255,255,255,.8); }
.card--cream { background: var(--cream); border-color: transparent; }

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.card--navy .card-icon { background: rgba(255,255,255,.12); }

.card h3 { margin-bottom: .5rem; }
.card p { font-size: .93rem; color: #4A5568; }
.card--navy p { color: rgba(255,255,255,.75); }
.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--slate);
}
.card--navy .card-link { color: var(--gold); }
.card-link::after { content: ' →'; }

/* ---- Location grid ------------------------------------- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color .2s, box-shadow .2s;
}
.location-card:hover { border-color: var(--slate); box-shadow: var(--shadow); }
.location-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.location-card p { font-size: .83rem; color: var(--muted); margin-bottom: .75rem; }
.location-card a { font-size: .83rem; font-weight: 600; color: var(--slate); }
.location-card a::after { content: ' →'; }

/* ---- CTA band ------------------------------------------ */
.cta-band {
  background: var(--gold);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.cta-band h2 { color: var(--navy); margin-bottom: .75rem; }
.cta-band p { color: var(--navy); opacity: .85; max-width: 500px; margin: 0 auto 1.75rem; }
.cta-band .btn { margin: .4rem; }

/* ---- Prose content ------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; margin-bottom: .6rem; color: var(--slate); }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--slate);
}
.prose strong { font-weight: 600; color: var(--navy); }

/* ---- Two-column layout --------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.two-col--60-40 { grid-template-columns: 3fr 2fr; }
@media (max-width: 720px) {
  .two-col, .two-col--60-40 { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- Attorney bio -------------------------------------- */
.bio-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 380px;
}
.bio-meta {
  margin-top: 1.25rem;
  font-size: .88rem;
  color: var(--muted);
}
.bio-meta strong { display: block; font-size: 1rem; color: var(--navy); font-weight: 600; margin-bottom: .2rem; }

/* ---- FAQ ----------------------------------------------- */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  padding: 0;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--slate); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding-top: .75rem; font-size: .96rem; }
.faq-item.open .faq-a { display: block; }

/* ---- Process steps ------------------------------------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
}
.step-num::before { content: counter(step); }
.step-body h3 { margin-bottom: .4rem; }

/* ---- Breadcrumb ---------------------------------------- */
.breadcrumb {
  padding: .75rem 1.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
}
.breadcrumb .container { display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--slate); }
.breadcrumb span::before { content: '/'; margin-right: .5rem; }

/* ---- Footer -------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .site-logo { font-size: 1rem; display: inline-block; margin-bottom: .75rem; }
.footer-brand p { font-size: .84rem; line-height: 1.6; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul a { color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-col ul a:hover { color: var(--white); text-decoration: none; }
.footer-contact p { font-size: .88rem; margin-bottom: .4rem; }
.footer-contact a { color: var(--gold); font-weight: 600; }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.12); margin-bottom: 1.5rem; }

.footer-compliance {
  font-size: .76rem;
  line-height: 1.65;
  color: rgba(255,255,255,.45);
  max-width: 900px;
}

/* ---- Utility ------------------------------------------- */
.text-center { text-align: center; }
.text-gold  { color: var(--gold); }
.text-slate { color: var(--slate); }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- Responsive ---------------------------------------- */
@media (max-width: 600px) {
  :root { --section-pad: 3.5rem 1.25rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .card-grid, .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
  .trust-strip .container { gap: 1.25rem; flex-direction: column; align-items: center; }
}
