/* ==========================================================================
   Law Office of Leah J. Boisclair — Criminal Defense Resource Silo
   Shared stylesheet (linked by every county / practice-area / charge page)
   Designed to match the live boisclairlaw.com theme:
   dark-green header & bands · gold pill buttons · gold underline dividers ·
   gold-icon light cards · serif headings · layered dark-green footer.
   --> Fine-tune the brand tokens in :root to the exact Elementor Global
       Colors / Fonts when the JSON export is available.
   ========================================================================== */

:root {
  /* Brand greens */
  --green-900: #07271c;   /* deepest — overlays, footer base */
  --green-800: #0c3d2c;   /* primary dark green — header & bands */
  --green-700: #11623f;   /* brighter emerald — gradient end / accents */
  /* Gold (brand) */
  --gold:      #d6ab3e;   /* brand gold — buttons, outlines, accents */
  --gold-dark: #bd9230;   /* hover */
  --gold-soft: #e6cd86;
  /* Header */
  --header-bg: #01110a;   /* near-black green */
  --header-line: #135637; /* 5px bottom border */
  /* Neutrals */
  --ink:       #262626;
  --ink-soft:  #4a4a4a;
  --gray-bg:   #f4f2ec;   /* light section background */
  --card-bg:   #f7f6f1;   /* card background */
  --line:      #e3e0d6;
  --white:     #ffffff;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --pill: 50px;
  --hero-img: url("https://boisclairlaw.com/wp-content/uploads/2024/12/law-office-of-leah-j.-boisclair-000.jpg");
  --shadow: 0 10px 30px rgba(7,39,28,.12);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); line-height: 1.7; font-size: 17px; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1,h2,h3,h4 { font-family: var(--serif); color: var(--green-800); line-height: 1.18; font-weight: 700; }
h1 { font-size: 2.6rem; margin: 0 0 .4em; }
h2 { font-size: 2.1rem; margin: 0 0 .5em; }
h3 { font-size: 1.35rem; margin: 1.2em 0 .4em; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 70px 0; }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--green-900); color: rgba(255,255,255,.92); }
.section--dark h2, .section--dark h3 { color: #fff; }
.lead { font-size: 1.14rem; color: var(--ink-soft); }
.center { text-align: center; }

/* Gold underline divider under headings (signature element) */
.divider { width: 84px; height: 3px; background: var(--gold); border: 0; margin: 14px 0 26px; }
.center .divider, .divider.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons (fully rounded gold pills) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 34px; border-radius: var(--pill);
  font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: .3px;
  cursor: pointer; transition: background .2s, color .2s, transform .15s, border-color .2s; border: 2px solid transparent;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn--gold { background: var(--gold); color: var(--green-900); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-2px); }
.btn--phone { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--phone:hover { background: var(--gold); color: var(--green-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Header (logo left · contact + nav stacked on the right) ---------- */
.site-header {
  color: #fff; position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);            /* flat color — no gradient */
  border-bottom: 5px solid var(--header-line);
  box-shadow: 0 3px 16px rgba(0,0,0,.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 16px 26px; max-width: var(--maxw); margin: 0 auto; }
.site-logo img { max-height: 104px; width: auto; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.header-contact { display: flex; align-items: center; gap: 26px; }
.header-contact .consult { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.3rem; letter-spacing: .3px; }
/* gold-outline pill phone button (larger) */
.header-phone { display: inline-flex; align-items: center; gap: 11px; background: transparent; color: var(--gold); font-weight: 700; font-size: 1.32rem; padding: 14px 34px; border: 2px solid var(--gold); border-radius: var(--pill); }
.header-phone svg { width: 18px; height: 18px; fill: currentColor; }
.header-phone:hover { background: var(--gold); color: var(--green-900); }

.main-nav > ul { list-style: none; display: flex; justify-content: flex-end; gap: 18px; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: block; color: #fff; font-weight: 600; font-size: 1.22rem; padding: 6px 14px; border-bottom: 3px solid transparent; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.current > a { color: var(--gold-soft); border-bottom-color: var(--gold); }
.main-nav .caret::after { content: " ▾"; font-size: .8em; color: var(--gold-soft); }
/* dropdowns */
.submenu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--green-800); padding: 6px 0; margin: 0; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; z-index: 70; }
.main-nav li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; color: #fff; padding: 10px 18px; font-size: .92rem; }
.submenu a:hover { background: var(--green-700); color: var(--gold-soft); }
.nav-toggle { display: none; background: var(--gold); color: var(--green-900); border: 0; font-size: 1.4rem; padding: 6px 13px; border-radius: 6px; cursor: pointer; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--gray-bg); font-size: .9rem; border-bottom: 1px solid var(--line); }
.breadcrumbs .container { padding: 12px 22px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "›"; margin-left: 8px; color: var(--ink-soft); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs li[aria-current] { color: var(--ink-soft); }

/* ---------- Hero (page-title band over dark bg) ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: 96px 0; min-height: 300px; display: flex; align-items: center;
  /* Brand skyline photo shows through; a darker translucent band runs through
     the middle (lighter top & bottom) so the centered title stays readable. */
  background:
    linear-gradient(180deg, rgba(6,29,21,.30) 0%, rgba(6,29,21,.62) 42%, rgba(6,29,21,.62) 58%, rgba(6,29,21,.30) 100%),
    var(--hero-img);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero h1 { color: #fff; margin: 0 auto; max-width: 24ch; text-shadow: 0 2px 14px rgba(0,0,0,.45); }

/* ---------- Intro / generic content ---------- */
.intro .lead { max-width: 70ch; }

/* ---------- Practice-area cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px; }
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 10px; padding: 30px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; text-align: center; }
.card .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.card .icon svg { width: 32px; height: 32px; fill: #fff; }
.card h3 { margin: 0 0 12px; font-size: 1.3rem; }
.card h3 a { color: var(--green-800); }
.card h3 a:hover { color: var(--gold-dark); }
.card p { font-size: .96rem; color: var(--ink-soft); }
.card .subtopics { list-style: none; margin: 0 0 20px; padding: 0; font-size: .9rem; text-align: left; }
.card .subtopics li { padding: 5px 0 5px 18px; position: relative; color: var(--ink-soft); }
.card .subtopics li::before { content: "›"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }
.card .card-cta { margin-top: auto; font-weight: 700; color: var(--green-700); }
.card .card-cta:hover { color: var(--gold-dark); }

/* ---------- Town chips ---------- */
.towns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.towns span, .towns a { background: var(--white); border: 1px solid var(--line); padding: 8px 16px; border-radius: var(--pill); font-size: .92rem; color: var(--green-800); }
.towns a:hover { background: var(--green-800); color: #fff; }

/* ---------- Two-column info ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 9px; color: var(--gold-dark); font-weight: 700; font-size: 1.1rem; }
.donts li::before { content: "✕"; color: #9b3b2f; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; background: var(--white); }
.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--green-800); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold-dark); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--green-700), var(--green-900)); color: #fff; text-align: center; padding: 70px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto 26px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Disclaimer ---------- */
.disclaimer { background: var(--gray-bg); font-size: .85rem; color: var(--ink-soft); padding: 30px 0; }
.disclaimer .container { max-width: 940px; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--green-800), var(--green-900)); color: rgba(255,255,255,.85); padding: 0 0 22px; }
.footer-logocard { background: var(--card-bg); border-radius: 0 0 12px 12px; max-width: 320px; margin: 0 auto; padding: 22px; text-align: center; }
.footer-logocard img { max-height: 120px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 48px 22px 0; max-width: var(--maxw); margin: 0 auto; }
.site-footer h4 { color: #fff; border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: 6px; margin-bottom: 14px; }
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 18px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.7); }
.footer-bottom a { color: var(--gold-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  h1 { font-size: 2rem; } h2 { font-size: 1.6rem; }
  .header-inner { flex-wrap: wrap; }
  .header-right { align-items: center; width: 100%; }
  .header-contact .consult { display: none; }
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open {
    display: block;
    /* svh = "small viewport height" — the guaranteed-visible height once a
       mobile browser's address/toolbar chrome is accounted for. Plain vh
       is measured as if that chrome weren't there, so on phones with
       docked (non-auto-hiding) toolbars — e.g. Firefox Focus — a vh-based
       cap still overflows the actually-visible screen. Fall back to vh
       for older browsers that don't support svh yet. */
    max-height: calc(100vh - 210px);
    max-height: calc(100svh - 210px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { border-bottom: 1px solid rgba(255,255,255,.12); text-align: center; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--green-900); }
  .card-grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
