/* ==========================================================================
   PRISTINE PROPERTIES POWER WASHING, LLC — "THE DIAGONAL REVEAL"
   A design system architecturally built around a ~15° diagonal motif
   inspired by the angle of a pressure washer's spray. The entire site
   feels like one continuous cleaning sweep from dark/grimy to bright/pristine.

   Design System & Complete Stylesheet
   ========================================================================== */

/* -------------------------------------------------------------------------
   GOOGLE FONTS
   Big Shoulders Display 800 — Headlines, CTAs, step numbers
   Karla 400/700 — Body copy, navigation, captions
   ------------------------------------------------------------------------- */
/* Google Fonts loaded via <link> in HTML for better performance */


/* =========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================= */
:root {
  /* ---- Color Palette ---- */
  --primary:       #0A3D62;
  --primary-rgb:   10, 61, 98;
  --secondary:     #E8F1F8;
  --accent:        #E74C3C;
  --accent-hover:  #C0392B;
  --accent-rgb:    231, 76, 60;
  --bg:            #FAFBFD;
  --text:          #1A1A2E;
  --text-light:    #F0F4F8;
  --surface:       #F0F4F8;
  --white:         #FFFFFF;
  --black:         #000000;
  --overlay-dark:  rgba(10, 61, 98, 0.88);
  --overlay-light: rgba(240, 244, 248, 0.92);

  /* ---- Typography ---- */
  --font-heading: 'Big Shoulders Display', 'Impact', sans-serif;
  --font-body:    'Karla', 'Helvetica Neue', Arial, sans-serif;

  --fs-h1:    clamp(2.5rem, 5vw + 1rem, 4rem);
  --fs-h2:    clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  --fs-h3:    clamp(1.25rem, 2vw + 0.25rem, 1.625rem);
  --fs-h4:    clamp(1.1rem, 1.5vw + 0.25rem, 1.25rem);
  --fs-body:  clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
  --fs-small: 0.875rem;
  --fs-xs:    0.75rem;

  --lh-heading: 1.1;
  --lh-heading-loose: 1.2;
  --lh-body: 1.65;
  --lh-body-loose: 1.7;

  --fw-heading: 800;
  --fw-body: 400;
  --fw-body-bold: 700;

  /* ---- Spacing ---- */
  --section-py:         120px;
  --section-py-tablet:  80px;
  --section-py-mobile:  60px;
  --container-max:      1200px;
  --container-narrow:   800px;
  --container-px:       clamp(1.25rem, 4vw, 3rem);
  --card-padding:       32px;
  --gap-sm:             1rem;
  --gap-md:             1.5rem;
  --gap-lg:             2rem;
  --gap-xl:             3rem;

  /* ---- Shadows ---- */
  --shadow-card:       0 2px 8px rgba(var(--primary-rgb), 0.06),
                       0 8px 24px rgba(var(--primary-rgb), 0.08);
  --shadow-card-hover: 0 4px 12px rgba(var(--primary-rgb), 0.10),
                       0 16px 40px rgba(var(--primary-rgb), 0.12);
  --shadow-nav:        0 4px 30px rgba(var(--primary-rgb), 0.15);
  --shadow-btn:        0 2px 8px rgba(var(--accent-rgb), 0.25);
  --shadow-btn-hover:  0 6px 20px rgba(var(--accent-rgb), 0.35);

  /* ---- Borders & Radii ---- */
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  8px;
  --radius-xl:  12px;
  --radius-pill: 50px;

  /* ---- Transitions ---- */
  --transition-fast:    0.2s ease;
  --transition-base:    0.3s ease;
  --transition-medium:  0.4s ease;
  --transition-slow:    0.6s ease;
  --ease-out-expo:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Diagonal System ---- */
  --diagonal-angle:  3deg;
  --diagonal-offset: 4vw;
  --hero-diagonal:   15deg;

  /* ---- Z-index Scale ---- */
  --z-base:       1;
  --z-card:       10;
  --z-nav:        100;
  --z-floating:   200;
  --z-overlay:    500;
  --z-mobile-bar: 600;
  --z-modal:      1000;
}

/* Tablet overrides */
@media (max-width: 768px) {
  :root {
    --section-py: var(--section-py-tablet);
    --card-padding: 24px;
    --gap-lg: 1.5rem;
    --gap-xl: 2rem;
  }
}

/* Mobile overrides */
@media (max-width: 480px) {
  :root {
    --section-py: var(--section-py-mobile);
    --card-padding: 20px;
    --gap-lg: 1.25rem;
    --gap-xl: 1.5rem;
  }
}


/* =========================================================================
   2. RESET & BASE STYLES
   ========================================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-size: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol { list-style: none; }
table { border-collapse: collapse; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================================
   3. TYPOGRAPHY SYSTEM
   ========================================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  line-height: var(--lh-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: 0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-heading-loose); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-heading-loose); }

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 0.75rem;
  border-radius: 2px;
}

.text-center h2::after {
  margin-inline: auto;
}

.section-insurance h2::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

p {
  max-width: 70ch;
  margin-bottom: 1em;
}

p:last-child { margin-bottom: 0; }
strong, b { font-weight: var(--fw-body-bold); }
small { font-size: var(--fs-small); }


/* =========================================================================
   4. LAYOUT SYSTEM
   ========================================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

section, .section {
  position: relative;
  padding-block: var(--section-py);
}

.grid { display: grid; gap: var(--gap-lg); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}

/* Staggered service grid: 3 top row, 2 bottom row offset */
.grid-stagger {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap-lg);
}

.grid-stagger > *:nth-child(1),
.grid-stagger > *:nth-child(2),
.grid-stagger > *:nth-child(3) {
  grid-column: span 2;
}

.grid-stagger > *:nth-child(4) { grid-column: 2 / span 2; }
.grid-stagger > *:nth-child(5) { grid-column: 4 / span 2; }

/* Asymmetric 55/45 split */
.grid-asymmetric {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--gap-xl);
  align-items: start;
}

.flex { display: flex; gap: var(--gap-md); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-stagger { grid-template-columns: repeat(2, 1fr); }
  .grid-stagger > *:nth-child(1),
  .grid-stagger > *:nth-child(2),
  .grid-stagger > *:nth-child(3),
  .grid-stagger > *:nth-child(4),
  .grid-stagger > *:nth-child(5) { grid-column: span 1; }
  .grid-asymmetric { grid-template-columns: 1fr; gap: var(--gap-lg); }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-stagger { grid-template-columns: 1fr; }
}


/* =========================================================================
   5. THE DIAGONAL SYSTEM — Design DNA
   ========================================================================= */

.diagonal-top {
  clip-path: polygon(0 var(--diagonal-offset), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--section-py) + var(--diagonal-offset));
  margin-top: calc(var(--diagonal-offset) * -1);
}

.diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--diagonal-offset)), 0 100%);
  padding-bottom: calc(var(--section-py) + var(--diagonal-offset));
}

.diagonal-both {
  clip-path: polygon(0 var(--diagonal-offset), 100% 0, 100% calc(100% - var(--diagonal-offset)), 0 100%);
  padding-top: calc(var(--section-py) + var(--diagonal-offset));
  padding-bottom: calc(var(--section-py) + var(--diagonal-offset));
}

/* Hero diagonal divider — 15° white blade */
.hero-diagonal {
  position: absolute;
  top: 0;
  left: 50%;
  width: 15%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,1) 40%, rgba(255,255,255,0.95) 100%);
  transform: translateX(-50%) skewX(calc(var(--hero-diagonal) * -1));
  z-index: var(--z-base);
  pointer-events: none;
  animation: revealDiagonal 1.2s var(--ease-out-expo) 0.3s both;
}

/* Card diagonal accent */
.diagonal-accent { position: relative; overflow: hidden; }

.diagonal-accent::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 4px;
  height: calc(100% + 16px);
  background: var(--primary);
  transform: skewY(calc(var(--diagonal-angle) * -1));
  transform-origin: top left;
  transition: width var(--transition-base), background var(--transition-base);
}

.diagonal-accent:hover::before {
  width: 6px;
  background: var(--accent);
}

/* Diagonal background stripe */
.diagonal-bg-stripe { position: relative; overflow: hidden; }
.diagonal-bg-stripe::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 40%;
  background: var(--secondary);
  transform: skewY(calc(var(--diagonal-angle) * -1));
  transform-origin: bottom left;
  z-index: -1;
  opacity: 0.5;
}


/* =========================================================================
   6. COMPONENT STYLES
   ========================================================================= */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base),
    transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-btn); }

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.25);
}

.btn-secondary:active { transform: translateY(0); }

.btn-secondary--light {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

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

.btn-phone {
  background-color: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  padding: 18px 36px;
  font-size: 1.25rem;
  box-shadow: var(--shadow-btn);
  gap: 0.75rem;
}

.btn-phone:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-phone:active { transform: translateY(0); }

.btn-pulse { animation: pulseGlow 2.5s ease-in-out infinite; }

/* ---- Service Cards ---- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-left-width: 6px;
}

.service-card:hover .card-icon {
  color: var(--accent);
  transition: color var(--transition-base);
}

.service-card .card-image {
  margin: calc(var(--card-padding) * -1);
  margin-bottom: var(--gap-md);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* When card has diagonal accent, offset left margin for the border */
.service-card.diagonal-accent .card-image {
  margin-left: calc(var(--card-padding) * -1 - 4px);
}

.service-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.service-card .card-image + .card-icon {
  margin-top: calc(var(--card-padding) - 8px);
}

.service-card .card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--gap-md);
  color: var(--primary);
}

.service-card .card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 { margin-bottom: 0.75rem; color: var(--text); }

.service-card p {
  color: var(--text);
  opacity: 0.8;
  font-size: var(--fs-body);
  line-height: var(--lh-body-loose);
}

/* ---- Step Items (Process Section) ---- */
.step-item {
  text-align: center;
  position: relative;
  padding: var(--card-padding);
}

.step-number {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  border: 2px solid rgba(var(--accent-rgb), 0.15);
  transition: background var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

.step-item:hover .step-number {
  background: rgba(var(--accent-rgb), 0.15);
  transform: scale(1.08);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.step-title {
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: var(--fs-h3);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.step-description {
  font-size: var(--fs-body);
  line-height: var(--lh-body-loose);
  color: var(--text);
  opacity: 0.8;
}

/* Horizontal timeline */
.steps-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps-horizontal::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 16.666%;
  right: 16.666%;
  height: 3px;
  background: linear-gradient(to right, var(--secondary) 0%, var(--primary) 50%, var(--secondary) 100%);
  z-index: 0;
}

.steps-horizontal .step-item { z-index: var(--z-base); }

@media (max-width: 768px) {
  .steps-horizontal {
    grid-template-columns: 1fr;
    padding-left: 3rem;
  }

  .steps-horizontal::before {
    top: 0;
    bottom: 0;
    left: 0.75rem;
    right: auto;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary), var(--primary), var(--secondary));
  }

  .steps-horizontal .step-item {
    text-align: left;
    padding: 0 0 2.5rem 1rem;
  }

  .steps-horizontal .step-item::before {
    content: '';
    position: absolute;
    left: -2.55rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--accent);
  }
}


/* =========================================================================
   7. NAVIGATION
   ========================================================================= */

.nav-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1.25rem var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-top .nav-logo { flex-shrink: 0; }
.nav-top .nav-logo img { height: 140px; width: auto; }

.nav-top .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-top .nav-links a {
  font-family: var(--font-body);
  font-weight: var(--fw-body-bold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  position: relative;
}

.nav-top .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav-top .nav-links a:hover::after { width: 100%; }

.nav-top .nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: 1rem;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}

.nav-top .nav-phone svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}

/* Floating Pill Nav */
.nav-floating {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: var(--z-floating);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
  padding: 0.625rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  box-shadow: var(--shadow-nav);
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  transition: transform 0.5s var(--ease-out-expo), opacity 0.5s var(--ease-out-expo);
  opacity: 0;
}

.nav-floating.nav-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.nav-floating .nav-logo-center {
  flex-shrink: 0;
  line-height: 0;
}

.nav-floating .nav-logo-center img {
  display: block;
}

.nav-floating .nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-floating .nav-links a {
  font-family: var(--font-body);
  font-weight: var(--fw-body-bold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  position: relative;
}

.nav-floating .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav-floating .nav-links a:hover { color: var(--accent); }
.nav-floating .nav-links a:hover::after { width: 100%; }

.nav-floating .nav-links a[style*="color"] {
  position: relative;
}

.nav-floating .nav-phone-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-base), transform var(--transition-base);
  flex-shrink: 0;
}

.nav-floating .nav-phone-icon:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
}

.nav-floating .nav-phone-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: calc(var(--z-modal) + 1);
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Full-screen mobile overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  z-index: var(--z-modal);
  background: rgba(10, 61, 98, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  place-content: center;
  gap: 1.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.nav-overlay a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: color 0.25s ease;
}

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

.nav-overlay-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.nav-overlay-close svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.nav-overlay-close:hover {
  border-color: var(--accent);
  transform: rotate(90deg);
}

.nav-overlay .btn.btn-primary {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 14px 28px;
  font-size: 1rem;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 6px;
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-top .nav-links { display: none; }
  .nav-top .nav-phone { display: none; }
  .nav-floating .nav-links { display: none; }
  .nav-floating { gap: 1rem; padding: 0.5rem 1rem; }
}


/* =========================================================================
   8. HERO STYLES
   ========================================================================= */

.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
}

.hero-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: saturate(0.3) sepia(0.4) brightness(0.6);
  z-index: 0;
  animation: heroBeforeReveal 1.0s var(--ease-out-expo) 0.1s both;
}

.hero-after {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) brightness(1.05);
  z-index: 0;
  animation: heroAfterReveal 1.0s var(--ease-out-expo) 0.2s both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.55) 0%, rgba(10,61,98,0.35) 50%, rgba(26,26,46,0.25) 100%);
  z-index: var(--z-base);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: calc(var(--z-base) + 5);
  text-align: center;
  padding: 2rem var(--container-px);
  max-width: var(--container-max);
}

.hero-content h1 {
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.hero-content .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--white);
  opacity: 0.9;
  line-height: var(--lh-body);
  max-width: 600px;
  margin: 0 auto 1rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s both;
}

.hero-content .hero-body {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--white);
  opacity: 0.85;
  line-height: var(--lh-body);
  max-width: 550px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.9s both;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out-expo) 1.0s both;
}

@media (max-width: 768px) {
  .hero { min-height: 80vh; }
  .hero-before { width: 100%; height: 50%; }
  .hero-after { width: 100%; height: 50%; top: 50%; right: auto; left: 0; }
  .hero-diagonal {
    top: 50%;
    left: 0;
    width: 100%;
    height: 12%;
    transform: translateY(-50%) skewY(calc(var(--diagonal-angle) * -1));
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}


/* =========================================================================
   9. SECTION-SPECIFIC STYLES
   ========================================================================= */

.section-services {
  background-color: var(--surface);
  position: relative;
  z-index: var(--z-base);
}

.section-process { background-color: var(--white); position: relative; }

.section-why { background-color: var(--white); position: relative; }

.section-why .benefit-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-why .benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base), transform var(--transition-base);
  margin-left: -0.75rem;
}

.section-why .benefit-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-top: 2px;
}

.section-why .benefit-icon svg { width: 100%; height: 100%; }

.section-why .benefit-item:hover {
  background: rgba(var(--primary-rgb), 0.04);
  transform: translateX(4px);
}

.section-why .benefit-icon svg {
  transition: transform var(--transition-base);
}

.section-why .benefit-item:hover .benefit-icon svg {
  transform: scale(1.15);
}

/* Insurance dark band */
.section-insurance {
  background-color: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-insurance::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    105deg, transparent, transparent 80px,
    rgba(255,255,255,0.02) 80px, rgba(255,255,255,0.02) 81px
  );
  pointer-events: none;
}

.section-insurance h2 { color: var(--white); }
.section-insurance p { color: var(--text-light); opacity: 0.9; }

.section-insurance .alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(var(--accent-rgb), 0.2);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  animation: alertPulse 3s ease-in-out infinite;
}

.section-insurance .alert-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); }
}

/* Contact section */
.section-contact { background-color: var(--white); position: relative; }

.section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(var(--primary-rgb), 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.section-contact > * { position: relative; z-index: var(--z-base); }

.section-contact .map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}

.section-contact .map-embed iframe { width: 100%; height: 100%; border: 0; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-details .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base);
  margin-left: -0.75rem;
}

.contact-details .contact-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--primary);
  margin-top: 2px;
}

.contact-details .contact-icon svg { width: 100%; height: 100%; }

.contact-details .contact-item:hover {
  background: rgba(var(--primary-rgb), 0.04);
}

.contact-details .contact-item:hover .contact-icon {
  color: var(--accent);
  transition: color var(--transition-base);
}

/* Footer */
.section-footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding-block: 60px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: var(--gap-xl);
  margin-bottom: 3rem;
}

.section-footer h4 { color: var(--white); margin-bottom: 1.25rem; font-size: var(--fs-h4); }
.section-footer p { color: var(--text-light); opacity: 0.8; font-size: var(--fs-small); line-height: var(--lh-body); }
.section-footer a { color: var(--text-light); opacity: 0.8; transition: opacity var(--transition-base), color var(--transition-base); }
.section-footer a:hover { opacity: 1; color: var(--accent); }

.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { font-size: var(--fs-small); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  opacity: 0.6;
}


@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--gap-lg); }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section-contact .grid-2 { grid-template-columns: 1fr; }
  .section-contact .map-embed { aspect-ratio: 16 / 9; }
}


/* =========================================================================
   10. ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================= */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes revealDiagonal {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.25); }
  50% { box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.5), 0 0 48px rgba(var(--accent-rgb), 0.15); }
}

@keyframes btnShimmer {
  0%, 70% { left: -100%; opacity: 0; }
  80% { opacity: 1; }
  100% { left: 200%; opacity: 0; }
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: btnShimmer 5s ease-in-out infinite;
}

.btn-pulse::after {
  animation: none;
}

@keyframes heroBeforeReveal {
  from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

@keyframes heroAfterReveal {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* Scroll-triggered */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

.animate-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.animate-slide-left.in-view { opacity: 1; transform: translateX(0); }

.animate-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.animate-slide-right.in-view { opacity: 1; transform: translateX(0); }

.animate-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.animate-scale.in-view { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.stagger-children.in-view > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(4) { transition-delay: 0.20s; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(6) { transition-delay: 0.30s; opacity: 1; transform: translateY(0); }

/* Scroll-driven animations (progressive enhancement) */
@supports (animation-timeline: view()) {
  .scroll-reveal {
    animation: fadeInUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}


/* =========================================================================
   11. DECORATIVE ELEMENTS
   ========================================================================= */

/* Water droplet pattern */
.bg-droplets { position: relative; }
.bg-droplets::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 6c0 0-12 14-12 22a12 12 0 0024 0c0-8-12-22-12-22z' fill='%230A3D62' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* Dot grid */
.bg-dots { position: relative; }
.bg-dots::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Section label with accent line */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-label .label-text {
  font-family: var(--font-body);
  font-weight: var(--fw-body-bold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  opacity: 0.7;
}

.section-label--center {
  justify-content: center;
}

.section-label--center::before { display: none; }
.section-label--center::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

/* Light label on dark backgrounds */
.section-insurance .section-label::before { background: var(--accent); }
.section-insurance .section-label .label-text { color: var(--text-light); opacity: 0.6; }


/* =========================================================================
   12. MOBILE CTA BAR & RESPONSIVE
   ========================================================================= */

.mobile-cta-bar { display: none; }

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--accent);
    z-index: var(--z-mobile-bar);
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out-expo);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
  }

  .mobile-cta-bar.visible { transform: translateY(0); }

  .mobile-cta-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    font-family: var(--font-heading);
    font-weight: var(--fw-heading);
    font-size: 1.125rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mobile-cta-bar svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
  }

  body.has-mobile-cta { padding-bottom: 60px; }
}

@media (max-width: 480px) {
  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .step-number { font-size: 2.5rem; }
  .footer-grid { text-align: center; }
  .footer-nav { align-items: center; }
  .section-label { justify-content: center; }
}


/* =========================================================================
   13. UTILITY CLASSES
   ========================================================================= */

.text-center { text-align: center; }
.text-left   { text-align: left; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: 1rem;
  text-transform: uppercase;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: calc(var(--z-modal) + 10);
  transition: top var(--transition-base);
}
.skip-link:focus { top: 0; }

.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mt-xl { margin-top: var(--gap-xl); }
.mb-sm { margin-bottom: var(--gap-sm); }
.mb-md { margin-bottom: var(--gap-md); }
.mb-lg { margin-bottom: var(--gap-lg); }
.mb-xl { margin-bottom: var(--gap-xl); }


/* =========================================================================
   14. PRINT STYLES
   ========================================================================= */

@media print {
  .nav-top, .nav-floating, .nav-overlay, .nav-hamburger, .mobile-cta-bar,
  .hero-diagonal, .hero-before, .hero-after, .hero-overlay {
    display: none !important;
  }

  body { background: white; color: black; font-size: 12pt; line-height: 1.5; }

  section, .section, .section-services, .section-process, .section-why,
  .section-insurance, .section-contact, .section-footer {
    background: white !important;
    color: black !important;
    clip-path: none !important;
    padding: 24pt 0 !important;
    margin: 0 !important;
  }

  .section-insurance h2, .section-insurance p,
  .section-footer h4, .section-footer p, .section-footer a { color: black !important; }

  h1, h2, h3, h4 { color: black; page-break-after: avoid; }
  p { orphans: 3; widows: 3; }

  .service-card { box-shadow: none; border: 1px solid #ddd; border-left: 4px solid #0A3D62; }

  .hero { min-height: auto !important; background: white !important; }
  .hero-content { position: static; padding: 24pt 0; }
  .hero-content h1 { color: black; text-shadow: none; }
  .hero-content .hero-subtitle { color: #333; text-shadow: none; }

  * { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .btn { background: none !important; color: black !important; border: 1px solid #999 !important; box-shadow: none !important; }
}


/* =========================================================================
   15. PROGRESSIVE ENHANCEMENT
   ========================================================================= */

@supports (container-type: inline-size) {
  .service-card-wrapper { container-type: inline-size; container-name: card; }
}

@supports selector(:has(*)) {
  .grid-stagger:has(.service-card:hover) .service-card:not(:hover) {
    opacity: 0.75;
    transition: opacity var(--transition-base);
  }
  .nav-floating:has(.nav-links a:hover) {
    box-shadow: var(--shadow-nav), 0 0 0 1px rgba(var(--primary-rgb), 0.12);
  }
}

/* ---- Before/After Image in Why Section ---- */
.before-after-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: var(--gap-lg);
}

.before-after-showcase img {
  width: 100%;
  height: auto;
  display: block;
}

.ba-label {
  position: absolute;
  bottom: 12px;
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.ba-label--left {
  left: 12px;
}

.ba-label--right {
  right: 12px;
}

/* ---- Image treatment for action shots ---- */
.img-branded {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-branded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.img-branded::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
  pointer-events: none;
}
