/* ============================================================
   PARAGON PARALEGAL — Main Stylesheet
   Color Palette:
     Primary   : #0a0a47  (dark navy)
     Dark Navy : #05053c
     Footer BG : #000036
     Accent    : #2563eb
     Off-white : #f9f9f9
     White     : #ffffff
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  --navy:     #0a0a47;
  --navy-dk:  #05053c;
  --footer:   #000036;
  --gold:     #2563eb;
  --gold-lt:  #3b82f6;
  --off-white:#f9f9f9;
  --white:    #ffffff;
  --text:     #1a1a2e;
  --text-lt:  #555577;
  --border:   #dde0ef;
  --shadow:   rgba(10,10,71,0.10);
  --radius:   10px;
  --radius-lg:18px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif:'Playfair Display', Georgia, serif;
}

:root {
  --navy:     #0a0a47;
  --navy-dk:  #05053c;
  --footer:   #000036;
  --gold:     #2563eb;
  --gold-lt:  #3b82f6;
  --off-white:#f9f9f9;
  --white:    #ffffff;
  --text:     #1a1a2e;
  --text-lt:  #555577;
  --border:   #dde0ef;
  --shadow:   rgba(10,10,71,0.10);
  --radius:   10px;
  --radius-lg:18px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif:'Playfair Display', Georgia, serif;
}

:root {
  --navy:     #0a0a47;
  --navy-dk:  #05053c;
  --footer:   #000036;
  --gold:     #2563eb;
  --gold-lt:  #3b82f6;
  --off-white:#f9f9f9;
  --white:    #ffffff;
  --text:     #1a1a2e;
  --text-lt:  #555577;
  --border:   #dde0ef;
  --shadow:   rgba(10,10,71,0.10);
  --radius:   10px;
  --radius-lg:18px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif:'Playfair Display', Georgia, serif;
}

:root {
  --google-blue: #4285f4;
  --google-red: #ea4335;
  --google-yellow: #fbbc05;
  --google-green: #34a853;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8fb8ff;
  outline-offset: 4px;
}

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem,5vw,3.5rem); }
h2 { font-size: clamp(1.6rem,3.5vw,2.5rem); }
h3 { font-size: clamp(1.2rem,2.5vw,1.6rem); }
h4 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; }
p  { color: var(--text-lt); line-height: 1.8; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--wide { max-width: 1400px; }

section { padding: 5rem 0; }
section.compact { padding: 3rem 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

/* Homepage services layout */
#services-grid { grid-template-columns: repeat(6, 1fr); }
#services-grid .service-card { grid-column: span 2; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-lt);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dk);
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px var(--shadow);
  transition: all var(--transition);
}

.site-header.scrolled {
  /* Activated by `js/main.js` once the user scrolls a bit */
  box-shadow: 0 6px 28px rgba(10,10,71,0.18);
}

.header-top {
  background: var(--navy);
  padding: 0.5rem 0;
}
.header-top .container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 0;
}
.header-top-item {
  color: rgba(255,255,255,0.82);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  transition: color var(--transition);
  white-space: nowrap;
  text-decoration: none;
  padding: 0 0.5rem;
}
a.header-top-item:hover { color: var(--gold); }
.header-top-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.header-top-hours {
  color: var(--white);
  font-weight: 600;
}
.header-top-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.navbar {
  padding: 0.85rem 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-logo img {
  height: 72px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text .brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}
.nav-logo-text .brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(37,99,235,0.08);
}
.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(10,10,71,0.15);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 0.6rem;
  z-index: 100;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.875rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.dropdown a:hover {
  background: rgba(10,10,71,0.05);
  color: var(--gold);
  padding-left: 1.2rem;
}

.nav-cta { margin-left: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile nav */
@media (max-width: 1000px) {
  .nav-toggle { display: flex; align-items: center; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -10px 0 40px var(--shadow);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 0.7rem 0.5rem; }
  .nav-item.open > .nav-link {
    color: var(--gold);
    background: rgba(37,99,235,0.08);
  }
  .nav-item.open > .nav-link svg { transform: rotate(180deg); }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--gold);
    border-radius: 0;
    margin-left: 1rem;
    margin-right: 0;
    padding: 0.25rem 0;
    min-width: 0;
    width: calc(100% - 1rem);
    display: none;
  }
  .nav-item.open .dropdown { display: block; }
  /* Neutralize desktop :hover rule (higher specificity) so touch doesn't shift dropdown left */
  .nav-item:hover .dropdown { transform: none; opacity: 1; visibility: visible; }
  .dropdown a { white-space: normal; word-break: break-word; padding-left: 0.9rem; }
  .dropdown a:hover { padding-left: 0.9rem; background: none; color: var(--navy); }
  .nav-cta { width: 100%; margin-left: 0; margin-top: 1rem; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    display: none;
  }
  .nav-overlay.open { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 50%, #1a1a6e 100%);
  color: var(--white);
  padding: 7rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,235,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(255,255,255,0.04) 0%, transparent 60%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  min-width: 0;
}
.hero-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.4);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero-title {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-title span { color: #ffffff; }
.hero-title-line {
  display: block;
  white-space: nowrap;
}
.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}
/* ---------- Hero Image (right column) ---------- */
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-self: stretch;
  min-height: 480px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius-lg);
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,5,60,0.08) 0%,
    rgba(5,5,60,0.45) 100%
  );
  border-radius: var(--radius-lg);
  pointer-events: none;
}
/* Floating stat card — bottom left of image */
.hero-img-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.hero-img-card-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-img-card-icon svg { width: 20px; height: 20px; color: var(--gold); }
.hero-img-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.hero-img-card span {
  font-size: 0.75rem;
  color: var(--text-lt);
}
/* Floating badge — top right of image */
.hero-img-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--gold);
  color: var(--white);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}
.hero-img-badge svg { width: 14px; height: 14px; }

/* Homepage hero: full-width custom image with subtle color overlay */
body[data-page="home"] .hero {
  background:
    linear-gradient(115deg, rgba(5,5,60,0.62) 0%, rgba(10,10,71,0.50) 55%, rgba(10,10,71,0.42) 100%),
    url("../images/landing-hero-lawyer-q98.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 520px;
  padding: 6.5rem 0 5.75rem;
}
body[data-page="home"] .hero-title,
body[data-page="home"] .hero-desc,
body[data-page="home"] .hero-actions {
  animation: homeHeroRise 0.52s cubic-bezier(0.2,0.8,0.2,1) both;
  will-change: opacity, transform, filter;
}
body[data-page="home"] .hero-desc {
  animation-delay: 0.08s;
}
body[data-page="home"] .hero-actions {
  animation-delay: 0.16s;
}
@keyframes homeHeroRise {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}
body[data-page="home"] .hero::before {
  /* Keep a light texture layer on top, but much subtler */
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,235,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(255,255,255,0.03) 0%, transparent 60%);
}
body[data-page="home"] .hero .container {
  grid-template-columns: 1fr;
  max-width: 1080px;
}
body[data-page="home"] .hero-content {
  max-width: 720px;
}
body[data-page="home"] .hero-actions {
  margin-top: 0.9rem;
}
body[data-page="home"] .hero-badge {
  background: rgba(5,5,60,0.58);
  border-color: rgba(255,255,255,0.42);
  color: #ffffff;
}
body[data-page="home"] .hero-badge svg {
  color: #93c5fd;
}
body[data-page="home"] .hero-image-wrap {
  display: none;
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}
.section-header.left {
  text-align: left;
  margin-left: 0;
}

/* ---------- Services Grid ---------- */
.services-section { background: var(--off-white); }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  box-shadow: 0 20px 50px var(--shadow);
  transform: translateY(-6px);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(10,10,71,0.08), rgba(10,10,71,0.04));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--navy), var(--navy-dk));
}
.service-icon svg {
  width: 26px; height: 26px;
  color: var(--navy);
  transition: color var(--transition);
}
.service-card:hover .service-icon svg { color: var(--white); }
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition);
}
.service-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.service-link:hover { color: var(--gold); }
.service-link:hover svg { transform: translateX(4px); }
.service-card .btn-outline {
  color: var(--navy);
  border-color: rgba(10,10,71,0.18);
  background: rgba(255,255,255,0.76);
}
.service-card .btn-outline:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ---------- Section Divider ---------- */
.section-divider {
  line-height: 0;
  background: var(--white);
  margin-bottom: -1px;
}
.section-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ---------- About Section (homepage) ---------- */
.about-section { background: var(--off-white); }
.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-home-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.about-home-text h2 { margin-bottom: 1.25rem; }
.about-home-text p {
  color: #555;
  line-height: 1.75;
  margin-bottom: 1rem;
}
@media (max-width: 1024px) {
  .about-home-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-home-img { order: -1; }
}

/* ---------- Why Choose Us ---------- */
.why-section { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}
.why-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  font-weight: 700;
}
.why-image-badge .num {
  font-size: 2rem;
  font-family: var(--font-serif);
  line-height: 1;
}
.why-image-badge .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.why-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.why-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem;
  border: 1px solid rgba(10,10,71,0.09);
  border-radius: 8px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 14px 34px rgba(10,10,71,0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.why-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.22);
  box-shadow: 0 20px 46px rgba(10,10,71,0.1);
}
.why-feature-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-feature-icon svg { width: 22px; height: 22px; color: var(--gold); }
.why-feature h4 { margin-bottom: 0.25rem; }
.why-feature p { font-size: 0.875rem; }

/* ---------- Stats Section ---------- */
.stats-section {
  background: var(--off-white);
  padding: 5rem 0;
}
.stats-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}
.stats-item {
  display: flex;
  flex-direction: column;
}
.stats-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stats-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.5rem;
}
.stats-text h2 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.stats-text p {
  color: #555;
  line-height: 1.75;
  font-size: 0.95rem;
}

/* ---------- Google Reviews ---------- */
.google-reviews-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
  padding: 5rem 0;
  overflow: hidden;
}
.google-reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.google-reviews-title {
  max-width: 680px;
}
.google-reviews-title h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--navy);
  margin-bottom: 0.8rem;
  line-height: 1.08;
}
.google-reviews-title p {
  max-width: 620px;
  color: var(--text-lt);
  font-size: 1rem;
  line-height: 1.75;
}
.google-reviews-badge {
  min-width: 270px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(66,133,244,0.22);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(66,133,244,0.12);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.google-reviews-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(66,133,244,0.42);
  box-shadow: 0 24px 58px rgba(66,133,244,0.16);
}
.google-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.google-mark svg {
  width: 24px;
  height: 24px;
}
.google-reviews-score {
  color: var(--navy);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}
.google-reviews-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.google-reviews-meta strong {
  color: var(--navy);
  font-size: 0.92rem;
}
.google-reviews-meta small {
  color: var(--text-lt);
  font-size: 0.78rem;
}
.google-reviews-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0.15rem 1.15rem;
  scroll-padding-inline: 0.15rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.google-reviews-grid::-webkit-scrollbar {
  height: 10px;
}
.google-reviews-grid::-webkit-scrollbar-track {
  background: #eef2ff;
  border-radius: 999px;
}
.google-reviews-grid::-webkit-scrollbar-thumb {
  background: var(--navy);
  border-radius: 999px;
}
.google-reviews-grid::-webkit-scrollbar-thumb:hover {
  background: var(--navy-dk);
}
.google-review-card {
  flex: 0 0 360px;
  width: 360px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid rgba(66,133,244,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 42px rgba(66,133,244,0.08);
  scroll-snap-align: start;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.google-review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(66,133,244,0.34);
  box-shadow: 0 24px 56px rgba(66,133,244,0.14);
}
.review-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.review-avatar {
  width: 46px;
  height: 46px;
  border: 3px solid transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    conic-gradient(from -40deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green), var(--google-blue)) border-box;
  color: var(--google-blue);
  font-weight: 800;
}
.review-author {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}
.review-date {
  display: block;
  margin-top: 0.18rem;
  color: var(--text-lt);
  font-size: 0.78rem;
  font-weight: 500;
}
.review-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: var(--google-yellow);
  font-weight: 800;
}
.review-star {
  width: 12px;
  height: 12px;
  clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
  background: currentColor;
}
.review-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0;
}
.google-reviews-empty {
  flex: 0 0 min(100%, 560px);
  padding: 2rem;
  border: 1px dashed rgba(37,99,235,0.3);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-lt);
  text-align: center;
}
.skeleton {
  display: block;
  overflow: hidden;
  position: relative;
  background: #e9edfb;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: review-skeleton 1.4s infinite;
}
.review-line.skeleton {
  width: 62%;
  height: 16px;
  border-radius: 999px;
}
.review-copy.skeleton {
  width: 100%;
  height: 15px;
  border-radius: 999px;
  margin-top: 0.8rem;
}
.review-copy.short.skeleton {
  width: 72%;
}
@keyframes review-skeleton {
  100% { transform: translateX(100%); }
}

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--off-white); overflow: hidden; }
.testimonials-track-wrap { position: relative; }
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  flex: 0 0 calc(33.333% - 1rem);
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 16px 44px var(--shadow);
  transform: translateY(-4px);
}
.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.testimonial-stars svg { width: 18px; height: 18px; }
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-dk));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-author-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.testimonial-author-desc { font-size: 0.78rem; color: var(--text-lt); }
.testimonial-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.testimonial-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all var(--transition);
}
.testimonial-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.testimonial-btn svg { width: 18px; height: 18px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(140deg, #0a0f4a 0%, #11186a 46%, #1a2b9a 100%);
  padding: 5.25rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 42px rgba(0, 0, 36, 0.35);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at -10% 50%, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 12px),
    radial-gradient(circle at 110% 52%, rgba(255, 255, 255, 0.24) 0 2px, transparent 2px 12px),
    radial-gradient(ellipse 70% 82% at 50% 35%, rgba(80, 131, 255, 0.2) 0%, transparent 66%),
    linear-gradient(0deg, rgba(3, 6, 35, 0.22), rgba(3, 6, 35, 0.22));
  background-size: 210px 100%, 210px 100%, 100% 100%, 100% 100%;
  background-position: left center, right center, center, center;
  background-repeat: no-repeat;
}
.cta-banner::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -44px;
  width: min(560px, 86vw);
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(94, 146, 255, 0.3) 0%, rgba(94, 146, 255, 0) 70%);
  pointer-events: none;
}
.cta-banner .container {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.cta-banner .section-label {
  color: #dce8ff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 0.12em;
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.18;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.cta-banner p {
  max-width: 680px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  line-height: 1.72;
}
.cta-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-banner .btn {
  min-height: 52px;
  box-shadow: 0 12px 28px rgba(5, 8, 42, 0.24);
}
.cta-banner .btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #edf2ff 100%);
  color: #0b1359;
  border-color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}
.cta-banner .btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(4, 7, 38, 0.32);
}
.cta-banner .btn-outline {
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}
.cta-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}

/* ---------- Contact Strip ---------- */
.contact-strip {
  background: var(--navy-dk);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.contact-strip-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  color: var(--white);
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.contact-strip-card:last-child { border-right: none; }
.contact-strip-card:hover:not(.no-link) { background: rgba(255,255,255,0.05); }
.csc-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: rgba(37,99,235,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.csc-icon svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.csc-text { display: flex; flex-direction: column; min-width: 0; }
.csc-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.15rem;
  white-space: nowrap;
}
.csc-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Contact Section ---------- */
.contact-section { background: var(--off-white); padding: 5rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2.5rem;
  align-items: start;
}

/* Info Card */
.contact-info-card {
  background: linear-gradient(150deg, var(--navy-dk) 0%, #0e0e60 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  position: sticky;
  top: 100px;
}
.contact-info-card > h3 {
  color: var(--white);
}
.contact-info-card > p {
  color: rgba(255,255,255,0.82);
}
.contact-info-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-icon-wrap {
  width: 48px; height: 48px;
  min-width: 48px;
  background: rgba(37,99,235,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-icon-wrap svg { width: 22px; height: 22px; color: var(--gold); }
.contact-info-header h3 { color: var(--white); margin-bottom: 0.3rem; font-size: 1.2rem; }
.contact-info-header p { color: rgba(255,255,255,0.55); font-size: 0.875rem; margin: 0; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.contact-detail:first-of-type { border-top: none; }
.contact-detail-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  background: rgba(37,99,235,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail-icon svg { width: 18px; height: 18px; color: var(--gold); }
.contact-detail-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.3rem;
}
.contact-detail-value {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}
.contact-detail-value a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-detail-value a:hover { color: var(--gold); }
.contact-detail-value span { color: rgba(255,255,255,0.75); }

.contact-info-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  background: rgba(37,99,235,0.1);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.contact-info-note svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 0.1rem; }
.contact-info-note span { font-size: 0.8rem; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* Form Card */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: 0 4px 40px rgba(10,10,71,0.08);
  border: 1px solid var(--border);
}
.contact-form-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.contact-form-header h3 { margin-bottom: 0.35rem; }
.contact-form-header p { font-size: 0.875rem; color: var(--text-lt); margin: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.required { color: #e05252; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { width: 100%; justify-content: center; gap: 0.6rem; }
.grecaptcha-badge {
  visibility: hidden !important;
}
.recaptcha-notice {
  margin: 0.9rem 0 0;
  color: var(--text-lt);
  font-size: 0.72rem;
  line-height: 1.55;
}
.recaptcha-notice a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Traffic Ticket Page ---------- */

/* Hero with photo background */
.tt-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  padding: 4.25rem 0 3rem;
}
.tt-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.03);
}
.tt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(5,5,60,0.92) 0%, rgba(10,10,71,0.80) 55%, rgba(5,5,40,0.65) 100%);
}
.tt-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}
.tt-hero-content .breadcrumb {
  margin-bottom: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.tt-hero-content .section-label { margin-bottom: 0.6rem; }
.tt-hero-content h1 { color: var(--white); margin-bottom: 0.85rem; }
.tt-hero-left > p { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin-bottom: 1.5rem; max-width: 520px; }
.tt-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0; }
.tt-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}
.tt-hero-stat {
  padding: 1.15rem 0.95rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.tt-hero-stat:nth-child(even) { border-right: none; }
.tt-hero-stat:nth-child(n+3) { border-bottom: none; }
.tt-hero-stat strong {
  display: block;
  font-size: 1.65rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.tt-hero-stat span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Speeding split section */
.tt-split-section { background: var(--white); padding: 5rem 0; }
.tt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.tt-split-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(10,10,71,0.16);
  aspect-ratio: 4/3;
}
.tt-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}
.tt-split-image-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(5,5,60,0.88));
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  padding: 1.5rem 1.25rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tt-split-image-caption svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold); }
.tt-split-content .section-label { margin-bottom: 0.75rem; }
.tt-split-content h2 { margin-bottom: 1rem; }
.tt-split-content > p { color: var(--text-light, #555); margin-bottom: 1.75rem; line-height: 1.7; }

/* Speeding table */
.tt-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: 0 2px 20px rgba(10,10,71,0.08); margin-bottom: 1.25rem; }
.tt-table { width: 100%; border-collapse: collapse; }
.tt-table thead tr { background: var(--navy); color: var(--white); }
.tt-table th { padding: 0.9rem 1.25rem; text-align: left; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
.tt-table tbody tr { background: var(--white); transition: background var(--transition); }
.tt-table tbody tr:nth-child(even) { background: var(--off-white); }
.tt-table tbody tr:hover { background: rgba(37,99,235,0.06); }
.tt-table td { padding: 0.9rem 1.25rem; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.tt-table tbody tr:last-child td { border-bottom: none; }
.tt-fine { color: var(--gold); font-weight: 700; }
.tt-row-danger { background: rgba(220,38,38,0.04) !important; }
.tt-row-danger .tt-fine { color: #dc2626; }
.tt-row-danger td:first-child { font-weight: 600; color: #dc2626; }

/* Info callout */
.tt-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(37,99,235,0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}
.tt-callout svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 0.1rem; }

/* Photo cards section */
.tt-photo-section { background: var(--off-white); padding: 5rem 0; }
.tt-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.tt-photo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(10,10,71,0.09);
  border: 1px solid var(--border);
}
.tt-photo-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.tt-photo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.tt-photo-card:hover .tt-photo-card-img img { transform: scale(1.04); }
.tt-photo-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(5,5,60,0.9));
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-serif);
  padding: 2rem 1.5rem 1.1rem;
}
.tt-photo-card-body { padding: 1.75rem; }
.tt-info-row { margin-top: 0; }
.tt-info-row .info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
}
.tt-info-row .info-card h3 svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* Why section with photo banner */
.tt-why-section { background: var(--white); padding-bottom: 5rem; }
.tt-why-quote {
  background: var(--navy);
  padding: 3rem 0;
  text-align: center;
}
.tt-why-quote h2 { color: var(--white); font-size: clamp(1.2rem, 2.5vw, 1.75rem); margin-bottom: 0.75rem; }
.tt-why-quote p { color: rgba(255,255,255,0.7); font-size: 1rem; margin: 0; }
.tt-why-photo {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.tt-why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: grayscale(30%);
}
.tt-why-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(5,5,60,0.88) 0%, rgba(10,10,71,0.65) 60%, transparent 100%);
  display: flex;
  align-items: center;
}
.tt-why-photo-overlay h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2rem);
  max-width: 560px;
  margin-bottom: 0.5rem;
}
.tt-why-photo-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .tt-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .tt-split-image { aspect-ratio: 16/7; }
  .tt-hero-content { grid-template-columns: 1fr; }
  .tt-hero-left { text-align: center; }
  .tt-hero-content .breadcrumb { justify-content: center; }
  .tt-hero-content { gap: 2rem; }
  .tt-hero-stats { grid-template-columns: 1fr 1fr; max-width: 520px; }
}
@media (max-width: 768px) {
  .tt-hero { padding: 3rem 0 2rem; }
  .tt-hero-actions { flex-direction: column; }
  .tt-hero-actions .btn { width: 100%; justify-content: center; }
  .tt-hero-content { gap: 1.5rem; }
  .tt-hero-stats { margin-inline: auto; }
  .tt-photo-grid { grid-template-columns: 1fr; }
  .tt-photo-card-img { height: 200px; }
  .tt-why-photo { height: 240px; }
  .tt-why-photo-overlay h2 { font-size: 1.25rem; }
  .tt-split-section { padding: 3rem 0; }
  .tt-photo-section { padding: 3rem 0; }
}
@media (max-width: 480px) {
  .tt-hero-stats { grid-template-columns: 1fr; max-width: 100%; }
  .tt-hero-stat:nth-child(even) { border-right: none; }
  .tt-hero-stat { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .tt-hero-stat:last-child { border-bottom: none; }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dk), var(--navy));
  padding: clamp(3.8rem, 6vw, 5.6rem) 0 clamp(3.2rem, 4.5vw, 4.6rem);
  color: var(--white);
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 38vw, 460px);
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 38, 0.86) 0%, rgba(3, 8, 38, 0.72) 46%, rgba(3, 8, 38, 0.34) 100%),
    linear-gradient(0deg, rgba(3, 8, 38, 0.24), rgba(3, 8, 38, 0.24));
}
.page-hero::after {
  display: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.15rem;
  max-width: 100%;
  flex-wrap: wrap;
  padding: 0.46rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(8px);
}
.breadcrumb a { color: #dce8ff; transition: opacity var(--transition); font-weight: 700; }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb svg { width: 14px; height: 14px; }
.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.95rem;
  max-width: 820px;
  font-size: clamp(1.9rem, 3.65vw, 3.05rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}
.page-hero p {
  color: rgba(255,255,255,0.84);
  font-size: clamp(0.96rem, 1.2vw, 1.03rem);
  max-width: 740px;
  line-height: 1.62;
}

.page-hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.page-hero-actions .btn {
  min-height: 50px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}
.page-hero-actions .btn-primary {
  background: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
}
.page-hero-actions .btn-primary:hover {
  background: #eef4ff;
  border-color: #eef4ff;
  color: var(--navy);
}

/* Page-specific hero photos (for extensionless /url routes) */
body[data-page="about-us"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.52), rgba(10,10,71,0.50)), url("../images/about-us-hero-custom.png"); background-size: cover; background-position: center; }
body[data-page="contact-us"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.52), rgba(10,10,71,0.50)), url("../images/contact-get-in-touch-hero.png"); background-size: cover; background-position: center 30%; }
body[data-page="provincial-offences"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/provincial-offences-section.jpg"); background-size: cover; background-position: center; }
body[data-page="small-claims-court"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/tt-court.jpg"); background-size: cover; background-position: center; }
body[data-page="initiating-an-action"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/initiating-an-action-hero.jpg"); background-size: cover; background-position: center; }
body[data-page="defending-a-claim"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/defending-a-claim-hero.jpg"); background-size: cover; background-position: center; }
body[data-page="landlord-and-tenant-board"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/landlord-tenant-board-hero.jpg"); background-size: cover; background-position: center; }
body[data-page="landlords"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/landlord-tenant-board-hero.jpg"); background-size: cover; background-position: center; }
body[data-page="tenants"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/landlord-tenant-board-hero.jpg"); background-size: cover; background-position: center; }
body[data-page="criminal-summary"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/criminal-summary-hero-courtroom.png"); background-size: cover; background-position: center; }
body[data-page="fire-protection-offences"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/fire-protection-hero-clean.jpg"); background-size: cover; background-position: center; }
body[data-page="hvac-scams"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/hvac-scams-hero.jpg"); background-size: cover; background-position: center; }
body[data-page="defective-work"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/defective-work-hero.jpg"); background-size: cover; background-position: center; }
body[data-page="contractor-legal-services"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/contractor-legal-section.jpg"); background-size: cover; background-position: center; }
body[data-page="notary-services"] .page-hero { background-image: linear-gradient(135deg, rgba(5,5,60,0.48), rgba(10,10,71,0.42)), url("../images/notary-services-hero-branded.png"); background-size: cover; background-position: center; }

/* First section photo treatment for non-traffic pages */
main > .content-section:first-of-type .container::before,
main > .contact-section .container::before {
  content: '';
  display: block;
  width: 100%;
  height: clamp(250px, 34vw, 420px);
  border-radius: 8px;
  margin: -1.4rem 0 2.25rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(10,10,71,0.22);
  border: 1px solid rgba(255,255,255,0.7);
}
main > .content-section:first-of-type .container {
  position: relative;
}
main > .content-section:first-of-type .container::after {
  content: 'Strategy • Preparation • Representation';
  position: absolute;
  top: clamp(150px, 24vw, 285px);
  left: clamp(2rem, 5vw, 4rem);
  max-width: min(520px, calc(100% - 4rem));
  padding: 0.85rem 1.05rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(5,5,60,0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

body[data-page="about-us"] main > .content-section:first-of-type .container::before { background-image: url("../images/about-section.jpg"); }
body[data-page="provincial-offences"] main > .content-section:first-of-type .container::before { background-image: url("../images/provincial-offences-section.jpg"); }
body[data-page="small-claims-court"] main > .content-section:first-of-type .container::before { background-image: url("../images/small-claims-court-section.jpg"); }
body[data-page="initiating-an-action"] main > .content-section:first-of-type .container::before { background-image: url("../images/initiating-an-action-section.jpg"); }
body[data-page="defending-a-claim"] main > .content-section:first-of-type .container::before { background-image: url("../images/defending-a-claim-section.jpg"); }
body[data-page="landlord-and-tenant-board"] main > .content-section:first-of-type .container::before { background-image: url("../images/landlord-tenant-board-section.jpg"); }
body[data-page="landlords"] main > .content-section:first-of-type .container::before { background-image: url("../images/landlords-section.jpg"); }
body[data-page="tenants"] main > .content-section:first-of-type .container::before { background-image: url("../images/tenants-section.jpg"); }
body[data-page="criminal-summary"] main > .content-section:first-of-type .container::before { background-image: url("../images/criminal-summary-section.jpg"); }
body[data-page="fire-protection-offences"] main > .content-section:first-of-type .container::before { background-image: url("../images/fire-protection-section.jpg"); }
body[data-page="hvac-scams"] main > .content-section:first-of-type .container::before { background-image: url("../images/hvac-scams-section.jpg"); }
body[data-page="defective-work"] main > .content-section:first-of-type .container::before { background-image: url("../images/defective-work-section.jpg"); }
body[data-page="contractor-legal-services"] main > .content-section:first-of-type .container::before { background-image: url("../images/contractor-legal-section.jpg"); }
body[data-page="notary-services"] main > .content-section:first-of-type .container::before { background-image: url("../images/notary-services-section.jpg"); }
body[data-page="contact-us"] main > .contact-section .container::before,
body[data-page="home"] main > .contact-section .container::before,
body[data-page="contact-us"] main > .content-section:first-of-type .container::after,
body[data-page="home"] main > .content-section:first-of-type .container::after { display: none; }

/* ---------- Content Sections (inner pages) ---------- */
.content-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  position: relative;
}
.content-section.alt {
  background:
    linear-gradient(180deg, #f7f9ff 0%, #eef4ff 100%);
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 18px 44px rgba(10,10,71,0.08);
}
.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.info-card h3 svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

.checklist {
  display: grid;
  gap: 0.78rem;
  margin-top: 1rem;
}
.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.94rem;
  color: #39415f;
  min-width: 0;
  padding: 0.74rem 0.82rem;
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 10px 24px rgba(10,10,71,0.045);
}
.checklist li svg {
  width: 19px; height: 19px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.08rem;
}
.checklist li span { min-width: 0; }
.checklist li strong { color: var(--text); }

.penalty-list { display: flex; flex-direction: column; gap: 0.75rem; }
.penalty-item {
  background: rgba(37,99,235,0.07);
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--text);
}

.content-stack {
  counter-reset: content-card;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.content-block {
  counter-increment: content-card;
  grid-column: span 6;
  max-width: none;
  margin-inline: 0;
  scroll-margin-top: 118px;
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 2.5vw, 2.15rem);
  border: 1px solid rgba(10,10,71,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 48px rgba(10,10,71,0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  isolation: isolate;
}
.content-block.wide {
  max-width: none;
}
.content-block:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,0.24);
  box-shadow: 0 24px 58px rgba(10,10,71,0.13);
}
.content-block::before {
  content: counter(content-card, decimal-leading-zero);
  position: absolute;
  right: 1.15rem;
  top: 0.95rem;
  color: rgba(10,10,71,0.08);
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  font-weight: 800;
  line-height: 1;
  z-index: 0;
}
.content-block::after {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 4px solid transparent;
  background: linear-gradient(90deg, var(--navy), var(--gold-lt)) top left / 100% 4px no-repeat;
  opacity: 0.86;
  pointer-events: none;
}
.content-block:nth-child(4n+2) {
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}
.content-block:nth-child(4n+3) {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
}
.content-block:nth-child(4n+4) {
  background: linear-gradient(180deg, #ffffff 0%, #f9f9ff 100%);
}
.content-block:first-child,
.content-block:has(.list-grid),
.content-block:has(.page-section-actions) {
  grid-column: 1 / -1;
}
.content-block:first-child {
  background:
    linear-gradient(135deg, rgba(5,5,60,0.98) 0%, rgba(10,10,71,0.96) 58%, rgba(37,99,235,0.78) 100%);
  color: var(--white);
  box-shadow: 0 28px 70px rgba(5,5,60,0.22);
}
.content-block:first-child::before {
  display: none;
}
.content-block:first-child::after {
  background:
    linear-gradient(90deg, #ffffff, var(--gold-lt)) top left / 100% 4px no-repeat,
    linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.06) 100%);
}
.content-block:first-child h2,
.content-block:first-child h3,
.content-block:has(.page-section-actions) h2,
.content-block:has(.page-section-actions) h3 {
  color: var(--white);
}
.content-block:first-child p,
.content-block:first-child li,
.content-block:has(.page-section-actions) p {
  color: rgba(255,255,255,0.84);
}
.content-block:first-child::selection {
  background: rgba(255,255,255,0.24);
}
.content-block:has(.page-section-actions) {
  background: linear-gradient(135deg, var(--navy) 0%, #172554 62%, var(--gold) 100%);
  color: var(--white);
}
.content-block:has(.page-section-actions)::before {
  color: rgba(255,255,255,0.1);
}
.content-block:has(.page-section-actions) .btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
}
.content-block:has(.page-section-actions) .btn-primary:hover {
  background: #edf7ff;
  border-color: #edf7ff;
}
.content-block h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.content-block h2 {
  max-width: 850px;
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.18;
  text-wrap: balance;
}
.content-block h3 {
  display: inline-flex;
  max-width: 100%;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(37,99,235,0.08);
  color: #17348a;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.content-block h3 + h3 {
  margin-left: 0.35rem;
}
.content-block p {
  color: #4c5573;
  line-height: 1.78;
}
.content-block p + p,
.info-card p + p,
.service-card p + p {
  margin-top: 0.9rem;
}
.content-lead {
  font-size: 1.05rem;
  color: var(--text);
}
.list-grid {
  columns: initial;
  column-gap: normal;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.list-grid li {
  break-inside: avoid;
}
.page-section-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.section-jump {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 0 0 1.35rem;
  padding: 0.85rem;
  border: 1px solid rgba(10,10,71,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 18px 44px rgba(10,10,71,0.08);
  backdrop-filter: blur(10px);
}
.section-jump-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-jump-label svg {
  width: 15px;
  height: 15px;
}
.section-jump-links {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.05rem;
}
.section-jump-links a {
  flex: 0 0 auto;
  max-width: 220px;
  padding: 0.56rem 0.82rem;
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #253153;
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all var(--transition);
}
.section-jump-links a:hover {
  background: #eef4ff;
  border-color: rgba(37,99,235,0.32);
  color: var(--navy);
  transform: translateY(-1px);
}
.section-jump-links a[aria-current="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
section[id] {
  scroll-margin-top: 118px;
}
@media (max-width: 1000px) {
  .header-top { display: none; }
  .content-stack { grid-template-columns: 1fr; }
  .content-block,
  .content-block:first-child,
  .content-block:has(.list-grid),
  .content-block:has(.page-section-actions) {
    grid-column: 1;
  }
  .content-block:first-child {
    display: block;
  }
  .content-block,
  section[id] {
    scroll-margin-top: 92px;
  }
  .content-block {
    padding: 1.25rem;
    overflow-wrap: anywhere;
  }
  .content-block::before {
    right: 0.85rem;
    top: 0.8rem;
    font-size: 2.8rem;
    opacity: 0.7;
  }
  .content-block h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    line-height: 1.18;
  }
  .content-block h3 {
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: normal;
  }
  .content-block h3 + h3 {
    margin-left: 0;
  }
  .content-block p {
    font-size: 0.98rem;
    line-height: 1.68;
  }
  .content-block:first-child p,
  .content-block:first-child li,
  .content-block:has(.page-section-actions) p {
    color: rgba(255,255,255,0.9);
  }
  .checklist {
    gap: 0.62rem;
  }
  .checklist li {
    padding: 0.78rem 0.82rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .content-block .checklist + p {
    margin-top: 1.35rem;
  }
  .list-grid { grid-template-columns: 1fr; }
  .section-jump {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .section-jump-label {
    justify-content: center;
  }
  .page-section-actions { flex-direction: column; }
  .page-section-actions .btn { justify-content: center; }
  .page-hero {
    text-align: center;
    min-height: 0;
    padding: 4.4rem 0 5.25rem;
  }
  .page-hero .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 1.25rem;
  }
  .page-hero::after {
    display: none;
  }
  .page-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.7rem);
    line-height: 1.08;
  }
  .page-hero .breadcrumb,
  .page-hero-actions {
    justify-content: center;
  }
  .page-hero .breadcrumb {
    width: 100%;
    overflow: hidden;
  }
  .tt-hero-content .breadcrumb {
    width: 100%;
    overflow: hidden;
  }
  .page-hero .breadcrumb span,
  .page-hero .breadcrumb a,
  .tt-hero-content .breadcrumb span,
  .tt-hero-content .breadcrumb a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .page-hero h1,
  .page-hero p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .page-hero-actions {
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.2rem;
  }
  .page-hero-actions .btn {
    width: 100%;
    max-width: min(300px, calc(100vw - 2.5rem));
    justify-content: center;
  }
  main > .content-section:first-of-type .container::before {
    height: 220px;
    margin-top: -0.5rem;
  }
  main > .content-section:first-of-type .container::after {
    top: 155px;
    left: 1.5rem;
    max-width: calc(100% - 3rem);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }
}

/* Accordion / FAQ */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.85rem;
  max-width: 1120px;
  margin-inline: auto;
}
.faq-item {
  align-self: start;
  border: 1px solid rgba(10,10,71,0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 34px rgba(10,10,71,0.07);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: background var(--transition);
}
.faq-question:hover { background: rgba(37,99,235,0.055); }
.faq-question.open { background: var(--navy); color: var(--white); }
.faq-question svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition); }
.faq-question.open svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open { max-height: 500px; }
.faq-answer-inner {
  padding: 1.05rem 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-lt);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .faq-list { grid-template-columns: 1fr; }
}

/* ---------- About Page ---------- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-logo-display {
  background: linear-gradient(135deg, var(--navy-dk), var(--navy));
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-logo-display img { max-width: 280px; filter: brightness(0) invert(1); }
.team-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover {
  box-shadow: 0 16px 44px var(--shadow);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.team-avatar {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dk));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--gold);
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
}
.team-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.team-card p { font-size: 0.82rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-logo img {
  height: 48px;
}
.footer-logo-text { display: flex; flex-direction: column; }
.footer-logo-text .fn { color: var(--white); font-size: 1.1rem; font-weight: 700; font-family: var(--font-serif); }
.footer-logo-text .fs { color: var(--gold); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.14em; }
.footer-tagline { font-size: 0.875rem; line-height: 1.65; max-width: 280px; color: rgba(255,255,255,0.9); }
.footer-social {
  display: flex;
  gap: 0.6rem;
}
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.social-btn svg { width: 15px; height: 15px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--gold);
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-links a svg { width: 12px; height: 12px; }

.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}
.footer-contact-item svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; margin-top: 0.15rem; }
.footer-contact-item a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.74); }
.footer-disclaimer { font-size: 0.72rem; color: rgba(255,255,255,0.68); max-width: 700px; line-height: 1.6; }

/* ---------- Fines / Data Table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
}
.data-table thead tr {
  background: linear-gradient(135deg, var(--navy-dk), var(--navy));
  color: var(--white);
}
.data-table th {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.data-table td {
  padding: 0.8rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.data-table tbody tr:nth-child(even) { background: var(--off-white); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(37,99,235,0.07); }
.data-table .highlight { color: var(--navy); font-weight: 600; }

/* ---------- Warning / Info Callout ---------- */
.callout {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}
.callout-warning {
  background: rgba(37,99,235,0.1);
  border-left: 4px solid var(--gold);
}
.callout-info {
  background: rgba(10,10,71,0.05);
  border-left: 4px solid var(--navy);
}
.callout svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 0.1rem; }
.callout-warning svg { color: var(--gold); }
.callout-info svg { color: var(--navy); }
.callout-content { font-size: 0.9rem; color: var(--text); line-height: 1.7; }
.callout-content strong { color: var(--navy); }

/* ---------- Sticky Consultation Button (bottom-left) ---------- */
.sticky-consult {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--gold);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 6px 28px rgba(37,99,235,0.45);
  transition: all var(--transition);
  white-space: nowrap;
}
.sticky-consult:hover {
  background: var(--gold-lt);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(37,99,235,0.55);
}
.sticky-consult svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .sticky-consult { display: none; }
}


/* ---------- Animations ---------- */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.2,0.8,0.2,1), filter 0.42s ease;
}
body.motion-ready .fade-up {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(18px);
}
.fade-up.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
body.motion-ready .fade-up.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.04s; }
.fade-up:nth-child(3) { transition-delay: 0.08s; }
.fade-up:nth-child(4) { transition-delay: 0.12s; }
.fade-up:nth-child(5) { transition-delay: 0.16s; }
.fade-up:nth-child(6) { transition-delay: 0.2s; }

body[data-page="home"] .stats-item {
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.2,0.8,0.2,1), filter 0.42s ease, box-shadow var(--transition), border-color var(--transition);
}
body[data-page="home"] .stats-item:hover {
  transform: translateY(-5px);
  border-color: rgba(37,99,235,0.28);
  box-shadow: 0 22px 52px rgba(10,10,71,0.12);
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .hero-title,
  body[data-page="home"] .hero-desc,
  body[data-page="home"] .hero-actions,
  body.motion-ready .fade-up {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* ---------- Notification / Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 30px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.toast svg { width: 18px; height: 18px; color: var(--gold); }

/* ---------- Scroll to Top Button ---------- */
.scroll-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 600;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,0.25);
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.scroll-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .scroll-top {
    right: 1rem;
    bottom: 2.2rem;
  }
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

/* ---------- Tablet: 1024px ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }

  /* Hero */
  .hero .container { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image-wrap { min-height: 340px; order: -1; border-radius: var(--radius-lg); }
  .hero-content { text-align: center; align-items: center; }
  .hero-actions { justify-content: center; }
  .hero-badge { align-self: center; }

  /* Grids */
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  #services-grid { grid-template-columns: repeat(2, 1fr); }
  #services-grid .service-card,
  #services-grid .service-card:nth-child(4),
  #services-grid .service-card:nth-child(5) { grid-column: auto; }

  /* Stats */
  .stats-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Why / About / Contact / Footer */
  .why-grid { grid-template-columns: 1fr; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .contact-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-strip-card { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .contact-strip-card:nth-child(2n) { border-right: none; }
  .contact-strip-card:nth-last-child(-n+2) { border-bottom: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .team-cards { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile: 768px ---------- */
@media (max-width: 768px) {
  /* Base */
  section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }

  /* Header top bar */
  .header-top .container { justify-content: center; flex-wrap: wrap; gap: 0.15rem 0; }
  .header-top-divider { display: none; }
  .header-top-item { font-size: 0.7rem; padding: 0.1rem 0.5rem; }
  .header-top-hours { display: none; }

  /* Nav logo */
  .nav-logo img { height: 60px; }
  .nav-toggle { padding: 0.62rem; }
  .nav-toggle svg { width: 32px; height: 32px; }

  /* Hero */
  .hero { padding: 4rem 0 3rem; }
  .hero-content {
    width: 100%;
    max-width: 100%;
  }
  body[data-page="home"] .hero-content {
    max-width: 100%;
  }
  .hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .hero-title,
  .hero-desc {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hero-desc { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  body[data-page="home"] .hero-actions {
    max-width: 320px;
  }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-image-wrap { min-height: 260px; }

  /* Stats */
  .stats-section { padding: 3rem 0; }
  .stats-num { font-size: 2.25rem; }

  /* Services */
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  #services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.75rem 1.5rem; }

  /* Why Choose */
  .why-image-wrap img { max-height: none; object-fit: contain; }

  /* Section headers */
  .section-header h2 { font-size: 1.75rem; }

  /* CTA Banner */
  .cta-banner { padding: 3.25rem 1.25rem; text-align: center; }
  .cta-banner h2 { font-size: 1.6rem; }
  .cta-banner p { font-size: 0.98rem; margin-bottom: 1.4rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Contact */
  .contact-strip-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info-card { padding: 1.75rem; }
  .contact-form-wrap { padding: 1.75rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom .container { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-copy, .footer-disclaimer { text-align: center; }

  /* Team */
  .team-cards { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonial-card { flex: 0 0 100%; }

  /* Tables */
  .data-table { font-size: 0.82rem; }
  .data-table th, .data-table td { padding: 0.6rem 0.75rem; }
}

/* ---------- Small phones: 480px ---------- */
@media (max-width: 480px) {
  /* Base */
  section { padding: 2.5rem 0; }
  .container { padding: 0 1rem; }

  /* Header: hide top bar entirely on tiny screens */
  .header-top { display: none; }

  /* Nav logo */
  .nav-logo img { height: 52px; }
  .nav-toggle { padding: 0.6rem; }
  .nav-toggle svg { width: 30px; height: 30px; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero-badge { font-size: 0.72rem; padding: 0.35rem 0.9rem; }
  .hero-image-wrap { min-height: 220px; }

  /* Stats */
  .stats-num { font-size: 2rem; }
  .stats-section { padding: 2.5rem 0; }
  .stat-num { font-size: 1.75rem; }
  .stat-label { font-size: 0.72rem; }

  /* Services */
  .service-card { padding: 1.5rem 1.25rem; }
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: 0.9rem; }

  /* Why */
  .why-features { gap: 1.25rem; }
  .why-feature { gap: 0.75rem; }
  .why-feature-icon { width: 36px; height: 36px; flex-shrink: 0; }

  /* CTA */
  .cta-banner h2 { font-size: 1.35rem; }
  .cta-banner .section-label { font-size: 0.68rem; padding: 0.36rem 0.72rem; }

  /* Contact */
  .contact-strip { display: none; }
  .contact-section { padding: 2.5rem 0; }
  .contact-info-card { padding: 1.25rem; }
  .contact-info-icon-wrap { width: 40px; height: 40px; min-width: 40px; }
  .contact-info-icon-wrap svg { width: 18px; height: 18px; }
  .contact-form-wrap { padding: 1.25rem; }

  /* Buttons touch targets */
  .btn { padding: 0.75rem 1.25rem; font-size: 0.875rem; min-height: 48px; }
  input, select, textarea { font-size: 16px !important; min-height: 48px; } /* prevent iOS zoom */

  /* Footer */
  .footer-col h4 { font-size: 0.95rem; }
  .footer-links li a { font-size: 0.875rem; }
  .footer-tagline { font-size: 0.875rem; }

  /* Page inner headers */
  .page-hero h1 { font-size: clamp(1.5rem, 7vw, 2.25rem); }
  .page-hero p { font-size: 0.9rem; }
}

@media (max-width: 768px) {
  body[data-page="home"] .hero {
    background-position: 52% center;
    min-height: 590px;
    padding: 4.4rem 0 3.75rem;
  }
  body[data-page="home"] .hero .container {
    width: 100vw;
    max-width: 100vw;
    margin-inline: 0;
    padding-inline: 1.25rem;
  }
  body[data-page="home"] .hero-title {
    width: min(100%, 460px);
    margin-inline: auto;
    font-size: clamp(2.05rem, 6.4vw, 3.05rem);
    line-height: 1.02;
  }
  body[data-page="home"] .hero-desc {
    width: min(100%, 430px);
    margin-inline: auto;
    font-size: 1rem;
  }
  body[data-page="home"] .hero-actions {
    margin-top: 1.35rem;
    max-width: 330px;
  }
  body[data-page="home"] .hero-actions .btn {
    max-width: 330px;
  }
}

/* ---------- Premium Service Page System ---------- */
body[data-page="initiating-an-action"],
body[data-page="defending-a-claim"],
body[data-page="provincial-offences"],
body[data-page="traffic-ticket"],
body[data-page="smoke-free-ontario"],
body[data-page="fire-protection-offences"],
body[data-page="small-claims-court"],
body[data-page="landlord-and-tenant-board"],
body[data-page="landlords"],
body[data-page="tenants"],
body[data-page="criminal-summary"],
body[data-page="hvac-scams"],
body[data-page="defective-work"],
body[data-page="contractor-legal-services"],
body[data-page="notary-services"] {
  --ia-bg: #f4f7fb;
  --ia-surface: #ffffff;
  --ia-surface-strong: #08113f;
  --ia-text: #101735;
  --ia-muted: #5b6380;
  --ia-accent: #2563eb;
  --ia-accent-soft: #dce8ff;
  --ia-line: rgba(10,10,71,0.12);
  --ia-display: var(--font-serif);
  --ia-body: var(--font-sans);
  --service-hero-image: url("../images/landing-hero-lawyer-q98.jpg");
  background: var(--ia-bg);
}
body[data-page="initiating-an-action"] {
  --service-hero-image: url("../images/landing-hero-lawyer-q98.jpg");
}
body[data-page="defending-a-claim"] {
  --service-hero-image: url("../images/defending-a-claim-hero.jpg");
}
body[data-page="provincial-offences"] {
  --service-hero-image: url("../images/provincial-offences-section.jpg");
}
body[data-page="traffic-ticket"] {
  --service-hero-image: url("../images/tt-hero.jpg");
}
body[data-page="smoke-free-ontario"] {
  --service-hero-image: url("../images/sfo-hero.jpg");
}
body[data-page="fire-protection-offences"] {
  --service-hero-image: url("../images/fire-protection-hero-clean.jpg");
}
body[data-page="small-claims-court"] {
  --service-hero-image: url("../images/tt-court.jpg");
}
body[data-page="landlord-and-tenant-board"] {
  --service-hero-image: url("../images/landlord-tenant-board-hero.jpg");
}
body[data-page="landlords"] {
  --service-hero-image: url("../images/landlord-tenant-board-hero.jpg");
}
body[data-page="tenants"] {
  --service-hero-image: url("../images/landlord-tenant-board-hero.jpg");
}
body[data-page="criminal-summary"] {
  --service-hero-image: url("../images/criminal-summary-hero-courtroom.png");
}
body[data-page="hvac-scams"] {
  --service-hero-image: url("../images/hvac-scams-hero.jpg");
}
body[data-page="defective-work"] {
  --service-hero-image: url("../images/defective-work-hero.jpg");
}
body[data-page="contractor-legal-services"] {
  --service-hero-image: url("../images/contractor-legal-section.jpg");
}
body[data-page="notary-services"] {
  --service-hero-image: url("../images/notary-services-hero-branded.png");
}
body[data-page="initiating-an-action"] .page-hero,
.service-premium-page .service-hero {
  min-height: clamp(600px, 72vh, 760px);
  padding: clamp(5.5rem, 8vw, 7.8rem) 0 clamp(4rem, 7vw, 6rem);
  background-image:
    linear-gradient(90deg, rgba(2,7,36,0.54) 0%, rgba(4,9,44,0.36) 44%, rgba(4,9,44,0.08) 100%),
    var(--service-hero-image);
  background-size: cover;
  background-position: center;
}
body[data-page="defending-a-claim"] .page-hero {
  min-height: clamp(600px, 72vh, 760px);
  padding: clamp(5.5rem, 8vw, 7.8rem) 0 clamp(4rem, 7vw, 6rem);
  background-image:
    linear-gradient(90deg, rgba(2,7,36,0.54) 0%, rgba(4,9,44,0.38) 44%, rgba(4,9,44,0.1) 100%),
    url("../images/defending-a-claim-hero.jpg");
  background-size: cover;
  background-position: center;
}
body[data-page="initiating-an-action"] .page-hero::before {
  background:
    linear-gradient(180deg, rgba(3,8,38,0.04), rgba(3,8,38,0.14)),
    radial-gradient(circle at 15% 22%, rgba(37,99,235,0.1), transparent 34%);
}
body[data-page="defending-a-claim"] .page-hero::before {
  background:
    linear-gradient(180deg, rgba(3,8,38,0.04), rgba(3,8,38,0.16)),
    radial-gradient(circle at 18% 24%, rgba(37,99,235,0.1), transparent 34%);
}
.service-premium-page .service-hero::before {
  background:
    linear-gradient(180deg, rgba(3,8,38,0.04), rgba(3,8,38,0.14)),
    radial-gradient(circle at 15% 22%, rgba(37,99,235,0.1), transparent 34%);
}
body[data-page="initiating-an-action"] .page-hero::before,
body[data-page="defending-a-claim"] .page-hero::before,
body[data-page="provincial-offences"] .page-hero::before,
body[data-page="traffic-ticket"] .page-hero::before,
body[data-page="smoke-free-ontario"] .page-hero::before,
body[data-page="fire-protection-offences"] .page-hero::before,
body[data-page="small-claims-court"] .page-hero::before,
body[data-page="landlord-and-tenant-board"] .page-hero::before,
body[data-page="landlords"] .page-hero::before,
body[data-page="tenants"] .page-hero::before,
body[data-page="criminal-summary"] .page-hero::before,
body[data-page="hvac-scams"] .page-hero::before,
body[data-page="defective-work"] .page-hero::before,
body[data-page="contractor-legal-services"] .page-hero::before,
body[data-page="notary-services"] .page-hero::before {
  background:
    linear-gradient(90deg, rgba(3,8,38,0.35) 0%, rgba(3,8,38,0.22) 46%, rgba(3,8,38,0.04) 100%),
    linear-gradient(0deg, rgba(3,8,38,0.04), rgba(3,8,38,0.04));
}
body[data-page="initiating-an-action"] .page-hero h1,
body[data-page="initiating-an-action"] .page-hero p,
body[data-page="initiating-an-action"] .page-hero .ia-kicker,
body[data-page="defending-a-claim"] .page-hero h1,
body[data-page="defending-a-claim"] .page-hero p,
body[data-page="defending-a-claim"] .page-hero .ia-kicker,
.service-premium-page .service-hero h1,
.service-premium-page .service-hero p,
.service-premium-page .service-hero .ia-kicker {
  text-shadow: 0 2px 18px rgba(0,0,0,0.42);
}
.ia-page {
  background: var(--ia-bg);
  color: var(--ia-text);
}
.ia-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.54fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.ia-hero-copy {
  max-width: 820px;
}
.ia-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: var(--ia-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.ia-hero .ia-kicker {
  color: #dce8ff;
}
.ia-hero h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 6.2vw, 5.8rem);
  line-height: 0.96;
  margin-bottom: 1.25rem;
}
.service-premium-page .ia-hero h1 {
  max-width: 840px;
  font-size: clamp(2.45rem, 5.7vw, 5.2rem);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.ia-hero-lede {
  max-width: 680px;
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.72;
}
.ia-hero-lede:empty {
  display: none;
}
.ia-hero .page-hero-actions .btn {
  min-height: 54px;
}
.ia-hero .page-hero-actions .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.ia-hero-panel {
  position: relative;
  padding: 1.35rem;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background: rgba(5,5,60,0.64);
  box-shadow: 0 30px 80px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
}
.ia-panel-label {
  display: block;
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ia-hero-panel ul {
  display: grid;
  gap: 0.7rem;
}
.ia-hero-panel li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.65rem;
  color: rgba(255,255,255,0.84);
  font-size: 0.92rem;
  line-height: 1.5;
}
.ia-hero-panel li::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.48rem;
  border-radius: 50%;
  background: #8fb8ff;
  box-shadow: 0 0 0 0.36rem rgba(143,184,255,0.16);
}
.ia-anchorbar {
  background: var(--ia-surface);
  border-bottom: 1px solid var(--ia-line);
  box-shadow: 0 12px 34px rgba(10,10,71,0.06);
}
.ia-anchorbar .container {
  display: flex;
  gap: 0.55rem;
  padding-block: 0.85rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ia-anchorbar a {
  flex: 0 0 auto;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 999px;
  color: var(--ia-text);
  background: #f7f9ff;
  font-size: 0.83rem;
  font-weight: 800;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}
.ia-anchorbar a:hover,
.ia-anchorbar a:focus-visible {
  transform: translateY(-2px);
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}
.ia-section {
  position: relative;
  padding: clamp(4rem, 7vw, 7rem) 0;
  overflow: hidden;
}
.ia-section + .ia-section {
  border-top: 1px solid rgba(10,10,71,0.08);
}
.ia-two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.68fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.ia-section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}
.ia-section-copy h2,
.ia-section-head h2,
.ia-start-panel h2 {
  color: var(--ia-text);
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.ia-section-copy p,
.ia-section-head p,
.ia-start-panel p {
  color: var(--ia-muted);
  font-size: clamp(0.98rem, 1.18vw, 1.08rem);
  line-height: 1.82;
}
.ia-section-copy p + p,
.ia-start-panel p + p {
  margin-top: 0.95rem;
}
.ia-principle-card {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: var(--ia-surface-strong);
  box-shadow: 0 26px 70px rgba(8,17,63,0.2);
}
.ia-principle-card span {
  display: block;
  margin-bottom: 0.75rem;
  color: #b8ccff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ia-principle-card p {
  color: rgba(255,255,255,0.84);
  line-height: 1.75;
}
.ia-principle-card p + p {
  margin-top: 0.9rem;
}
.ia-claims {
  background: var(--ia-surface);
}
.ia-claim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.ia-claim-grid span,
.ia-risk-list span {
  display: flex;
  min-height: 74px;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--ia-line);
  border-radius: 8px;
  background: var(--ia-surface);
  color: var(--ia-text);
  font-weight: 750;
  line-height: 1.45;
  box-shadow: 0 14px 34px rgba(10,10,71,0.055);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.ia-claim-grid span:hover,
.ia-risk-list span:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,0.34);
  box-shadow: 0 22px 52px rgba(10,10,71,0.11);
}
.ia-prelit {
  background: #08113f;
  color: var(--white);
}
.ia-prelit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 16%, rgba(37,99,235,0.22), transparent 34%);
  pointer-events: none;
}
.ia-prelit .container {
  position: relative;
}
.ia-prelit h2,
.ia-prelit .ia-kicker {
  color: var(--white);
}
.ia-prelit p {
  color: rgba(255,255,255,0.78);
}
.ia-action-list {
  display: grid;
  gap: 0.85rem;
}
.ia-action-list div {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.ia-action-list div:hover {
  transform: translateX(8px);
  border-color: rgba(143,184,255,0.5);
  background: rgba(255,255,255,0.12);
}
.ia-action-list strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.ia-action-list span {
  color: rgba(255,255,255,0.74);
  line-height: 1.6;
}
.ia-process {
  background:
    linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
}
.ia-timeline {
  display: grid;
  gap: 1rem;
}
.ia-step {
  display: grid;
  grid-template-columns: 90px minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1.2rem 0;
  border-top: 1px solid var(--ia-line);
}
.ia-step:last-child {
  border-bottom: 1px solid var(--ia-line);
}
.ia-step span {
  color: var(--ia-accent);
  font-family: var(--ia-display);
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1;
}
.ia-step h3 {
  color: var(--ia-text);
  font-family: var(--ia-body);
  font-size: 1.02rem;
  line-height: 1.35;
}
.ia-step p {
  color: var(--ia-muted);
  line-height: 1.72;
}
.ia-preparation {
  background: var(--ia-surface);
}
.ia-risk-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.ia-risk-list span {
  min-height: auto;
  padding-left: 3rem;
  position: relative;
}
.ia-risk-list span::before {
  content: '!';
  position: absolute;
  left: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ia-accent-soft);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
}
.ia-start {
  padding-top: 0;
  background: linear-gradient(180deg, var(--ia-surface) 0%, var(--ia-bg) 100%);
}
.ia-start-panel {
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8,17,63,0.98), rgba(11,33,97,0.94)),
    url("../images/landing-hero-lawyer-q98.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  box-shadow: 0 30px 80px rgba(8,17,63,0.25);
}
.ia-start-panel h2,
.ia-start-panel .ia-kicker {
  color: var(--white);
}
.ia-start-panel p {
  color: rgba(255,255,255,0.82);
  max-width: 760px;
}
.ia-start-panel .btn-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.ia-start-panel .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.68);
}
.service-premium-page {
  position: relative;
}
.service-premium-page .service-hero .breadcrumb,
.service-premium-page .service-hero .breadcrumb a,
.service-premium-page .service-hero .breadcrumb span {
  color: rgba(255,255,255,0.78);
}
.service-premium-page .service-hero .breadcrumb svg {
  stroke: rgba(255,255,255,0.6);
}
.service-section-clean {
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}
.service-section-muted {
  background: #edf3fb;
}
.service-section-list {
  background: var(--ia-surface);
}
.service-section-body {
  max-width: 1040px;
}
.service-section-body > .ia-kicker {
  margin-bottom: 1rem;
}
.service-section-body h2 {
  max-width: 920px;
  color: var(--ia-text);
  font-size: clamp(2rem, 4.15vw, 3.75rem);
  line-height: 1;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.service-section-body h3 {
  max-width: 860px;
  color: var(--ia-text);
  font-family: var(--ia-body);
  font-size: clamp(1.08rem, 1.6vw, 1.42rem);
  line-height: 1.32;
  margin: 1.9rem 0 0.65rem;
}
.service-section-body h2 + h3 {
  margin-top: 0;
}
.service-section-body p {
  max-width: 900px;
  color: var(--ia-muted);
  font-size: clamp(1rem, 1.18vw, 1.08rem);
  line-height: 1.84;
}
.service-section-body p + p {
  margin-top: 1rem;
}
.service-section-body a:not(.btn) {
  color: var(--ia-accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
.service-section-body .page-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.65rem;
}
.service-section-body .checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.service-section-body .checklist.list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service-section-body .checklist li {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 76px;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--ia-line);
  border-radius: 8px;
  background: rgba(255,255,255,0.88);
  color: var(--ia-text);
  font-weight: 750;
  line-height: 1.48;
  box-shadow: 0 14px 34px rgba(10,10,71,0.055);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.service-section-body .checklist li:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,0.34);
  background: #ffffff;
  box-shadow: 0 22px 52px rgba(10,10,71,0.11);
}
.service-section-body .checklist svg {
  flex: 0 0 auto;
  width: 1.18rem;
  height: 1.18rem;
  margin-top: 0.18rem;
  color: var(--ia-accent);
  stroke-width: 2.6;
}
.content-block .checklist + p,
.service-section-body .checklist + p,
.ia-section-copy .checklist + p,
.ia-start-panel .checklist + p {
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
}
.service-premium-page .info-card,
.service-premium-page .why-feature,
.service-premium-page .service-card,
.service-premium-page .content-block {
  border-radius: 8px;
}
.service-premium-page .ia-faq-section {
  padding-top: clamp(4rem, 7vw, 6rem);
}
.ia-faq-section {
  background: #eef3fb;
}
body[data-page="initiating-an-action"] .faq-list,
body[data-page="defending-a-claim"] .faq-list,
.service-premium-page .faq-list {
  align-items: start;
}
body[data-page="initiating-an-action"] .faq-question,
body[data-page="defending-a-claim"] .faq-question,
.service-premium-page .faq-question {
  min-height: 76px;
  border-radius: 8px;
}
body[data-page="initiating-an-action"] .sticky-consult,
body[data-page="defending-a-claim"] .sticky-consult,
body[data-page="provincial-offences"] .sticky-consult,
body[data-page="traffic-ticket"] .sticky-consult,
body[data-page="smoke-free-ontario"] .sticky-consult,
body[data-page="fire-protection-offences"] .sticky-consult,
body[data-page="small-claims-court"] .sticky-consult,
body[data-page="landlord-and-tenant-board"] .sticky-consult,
body[data-page="landlords"] .sticky-consult,
body[data-page="tenants"] .sticky-consult,
body[data-page="criminal-summary"] .sticky-consult,
body[data-page="hvac-scams"] .sticky-consult,
body[data-page="defective-work"] .sticky-consult,
body[data-page="contractor-legal-services"] .sticky-consult,
body[data-page="notary-services"] .sticky-consult {
  display: none;
}
.ia-reveal {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(18px) scale(0.99);
  transition:
    opacity 0.48s ease,
    filter 0.48s ease,
    transform 0.48s cubic-bezier(0.2,0.8,0.2,1),
    box-shadow 0.48s ease;
  will-change: opacity, filter, transform;
}
.ia-reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.ia-hero .ia-reveal {
  animation: iaRise 0.52s cubic-bezier(0.2,0.8,0.2,1) both;
}
.ia-hero .ia-reveal:nth-child(2) { animation-delay: 0.05s; }
.ia-hero .ia-reveal:nth-child(3) { animation-delay: 0.1s; }
.ia-hero .ia-reveal:nth-child(4) { animation-delay: 0.15s; }
.ia-hero-panel.ia-reveal { animation-delay: 0.2s; }
@keyframes iaRise {
  from { opacity: 0; filter: blur(5px); transform: translateY(18px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
.ia-step.ia-reveal.visible,
.ia-claim-grid.ia-reveal.visible,
.ia-action-list.ia-reveal.visible,
.ia-risk-list.ia-reveal.visible {
  animation: iaLift 0.75s cubic-bezier(0.2,0.8,0.2,1) both;
}
.ia-claim-grid.ia-reveal.visible span,
.ia-action-list.ia-reveal.visible div,
.ia-risk-list.ia-reveal.visible span {
  animation: iaCardIn 0.48s cubic-bezier(0.2,0.8,0.2,1) both;
}
.ia-claim-grid.ia-reveal.visible span:nth-child(2),
.ia-action-list.ia-reveal.visible div:nth-child(2),
.ia-risk-list.ia-reveal.visible span:nth-child(2) { animation-delay: 0.04s; }
.ia-claim-grid.ia-reveal.visible span:nth-child(3),
.ia-action-list.ia-reveal.visible div:nth-child(3),
.ia-risk-list.ia-reveal.visible span:nth-child(3) { animation-delay: 0.08s; }
.ia-claim-grid.ia-reveal.visible span:nth-child(4),
.ia-action-list.ia-reveal.visible div:nth-child(4),
.ia-risk-list.ia-reveal.visible span:nth-child(4) { animation-delay: 0.12s; }
.ia-claim-grid.ia-reveal.visible span:nth-child(5),
.ia-action-list.ia-reveal.visible div:nth-child(5),
.ia-risk-list.ia-reveal.visible span:nth-child(5) { animation-delay: 0.16s; }
.ia-claim-grid.ia-reveal.visible span:nth-child(n+6),
.ia-risk-list.ia-reveal.visible span:nth-child(n+6) { animation-delay: 0.2s; }
@keyframes iaLift {
  from { transform: translateY(14px); filter: blur(4px) saturate(0.94); }
  to { transform: translateY(0); filter: blur(0) saturate(1); }
}
@keyframes iaCardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ia-anchorbar a[aria-current="true"] {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 12px 28px rgba(10,10,71,0.15);
}
.ia-principle-card.visible {
  box-shadow: 0 34px 90px rgba(8,17,63,0.25);
}
.ia-step {
  transition: border-color var(--transition), transform var(--transition);
}
.ia-step:hover {
  border-top-color: rgba(37,99,235,0.34);
  transform: translateX(8px);
}
.ia-step:hover h3 {
  color: var(--ia-accent);
}

@media (prefers-reduced-motion: reduce) {
  .ia-reveal,
  .ia-hero .ia-reveal,
  .ia-claim-grid.ia-reveal.visible span,
  .ia-action-list.ia-reveal.visible div,
  .ia-risk-list.ia-reveal.visible span {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .ia-hero-grid,
  .ia-two-col {
    grid-template-columns: 1fr;
  }
  .ia-hero-panel {
    max-width: 520px;
  }
  .ia-claim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ia-step {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .ia-step p {
    grid-column: 2;
  }
  .service-section-body .checklist.list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  body[data-page="initiating-an-action"] .page-hero,
  .service-premium-page .service-hero {
    min-height: 640px;
    padding: 4.4rem 0 3.5rem;
    background-position: 56% center;
  }
  body[data-page="defending-a-claim"] .page-hero {
    min-height: 660px;
    padding: 4.4rem 0 3.5rem;
    background-position: 58% center;
  }
  .ia-hero h1 {
    font-size: clamp(2.25rem, 14vw, 3.25rem);
  }
  .service-premium-page .ia-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.05rem);
    line-height: 1.02;
  }
  .ia-hero-lede {
    font-size: 0.98rem;
  }
  .ia-hero .page-hero-actions,
  .ia-start-panel .page-hero-actions {
    flex-direction: column;
  }
  .ia-hero .page-hero-actions .btn,
  .ia-start-panel .page-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .ia-anchorbar .container {
    padding-inline: 1rem;
  }
  .ia-section {
    padding: 3.25rem 0;
  }
  .ia-claim-grid {
    grid-template-columns: 1fr;
  }
  .ia-claim-grid span {
    min-height: auto;
  }
  .service-section-body h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }
  .service-section-body .checklist,
  .service-section-body .checklist.list-grid {
    grid-template-columns: 1fr;
  }
  .service-section-body .checklist li {
    min-height: auto;
  }
  .ia-step {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .ia-step p {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  body[data-page="home"] .hero {
    background-position: 44% center;
    min-height: 610px;
    padding: 4.1rem 0 3.7rem;
  }
  body[data-page="home"] .hero .container {
    width: 100vw;
    max-width: 100vw;
    margin-inline: 0;
    padding-inline: 1rem;
  }
  body[data-page="home"] .hero-title {
    width: min(100%, 340px);
    margin-inline: auto;
    font-size: clamp(2rem, 8.1vw, 2.25rem);
    line-height: 1.03;
  }
  body[data-page="home"] .hero-desc {
    width: min(100%, 330px);
    margin-inline: auto;
    font-size: 0.96rem;
    line-height: 1.65;
  }
  body[data-page="home"] .hero-actions,
  body[data-page="home"] .hero-actions .btn {
    max-width: 320px;
  }
}

@media (max-width: 900px) {
  .google-reviews-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .google-reviews-badge {
    width: 100%;
    min-width: 0;
  }
  .google-reviews-grid {
    margin-right: -1.25rem;
    padding-right: 1.25rem;
  }
  .google-review-card {
    flex-basis: min(82vw, 360px);
    width: min(82vw, 360px);
  }
}

@media (max-width: 480px) {
  .google-reviews-section {
    padding: 3rem 0;
  }
  .google-reviews-title h2 {
    font-size: 1.65rem;
  }
  .google-reviews-title p {
    font-size: 0.92rem;
  }
  .google-reviews-badge {
    grid-template-columns: auto 1fr;
    padding: 0.95rem;
  }
  .google-reviews-score {
    font-size: 1.9rem;
  }
  .google-reviews-meta {
    grid-column: 1 / -1;
  }
  .google-review-card {
    padding: 1.25rem;
  }
}

/* ---------- Contact Page Redesign ---------- */
body[data-page="contact-us"] {
  --contact-bg: #f4f7fb;
  --contact-surface: #ffffff;
  --contact-surface-soft: #eaf1fb;
  --contact-text: #101735;
  --contact-muted: #59627c;
  --contact-accent: #2563eb;
  --contact-accent-soft: #dce8ff;
  --contact-line: rgba(10,10,71,0.12);
  --contact-display: var(--font-serif);
  --contact-body: var(--font-sans);
  background: var(--contact-bg);
}

body[data-page="contact-us"] .sticky-consult {
  display: none;
}

body[data-page="contact-us"] .page-hero {
  min-height: clamp(610px, 72vh, 760px);
  padding: clamp(5.4rem, 8vw, 7.6rem) 0 clamp(4.2rem, 6vw, 5.8rem);
  background-image:
    linear-gradient(90deg, rgba(2,7,36,0.94) 0%, rgba(4,9,44,0.82) 43%, rgba(4,9,44,0.32) 100%),
    url("../images/contact-get-in-touch-hero.png");
  background-size: cover;
  background-position: center 38%;
}

body[data-page="contact-us"] .page-hero::before {
  background:
    linear-gradient(180deg, rgba(3,8,38,0.18), rgba(3,8,38,0.42)),
    radial-gradient(circle at 14% 24%, rgba(37,99,235,0.2), transparent 34%);
}

.contact-page {
  background: var(--contact-bg);
  color: var(--contact-text);
}

.contact-page .container {
  position: relative;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.52fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.contact-hero-copy {
  max-width: 820px;
}

.contact-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  color: var(--contact-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-hero .contact-kicker {
  color: #dce8ff;
}

.contact-hero h1 {
  max-width: 800px;
  color: var(--white);
  font-size: clamp(2.55rem, 5.9vw, 5.65rem);
  line-height: 1.06;
  margin-bottom: 1.25rem;
}

.contact-hero-lede {
  max-width: 680px;
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.72;
}

.contact-hero .page-hero-actions .btn,
.contact-confidence-panel .page-hero-actions .btn {
  min-height: 54px;
}

.contact-hero .page-hero-actions .btn-outline,
.contact-confidence-panel .page-hero-actions .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.contact-hero-panel {
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 1.6rem);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background: rgba(5,5,60,0.68);
  box-shadow: 0 30px 80px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
}

.contact-hero-panel > span {
  display: block;
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-hero-panel ol {
  counter-reset: contactSteps;
  display: grid;
  gap: 0.82rem;
  list-style: none;
}

.contact-hero-panel li {
  counter-increment: contactSteps;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: rgba(255,255,255,0.84);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-hero-panel li::before {
  content: counter(contactSteps);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--contact-accent-soft);
  color: var(--navy);
  font-weight: 900;
}

.contact-routes {
  position: relative;
  z-index: 2;
  margin-top: -3.1rem;
}

.contact-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.26fr 1fr;
  gap: 0.85rem;
}

.contact-route-card {
  display: flex;
  min-height: 178px;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.2rem;
  border: 1px solid var(--contact-line);
  border-radius: 8px;
  background: var(--contact-surface);
  box-shadow: 0 18px 48px rgba(10,10,71,0.09);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.contact-route-card:hover,
.contact-route-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(37,99,235,0.34);
  background: #fbfdff;
  box-shadow: 0 26px 64px rgba(10,10,71,0.14);
}

.route-label {
  color: var(--contact-accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-route-card strong {
  color: var(--contact-text);
  font-size: clamp(1.02rem, 1.35vw, 1.24rem);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.contact-route-card small {
  color: var(--contact-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.contact-intake {
  padding: clamp(4.6rem, 7vw, 7rem) 0;
  background: linear-gradient(180deg, var(--contact-bg) 0%, #ffffff 100%);
}

.contact-intake-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-intake-copy {
  position: sticky;
  top: 112px;
  padding-top: 0.35rem;
}

.contact-intake-copy h2,
.contact-section-head h2,
.contact-confidence-panel h2 {
  color: var(--contact-text);
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.contact-intake-copy p,
.contact-section-head p,
.contact-confidence-panel p {
  color: var(--contact-muted);
  font-size: clamp(0.98rem, 1.18vw, 1.08rem);
  line-height: 1.82;
}

.contact-intake-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.contact-intake-list span {
  position: relative;
  padding: 0.92rem 1rem 0.92rem 3rem;
  border: 1px solid var(--contact-line);
  border-radius: 8px;
  background: rgba(255,255,255,0.76);
  color: var(--contact-text);
  font-weight: 750;
  line-height: 1.45;
  box-shadow: 0 14px 34px rgba(10,10,71,0.055);
}

.contact-intake-list span::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--contact-accent);
  box-shadow: 0 0 0 0.36rem rgba(37,99,235,0.14);
  transform: translateY(-50%);
}

body[data-page="contact-us"] .contact-form-wrap {
  border: 1px solid rgba(10,10,71,0.12);
  border-radius: 8px;
  padding: clamp(1.45rem, 3.5vw, 2.75rem);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94)),
    linear-gradient(135deg, rgba(37,99,235,0.12), transparent 40%);
  box-shadow: 0 28px 78px rgba(8,17,63,0.13);
}

body[data-page="contact-us"] .contact-form-header {
  margin-bottom: 1.65rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(10,10,71,0.1);
}

body[data-page="contact-us"] .contact-form-header h3 {
  color: var(--contact-text);
  font-family: var(--contact-body);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.15;
}

body[data-page="contact-us"] .contact-form-header p {
  color: var(--contact-muted);
}

body[data-page="contact-us"] .form-group {
  gap: 0.48rem;
  margin-bottom: 1.05rem;
}

body[data-page="contact-us"] .form-group label {
  color: var(--contact-text);
  font-size: 0.82rem;
  font-weight: 800;
}

body[data-page="contact-us"] .form-group input,
body[data-page="contact-us"] .form-group textarea,
body[data-page="contact-us"] .form-group select {
  min-height: 50px;
  border: 1px solid rgba(10,10,71,0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--contact-text);
  box-shadow: 0 8px 20px rgba(10,10,71,0.035);
}

body[data-page="contact-us"] .form-group textarea {
  min-height: 150px;
}

body[data-page="contact-us"] .form-group input:focus,
body[data-page="contact-us"] .form-group textarea:focus,
body[data-page="contact-us"] .form-group select:focus {
  border-color: var(--contact-accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.16);
}

body[data-page="contact-us"] .form-submit {
  min-height: 56px;
  border-radius: 8px;
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(10,10,71,0.22);
}

body[data-page="contact-us"] .form-submit:hover {
  transform: translateY(-2px);
  background: #111866;
  border-color: #111866;
}

body[data-page="contact-us"] .recaptcha-notice {
  color: var(--contact-muted);
}

.contact-offices {
  padding: clamp(4.4rem, 7vw, 7rem) 0;
  background: #ffffff;
  border-top: 1px solid rgba(10,10,71,0.08);
}

.contact-section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.contact-office-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-office-card {
  display: flex;
  min-height: 254px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
  border: 1px solid var(--contact-line);
  border-radius: 8px;
  background: var(--contact-surface);
  box-shadow: 0 16px 44px rgba(10,10,71,0.07);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-office-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37,99,235,0.32);
  box-shadow: 0 24px 58px rgba(10,10,71,0.12);
}

.contact-office-card span {
  margin-bottom: 1rem;
  color: var(--contact-accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-office-card h3 {
  color: var(--contact-text);
  font-family: var(--contact-body);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.16;
  margin-bottom: 0.65rem;
}

.contact-office-card p {
  color: var(--contact-muted);
  line-height: 1.72;
}

.contact-office-card a {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--contact-accent);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-confidence {
  padding: 0 0 clamp(4.6rem, 7vw, 7rem);
  background: linear-gradient(180deg, #ffffff 0%, var(--contact-bg) 100%);
}

.contact-confidence-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8,17,63,0.98), rgba(11,33,97,0.94)),
    url("../images/contact-get-in-touch-hero.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
  box-shadow: 0 30px 80px rgba(8,17,63,0.25);
}

.contact-confidence-panel .contact-kicker,
.contact-confidence-panel h2 {
  color: var(--white);
}

.contact-confidence-panel p {
  max-width: 860px;
  color: rgba(255,255,255,0.82);
}

.contact-confidence-panel .btn-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.contact-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.48s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.48s ease, border-color 0.35s ease;
}

.contact-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-hero .contact-reveal {
  animation: contactRise 0.52s cubic-bezier(0.2,0.8,0.2,1) both;
}

.contact-hero .contact-reveal:nth-child(2) { animation-delay: 0.05s; }
.contact-hero .contact-reveal:nth-child(3) { animation-delay: 0.1s; }
.contact-hero .contact-reveal:nth-child(4) { animation-delay: 0.15s; }
.contact-hero-panel.contact-reveal { animation-delay: 0.2s; }

@keyframes contactRise {
  from { opacity: 1; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-route-card.contact-reveal.visible,
.contact-form-wrap.contact-reveal.visible,
.contact-office-card.contact-reveal.visible {
  animation: contactLift 0.48s cubic-bezier(0.2,0.8,0.2,1) both;
}

@keyframes contactLift {
  from { transform: translateY(12px); filter: saturate(0.95); }
  to { transform: translateY(0); filter: saturate(1); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-reveal,
  .contact-hero .contact-reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

@media (max-width: 1060px) {
  .contact-route-grid,
  .contact-office-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .contact-hero-grid,
  .contact-intake-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero-panel {
    max-width: 540px;
  }

  .contact-routes {
    margin-top: 0;
    padding-top: 1rem;
    background: var(--contact-bg);
  }

  .contact-intake-copy {
    position: static;
    max-width: 720px;
  }
}

@media (max-width: 620px) {
  body[data-page="contact-us"] .page-hero {
    min-height: 650px;
    padding: 4.5rem 0 3.4rem;
    background-position: 58% center;
  }

  .contact-hero h1 {
    font-size: clamp(2.3rem, 13vw, 3.35rem);
  }

  .contact-hero-lede {
    font-size: 0.98rem;
  }

  .contact-hero .page-hero-actions,
  .contact-confidence-panel .page-hero-actions {
    flex-direction: column;
  }

  .contact-hero .page-hero-actions .btn,
  .contact-confidence-panel .page-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-route-grid,
  .contact-office-grid {
    grid-template-columns: 1fr;
  }

  .contact-route-card {
    min-height: 146px;
  }

  .contact-office-card {
    min-height: 220px;
  }

  .contact-intake {
    padding: 3.4rem 0;
  }

  body[data-page="contact-us"] .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-confidence {
    padding-bottom: 3.5rem;
  }
}

/* ---------- Unified Hero Scale ---------- */
body:not([data-page="home"]) .page-hero,
body[data-page="initiating-an-action"] .page-hero,
body[data-page="defending-a-claim"] .page-hero,
.service-premium-page .service-hero,
body[data-page="contact-us"] .page-hero {
  min-height: 520px;
  padding: 6.5rem 0 5.75rem;
}

body:not([data-page="home"]) .page-hero h1,
.ia-hero h1,
.service-premium-page .ia-hero h1,
.contact-hero h1 {
  max-width: 1100px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
  margin-bottom: 1.05rem;
}

body:not([data-page="home"]) .page-hero p,
.ia-hero-lede,
.contact-hero-lede {
  font-size: clamp(0.96rem, 1.2vw, 1.1rem);
  line-height: 1.62;
}

.ia-hero-grid,
.contact-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 1100px;
}

.ia-hero-copy,
.contact-hero-copy {
  max-width: 1100px;
}

.ia-hero-panel,
.contact-hero-panel {
  display: none;
}

.ia-hero .page-hero-actions .btn,
.contact-hero .page-hero-actions .btn,
.contact-confidence-panel .page-hero-actions .btn {
  min-height: 50px;
}

@media (max-width: 768px) {
  body:not([data-page="home"]) .page-hero,
  body[data-page="initiating-an-action"] .page-hero,
  body[data-page="defending-a-claim"] .page-hero,
  .service-premium-page .service-hero,
  body[data-page="contact-us"] .page-hero {
    min-height: 590px;
    padding: 4.4rem 0 3.75rem;
  }

  body:not([data-page="home"]) .page-hero h1,
  .ia-hero h1,
  .service-premium-page .ia-hero h1,
  .contact-hero h1 {
    font-size: clamp(2.05rem, 6.4vw, 3.05rem);
    line-height: 1.02;
  }

  body:not([data-page="home"]) .page-hero p,
  .ia-hero-lede,
  .contact-hero-lede {
    font-size: 1rem;
  }

}

@media (max-width: 480px) {
  body:not([data-page="home"]) .page-hero,
  body[data-page="initiating-an-action"] .page-hero,
  body[data-page="defending-a-claim"] .page-hero,
  .service-premium-page .service-hero,
  body[data-page="contact-us"] .page-hero {
    min-height: 610px;
    padding: 4.1rem 0 3.7rem;
  }

  body:not([data-page="home"]) .page-hero h1,
  .ia-hero h1,
  .service-premium-page .ia-hero h1,
  .contact-hero h1 {
    font-size: clamp(2rem, 8.1vw, 2.25rem);
    line-height: 1.03;
  }

  body:not([data-page="home"]) .page-hero p,
  .ia-hero-lede,
  .contact-hero-lede {
    font-size: 0.96rem;
    line-height: 1.65;
  }
}
