/* ==========================================================================
   AUSTIN WATER DAMAGE PROS — Master Stylesheet
   waterdamageaustin.online | 24/7 Emergency Water Damage Restoration
   Mobile-First • Conversion Optimized • High Authority SEO • UI/UX Refined
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & SYSTEM VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --primary: #0b3d6f;
  --primary-dark: #07264a;
  --primary-light: #165b9e;
  --primary-subtle: #eef5fb;
  
  --accent: #e8590c;
  --accent-hover: #d04b04;
  --accent-light: #fff4ed;
  --accent-glow: rgba(232, 89, 12, 0.35);

  --success: #16a34a;
  --success-light: #f0fdf4;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;

  /* Neutral Spectrum */
  --white: #ffffff;
  --off-white: #f8fafc;
  --bg-page: #fbfcfe;
  --light-gray: #e2e8f0;
  --border-color: #cbd5e1;
  --border-light: #f1f5f9;
  --mid-gray: #64748b;
  --dark-gray: #334155;
  --text: #1e293b;
  --text-muted: #475569;
  --text-light: #94a3b8;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 5px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 32px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 20px 40px -8px rgba(11, 61, 111, 0.16);

  /* Geometry */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  /* Layout & Sizing */
  --max-width: 1220px;
  --header-height: 82px;
  --header-height-mobile: 68px;

  /* Typography System */
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Vertical Rhythm / Spacing */
  --line-height-body: 1.74;
  --line-height-heading: 1.25;
  --line-height-tight: 1.35;
  --letter-spacing-body: -0.011em;
  --letter-spacing-heading: -0.024em;

  /* Motion */
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE TYPOGRAPHY (SPACE BETWEEN LINES & VERTICAL RHYTHM)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-system);
  color: var(--text);
  background-color: var(--white);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

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

/* Headings with calibrated line spacing & margins */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-weight: 750;
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-heading);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.18;
  margin-bottom: 0.6em;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 0.65em;
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.32;
  margin-top: 1.6em;
  margin-bottom: 0.55em;
}

h4 {
  font-size: 1.15rem;
  line-height: 1.38;
  margin-top: 1.3em;
  margin-bottom: 0.5em;
}

/* Paragraph vertical rhythm */
p {
  margin-bottom: 1.35em;
  color: var(--text);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 700;
  color: var(--primary-dark);
}

/* Lists styling & line-spacing */
ul, ol {
  margin-bottom: 1.4em;
  padding-left: 0;
}

li {
  line-height: 1.68;
  margin-bottom: 0.6em;
}

/* --------------------------------------------------------------------------
   3. UTILITY CLASSES & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--white); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

.bg-primary { background-color: var(--primary); color: var(--white); }
.bg-dark { background-color: var(--primary-dark); color: var(--white); }
.bg-light { background-color: var(--off-white); }
.bg-subtle { background-color: var(--primary-subtle); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   4. EMERGENCY TOP BAR (HIGH URGENCY CALLOUT)
   -------------------------------------------------------------------------- */
.emergency-bar {
  background: linear-gradient(90deg, #d04b04 0%, #e8590c 50%, #d04b04 100%);
  color: var(--white);
  text-align: center;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.emergency-bar a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

.emergency-bar a:hover {
  opacity: 0.92;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. STICKY HEADER & MODERN NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition), background-color var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo .logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.45rem;
  box-shadow: 0 4px 10px rgba(11, 61, 111, 0.25);
}

/* Raster logo mark: the PNG already carries the navy squircle and has
   transparent corners, so the gradient below must be cleared. Selector is
   `.logo img.logo-icon` (0,2,1) so it outranks `.logo .logo-icon` (0,2,0) —
   a plain `img.logo-icon` (0,1,1) would lose and the gradient would show
   through the rounded corners. */
.logo img.logo-icon {
  background: none;
  box-shadow: none;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.logo span.accent {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  padding: 9px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--dark-gray);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--primary-subtle);
}

.nav-menu .dropdown {
  position: relative;
}

.nav-menu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 0;
  z-index: 1001;
  animation: fadeInDown 0.2s ease;
}

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

.nav-menu .dropdown:hover .dropdown-menu {
  display: block;
}

.nav-menu .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 0;
  color: var(--text);
  font-weight: 500;
}

.nav-menu .dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--primary);
  padding-left: 24px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent-light);
  border: 1px solid rgba(232, 89, 12, 0.25);
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.header-phone:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.header-phone .phone-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-phone:hover .phone-label {
  color: rgba(255, 255, 255, 0.9);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* --------------------------------------------------------------------------
   6. BUTTONS & CALL-TO-ACTION ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #e8590c 0%, #d04b04 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232, 89, 12, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d04b04 0%, #b83d02 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 89, 12, 0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--off-white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-full {
  width: 100%;
  display: flex;
}

.btn-call {
  background: linear-gradient(135deg, #e8590c 0%, #d04b04 100%);
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(232, 89, 12, 0.4);
  animation: pulse-cta 2.5s infinite;
  display: inline-flex;
}

.btn-call:hover {
  color: var(--white);
  transform: scale(1.02) translateY(-2px);
}

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 4px 18px rgba(232, 89, 12, 0.35); }
  50% { box-shadow: 0 4px 28px rgba(232, 89, 12, 0.6); }
}

/* --------------------------------------------------------------------------
   7. HERO SECTION (HIGH CONVERSION HERO)
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(145deg, #07264a 0%, #0b3d6f 55%, #124b85 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.8;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  letter-spacing: 0.02em;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: blink 1.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero p,
.hero p.hero-sub {
  font-size: clamp(1.08rem, 2.1vw, 1.25rem);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 34px;
  max-width: 760px;
}

.hero-ctas,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-phone-display {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.hero-phone-display a {
  color: var(--white);
}

.hero-phone-display a:hover {
  color: var(--accent-light);
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat,
.hero-stats .stat {
  text-align: left;
}

.hero-stat .stat-number,
.hero-stats .stat .stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  display: block;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-stat .stat-label,
.hero-stats .stat {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   8. TRUST & CERTIFICATIONS BAR
   -------------------------------------------------------------------------- */
.certifications-bar,
.cert-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--border-light);
  padding: 22px 0;
}

.cert-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0;
  list-style: none;
}

.cert-list li,
.cert-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0;
}

.cert-item .cert-icon {
  font-size: 1.3rem;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   9. SECTION HEADERS & SUBTITLES
   -------------------------------------------------------------------------- */
.section,
.services-section,
.why-choose-us,
.process-section,
.testimonials-section,
.areas-section,
.faq-section,
.content-section,
.intro-section {
  padding: 85px 0;
}

.section-header,
.services-section .container > h2,
.why-choose-us .container > h2,
.process-section .container > h2,
.testimonials-section .container > h2,
.areas-section .container > h2,
.faq-section .container > h2 {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-header .section-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-subtitle,
.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 680px;
  margin: -10px auto 48px;
}

/* --------------------------------------------------------------------------
   10. SERVICE CARDS & GRIDS
   -------------------------------------------------------------------------- */
.services-grid,
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 30px;
  margin-top: 35px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(11, 61, 111, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .card-icon,
.service-card .service-icon,
.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 22px;
  transition: transform var(--transition);
}

.service-card:hover .service-icon,
.service-card:hover .card-icon {
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.68;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-card .card-link,
.service-card .learn-more,
.learn-more {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--transition);
}

.service-card .card-link:hover,
.service-card .learn-more:hover {
  gap: 12px;
  color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   11. WHY CHOOSE US & FEATURES GRID
   -------------------------------------------------------------------------- */
.features-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.feature-card,
.trust-card {
  background: var(--white);
  padding: 34px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover,
.trust-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(11, 61, 111, 0.15);
}

.trust-card .trust-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
}

.feature-card h3,
.trust-card h4 {
  font-size: 1.18rem;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.feature-card p,
.trust-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. RESTORATION PROCESS STEPS
   -------------------------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  margin-top: 45px;
}

.process-step,
.process-steps .step {
  text-align: center;
  position: relative;
  padding: 24px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.process-step:hover,
.process-steps .step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.process-step::before,
.process-steps .step .step-number {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  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;
  box-shadow: 0 4px 12px rgba(11, 61, 111, 0.25);
}

.process-step h4,
.process-steps .step h3 {
  font-size: 1.18rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.process-step p,
.process-steps .step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.64;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   13. TESTIMONIALS SECTION
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--white);
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-card .stars {
  color: #f59e0b;
  font-size: 1.15rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-card blockquote,
.testimonial-card p:not(.author) {
  font-style: italic;
  color: var(--dark-gray);
  font-size: 0.98rem;
  line-height: 1.74;
  margin-bottom: 18px;
  flex-grow: 1;
}

.testimonial-card .reviewer,
.testimonial-card .author {
  font-weight: 750;
  font-size: 0.92rem;
  color: var(--primary-dark);
  font-style: normal;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

/* --------------------------------------------------------------------------
   14. SERVICE AREAS GRID
   -------------------------------------------------------------------------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.area-link,
.area-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--primary-dark);
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.area-link:hover,
.area-card:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  background: var(--primary-subtle);
}

.area-link::before {
  content: '📍';
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   15. FAQ ACCORDION (BOTH DETAILS/SUMMARY AND ACCORDION JS)
   -------------------------------------------------------------------------- */
.faq-list,
.faq-accordion,
.faq-container,
.faqs {
  max-width: 860px;
  margin: 35px auto 0;
}

/* Native HTML5 <details> FAQ */
details.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

details.faq-item[open] {
  border-color: rgba(11, 61, 111, 0.3);
  box-shadow: var(--shadow-sm);
}

details.faq-item summary {
  padding: 20px 24px;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background var(--transition-fast);
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary:hover {
  background: var(--off-white);
  color: var(--primary);
}

details.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s ease;
  line-height: 1;
}

details.faq-item[open] summary::after {
  content: '−';
}

details.faq-item .faq-content,
details.faq-item p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.72;
}

/* Standard JS FAQ Items */
.faq-item:not(details) {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  font-size: 1.04rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--off-white);
  color: var(--primary);
}

.faq-question .faq-toggle {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}

.faq-item.active .faq-answer {
  padding: 0 24px 22px;
  max-height: 600px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.72;
}

/* Plain Container FAQs in Service Pages */
.faq-container .faq-item:not(details) {
  padding: 22px 24px;
}

.faq-container .faq-item h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.08rem;
  color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   16. BREADCRUMBS (ELEGANT SPACED PILL BADGE & STANDALONE BAR)
   -------------------------------------------------------------------------- */
.breadcrumbs,
.breadcrumbs-container,
nav.breadcrumbs {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Standalone breadcrumb bar outside heroes */
.breadcrumbs-container,
.breadcrumbs-bar,
body > .breadcrumbs,
main > .breadcrumbs {
  padding: 12px 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--border-light);
  width: 100%;
}

.breadcrumbs-container .container,
.breadcrumbs-bar .container {
  display: flex;
  align-items: center;
}

/* Base list layout for breadcrumbs */
.breadcrumbs ol,
.breadcrumbs ul {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.2;
}

.breadcrumbs a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumbs .crumb-sep,
.breadcrumbs li.crumb-sep,
.breadcrumbs .separator {
  color: var(--border-color);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  user-select: none;
  display: inline-flex;
  align-items: center;
  margin: 0 4px;
}

.breadcrumbs span,
.breadcrumbs .crumb-current,
.breadcrumbs [aria-current="page"] {
  color: var(--dark-gray);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   17. PAGE HERO & PAGE HEADER (INNER PAGES)
   -------------------------------------------------------------------------- */
.page-hero,
.page-header {
  background: linear-gradient(145deg, #07264a 0%, #0b3d6f 100%);
  color: var(--white);
  padding: 55px 0 60px;
  text-align: center;
  position: relative;
}

.page-hero h1,
.page-header h1 {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.8vw, 2.7rem);
}

.page-hero p,
.page-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.64;
}

/* Breadcrumbs INSIDE dark hero/header - Modern Frosted Glass Pill Badge */
.page-hero .breadcrumbs,
.page-header .breadcrumbs,
.page-hero nav.breadcrumbs,
.page-header nav.breadcrumbs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  padding: 8px 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  width: auto;
}

.page-hero .breadcrumbs ol,
.page-header .breadcrumbs ol,
.page-hero .breadcrumbs ul,
.page-header .breadcrumbs ul {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.page-hero .breadcrumbs a,
.page-header .breadcrumbs a {
  color: #ffffff;
  opacity: 0.88;
  font-weight: 600;
  padding: 2px 4px;
}

.page-hero .breadcrumbs a:hover,
.page-header .breadcrumbs a:hover {
  opacity: 1;
  color: #ffffff;
  text-decoration: underline;
}

.page-hero .breadcrumbs .crumb-sep,
.page-header .breadcrumbs .crumb-sep,
.page-hero .breadcrumbs li.crumb-sep,
.page-header .breadcrumbs li.crumb-sep,
.page-hero .breadcrumbs .separator,
.page-header .breadcrumbs .separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  font-weight: 300;
  margin: 0 4px;
}

.page-hero .breadcrumbs span,
.page-header .breadcrumbs span,
.page-hero .breadcrumbs .crumb-current,
.page-header .breadcrumbs .crumb-current,
.page-hero .breadcrumbs [aria-current="page"],
.page-header .breadcrumbs [aria-current="page"] {
  color: #ffffff;
  font-weight: 750;
  opacity: 1;
}

/* Handle legacy breadcrumbs with raw text inside .breadcrumbs div */
.page-hero .breadcrumbs:not(:has(ol)):not(:has(ul)),
.page-header .breadcrumbs:not(:has(ol)):not(:has(ul)) {
  display: inline-flex;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   18. CONTENT WRAPPER, LAYOUT GRID & MAIN CONTENT ARTICLE
   -------------------------------------------------------------------------- */
.content-wrapper,
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  max-width: var(--max-width);
  margin: 50px auto 70px;
  padding: 0 24px;
}

.main-content,
article {
  min-width: 0; /* Prevents grid breakout */
}

.main-content h2,
article h2 {
  font-size: 1.85rem;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.main-content h2:first-of-type,
article h2:first-of-type {
  margin-top: 0;
}

.main-content h3,
article h3 {
  font-size: 1.35rem;
  margin-top: 1.7em;
  margin-bottom: 0.5em;
}

.main-content p,
article p {
  font-size: 1.02rem;
  line-height: 1.76;
  margin-bottom: 1.35em;
}

.main-content ul,
article ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1.5em;
}

.main-content ol,
article ol {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 1.5em;
}

.main-content li,
article li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.65em;
}

/* --------------------------------------------------------------------------
   19. CONTENT HIGHLIGHTS & CALLOUT BOXES
   -------------------------------------------------------------------------- */
.highlight-box,
.info-box,
.cta-box,
.cta-highlight-box,
.mid-content-cta,
.emergency-callout {
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin: 36px 0;
  box-shadow: var(--shadow-xs);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.highlight-box {
  background: var(--accent-light);
  border-left: 5px solid var(--accent);
}

.highlight-box h3,
.highlight-box h4 {
  color: var(--accent-hover);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.info-box {
  background: #f0f7ff;
  border-left: 5px solid var(--primary);
}

.info-box h3,
.info-box h4 {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.mid-content-cta,
.cta-box,
.emergency-callout {
  background: linear-gradient(135deg, var(--primary-subtle) 0%, #ffffff 100%);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--accent);
  text-align: left;
}

.mid-content-cta h3,
.cta-box h3,
.emergency-callout h2 {
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.32rem;
}

.mid-content-cta p,
.cta-box p,
.emergency-callout p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.emergency-callout {
  text-align: center;
  background: linear-gradient(145deg, #07264a 0%, #0b3d6f 100%);
  color: var(--white);
  border: none;
  padding: 40px 30px;
}

.emergency-callout h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.emergency-callout p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.phone-large {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  display: inline-block;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.phone-large:hover {
  color: var(--accent-light);
}

/* --------------------------------------------------------------------------
   20. SIDEBAR & SIDEBAR WIDGETS
   -------------------------------------------------------------------------- */
.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-widget,
.cta-widget,
.services-widget,
.areas-widget,
.links-widget,
.service-links-box,
.sidebar-links {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  margin-bottom: 26px;
}

.sidebar-widget h3,
.sidebar-widget h4,
.service-links-box h3,
.sidebar-links h4 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-widget p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.sidebar-widget ul,
.service-links-box ul,
ul.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget li,
.service-links-box li,
ul.sidebar-links li {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-widget li:last-child,
.service-links-box li:last-child,
ul.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-widget a,
.service-links-box a,
ul.sidebar-links a {
  display: block;
  padding: 11px 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark-gray);
  transition: all var(--transition);
}

.sidebar-widget a:hover,
.service-links-box a:hover,
ul.sidebar-links a:hover {
  color: var(--accent);
  padding-left: 14px;
  background: var(--accent-light);
}

.sidebar-cta,
.sidebar-widget.cta-widget {
  background: linear-gradient(145deg, #07264a 0%, #0b3d6f 100%);
  color: var(--white);
  text-align: center;
  border: none;
}

.sidebar-cta h3,
.sidebar-widget.cta-widget h3 {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.sidebar-cta p,
.sidebar-widget.cta-widget p {
  color: rgba(255, 255, 255, 0.88);
}

.sidebar-cta .sidebar-phone {
  font-size: 1.55rem;
  font-weight: 900;
  display: block;
  margin: 14px 0;
  color: #fff;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   21. CONTACT FORM & NAP / MAP STYLING
   -------------------------------------------------------------------------- */
.form-container,
.contact-form {
  background: var(--white);
  padding: 36px 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-container h3 {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: 1.35rem;
  color: var(--primary-dark);
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-system);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 61, 111, 0.12);
}

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

.radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 6px;
}

.radio-group label {
  font-weight: 500;
  margin-bottom: 0;
  cursor: pointer;
}

.business-info {
  background: var(--white);
  padding: 36px 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.business-info h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.35rem;
}

.nap-block p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.map-container {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.stats-list li {
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   22. RESOURCE CARDS (RESOURCES SILO)
   -------------------------------------------------------------------------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 61, 111, 0.2);
}

.resource-card h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 12px;
}

.resource-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.68;
  margin-bottom: 20px;
  flex-grow: 1;
}

.resource-card .read-more {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.resource-card .read-more:hover {
  color: var(--accent);
  gap: 10px;
}

/* --------------------------------------------------------------------------
   23. CTA BANNER (PRE-FOOTER CALLOUT)
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(145deg, #07264a 0%, #0b3d6f 60%, #104e8b 100%);
  color: var(--white);
  padding: 75px 0;
  text-align: center;
  position: relative;
}

.cta-banner h2 {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 30px;
}

.cta-banner .cta-phone {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 900;
  display: block;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.cta-banner .cta-phone a {
  color: var(--white);
}

.cta-banner .cta-phone a:hover {
  color: var(--accent-light);
}

/* --------------------------------------------------------------------------
   24. SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 70px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 38px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  padding: 5px 0;
  transition: all var(--transition);
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-phone {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--white) !important;
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

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

/* --------------------------------------------------------------------------
   25. FLOATING MOBILE CALL-TO-ACTION BAR
   -------------------------------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(90deg, #d04b04 0%, #e8590c 50%, #d04b04 100%);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  padding: 0;
}

.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 850;
  padding: 16px;
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   26. RESPONSIVE DESIGN BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .content-wrapper,
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* --------------------------------------------------------------------------
   26. RESPONSIVE DESIGN BREAKPOINTS (MOBILE UI/UX OPTIMIZED)
   -------------------------------------------------------------------------- */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .content-wrapper,
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
  }

  /* Offset for floating mobile CTA + iPhone home indicator bar */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-cta {
    display: block;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-cta a {
    min-height: 52px;
    padding: 14px 18px;
    font-size: 1.1rem;
  }

  /* Compact header layout */
  .header-inner {
    padding: 0 16px;
  }

  .logo {
    font-size: 1.1rem;
    gap: 9px;
  }

  .logo .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  /* Streamline top emergency bar on mobile - no duplicate phone text */
  .emergency-bar {
    font-size: 0.82rem;
    padding: 7px 12px;
    letter-spacing: 0.01em;
    line-height: 1.35;
  }

  .emergency-bar a {
    display: none; /* Removes messy wrapped phone number link from top bar on mobile */
  }

  .emergency-bar::after {
    content: ' — 45-Min Arrival Guarantee';
    font-weight: 500;
    opacity: 0.95;
  }

  /* Sleek, Modern Quick-Dial Icon Button in Mobile Header */
  .header-cta {
    gap: 8px;
    align-items: center;
  }

  .header-phone {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8590c 0%, #d04b04 100%);
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(232, 89, 12, 0.4);
    text-decoration: none;
    transition: transform var(--transition);
  }

  .header-phone:hover,
  .header-phone:active {
    transform: scale(1.08);
    background: #d04b04;
  }

  /* Hide the clunky raw text digits on mobile while keeping clean icon */
  .header-phone span {
    font-size: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-phone span::before {
    content: '📞';
    font-size: 1.15rem;
    line-height: 1;
  }

  .header-phone .phone-label {
    display: none !important;
  }

  /* Full-height Mobile Navigation Drawer */
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 20px 80px;
    gap: 2px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    display: flex;
    animation: mobileDrawerSlide 0.25s ease forwards;
  }

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

  .nav-menu a {
    padding: 14px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-sm);
  }

  /* Visual chevron indicator for mobile dropdowns */
  .nav-menu .dropdown > a::after {
    content: '▾';
    font-size: 0.9rem;
    transition: transform var(--transition);
  }

  .nav-menu .dropdown.open > a::after {
    transform: rotate(180deg);
  }

  .nav-menu .dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary);
    padding: 6px 0 6px 14px;
    background: var(--off-white);
    margin: 4px 0 8px 8px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }

  .nav-menu .dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-menu .dropdown-menu a {
    padding: 10px 14px;
    font-size: 0.94rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text);
  }

  .nav-menu .dropdown-menu a:last-child {
    border-bottom: none;
  }

  .hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  /* Hero & Headings on tablet/mobile */
  .hero {
    padding: 48px 0 56px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 6.5vw, 2.4rem);
    line-height: 1.2;
  }

  .hero p,
  .hero p.hero-sub {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }

  .hero-stats {
    gap: 16px;
  }

  /* Section Spacing on Mobile */
  .section,
  .services-section,
  .why-choose-us,
  .process-section,
  .testimonials-section,
  .areas-section,
  .faq-section,
  .content-section,
  .intro-section {
    padding: 50px 0;
  }

  /* Grids collapse to comfortable touch cards */
  .services-grid,
  .testimonials-grid,
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card,
  .testimonial-card,
  .resource-card {
    padding: 28px 22px;
  }

  .features-grid,
  .trust-grid,
  .process-steps,
  .areas-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .cert-list {
    gap: 16px;
  }

  /* Callout & Mid-content CTA on Mobile */
  .highlight-box,
  .info-box,
  .cta-box,
  .mid-content-cta,
  .emergency-callout {
    padding: 24px 20px;
    margin: 28px 0;
  }

  .mid-content-cta .btn,
  .cta-box .btn {
    width: 100%;
  }

  /* Forms & NAP on Mobile */
  .form-container,
  .contact-form,
  .business-info {
    padding: 26px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  /* Extra compact header for small 320px-375px screens */
  .header-inner {
    padding: 0 12px;
  }

  .logo {
    font-size: 0.98rem;
    letter-spacing: -0.03em;
  }

  .logo .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }

  .header-phone {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
  }

  /* Hero full-width CTA buttons */
  .hero-ctas,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-ctas .btn,
  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
    font-size: 1.05rem;
  }

  /* Hero stats in a 2x2 balanced card grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-stat,
  .hero-stats .stat {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    text-align: center;
  }

  .hero-stat .stat-number,
  .hero-stats .stat .stat-number {
    font-size: 1.8rem;
  }

  /* Single column cards on small phones */
  .features-grid,
  .trust-grid,
  .process-steps,
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cert-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .content-wrapper,
  .layout-grid {
    padding: 0 14px;
  }

  /* Breadcrumb pill wrapping on small mobile */
  .page-hero .breadcrumbs,
  .page-header .breadcrumbs {
    padding: 7px 14px;
    font-size: 0.82rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
  }

  .page-hero .breadcrumbs ol,
  .page-header .breadcrumbs ol {
    gap: 6px 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .emergency-bar {
    font-size: 0.82rem;
    padding: 8px 12px;
    line-height: 1.4;
  }

  .emergency-callout {
    padding: 30px 16px;
  }

  .phone-large {
    font-size: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   27. PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  .emergency-bar,
  .site-header,
  .mobile-cta,
  .site-footer,
  .sidebar {
    display: none !important;
  }

  .content-wrapper,
  .layout-grid {
    grid-template-columns: 1fr !important;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* --------------------------------------------------------------------------
   28. PHYSICAL SYMPTOM DIAGNOSTIC & PANIC TRIAGE COMPONENTS
   (High Authority Voice Search & Conversion UI)
   -------------------------------------------------------------------------- */
.symptom-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}

.symptom-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}

.symptom-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  border: 1px solid #fecaca;
}

.symptom-header h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.symptom-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
  margin-bottom: 40px;
}

.symptom-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.symptom-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.symptom-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
}

.symptom-card.severity-critical::before {
  background: var(--danger);
}

.symptom-card.severity-urgent::before {
  background: var(--accent);
}

.symptom-card.severity-slab::before {
  background: #8b5cf6;
}

.symptom-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.symptom-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.symptom-severity-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.severity-critical .symptom-severity-badge {
  background: #fee2e2;
  color: #991b1b;
}

.severity-urgent .symptom-severity-badge {
  background: #ffedd5;
  color: #9a3412;
}

.severity-slab .symptom-severity-badge {
  background: #ede9fe;
  color: #5b21b6;
}

.symptom-card h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.symptom-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.symptom-action-box {
  background: #f8fafc;
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.symptom-action-box strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 3px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.symptom-card .btn-symptom-call {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--transition);
}

.symptom-card .btn-symptom-call:hover {
  background: var(--accent);
  color: var(--white);
}

/* Panic Triage Banner */
.panic-triage-container {
  background: linear-gradient(135deg, #07264a 0%, #0b3d6f 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px;
  margin: 40px auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panic-triage-container h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.panic-triage-container p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 860px;
}

.triage-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.triage-step-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 22px;
}

.triage-step-num {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.triage-step-card h4 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.triage-step-card p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 0;
}

.triage-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.triage-cta-text {
  font-size: 1.1rem;
  font-weight: 600;
}

.triage-cta-text span {
  color: #38bdf8;
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
}

/* Plumber vs Restoration Breakdown Card */
.comparison-triage-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 36px 0;
  box-shadow: var(--shadow-sm);
}

.comparison-triage-box h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.comparison-col {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.comparison-col.plumber {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
}

.comparison-col.restoration {
  background: #fff7ed;
  border-left: 4px solid var(--accent);
}

.comparison-col h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.comparison-col ul {
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.comparison-col ul li {
  margin-bottom: 6px;
}

/* Hyperlocal Austin Hazard Callout */
.austin-hazard-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
}

.austin-hazard-card h4 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.austin-hazard-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1e3a8a;
  margin-bottom: 12px;
}

.austin-hazard-card ul {
  margin: 12px 0 16px 20px;
  color: #1e3a8a;
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .symptom-grid {
    grid-template-columns: 1fr;
  }
  .panic-triage-container {
    padding: 26px 18px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   CONTACT FORM STATUS / FALLBACK MESSAGING
   -------------------------------------------------------------------------- */
.form-status {
  margin: 14px 0 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status.is-pending {
  color: var(--text-muted);
}

.form-status.is-success {
  color: #15803d;
  background: var(--success-light);
  border-left: 4px solid var(--success);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.form-status.is-error {
  color: #b42318;
  background: #fef3f2;
  border-left: 4px solid var(--danger);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.form-alt-contact {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-alt-contact a {
  color: var(--primary-light);
  font-weight: 700;
}

.form-noscript {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   SKIP LINK (keyboard / screen-reader navigation)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   MAP EMBED HELPER LINK
   -------------------------------------------------------------------------- */
.map-directions {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.map-directions a {
  color: var(--primary-light);
  font-weight: 700;
  text-decoration: none;
}

.map-directions a:hover {
  text-decoration: underline;
}
