/* ==========================================================================
   The Scott R. Tolbert Law Firm — 2026 redesign
   Brand: navy #103767 / white, gold accent, Playfair Display + Open Sans
   ========================================================================== */

:root {
  --navy: #103767;
  --navy-dark: #0b2547;
  --navy-deep: #071a33;
  --gold: #c9a227;
  --gold-light: #e3c463;
  --ink: #1c2733;
  --text: #54595f;
  --text-soft: #7a7a7a;
  --paper: #ffffff;
  --mist: #f4f6f9;
  --line: #e3e8ef;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(16, 55, 103, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 55, 103, 0.10);
  --shadow-lg: 0 20px 48px rgba(16, 55, 103, 0.16);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

p { margin: 0 0 1.1em; }

a { color: var(--navy); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-deep); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }

.btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
}
.topbar-contact { display: flex; align-items: center; gap: 1.4rem; min-width: 0; }
.topbar-item { display: inline-flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.85); white-space: nowrap; }
.topbar-item:hover { color: var(--gold-light); }
.topbar-item svg { width: 14px; height: 14px; fill: var(--gold); flex: none; }
.topbar-links { display: flex; gap: 1.2rem; flex: none; }
.topbar-links a {
  color: #fff; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 1px;
}
.topbar-links a:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 0;
}
.brand { flex: none; }
.brand img { width: clamp(160px, 18vw, 220px); height: auto; border-radius: 6px; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem; font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
}
.main-nav a:hover { color: var(--navy); background: var(--mist); }
.main-nav a.active { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 0 0; }
.caret { width: 16px; height: 16px; fill: currentColor; transition: transform 0.2s ease; }

.has-dropdown:hover .caret, .has-dropdown:focus-within .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  flex-direction: column;
  display: flex !important;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { padding: 0.5rem 0.9rem; border-radius: 8px; font-weight: 500; }
.dropdown a.active { box-shadow: none; background: var(--mist); }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: clamp(5rem, 12vw, 9.5rem) 0;
  background:
    linear-gradient(100deg, rgba(7,26,51,0.93) 0%, rgba(16,55,103,0.82) 45%, rgba(16,55,103,0.45) 100%),
    url("/assets/img/banner1.png") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 90px;
  background: linear-gradient(to top, var(--paper), transparent);
  z-index: -1;
}

/* Video background: video sits above the element's fallback background,
   overlay tints it, .hero-fg keeps content on top */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,26,51,0.93) 0%, rgba(16,55,103,0.82) 45%, rgba(16,55,103,0.45) 100%);
  z-index: 2;
}
.hero-has-video::after { z-index: 3; }
.hero-fg { position: relative; z-index: 4; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero-content { max-width: 660px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}
.hero .eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero blockquote {
  margin: 0 0 2rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--gold);
  font-size: 1.06rem;
  color: rgba(255,255,255,0.88);
  font-style: italic;
}
.hero blockquote cite { display: block; margin-top: 0.4rem; font-style: normal; font-size: 0.85rem; color: var(--gold-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Page hero (interior) ---------- */

.page-hero {
  position: relative;
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background:
    linear-gradient(100deg, rgba(7,26,51,0.94) 0%, rgba(16,55,103,0.85) 55%, rgba(16,55,103,0.6) 100%),
    url("/assets/img/banner1.png") center 30% / cover no-repeat;
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 0.6rem; }
.page-hero .crumbs a { color: var(--gold-light); }
.page-hero .lede { max-width: 640px; margin: 0.8rem 0 0; color: rgba(255,255,255,0.88); }

/* ---------- Sections ---------- */

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section.tint { background: var(--mist); }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,162,39,0.5);
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 28px; height: 28px; fill: var(--gold-light); }
.card h3 { margin-bottom: 0.5rem; }
.card p { flex: 1; font-size: 0.95rem; margin-bottom: 1.2rem; }
.card .card-link {
  font-weight: 700; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.card .card-link::after { content: "\2192"; transition: transform 0.2s ease; }
.card:hover .card-link::after { transform: translateX(4px); }
.card > a.stretch::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- About / split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split .photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split .photo-frame::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(16,55,103,0.12);
  pointer-events: none;
}
.split .photo-frame img { width: 100%; object-fit: cover; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.2;
}
.stat span { font-size: 0.82rem; color: var(--text-soft); }

/* ---------- Prose (interior content) ---------- */

.prose { max-width: 760px; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--gold); }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* ---------- Sidebar ---------- */

.sidebar { position: sticky; top: 110px; display: grid; gap: 1.4rem; }
.side-card {
  background: var(--navy);
  color: rgba(255,255,255,0.88);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.side-card h3 { color: #fff; }
.side-card ul { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.8rem; }
.side-card li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; }
.side-card svg { width: 17px; height: 17px; fill: var(--gold); flex: none; margin-top: 3px; }
.side-card a { color: #fff; }
.side-card a:hover { color: var(--gold-light); }
.side-card .btn { width: 100%; justify-content: center; }

.side-nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.side-nav h3 { font-size: 1.05rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a {
  display: block; padding: 0.5rem 0.7rem;
  border-radius: 8px; font-size: 0.92rem; font-weight: 500;
}
.side-nav a:hover { background: var(--mist); color: var(--navy); }
.side-nav a.here { background: var(--navy); color: #fff; }

/* ---------- Accordion / FAQ ---------- */

.faq-list { display: grid; gap: 0.9rem; max-width: 820px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.faq-list details[open] { box-shadow: var(--shadow-md); border-color: rgba(201,162,39,0.5); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem; font-weight: 400;
  color: var(--gold);
  transition: transform 0.25s ease;
  flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-body { padding: 0 1.4rem 1.3rem; font-size: 0.96rem; }

/* ---------- Checklist / link lists ---------- */

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.7rem;
  list-style: none;
  padding: 0; margin: 0;
}
.check-grid li {
  display: flex; align-items: center; gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem; font-weight: 500;
  color: var(--ink);
}
.check-grid svg { width: 16px; height: 16px; fill: var(--gold); flex: none; }

.link-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.link-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm);
}
.link-card h3 { padding-bottom: 0.6rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.link-card ul { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.link-card a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0; font-size: 0.95rem; font-weight: 500;
}
.link-card a::before { content: "\2197"; color: var(--gold); font-size: 0.85rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    linear-gradient(100deg, rgba(7,26,51,0.96), rgba(16,55,103,0.9)),
    url("/assets/img/banner1.png") center / cover no-repeat;
  color: #fff;
  padding: clamp(2.8rem, 6vw, 4.2rem) 0;
}
.cta-band-inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 1.6rem;
}
.cta-band h2 { color: #fff; margin-bottom: 0.3rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.85); max-width: 520px; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.2rem;
  display: flex;
  justify-content: center;
}
.contact-map {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
.footer-col h3 {
  color: #fff; font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  position: relative;
}
.footer-col h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 32px; height: 2px; background: var(--gold);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-col a { color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: var(--gold-light); }
.footer-logo { border-radius: 10px; margin-bottom: 1rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--gold); flex: none; margin-top: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.4rem 0 1.8rem;
}
.disclaimer summary {
  cursor: pointer;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.disclaimer p { font-size: 0.78rem; line-height: 1.6; color: rgba(255,255,255,0.6); }
.copyright { margin: 0.6rem 0 0; font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .header-cta { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    top: var(--header-offset, 64px);
    background: #fff;
    padding: 1.5rem 6vw 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; gap: 0.2rem; }
  .main-nav a { font-size: 1.05rem; padding: 0.8rem 0.6rem; }
  .main-nav a.active { box-shadow: inset 3px 0 0 var(--gold); border-radius: 0 8px 8px 0; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none;
    padding: 0 0 0 1.2rem !important;
    display: none !important;
  }
  .has-dropdown.open .dropdown { display: flex !important; }
  .content-layout, .contact-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  .topbar-hide-sm { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
  .topbar-links { display: none; }
}

@media (max-width: 900px) {
  .topbar-hide-md { display: none; }
}
