/* =========================================================
   DenatzDefense.com — Gividen Law, PLLC
   Palette drawn from Gividen Law branding:
   royal blue #0549e0, black, white
   v2: header overlap fix — smaller logo, earlier nav collapse
   ========================================================= */

:root {
  --blue: #0549e0;
  --blue-dark: #0336a8;
  --blue-pale: #eef3fe;
  --ink: #111319;
  --gray: #4a4f5a;
  --gray-light: #f5f6f8;
  --border: #e2e5ea;
  --white: #ffffff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
}

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

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(17, 19, 25, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 0;
}
.brand img {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}
.brand .brand-text { line-height: 1.2; white-space: nowrap; }
.brand .brand-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: block;
}
.brand .brand-name span { color: var(--blue); }
.brand .brand-sub {
  font-size: 0.66rem;
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}

/* Nav */
nav.main-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
}
nav.main-nav a {
  display: block;
  padding: 10px 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 4px;
  white-space: nowrap;
}
nav.main-nav a:hover { background: var(--blue-pale); color: var(--blue-dark); }
nav.main-nav a.active { color: var(--blue); }
nav.main-nav a.nav-cta {
  background: var(--blue);
  color: #fff;
  margin-left: 6px;
  padding: 10px 14px;
}
nav.main-nav a.nav-cta:hover { background: var(--blue-dark); color: #fff; }

/* Mobile nav — collapses to hamburger below 1200px so the
   wide logo and seven menu items never overlap */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--ink);
  height: 3px;
  width: 26px;
  border-radius: 2px;
  position: relative;
  content: "";
}
.nav-toggle-label span::before { position: absolute; top: -8px; }
.nav-toggle-label span::after { position: absolute; top: 8px; }

@media (max-width: 1199px) {
  .nav-toggle-label { display: block; }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--blue);
    display: none;
    box-shadow: 0 8px 16px rgba(17,19,25,0.12);
  }
  nav.main-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  nav.main-nav a { padding: 12px; white-space: normal; }
  nav.main-nav a.nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle:checked ~ nav.main-nav { display: block; }
}

@media (max-width: 480px) {
  .brand img { height: 36px; max-width: 120px; }
  .brand .brand-name { font-size: 0.98rem; }
  .brand .brand-sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--ink) 0%, #1a2f6e 55%, var(--blue-dark) 100%);
  color: #fff;
  padding: 72px 0 64px;
}
.hero .eyebrow {
  color: #9db8f5;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.18;
  margin-bottom: 18px;
  max-width: 800px;
}
.hero p.lede {
  font-size: 1.12rem;
  max-width: 720px;
  color: #dbe4fb;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0d54f0; color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-outline-blue { border-color: var(--blue); color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue-pale); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, #1a2f6e 70%, var(--blue-dark) 100%);
  color: #fff;
  padding: 48px 0 40px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.2;
}
.page-hero p { color: #dbe4fb; margin-top: 10px; max-width: 760px; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--gray-light); }
section.blue-band { background: var(--blue-pale); }

h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: 18px;
}
h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 26px 0 10px;
}
p { margin-bottom: 14px; color: var(--ink); }
.muted { color: var(--gray); }

.section-intro { max-width: 780px; }

/* ---------- Alert / urgency strip ---------- */
.alert-strip {
  background: var(--blue);
  color: #fff;
  padding: 18px 0;
}
.alert-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.alert-strip p { margin: 0; font-weight: 600; }
.alert-strip a.btn {
  background: #fff;
  color: var(--blue);
  padding: 10px 22px;
  white-space: nowrap;
}
.alert-strip a.btn:hover { background: var(--blue-pale); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
  padding: 26px;
  box-shadow: 0 2px 8px rgba(17,19,25,0.05);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Numbered steps */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* ---------- Stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.stat {
  text-align: center;
  padding: 26px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.stat .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
  line-height: 1.1;
}
.stat .label { font-size: 0.92rem; color: var(--gray); margin-top: 6px; display: block; }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Credential list ---------- */
ul.checklist { list-style: none; margin: 18px 0; }
ul.checklist li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 12px;
}
ul.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.1rem;
}

ul.plain { margin: 0 0 16px 22px; }
ul.plain li { margin-bottom: 8px; }

/* ---------- Callout / quote ---------- */
.callout {
  border-left: 4px solid var(--blue);
  background: var(--blue-pale);
  padding: 22px 26px;
  border-radius: 0 6px 6px 0;
  margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .attribution { font-size: 0.88rem; color: var(--gray); font-style: italic; }

/* ---------- FAQ ---------- */
details.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 12px;
  background: var(--white);
}
details.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-family: var(--serif);
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 400;
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item .faq-body { padding: 0 22px 18px; }
details.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px;
}
.contact-box h3 { margin-top: 0; }
.contact-line { margin-bottom: 10px; }
.contact-line strong { display: inline-block; min-width: 90px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe4fb; max-width: 640px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: #b9bec9;
  padding: 44px 0 24px;
  font-size: 0.9rem;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 30px;
}
@media (max-width: 760px) { footer .footer-grid { grid-template-columns: 1fr; } }
footer h4 {
  color: #fff;
  font-family: var(--serif);
  margin-bottom: 12px;
  font-size: 1.05rem;
}
footer a { color: #9db8f5; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
.disclaimer {
  border-top: 1px solid #2a2e38;
  padding-top: 20px;
  font-size: 0.78rem;
  color: #8a8f9a;
  line-height: 1.6;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.88rem; }
