/* ============================================================
 * CallCuz.com — Design Tokens (S37 spec)
 * Locked May 13, 2026 per S36 user approval
 * SINGLE SOURCE OF TRUTH for typography, spacing, color
 * ============================================================
 *
 * Imported by every S37+ page as:
 *   <link rel="stylesheet" href="/design-tokens.css">
 *
 * Token changes here propagate sitewide. Never duplicate these
 * values inline — always reference var(--token-name).
 */

:root {
  /* S60: Force light color scheme site-wide. Prevents iOS Safari from
     auto-inverting cream/dark-text body sections into washed-out powder-blue
     under user's iPhone dark mode. We're a light-themed brand by design. */
  color-scheme: light;

  /* -------- COLORS -------- */
  --navy: #0F1B3D;          /* primary dark — hero bg, headlines on cream, footer */
  --cream: #FAFAF7;         /* primary light — body bg */
  --blue: #0066FF;          /* accent — CTAs, links, J1D mark */
  --ink: #0A0F1E;           /* near-black — body text */
  --gray-900: #1A1D24;      /* charcoal — secondary text on dark */
  --gray-700: #374151;      /* mid text */
  --gray-500: #6B7280;      /* muted text */
  --gray-300: #D1D5DB;      /* borders / dividers */
  --gray-100: #F3F4F6;      /* alt body bg (cool-gray section) */
  --white: #FFFFFF;
  --red-cta: #EF4444;       /* high-urgency CTAs (CVA banner) */

  /* Per recent_updates: hero rebuild approved — deep navy #0F1B3D leading */
  --hero-bg: var(--navy);

  /* -------- TYPOGRAPHY -------- */
  --font-serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Anton', 'Impact', 'Arial Black', sans-serif;  /* J1D mark only */

  /* Type scale (S36-locked, mobile-first w/ desktop via clamp) */
  --h1-hero: clamp(48px, 7vw, 96px);      /* per S27 recent-updates hero rebuild */
  --h1: clamp(36px, 4.5vw, 56px);
  --h2: clamp(28px, 3.5vw, 44px);
  --h3: clamp(22px, 2.4vw, 32px);
  --h4: 20px;
  --body: 18px;                            /* desktop body */
  --body-mobile: 16px;
  --small: 14px;
  --xsmall: 12px;
  --tagline: 14px;                         /* "PERSONAL INJURY LAWYERS · MADISON LAW FIRM PLLC" */
  --tagline-mobile: 12px;
  --tagline-tracking: 0.12em;

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 900;

  /* Line heights */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* -------- SPACING -------- */
  --content-max: 1200px;                   /* S36-locked content width */
  --content-pad-mobile: 20px;
  --content-pad-tablet: 32px;
  --content-pad-desktop: 48px;
  --section-pad: 96px;                     /* desktop section padding */
  --section-pad-mobile: 64px;

  /* -------- RADII -------- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* -------- SHADOWS -------- */
  --shadow-sm: 0 1px 2px rgba(15, 27, 61, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 27, 61, 0.10);
  --shadow-lg: 0 12px 40px rgba(15, 27, 61, 0.14);

  /* -------- BREAKPOINTS (reference values, used in @media) -------- */
  /* mobile: <640px | tablet: 640–1024px | desktop: ≥1024px */
}

/* ============================================================
 * BASE RESET / NORMALIZATION
 * ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--body-mobile);
  line-height: var(--leading-normal);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 1024px) {
  body { font-size: var(--body); }
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: var(--weight-black); line-height: var(--leading-tight); margin: 0 0 0.6em; color: var(--ink); }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); font-family: var(--font-sans); font-weight: var(--weight-bold); }
p { margin: 0 0 1em; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ============================================================
 * LAYOUT PRIMITIVES
 * ============================================================ */

.cc-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad-mobile);
}
@media (min-width: 640px) { .cc-container { padding: 0 var(--content-pad-tablet); } }
@media (min-width: 1024px) { .cc-container { padding: 0 var(--content-pad-desktop); } }

.cc-section {
  padding-top: var(--section-pad-mobile);
  padding-bottom: var(--section-pad-mobile);
}
@media (min-width: 1024px) {
  .cc-section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
}

/* Alt section bg per recent_updates: body cool-gray #F3F4F6 → cream #FAFAF7 */
.cc-section--alt { background: var(--gray-100); }
.cc-section--dark { background: var(--navy); color: var(--cream); }
.cc-section--dark h1, .cc-section--dark h2, .cc-section--dark h3 { color: var(--white); }

/* ============================================================
 * BUTTONS
 * ============================================================ */

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.cc-btn:hover { transform: translateY(-1px); text-decoration: none; }
.cc-btn--primary { background: var(--blue); color: var(--white); }
.cc-btn--primary:hover { background: #0052CC; box-shadow: var(--shadow-md); }
.cc-btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.cc-btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.cc-btn--phone { background: var(--white); color: var(--navy); }
.cc-btn--phone:hover { background: var(--cream); box-shadow: var(--shadow-md); }
.cc-btn--lg { padding: 18px 36px; font-size: 18px; }

/* ============================================================
 * SVG PHONE GLYPH (replaces emoji per S36 ban on chrome emojis)
 * ============================================================ */

.cc-phone-glyph {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* ============================================================
 * HEADER / NAV
 * ============================================================ */

.cc-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
}
.cc-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 12px var(--content-pad-mobile);
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (min-width: 1024px) {
  .cc-header-inner { padding: 16px var(--content-pad-desktop); gap: 24px; }
}

.cc-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  flex-shrink: 0;
}
.cc-brand:hover { text-decoration: none; }
.cc-brand-lockup {
  width: clamp(96px, 14vw, 140px);
  height: auto;
}
.cc-tagline {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: var(--tagline-tracking);
  text-transform: uppercase;
  color: #0A0F1E;
  margin-top: 4px;
  line-height: 1;
}
@media (min-width: 1024px) {
  .cc-tagline { font-size: 14px; }
}

.cc-nav-primary {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
  flex: 1;
}
.cc-nav-primary > li > a {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: var(--ink);
  text-decoration: none;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cc-nav-primary > li > a:hover { color: var(--blue); }
@media (min-width: 1024px) {
  .cc-nav-primary { display: flex; }
}

.cc-nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.cc-nav-phone {
  display: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--weight-bold);
  color: var(--navy);
  text-decoration: none;
  align-items: center;
  gap: 6px;
}
.cc-nav-phone:hover { color: var(--blue); text-decoration: none; }
@media (min-width: 768px) { .cc-nav-phone { display: inline-flex; } }

/* Mobile menu toggle */
.cc-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto;
  justify-content: center;
}
.cc-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
@media (min-width: 1024px) { .cc-menu-toggle { display: none; } }

/* ============================================================
 * MEGA-MENU (Practice Areas)
 * ============================================================ */

.cc-megamenu-trigger { position: relative; }
.cc-megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 24px;
  min-width: 560px;
  display: none;
  z-index: 110;
}
.cc-megamenu-trigger:hover .cc-megamenu,
.cc-megamenu-trigger:focus-within .cc-megamenu { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.cc-megamenu h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.cc-megamenu ul { list-style: none; padding: 0; margin: 0; }
.cc-megamenu li { margin-bottom: 8px; }
.cc-megamenu a {
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--ink);
  text-decoration: none;
}
.cc-megamenu a:hover { color: var(--blue); }
.cc-megamenu-specialty {
  grid-column: 1 / -1;
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================================
 * HERO (5-field paired-columns layout, S36-locked)
 * ============================================================ */

.cc-hero {
  background: var(--hero-bg);
  color: var(--cream);
  padding: 64px 0;
}
@media (min-width: 1024px) { .cc-hero { padding: 96px 0; } }

.cc-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
}
@media (min-width: 1024px) {
  .cc-hero-grid {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    justify-content: center;
  }
}

.cc-hero-copy {
  flex: 1 1 520px;
  max-width: 620px;
}
.cc-hero-title {
  font-family: var(--font-serif);
  font-size: var(--h1-hero);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  color: var(--white);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.cc-hero-sub {
  font-size: 18px;
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: rgba(250,250,247,0.85);
  margin: 0 0 28px;
}
@media (min-width: 1024px) { .cc-hero-sub { font-size: 20px; } }

.cc-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0,102,255,0.12);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.cc-hero-form {
  flex: 0 1 460px;
  background: var(--white);
  color: var(--ink);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
}
.cc-hero-form h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: var(--weight-bold);
  color: var(--ink);
  margin-bottom: 6px;
}
.cc-hero-form-sub {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 18px;
}
.cc-hero-form label {
  display: block;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--gray-700);
  margin-bottom: 6px;
  margin-top: 12px;
}
.cc-hero-form input,
.cc-hero-form select,
.cc-hero-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--cream);
  font-family: var(--font-sans);
}
.cc-hero-form textarea { min-height: 90px; resize: vertical; }
.cc-hero-form input:focus,
.cc-hero-form select:focus,
.cc-hero-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
}
.cc-hero-form button {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: var(--weight-bold);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.cc-hero-form button:hover { background: #0052CC; }
.cc-hero-form-disclaimer {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 14px;
  line-height: var(--leading-snug);
}

/* ============================================================
 * CVA BANNER (S33/34 locked banner — kept above nav)
 * ============================================================ */

.cc-cva-banner {
  background: var(--red-cta);
  color: var(--white);
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  font-family: var(--font-sans);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cc-cva-banner a {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: var(--weight-bold);
  text-decoration: none;
  white-space: nowrap;
}
.cc-cva-banner a:hover { background: rgba(255,255,255,0.28); text-decoration: none; }

/* ============================================================
 * FOOTER
 * ============================================================ */

.cc-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  font-family: var(--font-sans);
}
.cc-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) { .cc-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cc-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }

.cc-footer-brand h4 { color: var(--white); font-family: var(--font-serif); font-size: 22px; margin-bottom: 8px; }
.cc-footer-brand p { font-size: 13px; line-height: var(--leading-snug); color: rgba(255,255,255,0.6); }
.cc-footer-col h5 {
  font-size: 12px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}
.cc-footer-col ul { list-style: none; padding: 0; margin: 0; }
.cc-footer-col li { margin-bottom: 8px; }
.cc-footer-col a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; }
.cc-footer-col a:hover { color: var(--blue); }

.cc-footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cc-footer-legal { font-size: 12px; color: rgba(255,255,255,0.5); }
.cc-footer-disclaimer { font-size: 11px; line-height: var(--leading-snug); color: rgba(255,255,255,0.4); margin-top: 16px; }

/* ============================================================
 * STICKY MOBILE PHONE+CTA BAR
 * ============================================================ */

.cc-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-300);
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.cc-mobile-cta a { flex: 1; text-align: center; padding: 12px; font-size: 14px; }
.cc-mobile-cta .cc-btn--primary { flex: 1.2; }
@media (min-width: 1024px) { .cc-mobile-cta { display: none; } }
@media (min-width: 1024px) { body { padding-bottom: 0; } }
@media (max-width: 1023px) { body { padding-bottom: 76px; } }

/* ============================================================
 * UTILITY
 * ============================================================ */

.cc-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;
}
.cc-text-center { text-align: center; }
.cc-mt-0 { margin-top: 0; }
.cc-mt-1 { margin-top: 8px; }
.cc-mt-2 { margin-top: 16px; }
.cc-mt-3 { margin-top: 24px; }
.cc-mt-4 { margin-top: 32px; }

/* ============================================================
 * S45 MOBILE FIXES (CRITICAL — site shipped to production with
 * chrome that broke at <1024px viewport, causing horizontal
 * scroll on every page and hidden navigation)
 *
 * Bugs fixed:
 *   1. Tagline overflowed past viewport ("MADISON LAW FIRM PLLC" cut off)
 *   2. Mobile sticky CTA bar was 677px wide on 390px viewport
 *      because .cc-btn flex children had no min-width:0
 *   3. Hamburger menu was positioned off-screen because .cc-brand
 *      had flex-shrink:0 and consumed full viewport
 *   4. Header-inner had no responsive layout for the brand+toggle+CTA row
 * ============================================================ */

@media (max-width: 1023px) {

  /* Brand block must shrink — flex-shrink:0 was the root cause */
  .cc-brand {
    flex-shrink: 1;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  /* Lockup itself capped at sensible mobile width */
  .cc-brand-lockup {
    width: clamp(80px, 22vw, 110px);
    max-width: 100%;
    height: auto;
  }

  /* Tagline: smaller, wraps OR ellipsis — both safer than current overflow */
  .cc-tagline {
    font-size: 12px;
    letter-spacing: 0.06em;
    white-space: normal;
    line-height: 1.2;
    max-width: 100%;
  }

  /* Header inner: allow wrap so hamburger+brand+CTA never collide */
  .cc-header-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px var(--content-pad-mobile);
  }

  /* Nav phone + CTA together as a right-aligned group */
  .cc-nav-cta {
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Hamburger sized + spaced for thumb-tap targets */
  .cc-menu-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 4px;
    margin-left: 4px;
  }

  /* Nav phone link smaller on mobile — was forcing full # display */
  .cc-nav-phone {
    font-size: 14px;
    flex-shrink: 0;
  }

  /* CTA button in nav: hide on very narrow screens, hamburger handles it */
  .cc-nav-cta .cc-btn {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* MOBILE STICKY CTA — the 677px-overflow bug */
  /* Root cause: .cc-btn was inline-flex, flex children need min-width:0
     to shrink below their content-natural width */
  .cc-mobile-cta {
    padding: 8px 12px;
    gap: 6px;
  }
  .cc-mobile-cta a {
    min-width: 0;          /* CRITICAL — lets flex item shrink */
    padding: 12px 8px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cc-mobile-cta .cc-btn--phone .cc-phone-glyph {
    flex-shrink: 0;
  }

  /* When mega-menu is open on mobile, ensure it doesn't overflow */
  .cc-nav-primary.cc-open {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .cc-nav-primary.cc-open .cc-megamenu {
    grid-template-columns: 1fr;
    width: 100%;
    box-sizing: border-box;
  }

  /* Mega-menu inner columns stack on mobile */
  .cc-megamenu {
    grid-template-columns: 1fr !important;
    padding: 12px 0;
    box-shadow: none;
  }
}

/* Very narrow phones (iPhone SE 375px and below): hide the in-nav phone
   and CTA button entirely — sticky mobile CTA at bottom does the job.
   IMPORTANT: keep the hamburger button visible (it's inside .cc-nav-cta
   in the markup, so we hide siblings rather than the container). */
@media (max-width: 480px) {
  .cc-nav-cta { gap: 0; }
  .cc-nav-cta .cc-nav-phone { display: none; }
  .cc-nav-cta .cc-btn--primary { display: none; }
  .cc-menu-toggle { margin-left: auto; }
}

/* Prevent horizontal scroll site-wide (fallback safety net so even if
   a body element overflows, the page doesn't horizontal-scroll) */
html, body { overflow-x: hidden; max-width: 100vw; }

/* S45: Eyebrow emoji ban (carry-forward of S36 chrome-no-emoji rule
   applied to body eyebrow elements that snuck through) */
/* Eyebrow emoji on about page — handled by separate per-page edit if needed */

/* ============================================================
 * S47 MOBILE FIXES — round 2
 *
 * User reported: "site still doesn't render correctly on mobile.
 * Also the menu doesn't work properly"
 *
 * Bugs found:
 *   1. Open mobile menu had z-index:auto + box-shadow:none → page
 *      content showed through behind the menu (visually broken)
 *   2. Megamenu triggers (Practice Areas, About) with href="#" or
 *      direct hrefs — tapping navigates away or does nothing instead
 *      of expanding the dropdown inline (no working touch pattern)
 *   3. Hero on mobile was 1396px tall with 40px gap between copy
 *      and form, creating a giant dead zone the user perceived as
 *      broken layout
 *   4. Section padding 96px 80px was hardcoded — eats 160px of
 *      mobile width, leaving 230px of content area on a 390px screen
 * ============================================================ */

@media (max-width: 1023px) {

  /* (1) MOBILE MENU OVERLAP FIX — solid bg, z-index, shadow, scroll
     S57 P0+P0b: every layout property uses !important to defeat any
     inline <style> overrides from earlier sessions */
  .cc-nav-primary.cc-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 110px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 110px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: var(--white) !important;
    z-index: 1100 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 0 80px !important;
    -webkit-overflow-scrolling: touch;
    gap: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  /* Nav list items: bigger tap targets, clear separators */
  .cc-nav-primary.cc-open > li {
    padding: 0 !important;
    border-bottom: 1px solid var(--gray-100);
  }
  .cc-nav-primary.cc-open > li > a {
    display: block;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: var(--weight-semibold);
    color: var(--ink);
    text-decoration: none;
  }
  .cc-nav-primary.cc-open > li > a:active {
    background: var(--gray-100);
  }

  /* (2) MEGAMENU MOBILE BEHAVIOR — collapsed by default, expand only when
     the parent li has .cc-mega-open (toggled by JS). Old :hover/:focus-within
     was unreliable on touch and `position:static` made it always-visible. */
  .cc-megamenu {
    display: none !important;
    position: static;
    box-shadow: none;
    padding: 0 !important;
    background: var(--gray-100);
  }
  .cc-megamenu-trigger.cc-mega-open .cc-megamenu {
    display: block !important;
    grid-template-columns: 1fr !important;
    padding: 8px 24px 16px !important;
  }
  /* The dropdown caret rotates when open */
  .cc-megamenu-trigger > a .cc-mega-caret,
  .cc-megamenu-trigger > a > span[aria-hidden] {
    display: inline-block;
    transition: transform 0.15s ease;
    margin-left: 6px;
  }
  .cc-megamenu-trigger.cc-mega-open > a > span[aria-hidden] {
    transform: rotate(180deg);
  }
  /* Megamenu inner sections + links — mobile-friendly */
  .cc-megamenu > div {
    padding: 12px 0;
    border-top: 1px solid var(--gray-300);
  }
  .cc-megamenu > div:first-child { border-top: none; }
  .cc-megamenu h4 {
    font-size: 11px;
    color: var(--gray-500);
    margin: 0 0 8px;
    letter-spacing: 0.1em;
  }
  .cc-megamenu ul { padding: 0; }
  .cc-megamenu li { margin: 0; }
  .cc-megamenu a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: var(--ink);
  }

  /* (3) HERO SPACING — was 1396px tall, fix the 40px gap and reduce padding */
  .cc-hero {
    padding: 32px 0 40px !important;
  }
  .cc-hero-grid {
    gap: 24px !important;
  }
  .cc-hero-copy {
    text-align: left;
    align-items: flex-start;
  }
  .cc-hero-title {
    font-size: clamp(32px, 9vw, 48px) !important;
    margin-bottom: 12px !important;
  }
  .cc-hero-sub {
    font-size: 16px !important;
    margin-bottom: 20px !important;
  }
  .cc-hero-eyebrow {
    margin-bottom: 14px !important;
  }
  .cc-hero-form {
    padding: 20px !important;
  }
  .cc-hero-form h3 { font-size: 18px; }

  /* (4) SECTION PADDING — body sections that hardcoded 80px horizontal
     padding (the 0-S45a "legacy markup" pattern). Cap at mobile-safe. */
  section,
  section.cc-section {
    padding-left: var(--content-pad-mobile) !important;
    padding-right: var(--content-pad-mobile) !important;
  }
  section[style*="padding:80px"],
  section[style*="padding: 80px"] {
    padding: 48px var(--content-pad-mobile) !important;
  }
  /* Inline-styled big paddings get tamed */
  [style*="padding:96px 80px"],
  [style*="padding: 96px 80px"] {
    padding: 48px var(--content-pad-mobile) !important;
  }
  [style*="padding:80px 80px"] {
    padding: 40px var(--content-pad-mobile) !important;
  }

  /* CVA banner — make Learn More button more visible */
  .cc-cva-banner a,
  .cva-banner a {
    background: rgba(255,255,255,0.95) !important;
    color: var(--red-cta) !important;
    font-weight: var(--weight-bold) !important;
  }
}

/* (5) MOBILE MEGAMENU TOGGLE JS — inline script appended below */
/* Placed in CSS file as a comment for tracking; actual JS goes in partials. */

/* ============================================================
 * S49 HOMEPAGE MOBILE RENDER FIX
 *
 * User reported (3rd time): "Fix homepage render on mobile"
 *
 * Bug: hero-copy had flex:1 1 520px which forces 520px min height
 * on its main axis. On mobile (column-flex), this created ~180px of
 * dead vertical space INSIDE .cc-hero-copy between its last child
 * (the address line) and the bottom of the flex item. Then the grid
 * gap added 24px more, for a total of ~200px of empty dark blue
 * between the address line and the Free Case Review form. Looked
 * like the page failed to render — exactly the user's complaint.
 *
 * Plus a few visual fixes for sections that looked skeletal after
 * S46 stripped icon emojis with no replacement.
 * ============================================================ */

@media (max-width: 1023px) {

  /* (1) THE BUG — hero-copy must not stretch to 520px on mobile */
  .cc-hero-copy {
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }
  .cc-hero-form {
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }

  /* (2) Make "Ready to talk?" CTA buttons consistent — both should
        be primary-style on dark background, not one white one blue */
  .cc-section--dark .cc-btn--phone {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
  }
  .cc-section--dark .cc-btn--phone:hover {
    background: rgba(255,255,255,0.2);
  }

  /* (3) Cases We Handle / Why Choose — give cards a subtle blue
        accent so they don't look like a wireframe after S46 stripped
        the icon emojis */
  .cc-section--alt > .cc-container > div[style*="grid-template-columns"] > a {
    border-left: 3px solid var(--blue) !important;
    padding-left: 28px !important;
  }
  .cc-section--alt > .cc-container > div[style*="grid-template-columns"] > a:hover {
    border-left-color: var(--navy) !important;
  }

  /* "Why Choose" 4-item grid: same accent treatment */
  .cc-section:not(.cc-section--alt):not(.cc-section--dark) > .cc-container > div[style*="grid-template-columns"]:not(:first-child) > div {
    padding-left: 16px;
    border-left: 2px solid var(--blue);
  }
}

/* ============================================================
 * S50 DESKTOP FIXES
 *
 * User reported:
 *   1. CVA banner overlaps the menu (the header looks cramped because
 *      nav items wrap to 2-3 lines each — gives the feeling of overlap)
 *   2. Logo not on the left (logo IS at x=88, but brand block is 476px
 *      wide because tagline below is long — visual anchor center-shifted)
 *   3. "No fee unless we win" eyebrow pill + nav phone number hard to read
 *      (eyebrow: bright blue on faint blue, fails WCAG; phone: wraps to
 *       3 lines because nav is crammed)
 *   4. Favicon doesn't match the site logo (separate file fix: favicon
 *      .png was corrupt; regenerated from brand mark)
 *
 * Fixes:
 *   - Compress the brand-tagline stack so brand block is ~180px wide
 *     instead of 476px, freeing horizontal space for the nav
 *   - Tighter nav-primary gaps + smaller items on standard desktop sizes
 *   - Nav phone with white-space:nowrap so it doesn't wrap
 *   - Higher-contrast eyebrow pill (white text on solid blue bg)
 * ============================================================ */

@media (min-width: 1024px) {

  /* (1+2) Compress the brand block — make tagline smaller + tighter */
  .cc-tagline {
    font-size: 13px !important;          /* was 12-13px */
    letter-spacing: 0.05em;
    color: #0A0F1E;
    max-width: 200px;                    /* was unbounded; truncates wide tagline */
    line-height: 1.15;
  }

  /* Header padding adequate but not excessive */
  .cc-header-inner {
    padding: 14px 32px !important;
    gap: 32px !important;
  }

  /* Brand stays put — narrower so nav has room */
  .cc-brand {
    flex-shrink: 0;
    max-width: 200px;
  }

  /* (1) Nav items: never wrap, slightly tighter spacing */
  .cc-nav-primary {
    gap: 22px !important;
  }
  .cc-nav-primary > li > a {
    white-space: nowrap;
    font-size: 14px !important;
    padding: 8px 0 !important;
  }

  /* (3) Phone number in nav: never wrap, slightly bigger so it's readable */
  .cc-nav-phone {
    white-space: nowrap;
    font-size: 14px !important;
    color: var(--ink) !important;
    font-weight: var(--weight-bold);
  }
  .cc-nav-phone:hover { color: var(--blue) !important; }

  /* Free Case Review CTA button: same line, never wraps */
  .cc-nav-cta .cc-btn--primary {
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 14px;
  }
}

/* On standard laptop sizes (1024-1280px), make brand even narrower so
   nav definitely has room without wrapping */
@media (min-width: 1024px) and (max-width: 1366px) {
  .cc-brand-lockup {
    width: clamp(96px, 11vw, 120px) !important;
  }
  .cc-tagline {
    font-size: 12px !important;
    max-width: 170px;
  }
  .cc-nav-primary { gap: 18px !important; }
  .cc-nav-primary > li > a { font-size: 13px !important; }
  .cc-nav-phone { font-size: 13px !important; }
}

/* (3) HIGH-CONTRAST EYEBROW PILL — works on dark hero AND on light section bg */
.cc-hero-eyebrow {
  background: var(--blue) !important;
  color: var(--white) !important;
  border: 1px solid var(--blue);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
}

/* On large viewports (>1440px) the tagline can fit on a single line — give it room */
@media (min-width: 1440px) {
  .cc-tagline {
    max-width: 320px !important;
    font-size: 14px !important;
  }
  .cc-brand {
    max-width: 340px !important;
  }
}

/* ── EMPTY ICON SUPPRESSION (S55.7 P15) ───────────────────────────────────
   These icon container divs were originally holding emoji characters that
   no longer render reliably across browsers (font-tofu boxes). Auto-hide
   any icon container with no content so the cards render cleanly. Any
   icon container that gets content back will display normally again. */
.ct-icon:empty,
.ph-icon:empty,
.wico:empty,
.opt-icon:empty,
.handle-icon:empty,
.tenant-icon:empty,
.tactic-icon:empty,
.cc-icon:empty,
.wc-icon:empty,
.claim-icon:empty,
.damage-icon:empty,
.htype-icon:empty,
.case-icon:empty,
.sc-icon:empty,
.dc-icon:empty,
.fd-icon:empty,
.why-icon:empty,
.cva-inst-icon:empty,
.ic-icon:empty,
.right-icon:empty,
.inst-icon:empty,
.gc-icon:empty,
.step-icon:empty,
.rec-icon:empty,
.warn-icon:empty,
.qc-icon:empty,
.practice-icon:empty,
.pain-item-icon:empty,
.photo-icon:empty,
.db-ico:empty,
.icon:empty {
  display: none !important;
}
