/* ==========================================================================
   The Villages Plumber Expert - Master Stylesheet
   Modern, Accessible (WCAG 2.1 AA), Mobile-First, Performance-Optimized
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --primary-navy: #0d2137;
  --primary-navy-dark: #081524;
  --primary-navy-light: #153254;
  --brand-blue: #1668e3;
  --brand-blue-hover: #1052b5;
  --brand-cyan: #0284c7;
  --brand-cyan-light: #e0f2fe;
  --accent-amber: #f59e0b;
  --emergency-red: #dc2626;
  --emergency-red-hover: #b91c1c;
  --success-green: #16a34a;
  
  /* Neutrals */
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-on-dark: #ffffff;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --container-max: 1240px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  padding-bottom: 72px; /* Space for mobile sticky bottom bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* Universal Responsive Media Reset */
img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessible Focus Outlines */
:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--brand-blue);
  color: #ffffff;
  padding: 12px 20px;
  z-index: 9999;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 20px;
}

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

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw + 0.5rem, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2vw + 0.5rem, 1.65rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

strong {
  color: var(--text-dark);
  font-weight: 600;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--brand-blue-hover);
  text-decoration: underline;
}

/* Utility Bar */
.utility-bar {
  background-color: var(--primary-navy-dark);
  color: #f1f5f9;
  font-size: 0.875rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.utility-bar a {
  color: #ffffff;
  font-weight: 600;
}
.utility-bar a:hover {
  color: #38bdf8;
  text-decoration: underline;
}
.utility-items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.utility-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #f8fafc;
}

/* Header & Navigation */
.site-header {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 480px) {
  .logo-img {
    max-height: 40px;
  }
}

.nav-desktop {
  display: none;
}
@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
  }
}
.nav-desktop li a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  text-decoration: none;
}
.nav-desktop li a:hover,
.nav-desktop li a.active {
  color: var(--brand-blue);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-phone-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-medium);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--primary-navy);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
@media (min-width: 768px) {
  .header-phone-cta {
    display: flex;
  }
}
.header-phone-cta:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  text-decoration: none;
}

/* Mobile Hamburger Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  z-index: 1010;
}
@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}
.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--primary-navy);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: #ffffff;
  z-index: 999;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
}
.mobile-nav-drawer.is-open {
  transform: translateX(0);
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-nav-links a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-decoration: none;
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav-links a:hover {
  color: var(--brand-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  line-height: 1.2;
  text-align: center;
}
.btn-primary {
  background-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 104, 227, 0.25);
}
.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 104, 227, 0.35);
}
.btn-emergency {
  background-color: var(--emergency-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
.btn-emergency:hover {
  background-color: var(--emergency-red-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}
.btn-secondary {
  background-color: #ffffff;
  color: var(--primary-navy);
  border-color: var(--border-medium);
}
.btn-secondary:hover {
  background-color: var(--bg-alt);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  text-decoration: none;
}
.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary-navy);
  border-color: #ffffff;
  text-decoration: none;
}
.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 60%, #173860 100%);
  color: #ffffff;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(2, 132, 199, 0.15), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-image-wrapper {
  position: relative;
  z-index: 2;
}
.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.hero-image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-image-card:hover img {
  transform: scale(1.02);
}
.hero-image-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(13, 33, 55, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.15rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.hero-badge-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-badge-sub {
  font-size: 0.8rem;
  color: #38bdf8;
  font-weight: 600;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.trust-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}
.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 500;
}
.trust-pill svg {
  color: #38bdf8;
  flex-shrink: 0;
}

/* Page Banner / Subheader */
.page-banner {
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 100%);
  color: #ffffff;
  padding: 3rem 0;
  position: relative;
}
.page-banner h1 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.page-banner p {
  color: #cbd5e1;
  font-size: 1.15rem;
  margin-bottom: 0;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}
.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
}
.breadcrumbs-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}
.breadcrumbs-list a {
  color: var(--brand-blue);
  font-weight: 500;
}
.breadcrumbs-list li[aria-current="page"] {
  color: var(--text-dark);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section-alt {
  background-color: var(--bg-alt);
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.section-subtitle {
  color: var(--brand-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Content Grid & Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Layout with Sidebar */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  min-width: 0;
}
@media (min-width: 992px) {
  .layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
  }
}
.layout-with-sidebar > article,
.layout-with-sidebar > aside {
  min-width: 0;
  max-width: 100%;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}
.card-icon {
  width: 52px;
  height: 52px;
  background-color: var(--brand-cyan-light);
  color: var(--brand-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.card p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.card-link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Sidebar Widget */
.sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
  max-width: 100%;
}
.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.sidebar-emergency-card {
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 100%);
  color: #ffffff;
  border: none;
}
.sidebar-emergency-card h3,
.sidebar-emergency-card p {
  color: #ffffff;
}
.sidebar-emergency-card p {
  color: #cbd5e1;
}

/* Content Typography (Rich Prose) */
.rich-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.rich-text figure {
  max-width: 100%;
  margin: 2rem 0;
  overflow: hidden;
}
.rich-text figure img {
  max-width: 100%;
  height: auto;
  display: block;
}
.rich-text h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
  word-wrap: break-word;
}
.rich-text h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.rich-text ul, .rich-text ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}
.rich-text li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.rich-text blockquote {
  border-left: 4px solid var(--brand-blue);
  background-color: var(--bg-alt);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-dark);
}

/* Feature Table */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
.comparison-table th, 
.comparison-table td {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-light);
}
.comparison-table th {
  background-color: var(--primary-navy);
  color: #ffffff;
  font-weight: 700;
}
.comparison-table tr:nth-child(even) {
  background-color: var(--bg-alt);
}

/* Accessible Accordions (FAQ) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
details.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}
details.faq-item[open] {
  border-color: var(--brand-blue);
}
summary.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
summary.faq-question::-webkit-details-marker {
  display: none;
}
summary.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-blue);
  transition: transform 0.2s ease;
}
details.faq-item[open] summary.faq-question::after {
  content: "−";
  color: var(--primary-navy);
}
.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Contact & Request Forms */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-alt);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.form-control:focus {
  background-color: #ffffff;
  border-color: var(--brand-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 104, 227, 0.15);
}
.form-control.is-invalid {
  border-color: var(--emergency-red);
  background-color: #fef2f2;
}
.form-feedback {
  font-size: 0.825rem;
  margin-top: 0.25rem;
  color: var(--emergency-red);
  display: none;
}
.form-feedback.is-visible {
  display: block;
}
.form-success-banner {
  display: none;
  background-color: #ecfdf5;
  border: 1px solid var(--success-green);
  color: #065f46;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.form-success-banner.is-visible {
  display: block;
}

/* Conversion CTA Banners */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}
.cta-banner-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--primary-navy-dark);
  color: #94a3b8;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--brand-blue);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links a {
  color: #cbd5e1;
  font-size: 0.95rem;
  text-decoration: none;
}
.footer-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
}
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}
.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal-links a {
  color: #94a3b8;
}
.footer-legal-links a:hover {
  color: #ffffff;
}

/* Mobile Sticky CTA Bar */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid var(--border-medium);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 998;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  display: flex;
  gap: 0.75rem;
}
@media (min-width: 992px) {
  .mobile-sticky-cta {
    display: none;
  }
}
.mobile-sticky-cta .btn {
  flex: 1;
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Badges & Pills */
.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.badge-emergency {
  background-color: #fef2f2;
  color: var(--emergency-red);
  border: 1px solid #fecaca;
}
.badge-success {
  background-color: #ecfdf5;
  color: var(--success-green);
  border: 1px solid #a7f3d0;
}

/* Modal Pop-up Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 33, 55, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-in-out;
  padding: 1.25rem;
}
.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: all 0.25s ease-in-out;
  border: 1px solid var(--border-medium);
}
.modal-overlay.is-active .modal-dialog {
  transform: translateY(0) scale(1);
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.modal-close-btn:hover {
  color: var(--primary-navy);
}
.modal-icon {
  width: 64px;
  height: 64px;
  background: #fef2f2;
  color: var(--emergency-red);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.modal-title {
  font-size: 1.45rem;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
  font-weight: 800;
}
.modal-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.modal-phone-box {
  background: var(--bg-alt);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.modal-phone-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.modal-phone-number {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary-navy);
}
.modal-phone-number a {
  color: var(--primary-navy);
  text-decoration: none;
}
.modal-phone-number a:hover {
  color: var(--brand-blue);
}

/* Print Styles */
@media print {
  .site-header, .site-footer, .mobile-sticky-cta, .utility-bar, .btn, .modal-overlay {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }
}
