/* ============================================================
   DUNCAN LAW DESIGN SYSTEM  v1.0.0
   ============================================================
   Sections:
   1.  Design Tokens (CSS custom properties)
   2.  Base Resets & Typography
   3.  GeneratePress Theme Overrides
   4.  Layout Utilities
   5.  Buttons
   6.  Hero Section
   7.  Trust Bar
   8.  Cards (generic, problem, review, location, attorney, video)
   9.  Quick Answer Box
   10. CTA Blocks (inline, band, sidebar)
   11. FAQ Accordion
   12. Process Steps
   13. Sticky Mobile CTA Bar
   14. Chapter Comparison Table
   15. Section Headings & Dividers
   16. Badges & Labels
   17. Responsive (mobile-first overrides)
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* --- Colors --- */
  --dl-color-navy-900:     #17233F;
  --dl-color-navy-700:     #243B63;
  --dl-color-oxblood:      #9E2A2F;
  --dl-color-ivory:        #FAF7F1;
  --dl-color-carolina-mist:#EAF4FB;
  --dl-color-teal:         #2F6F73;
  --dl-color-gold:         #C9A24A;
  --dl-color-text:         #1F2937;
  --dl-color-muted:        #4B5563;
  --dl-color-border:       #E5E7EB;
  --dl-color-white:        #FFFFFF;

  /* --- Typography --- */
  --dl-font-heading: "Manrope", "Inter", system-ui, -apple-system,
                     BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dl-font-body:    "Source Sans 3", "Inter", system-ui, -apple-system,
                     BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Font sizes --- */
  --dl-text-sm:   0.9375rem;  /* 15px */
  --dl-text-base: 1.0625rem;  /* 17px */
  --dl-text-lg:   1.125rem;   /* 18px */
  --dl-text-xl:   1.25rem;    /* 20px */
  --dl-text-2xl:  1.5rem;     /* 24px */
  --dl-text-3xl:  2rem;       /* 32px */
  --dl-text-4xl:  2.5rem;     /* 40px */
  --dl-text-5xl:  3.25rem;    /* 52px */

  /* --- Spacing & containers --- */
  --dl-container-max:            1180px;
  --dl-content-max:               760px;
  --dl-wide-content-max:          980px;
  --dl-section-padding-desktop:    88px;
  --dl-section-padding-mobile:     48px;

  /* --- Border radius --- */
  --dl-radius-sm:   8px;
  --dl-radius-md:  12px;
  --dl-radius-lg:  18px;
  --dl-radius-xl:  24px;
  --dl-radius-pill:999px;

  /* --- Shadows --- */
  --dl-shadow-soft:  0 10px 30px rgba(23, 35, 63, 0.08);
  --dl-shadow-card:  0 16px 40px rgba(23, 35, 63, 0.10);
  --dl-shadow-focus: 0 0 0 3px rgba(47, 111, 115, 0.28);

  /* --- Buttons --- */
  --dl-button-padding-y:    0.875rem;
  --dl-button-padding-x:    1.25rem;
  --dl-button-font-weight:  700;
}


/* ============================================================
   2. BASE RESETS & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--dl-font-body);
  font-size: var(--dl-text-lg);
  line-height: 1.7;
  color: var(--dl-color-text);
  background-color: var(--dl-color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--dl-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dl-color-navy-900);
  margin-top: 0;
}

h1 { font-size: var(--dl-text-4xl); }
h2 { font-size: var(--dl-text-3xl); }
h3 { font-size: var(--dl-text-2xl); }
h4 { font-size: var(--dl-text-xl); }
h5 { font-size: var(--dl-text-lg); }
h6 { font-size: var(--dl-text-base); }

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  max-width: var(--dl-content-max);
}

a {
  color: var(--dl-color-teal);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover { color: var(--dl-color-navy-900); }

a:focus-visible {
  outline: 3px solid var(--dl-color-teal);
  outline-offset: 2px;
  border-radius: 2px;
}

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

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.375rem;
  line-height: 1.6;
}

strong { font-weight: 700; }


/* ============================================================
   3. GENERATEPRESS THEME OVERRIDES
   ============================================================ */

/* --- Header --- */
.site-header {
  background-color: var(--dl-color-navy-900);
  box-shadow: 0 2px 12px rgba(23, 35, 63, 0.18);
}

/* GP's separate-containers gives the nav a white background — override to transparent */
.main-navigation {
  background-color: transparent !important;
}

/* Desktop: 2-row header (branding top row, nav full-width bottom row).
   Expands inside-header to 100vw so the nav row has room for all 8 items. */
@media (min-width: 769px) {
  .site-header .inside-header {
    flex-wrap: wrap;
    max-width: 100vw !important; /* override GP's grid-container max-width */
    padding-top: 0;
    padding-bottom: 0;
    padding-left: clamp(0.5rem, 2vw, 2rem);
    padding-right: clamp(0.5rem, 2vw, 2rem);
  }
  .site-header .site-branding {
    flex: 0 0 100%;
    padding-top: 0.875rem;
    padding-bottom: 0.75rem;
  }
  .site-header .main-navigation {
    flex: 0 0 100%;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  /* Nav container spans full row width */
  .site-header .inside-navigation.grid-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  /* Items in a single non-wrapping row */
  .site-header .main-navigation ul.menu {
    display: flex;
    flex-wrap: nowrap;
  }
}

/* --- Primary nav --- */
.main-navigation a,
.main-navigation .menu-item > a {
  font-family: var(--dl-font-heading);
  font-weight: 600;
  font-size: var(--dl-text-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
}

/* GP Superfish / #site-navigation rules have higher specificity — use !important
   so nav links stay white on the dark navy header background. */
#site-navigation a,
.main-navigation.sub-menu-right a {
  color: var(--dl-color-white) !important;
}

#site-navigation a:hover,
.main-navigation.sub-menu-right a:hover,
#site-navigation .current-menu-item > a,
.main-navigation.sub-menu-right .current-menu-item > a {
  color: var(--dl-color-gold) !important;
}

/* Override Superfish padding on top-level items for single-row fit */
#site-navigation ul.menu > li > a {
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}

/* --- Primary nav Schedule CTA button --- */
.main-navigation li.dl-nav-cta > a {
  background-color: var(--dl-color-teal);
  color: var(--dl-color-white) !important;
  border-radius: var(--dl-radius-pill);
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  font-size: var(--dl-text-sm);
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.main-navigation li.dl-nav-cta > a:hover {
  background-color: var(--dl-color-gold);
  color: var(--dl-color-navy-900) !important;
}

/* --- Dropdown menus --- */
.main-navigation .sub-menu {
  background-color: var(--dl-color-navy-700);
  border-top: 2px solid var(--dl-color-gold);
  border-radius: 0 0 var(--dl-radius-sm) var(--dl-radius-sm);
  box-shadow: var(--dl-shadow-card);
}

.main-navigation .sub-menu a {
  color: rgba(255,255,255,0.88);
  padding: 0.625rem 1.25rem;
  font-size: var(--dl-text-sm);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.main-navigation .sub-menu a:hover {
  background-color: rgba(255,255,255,0.07);
  color: var(--dl-color-gold);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--dl-color-navy-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--dl-text-sm);
}

.site-footer a {
  color: var(--dl-color-gold);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--dl-color-white);
  text-decoration: underline;
}

/* --- Content area --- */
.content-area,
.entry-content {
  font-size: var(--dl-text-lg);
  line-height: 1.7;
}

/* --- Sidebar widgets --- */
.widget-title {
  font-family: var(--dl-font-heading);
  font-size: var(--dl-text-lg);
  font-weight: 700;
  color: var(--dl-color-navy-900);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--dl-color-gold);
  margin-bottom: 1rem;
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.dl-container {
  width: 100%;
  max-width: var(--dl-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.dl-content-container {
  max-width: var(--dl-content-max);
  margin-left: auto;
  margin-right: auto;
}

.dl-wide-container {
  max-width: var(--dl-wide-content-max);
  margin-left: auto;
  margin-right: auto;
}

.dl-section {
  padding-top: var(--dl-section-padding-desktop);
  padding-bottom: var(--dl-section-padding-desktop);
}

.dl-section--sm {
  padding-top: 52px;
  padding-bottom: 52px;
}

/* Section backgrounds */
.dl-section--white { background-color: var(--dl-color-white); }
.dl-section--ivory { background-color: var(--dl-color-ivory); }
.dl-section--mist  { background-color: var(--dl-color-carolina-mist); }

.dl-section--navy {
  background: linear-gradient(135deg, var(--dl-color-navy-900) 0%, var(--dl-color-navy-700) 100%);
  color: var(--dl-color-white);
}

.dl-section--navy h1,
.dl-section--navy h2,
.dl-section--navy h3,
.dl-section--navy h4 { color: var(--dl-color-white); }

.dl-section--navy p   { color: rgba(255, 255, 255, 0.82); }
.dl-section--navy a   { color: var(--dl-color-gold); }
.dl-section--navy a:hover { color: var(--dl-color-white); }

/* Grids */
.dl-grid { display: grid; gap: 1.5rem; }

.dl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.dl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dl-grid--4 { grid-template-columns: repeat(4, 1fr); }

.dl-grid--2-1 { grid-template-columns: 2fr 1fr; }
.dl-grid--1-2 { grid-template-columns: 1fr 2fr; }

/* Flex helpers */
.dl-flex         { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.dl-flex--center { align-items: center; justify-content: center; }
.dl-flex--between{ align-items: center; justify-content: space-between; }

/* Text alignment */
.dl-text-center { text-align: center; }
.dl-text-center p { margin-left: auto; margin-right: auto; }

/* Eyebrow / label */
.dl-eyebrow {
  display: inline-block;
  font-family: var(--dl-font-heading);
  font-size: var(--dl-text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dl-color-teal);
  margin-bottom: 0.75rem;
}

.dl-section--navy .dl-eyebrow { color: var(--dl-color-gold); }


/* ============================================================
   5. BUTTONS
   ============================================================ */

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--dl-button-padding-y) var(--dl-button-padding-x);
  font-family: var(--dl-font-heading);
  font-size: var(--dl-text-base);
  font-weight: var(--dl-button-font-weight);
  line-height: 1.2;
  border-radius: var(--dl-radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.dl-btn:focus-visible {
  outline: none;
  box-shadow: var(--dl-shadow-focus);
}

/* Primary (teal) */
.dl-btn--primary {
  background-color: var(--dl-color-teal);
  color: var(--dl-color-white);
  border-color: var(--dl-color-teal);
}

.dl-btn--primary:hover {
  background-color: var(--dl-color-navy-700);
  border-color: var(--dl-color-navy-700);
  color: var(--dl-color-white);
  text-decoration: none;
}

/* Secondary / outline */
.dl-btn--secondary {
  background-color: transparent;
  color: var(--dl-color-navy-900);
  border-color: var(--dl-color-navy-700);
}

.dl-btn--secondary:hover {
  background-color: var(--dl-color-navy-900);
  color: var(--dl-color-white);
  border-color: var(--dl-color-navy-900);
  text-decoration: none;
}

/* White outline (for navy backgrounds) */
.dl-btn--outline-white {
  background-color: transparent;
  color: var(--dl-color-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.dl-btn--outline-white:hover {
  background-color: var(--dl-color-white);
  color: var(--dl-color-navy-900);
  border-color: var(--dl-color-white);
  text-decoration: none;
}

/* Urgency (oxblood) — use sparingly */
.dl-btn--urgent {
  background-color: var(--dl-color-oxblood);
  color: var(--dl-color-white);
  border-color: var(--dl-color-oxblood);
}

.dl-btn--urgent:hover {
  background-color: #7d1f23;
  border-color: #7d1f23;
  color: var(--dl-color-white);
  text-decoration: none;
}

/* Size modifiers */
.dl-btn--lg {
  padding: 1rem 2rem;
  font-size: var(--dl-text-lg);
}

.dl-btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--dl-text-sm);
}

/* Button group */
.dl-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}


/* ============================================================
   6. HERO SECTION
   ============================================================ */

.dl-hero {
  background: linear-gradient(135deg, var(--dl-color-navy-900) 55%, var(--dl-color-navy-700) 100%);
  color: var(--dl-color-white);
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
}

.dl-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--dl-container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.dl-hero h1 {
  font-size: var(--dl-text-5xl);
  font-weight: 800;
  color: var(--dl-color-white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  max-width: 780px;
}

.dl-hero__sub {
  font-size: var(--dl-text-xl);
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.62;
  margin-bottom: 2.25rem;
  max-width: 640px;
}

.dl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.dl-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dl-hero__proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--dl-text-sm);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.dl-hero__proof-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--dl-color-teal);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}


/* ============================================================
   7. TRUST BAR
   ============================================================ */

.dl-trust-bar {
  background-color: var(--dl-color-navy-700);
  padding: 18px 0;
  border-bottom: 3px solid var(--dl-color-gold);
}

.dl-trust-bar__inner {
  max-width: var(--dl-container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.dl-trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dl-color-white);
  font-family: var(--dl-font-heading);
  font-size: var(--dl-text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.dl-trust-bar__icon {
  color: var(--dl-color-gold);
  font-size: 1rem;
  line-height: 1;
}

.dl-trust-bar__divider {
  width: 1px;
  height: 22px;
  background-color: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}


/* ============================================================
   8. CARDS
   ============================================================ */

/* --- Base card --- */
.dl-card {
  background-color: var(--dl-color-white);
  border-radius: var(--dl-radius-md);
  border: 1px solid var(--dl-color-border);
  padding: 2rem;
  box-shadow: var(--dl-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--dl-shadow-card);
}

.dl-card-grid {
  display: grid;
  gap: 1.5rem;
}

/* --- Problem card --- */
.dl-problem-card {
  background-color: var(--dl-color-white);
  border-radius: var(--dl-radius-md);
  border: 1px solid var(--dl-color-border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  box-shadow: var(--dl-shadow-soft);
  text-decoration: none;
  color: var(--dl-color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dl-problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--dl-shadow-card);
  border-color: var(--dl-color-teal);
  text-decoration: none;
  color: var(--dl-color-text);
}

.dl-problem-card__icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--dl-color-teal);
  margin-bottom: 0.25rem;
}

.dl-problem-card__title {
  font-family: var(--dl-font-heading);
  font-size: var(--dl-text-lg);
  font-weight: 700;
  color: var(--dl-color-navy-900);
  margin: 0;
  line-height: 1.3;
}

.dl-problem-card__text {
  font-size: var(--dl-text-base);
  color: var(--dl-color-muted);
  margin: 0;
  line-height: 1.5;
}

.dl-problem-card__link {
  font-size: var(--dl-text-sm);
  font-weight: 600;
  color: var(--dl-color-teal);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* --- Review card --- */
.dl-review-card {
  background-color: var(--dl-color-white);
  border-radius: var(--dl-radius-md);
  border: 1px solid var(--dl-color-border);
  padding: 1.75rem;
  box-shadow: var(--dl-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.dl-review-card__stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.dl-review-card__text {
  font-size: var(--dl-text-base);
  line-height: 1.65;
  color: var(--dl-color-text);
  font-style: italic;
  margin: 0;
  flex: 1;
}

.dl-review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dl-review-card__author {
  font-family: var(--dl-font-heading);
  font-size: var(--dl-text-sm);
  font-weight: 700;
  color: var(--dl-color-navy-900);
}

.dl-review-card__tag {
  font-size: 0.8125rem;
  color: var(--dl-color-muted);
}

/* --- Location card --- */
.dl-location-card {
  background-color: var(--dl-color-white);
  border-radius: var(--dl-radius-md);
  border: 1px solid var(--dl-color-border);
  padding: 1.75rem;
  box-shadow: var(--dl-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dl-location-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--dl-shadow-card);
}

.dl-location-card__city {
  font-family: var(--dl-font-heading);
  font-size: var(--dl-text-xl);
  font-weight: 700;
  color: var(--dl-color-navy-900);
  margin: 0;
}

.dl-location-card__phone {
  font-size: var(--dl-text-lg);
  font-weight: 700;
  color: var(--dl-color-teal);
  text-decoration: none;
  display: block;
}

.dl-location-card__phone:hover {
  color: var(--dl-color-navy-900);
  text-decoration: none;
}

.dl-location-card__address {
  font-size: var(--dl-text-sm);
  color: var(--dl-color-muted);
  margin: 0;
  line-height: 1.55;
}

.dl-location-card__link {
  font-size: var(--dl-text-sm);
  font-weight: 700;
  color: var(--dl-color-teal);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dl-location-card__link:hover {
  color: var(--dl-color-navy-900);
  text-decoration: underline;
}

/* --- Attorney card --- */
.dl-attorney-card {
  background-color: var(--dl-color-white);
  border-radius: var(--dl-radius-md);
  border: 1px solid var(--dl-color-border);
  padding: 2rem;
  box-shadow: var(--dl-shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
}

.dl-attorney-card__photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--dl-color-carolina-mist);
}

.dl-attorney-card__name {
  font-family: var(--dl-font-heading);
  font-size: var(--dl-text-xl);
  font-weight: 700;
  color: var(--dl-color-navy-900);
  margin: 0;
}

.dl-attorney-card__role {
  font-size: var(--dl-text-sm);
  color: var(--dl-color-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dl-attorney-card__bio {
  font-size: var(--dl-text-base);
  color: var(--dl-color-muted);
  line-height: 1.6;
  margin: 0;
}

.dl-attorney-card__credential {
  display: inline-block;
  background-color: var(--dl-color-ivory);
  border: 1px solid var(--dl-color-border);
  border-radius: var(--dl-radius-pill);
  padding: 0.3rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dl-color-navy-900);
}

/* --- Video card --- */
.dl-video-card {
  background-color: var(--dl-color-white);
  border-radius: var(--dl-radius-md);
  border: 1px solid var(--dl-color-border);
  overflow: hidden;
  box-shadow: var(--dl-shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dl-video-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--dl-shadow-card);
}

.dl-video-card__thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--dl-color-carolina-mist);
  position: relative;
}

.dl-video-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dl-video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(23, 35, 63, 0.35);
  color: white;
  font-size: 2.5rem;
  transition: background-color 0.2s ease;
}

.dl-video-card:hover .dl-video-card__play {
  background-color: rgba(23, 35, 63, 0.55);
}

.dl-video-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.dl-video-card__category {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dl-color-teal);
}

.dl-video-card__title {
  font-family: var(--dl-font-heading);
  font-size: var(--dl-text-base);
  font-weight: 700;
  color: var(--dl-color-navy-900);
  margin: 0;
  line-height: 1.35;
}

.dl-video-card__desc {
  font-size: var(--dl-text-sm);
  color: var(--dl-color-muted);
  margin: 0;
  line-height: 1.5;
}


/* ============================================================
   9. QUICK ANSWER BOX
   ============================================================ */

.dl-quick-answer {
  background-color: var(--dl-color-carolina-mist);
  border-left: 4px solid var(--dl-color-teal);
  border-radius: 0 var(--dl-radius-md) var(--dl-radius-md) 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.dl-quick-answer__label {
  font-family: var(--dl-font-heading);
  font-size: var(--dl-text-sm);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dl-color-teal);
  margin-bottom: 0.625rem;
}

.dl-quick-answer__text {
  font-size: var(--dl-text-lg);
  line-height: 1.65;
  color: var(--dl-color-text);
  margin: 0;
  max-width: none;
}

.dl-quick-answer__text + .dl-quick-answer__bullets {
  margin-top: 1rem;
}

.dl-quick-answer__bullets {
  margin: 0;
  padding-left: 1.25rem;
  list-style: none;
}

.dl-quick-answer__bullets li {
  font-size: var(--dl-text-base);
  color: var(--dl-color-text);
  margin-bottom: 0.375rem;
  position: relative;
  padding-left: 1.125rem;
}

.dl-quick-answer__bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--dl-color-teal);
  font-weight: 700;
  font-size: 0.875rem;
}


/* ============================================================
   10. CTA BLOCKS
   ============================================================ */

/* Inline CTA */
.dl-cta-inline {
  background-color: var(--dl-color-ivory);
  border: 1px solid var(--dl-color-border);
  border-radius: var(--dl-radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.dl-cta-inline__text h3,
.dl-cta-inline__text h4 {
  margin: 0 0 0.375rem;
  font-size: var(--dl-text-xl);
}

.dl-cta-inline__text p {
  margin: 0;
  font-size: var(--dl-text-base);
  color: var(--dl-color-muted);
  max-width: none;
}

/* Full-width CTA band */
.dl-cta-band {
  background: linear-gradient(135deg, var(--dl-color-navy-900) 0%, var(--dl-color-navy-700) 100%);
  padding: 72px 0;
  text-align: center;
}

.dl-cta-band__inner {
  max-width: var(--dl-container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.dl-cta-band h2 {
  color: var(--dl-color-white);
  font-size: var(--dl-text-3xl);
  margin-bottom: 0.75rem;
}

.dl-cta-band p {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--dl-text-xl);
  margin: 0 auto 2rem;
  max-width: 600px;
}

/* Sidebar / widget CTA */
.dl-cta-sidebar {
  background-color: var(--dl-color-navy-900);
  border-radius: var(--dl-radius-md);
  padding: 1.75rem;
  text-align: center;
}

.dl-cta-sidebar h3 {
  color: var(--dl-color-white);
  font-size: var(--dl-text-xl);
  margin-bottom: 0.75rem;
}

.dl-cta-sidebar p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--dl-text-sm);
  margin-bottom: 1.25rem;
  max-width: none;
}


/* ============================================================
   11. FAQ ACCORDION
   ============================================================ */

.dl-faq { border-top: 1px solid var(--dl-color-border); }

.dl-faq__item { border-bottom: 1px solid var(--dl-color-border); }

.dl-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--dl-font-heading);
  font-size: var(--dl-text-lg);
  font-weight: 700;
  color: var(--dl-color-navy-900);
  gap: 1rem;
  transition: color 0.2s ease;
}

.dl-faq__question:hover { color: var(--dl-color-teal); }

.dl-faq__question:focus-visible {
  outline: 3px solid var(--dl-color-teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.dl-faq__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--dl-color-carolina-mist);
  color: var(--dl-color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.25s ease;
  user-select: none;
}

.dl-faq__item.is-open .dl-faq__icon {
  background-color: var(--dl-color-teal);
  color: var(--dl-color-white);
  transform: rotate(45deg);
}

.dl-faq__answer {
  display: none;
  padding: 0 0 1.5rem;
  font-size: var(--dl-text-base);
  line-height: 1.7;
  color: var(--dl-color-text);
}

.dl-faq__item.is-open .dl-faq__answer { display: block; }


/* ============================================================
   12. PROCESS STEPS
   ============================================================ */

.dl-process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.dl-process-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

/* Connector line between steps */
.dl-process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(100% + 0.75rem);
  width: calc(100% - 0.25rem);
  height: 2px;
  background: linear-gradient(to right, var(--dl-color-teal), var(--dl-color-carolina-mist));
}

.dl-process-step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--dl-color-teal);
  color: var(--dl-color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dl-font-heading);
  font-size: var(--dl-text-xl);
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(47, 111, 115, 0.35);
}

.dl-section--navy .dl-process-step__num {
  background-color: var(--dl-color-gold);
  color: var(--dl-color-navy-900);
}

.dl-process-step h3 {
  font-size: var(--dl-text-xl);
  margin-bottom: 0.375rem;
}

.dl-process-step p {
  font-size: var(--dl-text-base);
  color: var(--dl-color-muted);
  margin: 0;
  max-width: none;
}

.dl-section--navy .dl-process-step p { color: rgba(255,255,255,0.78); }


/* ============================================================
   13. STICKY MOBILE CTA BAR
   ============================================================ */

.dl-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--dl-color-navy-900);
  border-top: 2px solid var(--dl-color-gold);
  padding: 0.625rem 0.875rem;
  box-shadow: 0 -4px 20px rgba(23, 35, 63, 0.3);
}

.dl-mobile-cta__inner {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
  max-width: 480px;
  margin: 0 auto;
}

.dl-mobile-cta__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.5rem 0.5rem;
  border-radius: var(--dl-radius-sm);
  font-family: var(--dl-font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  gap: 0.125rem;
  transition: background-color 0.2s ease;
  color: var(--dl-color-white);
  line-height: 1.2;
}

.dl-mobile-cta__btn:hover { text-decoration: none; color: var(--dl-color-white); }

.dl-mobile-cta__btn--schedule {
  background-color: var(--dl-color-teal);
  flex: 2;
}

.dl-mobile-cta__btn--schedule:hover { background-color: #236063; }

.dl-mobile-cta__btn--call,
.dl-mobile-cta__btn--locations {
  background-color: rgba(255, 255, 255, 0.1);
}

.dl-mobile-cta__btn--call:hover,
.dl-mobile-cta__btn--locations:hover { background-color: rgba(255, 255, 255, 0.18); }

.dl-mobile-cta__icon {
  font-size: 1.1rem;
  line-height: 1;
  display: block;
}

.dl-mobile-cta__label {
  font-size: 0.6875rem;
  display: block;
  white-space: nowrap;
}


/* ============================================================
   14. CHAPTER COMPARISON TABLE
   ============================================================ */

.dl-comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--dl-radius-md);
  box-shadow: var(--dl-shadow-soft);
  -webkit-overflow-scrolling: touch;
}

.dl-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  font-size: var(--dl-text-base);
}

.dl-comparison-table thead th {
  font-family: var(--dl-font-heading);
  font-weight: 700;
  padding: 1rem 1.25rem;
  text-align: left;
  color: var(--dl-color-white);
}

.dl-comparison-table thead th:first-child {
  background-color: var(--dl-color-navy-900);
  border-radius: var(--dl-radius-md) 0 0 0;
}

.dl-comparison-table thead th:nth-child(2) {
  background-color: var(--dl-color-teal);
}

.dl-comparison-table thead th:last-child {
  background-color: var(--dl-color-navy-700);
  border-radius: 0 var(--dl-radius-md) 0 0;
}

.dl-comparison-table tbody td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--dl-color-border);
  vertical-align: top;
  line-height: 1.55;
}

.dl-comparison-table tbody tr:nth-child(even) td {
  background-color: var(--dl-color-ivory);
}

.dl-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.dl-comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--dl-color-navy-900);
  white-space: nowrap;
}


/* ============================================================
   15. SECTION HEADINGS & DIVIDERS
   ============================================================ */

.dl-section-heading { margin-bottom: 3rem; }

.dl-section-heading h2 { margin-bottom: 0.625rem; }

.dl-section-heading p {
  font-size: var(--dl-text-xl);
  color: var(--dl-color-muted);
  line-height: 1.6;
  margin: 0;
}

.dl-section-heading--center { text-align: center; }

.dl-section-heading--center p {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

/* Gold accent divider */
.dl-gold-divider {
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--dl-color-gold);
  margin: 0.875rem 0 0;
  border-radius: var(--dl-radius-pill);
}

.dl-section-heading--center .dl-gold-divider {
  margin-left: auto;
  margin-right: auto;
}

/* Inverted headings (navy backgrounds) */
.dl-section--navy .dl-section-heading p { color: rgba(255,255,255,0.75); }


/* ============================================================
   16. BADGES & LABELS
   ============================================================ */

.dl-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.875rem;
  border-radius: var(--dl-radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--dl-font-heading);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.dl-badge--teal {
  background-color: var(--dl-color-carolina-mist);
  color: var(--dl-color-teal);
  border: 1px solid rgba(47, 111, 115, 0.3);
}

.dl-badge--gold {
  background-color: #FEF9EC;
  color: #92700A;
  border: 1px solid rgba(201, 162, 74, 0.4);
}

.dl-badge--navy {
  background-color: var(--dl-color-navy-900);
  color: var(--dl-color-white);
}

.dl-badge--ivory {
  background-color: var(--dl-color-ivory);
  color: var(--dl-color-navy-900);
  border: 1px solid var(--dl-color-border);
}


/* ============================================================
   17. RESPONSIVE
   ============================================================ */

/* --- Tablet (600px – 1024px) --- */
@media (min-width: 600px) and (max-width: 1024px) {
  .dl-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .dl-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .dl-grid--2-1 { grid-template-columns: 1fr; }
  .dl-grid--1-2 { grid-template-columns: 1fr; }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
  body {
    font-size: var(--dl-text-base);
    padding-bottom: 80px; /* room for sticky CTA bar */
  }

  h1 { font-size: var(--dl-text-3xl); }
  h2 { font-size: var(--dl-text-2xl); }
  h3 { font-size: var(--dl-text-xl); }

  .dl-section {
    padding-top: var(--dl-section-padding-mobile);
    padding-bottom: var(--dl-section-padding-mobile);
  }

  .dl-grid--2,
  .dl-grid--3,
  .dl-grid--4,
  .dl-grid--2-1,
  .dl-grid--1-2 {
    grid-template-columns: 1fr;
  }

  .dl-hero {
    padding: 52px 0 44px;
  }

  .dl-hero h1 {
    font-size: 2.125rem;
    line-height: 1.18;
  }

  .dl-hero__sub {
    font-size: var(--dl-text-lg);
  }

  .dl-hero__proof {
    gap: 0.875rem;
    padding-top: 1.5rem;
  }

  .dl-trust-bar__inner {
    gap: 0.875rem 1.5rem;
    justify-content: flex-start;
  }

  .dl-trust-bar__divider { display: none; }

  .dl-btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .dl-btn-group .dl-btn {
    width: 100%;
    justify-content: center;
  }

  .dl-cta-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .dl-process-steps {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .dl-process-step::after { display: none; }

  .dl-process-step {
    flex-direction: row;
    align-items: flex-start;
  }

  .dl-process-step__num { flex-shrink: 0; }

  .dl-section-heading { margin-bottom: 2rem; }

  .dl-section-heading p { font-size: var(--dl-text-lg); }

  /* Show sticky mobile CTA bar */
  .dl-mobile-cta { display: flex; }
}

/* --- Desktop: ensure process connector lines show --- */
@media (min-width: 769px) {
  .dl-card-grid.dl-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   18. Front-Page Overrides
   ============================================================ */

/* Hide footer widget area on the homepage — our template has its own CTA */
.home .inside-footer-widgets { display: none; }
