/* ==========================================================================
   South Florida Cleaning Concepts - Master Responsive Design System
   ========================================================================== */

@layer base {
:root {
  /* --------------------------------------------------------------------------
     1. Color Palette Tokens
     -------------------------------------------------------------------------- */
  /* Primary Brand: Deep Forest Eco Green */
  --color-primary: #12582e;
  --color-green: var(--color-primary);
  --color-primary-hover: #0d4222;
  --color-primary-light: #e8f5ee;
  --color-primary-subtle: #f0f7f3;

  /* Accent: Aquatic Sage / Fresh Mint */
  --color-accent: #61997a;
  --color-teal: var(--color-accent);
  --color-accent-hover: #4e8064;
  --color-accent-light: #e6f0eb;

  /* Corporate Foundation: Midnight Professional Navy */
  --color-navy: #071536;
  --color-navy-hover: #040d22;
  --color-navy-light: #162a56;
  --color-navy-subtle: #0f172a;

  /* Fresh Aquatic Accent: Sky Blue */
  --color-sky: #2680eb;
  --color-sky-hover: #1b6cd0;
  --color-sky-light: #e1f0fe;

  /* Neutrals, Surfaces & Backgrounds */
  --color-white: #ffffff;
  --color-bg: #f8fafc;                  /* Slate 50 */
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;          /* Slate 100 */
  --color-border: #e2e8f0;               /* Slate 200 */
  --color-border-subtle: #edf2f7;

  /* Typography Colors */
  --color-text-heading: #071536;        /* Midnight Navy - 18.2:1 AAA */
  --color-text-body: #334155;           /* Slate 700 - 9.6:1 AAA */
  --color-text-muted: #64748b;          /* Slate 500 */
  --color-text-inverse: #ffffff;

  /* Trust & Status */
  --color-star-gold: #f59e0b;
  --color-success: #10b981;
  --color-warning: #eab308;
  --color-danger: #dc2626;

  /* --------------------------------------------------------------------------
     2. Fluid Typography Tokens (375px mobile -> 1440px desktop)
     -------------------------------------------------------------------------- */
  --font-family-heading: 'Plus Jakarta Sans', 'Raleway', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --font-size-display: clamp(2.25rem, 1.63rem + 2.63vw, 4rem);    /* 36px -> 64px */
  --font-size-h1: clamp(1.875rem, 1.39rem + 2.07vw, 3.25rem);      /* 30px -> 52px */
  --font-size-h2: clamp(1.5rem, 1.24rem + 1.13vw, 2.25rem);        /* 24px -> 36px */
  --font-size-h3: clamp(1.25rem, 1.07rem + 0.75vw, 1.75rem);       /* 20px -> 28px */
  --font-size-h4: clamp(1.0625rem, 0.95rem + 0.47vw, 1.375rem);   /* 17px -> 22px */
  --font-size-body: clamp(1rem, 0.96rem + 0.19vw, 1.125rem);       /* 16px -> 18px */
  --font-size-small: clamp(0.844rem, 0.81rem + 0.14vw, 0.9375rem); /* 13.5px -> 15px */
  --font-size-xs: 0.8125rem;

  --line-height-tight: 1.15;
  --line-height-heading: 1.25;
  --line-height-body: 1.6;

  /* --------------------------------------------------------------------------
     3. Fluid Spacing Scale (375px mobile -> 1440px desktop)
     -------------------------------------------------------------------------- */
  --space-3xs: clamp(0.25rem, 0.21rem + 0.19vw, 0.375rem);        /* 4px -> 6px */
  --space-2xs: clamp(0.5rem, 0.41rem + 0.38vw, 0.75rem);          /* 8px -> 12px */
  --space-xs: clamp(0.75rem, 0.66rem + 0.38vw, 1rem);             /* 12px -> 16px */
  --space-sm: clamp(1rem, 0.82rem + 0.77vw, 1.5rem);              /* 16px -> 24px */
  --space-md: clamp(1.5rem, 1.23rem + 1.15vw, 2.25rem);           /* 24px -> 36px */
  --space-lg: clamp(2rem, 1.47rem + 2.25vw, 3.5rem);              /* 32px -> 56px */
  --space-xl: clamp(3rem, 2.12rem + 3.76vw, 5.5rem);              /* 48px -> 88px */
  --space-2xl: clamp(4rem, 2.59rem + 6.01vw, 8rem);               /* 64px -> 128px */

  /* --------------------------------------------------------------------------
     4. Layout & UI Boundaries
     -------------------------------------------------------------------------- */
  --container-max: 1280px;
  --container-padding: clamp(1rem, 0.65rem + 1.5vw, 2rem);
  --header-height-desktop: 84px;
  --header-height-mobile: 64px;
  --topbar-height: 40px;

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(7, 21, 54, 0.08);
  --shadow-md: 0 4px 14px rgba(7, 21, 54, 0.09);
  --shadow-lg: 0 12px 28px rgba(7, 21, 54, 0.12);
  --shadow-glow: 0 0 20px rgba(97, 153, 122, 0.3);

  /* Animation & Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Zero-Overflow Layout Reset & Base Rules
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  color: var(--color-text-body);
  background-color: var(--color-bg);
  line-height: var(--line-height-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

/* Text Wrapping Defenses */
h1, h2, h3, h4, h5, h6, p, a, span, li, dt, dd {
  overflow-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  color: var(--color-text-heading);
  font-weight: 700;
  line-height: var(--line-height-heading);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

p {
  margin-bottom: var(--space-xs);
}

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

a:hover, a:focus-visible {
  color: var(--color-primary-hover);
}

:focus-visible {
  outline: 2px solid var(--color-sky);
  outline-offset: 3px;
}

/* Standard Fluid Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-family-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  text-align: center;
  gap: 0.5rem;
  line-height: 1.2;
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--color-primary-hover);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white);
  background-color: transparent;
}

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

.btn-phone {
  background-color: var(--color-surface-alt);
  color: var(--color-navy);
  font-weight: 700;
  border: 1px solid var(--color-border);
}

.btn-phone:hover {
  background-color: #e2e8f0;
  color: var(--color-navy);
}

/* ==========================================================================
   Header & Responsive Navigation System
   ========================================================================== */

/* Top Info Bar (Desktop only) */
.top-info-bar {
  background-color: var(--color-navy);
  color: #cbd5e1;
  font-size: var(--font-size-small);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.top-info-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
  padding-block: 0.35rem;
}

.top-info-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-info-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-info-link {
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.top-info-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* Main Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height-desktop);
  padding-block: 0.75rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  height: 52px;
  width: auto;
}

/* Desktop Navigation Menu */
.desktop-nav .nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: clamp(0.75rem, 0.4rem + 1vw, 1.75rem);
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--color-text-heading);
  font-family: var(--font-family-heading);
  font-weight: 600;
  font-size: 0.975rem;
  padding: 0.5rem 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item:hover > .nav-link,
.nav-link.active {
  color: var(--color-primary);
}

/* Services Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 310px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  z-index: 1010;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--color-text-body);
  font-size: 0.925rem;
  font-weight: 500;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown li a:hover,
.nav-dropdown li a:focus-visible {
  background-color: var(--color-primary-subtle);
  color: var(--color-primary);
}

.dropdown-indicator {
  transition: transform var(--transition-fast);
}

.nav-item:hover .dropdown-indicator {
  transform: rotate(180deg);
}

/* Header CTAs */
.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Header Controls */
.mobile-controls {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.mobile-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(18, 88, 46, 0.2);
  transition: background-color var(--transition-fast);
}

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

.mobile-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  touch-action: manipulation;
}

.mobile-nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-nav-toggle span:not(:last-child) {
  margin-bottom: 5px;
}

/* Hamburger to 'X' animation */
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Navigation Drawer & Overlay
   ========================================================================== */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 54, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  background: var(--color-white);
  box-shadow: -8px 0 24px rgba(7, 21, 54, 0.15);
  z-index: 1060;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition-normal), visibility var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav-drawer.is-active {
  transform: translateX(0);
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-navy);
}

.drawer-nav-list {
  list-style: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-nav-list .nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Accordion for Mobile Services */
.mobile-accordion-toggle {
  background: none;
  border: none;
  width: 100%;
  font-family: var(--font-family-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  text-align: left;
}

.mobile-accordion-content {
  display: none;
  list-style: none;
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}

.mobile-accordion-content.is-open {
  display: block;
}

.mobile-accordion-content li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.65rem 0.5rem;
  font-size: 1rem;
  color: var(--color-text-body);
}

.mobile-accordion-content li a:hover {
  color: var(--color-primary);
}

.drawer-footer {
  margin-top: auto;
  padding: 1.5rem;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ==========================================================================
   Sticky Mobile Bottom Action Bar (< 768px)
   ========================================================================== */

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(7, 21, 54, 0.08);
  padding: 0.65rem 1rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
}

.bottom-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.bottom-bar-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.bottom-bar-call {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.bottom-bar-call:hover {
  background-color: var(--color-navy-light);
  color: var(--color-white);
}

.bottom-bar-quote {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.bottom-bar-quote:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-white);
}

/* ==========================================================================
   Hero Section & Video Background (Zero-CLS)
   ========================================================================== */

.hero-section {
  position: relative;
  width: 100%;
  min-height: 75vh;
  min-height: 75dvh;
  display: flex;
  align-items: center;
  background-color: var(--color-navy);
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Instant poster background to guarantee zero layout shift */
  background: var(--color-navy) url('/assets/videos/bg_video_13.jpeg') no-repeat center center / cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 21, 54, 0.72) 0%,
    rgba(7, 21, 54, 0.85) 60%,
    rgba(7, 21, 54, 0.94) 100%
  );
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-content {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(97, 153, 122, 0.25);
  color: #a3e6be;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(97, 153, 122, 0.4);
  backdrop-filter: blur(4px);
}

.hero-title {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  color: #e2e8f0;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-video-trigger {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white);
  gap: 0.5rem;
}

.btn-video-trigger:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

/* Page Standard Subpage Hero (Static Pre-Hydration Parallax + Brand Color Overlay) */
.page-hero {
  position: relative;
  background-color: var(--color-navy);
  background-image:
    linear-gradient(135deg, rgba(7, 21, 54, 0.82) 0%, rgba(9, 34, 68, 0.72) 55%, rgba(18, 88, 46, 0.68) 100%),
    url('/assets/images/services/home-cleaning-2022-11-16-22-05-50-utc-Large.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--color-white);
  padding: 4.5rem 0 3.5rem 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce), (max-width: 767px) {
  .page-hero {
    background-attachment: scroll;
  }
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 21, 54, 0.82) 0%, rgba(9, 34, 68, 0.72) 55%, rgba(18, 88, 46, 0.68) 100%);
  z-index: 1;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero-title {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-small);
  color: #94a3b8;
}

.breadcrumbs a {
  color: #e2e8f0;
}

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

/* ==========================================================================
   Video Modal Player
   ========================================================================== */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(7, 21, 54, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-modal-dialog {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  background-color: #071536;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: #0c1e45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-title {
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.video-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
  outline: 2px solid var(--color-sky);
}

.video-modal-body {
  position: relative;
  width: 100%;
  background-color: #000;
}

.video-aspect-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.modal-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   4-Field Lead Quote Form Component
   ========================================================================== */

.quote-card-container {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  max-width: 680px;
  margin: 0 auto;
}

.quote-card-header {
  margin-bottom: 2rem;
  text-align: center;
}

.quote-card-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.quote-card-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
}

.required-asterisk {
  color: var(--color-danger);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text-body);
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(18, 88, 46, 0.15);
}

/* Valid & Invalid States */
.form-control.is-valid {
  border-color: #16a34a;
  background-color: #f0fdf4;
}

.form-control.is-invalid {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.form-error-text {
  font-size: 0.8125rem;
  color: var(--color-danger);
  min-height: 1.2rem;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-submit {
  width: 100%;
  position: relative;
}

.privacy-note {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.form-feedback-banner {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.form-feedback-banner[hidden] {
  display: none;
}

.form-feedback-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.form-feedback-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.banner-icon {
  flex-shrink: 0;
}

.banner-title {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: inherit;
}

.banner-message {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: inherit;
}

.banner-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Spinner */
.spinner-svg {
  animation: spin 1s linear infinite;
  width: 20px;
  height: 20px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Sections, Grids & Cards
   ========================================================================== */

.section {
  padding: var(--space-xl) 0;
}

.section-bg-alt {
  background-color: var(--color-surface-alt);
}

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

.section-bg-navy h2, .section-bg-navy h3 {
  color: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto var(--space-lg) auto;
}

.section-tag {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-bg-navy .section-tag {
  color: #a3e6be;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.section-bg-navy .section-desc {
  color: #cbd5e1;
}

/* Service & Blog Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.card-title {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card-desc {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-link {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link:hover {
  text-decoration: underline;
}

/* Feature & Process Cards */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: var(--color-white);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-desc {
  color: var(--color-text-muted);
  margin: 0;
}

/* Rotation Cleaning System Feature Block */
.rotation-feature-block {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-sm);
  margin: 3rem 0;
}

.rotation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.rotation-card-box {
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border-left: 4px solid var(--color-primary);
  margin-bottom: 1.25rem;
}

.rotation-card-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.rotation-card-box p {
  margin: 0;
  color: var(--color-text-body);
}

/* Client Partner Logos Strip */
.client-strip {
  padding: 3rem 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-img {
  max-height: 55px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.client-item:hover .client-img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Testimonials Carousel / Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

.card-testimonial {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.star-rating {
  display: flex;
  gap: 0.25rem;
  color: var(--color-star-gold);
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-author {
  font-weight: 700;
  color: var(--color-navy);
}

.testimonial-location {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

/* FAQ Accordions */
.faq-accordion-group {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-family-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

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

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  color: var(--color-primary);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Pre-Footer Global CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, #162a56 100%);
  color: var(--color-white);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner-content {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.cta-banner-title {
  color: var(--color-white);
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-banner-desc {
  font-size: 1.2rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   Global Site Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-navy);
  color: #94a3b8;
  padding: 4.5rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.footer-col h3 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-guarantee-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-guarantee-box p {
  color: #cbd5e1;
  font-size: 0.925rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--font-size-small);
}

/* ==========================================================================
   Service & Blog Detailed Layouts
   ========================================================================== */

/* Split Feature & Form Grids */
.split-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.split-grid-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.cards-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .split-feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .split-grid-form {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cards-grid-2col {
    grid-template-columns: 1fr;
  }
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.checklist-item {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.checklist-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-navy);
}

.checklist-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-body);
}

.article-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--color-white);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  margin-bottom: 1rem;
}

.article-img-featured {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-body h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */

@media (max-width: 1024px) {
  .top-info-bar {
    display: none;
  }
  .desktop-nav, .header-cta {
    display: none;
  }
  .mobile-controls {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .rotation-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .mobile-bottom-bar {
    display: block;
  }
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  .hero-video-wrapper {
    background: var(--color-navy) url('/assets/videos/bg_video_13.jpeg') no-repeat center center / cover;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Drawer image hiding when closed to prevent off-screen overflow measurements */
.mobile-nav-drawer:not(.is-active) img {
  display: none !important;
}

/* Ensure mobile accordion sublinks meet touch target standard */
.mobile-accordion-content li a {
  display: flex !important;
  align-items: center !important;
  min-height: 48px !important;
}
}
