/* =============================================
   BBB Mobile DOT Drug Test — Master Stylesheet
   Mobile Drug Testing LLC | Park City, UT
   Brand colors extracted from bbbmobiledotdrugtest.com
   Font: IBM Plex Sans | Primary: #FF69B4 | Secondary: #C786A2
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --pink:       #C71B69;   /* Brand pink — sampled from logo */
  --pink-dark:  #A01355;   /* Deeper pink for hover */
  --pink-light: #fce4ef;   /* Light pink tint */
  --green:      #042B27;   /* Brand green — sampled from logo */
  --green-mid:  #0a4a3e;   /* Mid green for hover on dark bg */
  --navy:       #042B27;   /* Primary dark = brand green */
  --navy-dark:  #021A17;   /* Deepest dark = deep forest green */
  --white:      #ffffff;
  --gray-light: #f8f8f8;
  --gray-mid:   #e2e8f0;
  --gray-text:  #2d3748;   /* Dark slate — high contrast on white/light bg */
  --gray-dark:  #1a202c;   /* Near-black navy — body text, headings */
  --red-urgent: #c53030;
  --shadow:     0 2px 12px rgba(0,0,0,0.10);
  --radius:     6px;
  --transition: 0.2s ease;
}

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

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

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--gray-dark);
  line-height: 1.7;
  background: var(--white);
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--pink); }

ul { list-style: none; }

h1, h2, h3, h4, h5 {
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
  font-family: 'IBM Plex Sans', sans-serif;
}

h1 { font-size: 2.2rem; margin-bottom: 0.6em; }
h2 { font-size: 1.6rem; margin-bottom: 0.5em; margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; margin-top: 1.4em; color: var(--gray-dark); }
h4 { font-size: 1rem; margin-bottom: 0.4em; color: var(--gray-dark); }

p { margin-bottom: 1em; }
strong { color: var(--gray-dark); }

/* --- Layout Utilities --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-pad { padding: 60px 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-call {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  font-family: 'IBM Plex Sans', sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.btn-primary:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-call {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
  font-size: 1.1rem;
}

.btn-call:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: var(--white);
}

/* White outline button for hero / dark backgrounds */
.btn-outline-white {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy-dark);
}

/* --- Utility Classes --- */
.text-urgent { color: var(--red-urgent); font-weight: 700; }
.text-center  { text-align: center; }
.text-white   { color: var(--white); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-2 { margin-bottom: 20px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gray-mid);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-pink {
  background: var(--pink);
  color: var(--white);
}

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

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border-bottom: 3px solid var(--pink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

/* Logo image styling */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Fallback text logo (hidden when image loads) */
.logo-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  font-family: 'IBM Plex Sans', sans-serif;
}

.logo-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'IBM Plex Sans', sans-serif;
}

.main-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li > a {
  display: block;
  padding: 8px 14px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li.active > a {
  color: var(--pink);
  background: var(--pink-light);
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  min-width: 220px;
  z-index: 200;
  padding: 8px 0;
}

/* Service Areas mega-menu — horizontal 3-column layout */
.dropdown-wide {
  min-width: 580px;
  border-radius: 0;
  columns: 3;
  column-gap: 0;
  padding: 12px 0;
}
.dropdown-wide li { break-inside: avoid; }
.dropdown-wide .dropdown-label:not(:first-child) { break-before: column; }

.dropdown li a {
  display: block;
  padding: 8px 18px;
  color: var(--gray-dark);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.dropdown li a:hover {
  background: var(--pink-light);
  color: var(--navy);
}

.dropdown-label {
  padding: 8px 18px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--gray-mid);
  margin-top: 4px;
}

.dropdown-label:first-child { border-top: none; margin-top: 0; }

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { display: block; }

/* Header CTA phone */
.header-cta {
  background: var(--pink);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: background var(--transition);
}

.header-cta:hover {
  background: var(--pink-dark);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: background var(--transition);
  line-height: 1;
  flex-shrink: 0;
}

.hamburger:hover { background: var(--pink-light); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-mid);
  padding: 16px 20px 24px;
}

.mobile-nav.open { display: block; }

.mobile-nav-list { list-style: none; }
.mobile-nav-list li { border-bottom: 1px solid var(--gray-mid); }
.mobile-nav-list li:last-child { border-bottom: none; }

.mobile-nav-list a {
  display: block;
  padding: 12px 4px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.mobile-nav-list a:hover { color: var(--pink); }

.mobile-sub { padding: 0 0 8px 16px; }

.mobile-sub a {
  padding: 7px 4px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--gray-text);
}

.mobile-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 4px 2px;
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 4px;
  width: 100%;
}

.mobile-toggle::after {
  content: '+';
  color: var(--pink);
  font-size: 1.2rem;
  font-weight: 700;
}

.mobile-toggle.open::after { content: '−'; }

.mobile-submenu { display: none; }
.mobile-submenu.open { display: block; }

@media (max-width: 960px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: block; }
}

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumb {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-mid);
  padding: 10px 0;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  list-style: none;
}

.breadcrumb li + li::before {
  content: '›';
  color: var(--gray-text);
  margin-right: 4px;
}

.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb li:last-child { color: var(--gray-text); }

/* =============================================
   HERO SECTION (Homepage)
   ============================================= */
.hero {
  background: var(--navy);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(199,27,105,0.04) 0px,
      rgba(199,27,105,0.04) 1px,
      transparent 1px,
      transparent 40px
    );
  color: var(--white);
  padding: 80px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Hero video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Darkening overlay so text stays readable */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 43, 39, 0.68);
  z-index: 1;
}

/* Push all hero content above video layers */
.hero > .container {
  position: relative;
  z-index: 2;
}

/* Hide video on mobile — fallback to navy gradient */
@media (max-width: 768px) {
  .hero-video-bg,
  .hero-video-overlay { display: none; }
}

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 0.5em;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.93);
  max-width: 660px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto 48px;
}

.trust-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.trust-badge {
  background: rgba(199,27,105,0.18);
  border: 1px solid rgba(199,27,105,0.35);
  color: var(--white);
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
}

/* =============================================
   HOW IT WORKS SECTION
   ============================================= */
.how-it-works {
  background: var(--gray-light);
  padding: 60px 20px;
  text-align: center;
}

.how-it-works h2 { margin-top: 0; margin-bottom: 10px; }
.section-intro { max-width: 600px; margin: 0 auto 40px; font-size: 1.05rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.step-number {
  width: 54px;
  height: 54px;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 18px;
}

.step-card h3 { margin-top: 0; color: var(--navy); }

@media (max-width: 700px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; }
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.services-section {
  padding: 60px 20px;
  background: var(--white);
}

.services-section h2 { text-align: center; margin-top: 0; margin-bottom: 8px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: 0 6px 24px rgba(199,27,105,0.18);
  border-color: var(--pink);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--pink);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1.4rem;
}

/* Service card image (CSS background — no broken icons if file missing) */
.service-card-img {
  margin: -28px -22px 18px;   /* bleed to card edges, matches padding: 28px 22px */
  height: 240px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background-color: var(--navy);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.35s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.03);
}

.service-card h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--navy);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--gray-text);
  margin-bottom: 14px;
}

.service-card .learn-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pink);
}

.service-card .learn-more:hover { color: var(--pink-dark); }

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services-grid { grid-template-columns: 1fr; } }

/* =============================================
   DIFFERENTIATOR / WHY SECTION
   ============================================= */
.why-section {
  background: var(--navy);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.why-section h2 { color: var(--white); margin-top: 0; margin-bottom: 8px; }
.why-section .section-intro { color: rgba(255,255,255,0.8); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(199,27,105,0.25);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
}

.why-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  color: var(--pink);
}

.why-card h3 { color: var(--white); margin-top: 0; margin-bottom: 10px; }
.why-card p  { color: rgba(255,255,255,0.92); font-size: 0.93rem; margin: 0; }

@media (max-width: 700px) { .why-grid { grid-template-columns: 1fr; } }

/* =============================================
   LOCATION CARDS / SERVICE AREA
   ============================================= */
.locations-section {
  background: var(--gray-light);
  padding: 60px 20px;
}

.locations-section h2 { text-align: center; margin-top: 0; margin-bottom: 8px; }
.locations-section .section-intro { text-align: center; }

.location-group-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 28px 0 12px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  display: block;
}

.location-card:hover {
  border-color: var(--pink);
  box-shadow: 0 4px 16px rgba(199,27,105,0.2);
  transform: translateY(-2px);
  color: var(--navy);
}

.location-card small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-text);
  margin-top: 3px;
}

@media (max-width: 900px) { .locations-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .locations-grid { grid-template-columns: repeat(2, 1fr); } }

/* Centered 4-up variant (e.g. homepage featured areas) */
.locations-grid.cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.locations-grid.cols-4 .location-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) { .locations-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .locations-grid.cols-4 { grid-template-columns: 1fr; } }

/* =============================================
   PRICING TABLE
   ============================================= */
.pricing-section {
  padding: 60px 20px;
  background: var(--white);
}

.pricing-section h2 { text-align: center; margin-top: 0; margin-bottom: 8px; }

.pricing-table-wrap { overflow-x: auto; margin-top: 32px; }

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table th {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-mid);
  font-size: 0.95rem;
}

.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:nth-child(even) td { background: var(--gray-light); }

.pricing-table .price-col {
  font-weight: 700;
  color: var(--pink);
  white-space: nowrap;
}

/* =============================================
   BLOG CARDS
   ============================================= */
.blog-section {
  padding: 60px 20px;
  background: var(--gray-light);
}

.blog-section h2 { text-align: center; margin-top: 0; margin-bottom: 8px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.blog-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-mid);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover {
  box-shadow: 0 6px 24px rgba(199,27,105,0.18);
  transform: translateY(-2px);
}

.blog-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.blog-date { font-size: 0.8rem; color: var(--gray-text); }

.blog-card h3 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--navy);
  line-height: 1.35;
}

.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--pink); }

.blog-excerpt { font-size: 0.9rem; color: var(--gray-text); flex: 1; margin-bottom: 16px; }

.read-more { font-size: 0.88rem; font-weight: 700; color: var(--pink); margin-top: auto; }
.read-more:hover { color: var(--pink-dark); }

@media (max-width: 800px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px)  { .blog-grid { grid-template-columns: 1fr; } }

/* =============================================
   CTA BANNER (site-wide)
   ============================================= */
.cta-banner {
  background: var(--pink);
  padding: 48px 20px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-text h2 { color: var(--white); margin: 0 0 6px; font-size: 1.5rem; }
.cta-text p  { color: var(--white); margin: 0; font-size: 1rem; opacity: 0.92; }

.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

.cta-banner .btn-primary {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.cta-banner .btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.cta-banner .btn-secondary {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.cta-banner .btn-secondary:hover {
  background: var(--white);
  color: var(--pink);
}

@media (max-width: 640px) {
  .cta-inner { flex-direction: column; text-align: center; align-items: center; }
  .cta-actions { justify-content: center; width: 100%; }
  .cta-actions a { flex: 1; min-width: 180px; text-align: center; }
}

/* =============================================
   URGENT ALERT (Post-Accident page)
   ============================================= */
.urgent-alert {
  background: #fff5f5;
  border: 2px solid var(--red-urgent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 1.02rem;
  color: var(--red-urgent);
}

.urgent-alert strong { color: var(--red-urgent); }
.urgent-alert a { color: var(--red-urgent); font-weight: 700; }

/* =============================================
   CONTENT PAGE LAYOUT (sidebar)
   ============================================= */
.content-page { padding: 40px 20px 60px; }

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 860px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { order: -1; }
}

.content-main h1 { margin-top: 0; }
.content-main h2 { margin-top: 2em; }
.content-main ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.content-main ul li { margin-bottom: 0.4em; }
.content-main ol { list-style: decimal; padding-left: 1.4em; margin-bottom: 1em; }

/* Blog post: centered, no sidebar */
.blog-post-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.blog-post-layout h1  { margin-top: 0; font-size: 2rem; }
.blog-post-layout h2  { margin-top: 2em; }
.blog-post-layout h3  { margin-top: 1.6em; }
.blog-post-layout ul  { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.blog-post-layout ul li { margin-bottom: 0.5em; }
.blog-post-layout ol  { list-style: decimal; padding-left: 1.4em; margin-bottom: 1em; }

.blog-post-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray-mid);
}

.blog-post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--gray-text);
}

/* =============================================
   SIDEBAR
   ============================================= */
.content-sidebar { position: sticky; top: 80px; }

.sidebar-widget {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.sidebar-schedule {
  background: var(--navy);
  padding: 24px;
  color: var(--white);
}

.sidebar-schedule h3 { color: var(--white); margin: 0 0 8px; font-size: 1.1rem; }
.sidebar-schedule p  { color: rgba(255,255,255,0.93); font-size: 0.9rem; margin-bottom: 14px; }

.sidebar-schedule .phone-link {
  color: var(--pink);
  font-size: 1.15rem;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.sidebar-schedule .email-link { color: rgba(255,255,255,0.92); font-size: 0.88rem; }

.sidebar-schedule .btn-primary {
  display: block;
  text-align: center;
  margin-top: 16px;
  width: 100%;
}

.sidebar-links {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  padding: 20px 24px;
}

.sidebar-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-dark);
  margin: 0 0 12px;
  font-weight: 700;
}

.sidebar-links ul { list-style: none; padding: 0; }
.sidebar-links ul li { border-bottom: 1px solid var(--gray-mid); }
.sidebar-links ul li:last-child { border-bottom: none; }

.sidebar-links ul li a {
  display: block;
  padding: 9px 0;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 500;
  transition: color var(--transition), padding var(--transition);
}

.sidebar-links ul li a:hover {
  color: var(--pink);
  padding-left: 6px;
}

.sidebar-area {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  padding: 18px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--gray-text);
}

.sidebar-area strong { color: var(--navy); }

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-section {
  background: var(--gray-light);
  border-radius: 10px;
  padding: 28px;
  margin-top: 2em;
}

.faq-section h2 { margin-top: 0; font-size: 1.4rem; }

.faq-item { border-bottom: 1px solid var(--gray-mid); margin-bottom: 4px; }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 36px 16px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  display: block;
  line-height: 1.4;
  font-family: 'IBM Plex Sans', sans-serif;
}

.faq-question::after {
  content: '▶';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--pink);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-answer {
  display: none;
  padding: 0 0 16px 0;
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }
.no-js .faq-answer { display: block; }

/* =============================================
   RELATED ARTICLES (Blog)
   ============================================= */
.related-articles {
  background: var(--gray-light);
  border-radius: 10px;
  padding: 28px;
  margin-top: 40px;
}

.related-articles h3 { margin-top: 0; margin-bottom: 16px; font-size: 1.15rem; }
.related-articles ul { list-style: none; padding: 0; }
.related-articles ul li { border-bottom: 1px solid var(--gray-mid); }
.related-articles ul li:last-child { border-bottom: none; }

.related-articles ul li a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.93rem;
}

.related-articles ul li a:hover { color: var(--pink); }

/* Blog CTA box */
.blog-cta-box {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
  text-align: center;
}

.blog-cta-box h3 { color: var(--white); margin-top: 0; }
.blog-cta-box p  { color: rgba(255,255,255,0.93); margin-bottom: 20px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--white);
  color: var(--gray-text);
  border-top: 4px solid var(--pink);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

/* Footer logo image — same natural display as navbar logo */
.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
  font-family: 'IBM Plex Sans', sans-serif;
}

.footer-tagline {
  color: var(--pink);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-brand p { font-size: 0.88rem; margin-bottom: 6px; }
.footer-brand a { color: var(--navy); transition: color var(--transition); }
.footer-brand a:hover { color: var(--pink); }

.footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.cert-badge {
  background: var(--green);
  border: 1px solid var(--green);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col h4 {
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pink-light);
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
  color: var(--navy);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--pink); }

.footer-bottom { border-top: 1px solid var(--gray-mid); padding: 18px 0; background: var(--gray-light); }

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--gray-text);
  text-align: center;
  margin: 0;
}

.footer-bottom a { color: var(--navy); }
.footer-bottom a:hover { color: var(--pink); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(199,27,105,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
  z-index: 500;
  text-decoration: none;
}

.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--pink-dark); color: var(--white); }

/* =============================================
   PAGE-SPECIFIC COMPONENTS
   ============================================= */

/* Contact form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--gray-dark);
  background: var(--white);
  font-family: 'IBM Plex Sans', sans-serif;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(199,27,105,0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* Contact info box */
.contact-info-box {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 32px;
}

.contact-info-box h3 { color: var(--white); margin-top: 0; }

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.93rem;
}

.contact-detail-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; color: var(--pink); }
.contact-detail p { margin: 0; color: rgba(255,255,255,0.93); }
.contact-detail a { color: var(--pink); font-weight: 700; }

/* Pricing page */
.pricing-page h1 { margin-top: 0; }

.pricing-note {
  background: var(--gray-light);
  border-left: 4px solid var(--pink);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.93rem;
  margin-bottom: 24px;
}

/* About page */
.about-intro { font-size: 1.08rem; line-height: 1.8; }

.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }

.cert-item {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 16px 18px;
  border-left: 4px solid var(--pink);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--gray-dark);
}

@media (max-width: 500px) { .cert-grid { grid-template-columns: 1fr; } }

/* Meet the owner */
.owner-card {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 24px;
  margin: 20px 0 8px;
}
.owner-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
}
.owner-bio { flex: 1 1 280px; }
.owner-bio p { margin: 0 0 12px; }
.owner-bio p:last-child { margin-bottom: 0; }
.owner-name { font-size: 0.92rem; color: var(--gray-text); }
@media (max-width: 520px) { .owner-card { flex-direction: column; text-align: center; } }

/* Community partner badge */
.partner-badge {
  margin: 24px 0 8px;
  padding: 24px;
  background: var(--gray-light);
  border-radius: 10px;
  border: 1px solid var(--gray-mid);
  text-align: center;
}

.partner-badge img {
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 0 auto;
}

.partner-badge figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-text);
}

/* Page header (inner pages) */
.page-header {
  background: var(--navy);
  padding: 40px 20px 36px;
  color: var(--white);
  border-bottom: 4px solid var(--pink);
}

.page-header h1 { color: var(--white); font-size: 1.9rem; margin: 0 0 8px; }
.page-header p  { color: rgba(255,255,255,0.92); font-size: 1rem; margin: 0; max-width: 640px; }

/* Services index cards */
.service-index-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.service-index-card:hover {
  box-shadow: 0 6px 24px rgba(199,27,105,0.18);
  border-color: var(--pink);
}

.service-index-card h3 { margin-top: 0; margin-bottom: 10px; font-size: 1.1rem; }
.service-index-card h3 a { color: var(--navy); }
.service-index-card h3 a:hover { color: var(--pink); }
.service-index-card p { font-size: 0.9rem; margin-bottom: 14px; }

/* =============================================
   HOMEPAGE CONTACT SECTION
   ============================================= */
.home-contact-section {
  background: var(--gray-light);
  padding: 60px 20px;
  text-align: center;
}

.home-contact-section h2 { margin-top: 0; }

.contact-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.contact-option {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 28px 32px;
  text-align: center;
  min-width: 200px;
  box-shadow: var(--shadow);
}

.contact-option .icon { font-size: 2rem; margin-bottom: 10px; color: var(--pink); }
.contact-option h4 { margin: 0 0 6px; color: var(--navy); }
.contact-option a { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.contact-option a:hover { color: var(--pink); }

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
  .site-header,
  .site-footer,
  .cta-banner,
  .scroll-top,
  .mobile-nav,
  .mobile-cta-bar,
  .content-sidebar { display: none !important; }

  body { font-size: 12pt; color: #000; padding-bottom: 0 !important; }

  h1::after {
    content: ' — Call (435) 395-1459';
    font-size: 0.6em;
    color: #333;
  }

  .content-layout { grid-template-columns: 1fr; }
  a { color: #000; }
  a[href^="tel"]::after { content: " (" attr(href) ")"; }
}

/* =============================================
   MOBILE OPTIMIZATION — ADDITIONS
   All breakpoints use max-width (mobile-first
   enhancements layered on top of base styles)
   ============================================= */

/* --- Hero Inner Wrapper (was missing from CSS) --- */
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

/* --- Hero Meta Badges (was completely unstyled) --- */
.hero-meta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-meta span {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --- Section Header (used in HTML but not in CSS) --- */
.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--gray-text);
  font-size: 1.02rem;
}

/* --- FAQ <details> elements (native HTML5 accordion) --- */
details {
  border-bottom: 1px solid var(--gray-mid);
}

details summary {
  list-style: none;
  position: relative;
  padding-right: 36px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

details summary::-webkit-details-marker { display: none; }
details summary::marker { display: none; }

details summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--pink);
  font-weight: 700;
  line-height: 1;
}

details[open] summary::after { content: '−'; }

details[open] > *:not(summary) {
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Sticky Mobile CTA Bar (injected by JS) --- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pink);
  z-index: 900;
  box-shadow: 0 -3px 16px rgba(0,0,0,0.22);
  /* Keep text safe from iOS home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-cta-bar a {
  display: block;
  padding: 14px 20px;
  text-align: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.mobile-cta-bar a:hover,
.mobile-cta-bar a:active { color: var(--white); background: var(--pink-dark); }

@media (max-width: 960px) {
  .mobile-cta-bar { display: block; }
  /* Pad body bottom so content isn't hidden behind the bar */
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0)); }
}

/* --- FAQ Section --- */
.faq-section { padding: 40px 0 10px; }
.faq-section > h2 { margin-top: 0; margin-bottom: 20px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--pink);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item[open] > summary::after { content: '−'; }
.faq-item[open] > summary {
  border-bottom: 1px solid var(--gray-mid);
  background: var(--gray-light);
}
.faq-item .faq-answer {
  padding: 14px 20px;
  margin: 0;
  color: var(--gray-dark);
  font-size: 0.92rem;
  line-height: 1.7;
}
/* Override the old .faq-answer { display:none } rule when details[open] */
details.faq-item[open] .faq-answer { display: block; }

/* --- Glossary Page --- */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.glossary-term {
  border-left: 3px solid var(--pink);
  padding: 14px 18px;
  background: var(--gray-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.glossary-term dt {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.97rem;
  margin-bottom: 4px;
}
.glossary-term dd {
  margin: 0;
  color: var(--gray-dark);
  font-size: 0.88rem;
  line-height: 1.65;
}
.glossary-letter {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pink);
  margin: 32px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--pink-light);
}
@media (max-width: 700px) {
  .glossary-grid { grid-template-columns: 1fr; }
}

/* Move scroll-top above the sticky bar on mobile */
@media (max-width: 960px) {
  .scroll-top {
    bottom: 72px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* =============================================
   MOBILE TYPOGRAPHY & SPACING
   ============================================= */

/* Tablet tweaks (≤ 768px) */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .hero { padding: 60px 16px 52px; }
  .hero h1 { font-size: 2rem; }

  .how-it-works,
  .services-section,
  .why-section,
  .locations-section,
  .blog-section,
  .pricing-section,
  .section-pad { padding: 50px 16px; }

  .cta-banner  { padding: 36px 16px; }
  .content-page { padding: 28px 16px 52px; }
  .blog-post-layout { padding: 28px 16px 52px; }
  .page-header { padding: 32px 16px 28px; }
  .page-header h1 { font-size: 1.6rem; }
}

/* Phone tweaks (≤ 480px) */
@media (max-width: 480px) {
  html { font-size: 15px; } /* Scale everything down slightly */

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.08rem; }

  .hero { padding: 44px 14px 40px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-sub { font-size: 0.97rem; }

  /* Stack hero buttons full-width */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions a {
    text-align: center;
    width: 100%;
    max-width: 320px;
  }

  .hero-meta span { font-size: 0.78rem; padding: 5px 12px; }

  .page-header h1 { font-size: 1.42rem; }
  .blog-post-layout h1 { font-size: 1.5rem; }

  /* Reduce section padding further */
  .how-it-works,
  .services-section,
  .why-section,
  .locations-section,
  .blog-section,
  .pricing-section,
  .section-pad { padding: 36px 14px; }

  .cta-banner { padding: 28px 14px; }

  /* Stack the services section CTA buttons */
  .services-section > .container > div[style*="text-align:center"] {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .services-section a[style*="margin-left"] {
    margin-left: 0 !important;
  }
}

/* Very small screens (≤ 360px) */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .hero h1 { font-size: 1.5rem; }
}

/* =============================================
   TOUCH TARGET IMPROVEMENTS
   ============================================= */

@media (max-width: 960px) {
  /* Hamburger minimum tap target */
  .hamburger {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  /* Mobile nav links minimum height */
  .mobile-nav-list > li > a,
  .mobile-toggle {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .mobile-sub a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  /* Header CTA hides on mobile — call bar handles it */
  .header-cta { display: none; }
}

/* =============================================
   CONTENT PAGE — MOBILE SIDEBAR REORDER
   ============================================= */

/* On mobile, sidebar goes below content (not above, not below default) */
@media (max-width: 860px) {
  .content-sidebar {
    order: 2;      /* Push sidebar below main content */
    position: static; /* Remove sticky on mobile */
  }

  .content-main { order: 1; }
}

/* =============================================
   FORM — MOBILE IMPROVEMENTS
   ============================================= */

@media (max-width: 480px) {
  .contact-form { padding: 20px 16px; }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 1rem; /* Prevent iOS zoom on focus (must be ≥ 16px) */
    padding: 13px 14px;
  }
}

/* =============================================
   PRICING TABLE — HORIZONTAL SCROLL
   ============================================= */

@media (max-width: 640px) {
  .pricing-table-wrap {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .pricing-table th,
  .pricing-table td {
    padding: 12px 14px;
    font-size: 0.88rem;
  }
}

/* =============================================
   FOOTER — MOBILE STACK
   ============================================= */

@media (max-width: 560px) {
  .site-footer { padding-top: 40px; }
  .footer-grid { gap: 24px; }
  .footer-bottom p { font-size: 0.75rem; line-height: 1.5; }
}

/* =============================================
   HEADER LOGO — SCALE DOWN ON SMALL SCREENS
   ============================================= */

@media (max-width: 380px) {
  .logo-img { height: 42px; }
  .header-inner { height: 60px; }
}

/* =============================================
   HERO TRUST BADGE — MOBILE WRAP
   ============================================= */

.hero > .container > .hero-inner > .trust-badge,
.hero .trust-badge:first-child {
  margin-bottom: 20px;
  display: inline-block;
}

@media (max-width: 480px) {
  .trust-badge {
    font-size: 0.73rem;
    padding: 5px 12px;
    letter-spacing: 0.02em;
  }
}

/* =============================================
   MOBILE — NAVIGATION & FOOTER READABILITY
   Explicit white backgrounds + strong text
   contrast for header, mobile nav, and footer
   ============================================= */

@media (max-width: 960px) {

  /* ---- Header: always white ---- */
  .site-header {
    background: #ffffff !important;
    border-bottom: 3px solid var(--pink);
  }

  /* ---- Mobile nav: white bg, dark text ---- */
  .mobile-nav {
    background: #ffffff;
    border-top: 1px solid var(--gray-mid);
  }

  /* Top-level nav links */
  .mobile-nav-list > li > a {
    color: var(--navy);
    font-weight: 600;
  }

  /* Section toggles (Services, Service Areas) */
  .mobile-toggle {
    color: var(--navy);
    font-weight: 600;
  }

  /* Sub-menu links: was var(--gray-text), now navy for full contrast */
  .mobile-sub a {
    color: var(--navy);
  }

  /* Dividers */
  .mobile-nav-list li {
    border-bottom-color: var(--gray-mid);
  }

  /* ---- Footer: white bg + dark readable text ---- */
  .site-footer {
    background: #ffffff;
    color: var(--gray-dark);
  }

  /* Brand column: phone, email, tagline */
  .footer-brand p {
    color: var(--gray-dark);
  }

  .footer-brand a {
    color: var(--navy);
  }

  .footer-tagline {
    color: var(--pink);
  }

  /* Footer column headings */
  .footer-col h4 {
    color: var(--navy);
  }

  /* Footer links */
  .footer-col ul li a {
    color: var(--navy);
  }

  .footer-col ul li a:hover {
    color: var(--pink);
  }

  /* Cert badges: dark green bg, white text */
  .cert-badge {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
  }

  /* Footer bottom bar */
  .footer-bottom {
    background: var(--gray-light);
  }

  .footer-bottom p {
    color: var(--gray-dark);
  }

  .footer-bottom a {
    color: var(--navy);
  }
}
