/* ==========================================
   Pristine Exterior Services LLC
   Main Stylesheet
   ========================================== */

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

/* ==========================================
   CSS Custom Properties
   ========================================== */
:root {
  --primary:        #1565C0;
  --primary-light:  #1E88E5;
  --primary-lighter:#42A5F5;
  --primary-dark:   #0D47A1;
  --primary-bg:     #EFF6FF;
  --accent:         #0288D1;

  --white:     #FFFFFF;
  --gray-50:   #F8FAFC;
  --gray-100:  #F1F5F9;
  --gray-200:  #E2E8F0;
  --gray-300:  #CBD5E1;
  --gray-400:  #94A3B8;
  --gray-500:  #64748B;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1E293B;
  --gray-900:  #0F172A;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(21,101,192,0.10);
  --shadow-md: 0 8px 24px rgba(21,101,192,0.14);
  --shadow-lg: 0 16px 48px rgba(21,101,192,0.16);
  --shadow-xl: 0 24px 64px rgba(21,101,192,0.20);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition:      all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s cubic-bezier(0.4,0,0.2,1);

  --max-width: 1200px;
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ==========================================
   Utilities
   ========================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 768px) { .container { padding: 0 1rem; } }

.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-header p { font-size: 1.125rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }

.overline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

/* Scroll reveal */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.01em;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: none;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

.btn-primary {
  background: var(--primary-light);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(30,136,229,0.4);
}
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,136,229,0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

.btn-outline-blue {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary-light);
}
.btn-outline-blue:hover { background: var(--primary-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(30,136,229,0.3); }

/* ==========================================
   Navbar
   ========================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}
.nav-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links li a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.15s ease, background 0.15s ease,
              transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-links li a:hover      { color: var(--primary-light); background: var(--primary-bg); transform: translateY(-1.5px); }
.nav-links li a.active     { color: var(--primary-light); background: var(--primary-bg); transform: none; }

.nav-links .nav-cta {
  padding: 0.5rem 1.25rem !important;
  background: var(--primary-light) !important;
  color: var(--white) !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 2px 8px rgba(30,136,229,0.3);
  transition: background 0.20s ease, box-shadow 0.20s ease,
              transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.nav-links .nav-cta:hover { background: var(--primary) !important; box-shadow: 0 4px 12px rgba(30,136,229,0.4); transform: translateY(-2px) scale(1.04) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 0.625rem; cursor: pointer; border-radius: var(--radius-sm); }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-brand { font-size: 1.1rem; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links li a { display: block; padding: 0.75rem 1rem; font-size: 1rem; }
  .nav-links .nav-cta { text-align: center; margin-top: 0.5rem; }
}

/* On small phones, shrink and wrap the brand name so it never overlaps the hamburger */
@media (max-width: 560px) {
  .nav-brand { gap: 0.5rem; }
  .nav-brand span {
    font-size: 1.05rem;
    white-space: normal;
    line-height: 1.25;
  }
}

/* ==========================================
   Page Header (inner pages)
   ========================================== */
.page-header {
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 45%, #0288D1 100%);
  padding: 4rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header-content { position: relative; z-index: 1; }
.page-header .overline {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
}
.page-header h1 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 0.75rem 0;
}
.page-header p { font-size: 1.125rem; color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; }

.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem;
  justify-content: center;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ==========================================
   Hero Section (Home)
   ========================================== */
.hero {
  /* Gradient kept as fallback while video loads */
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 45%, #0288D1 100%);
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 4rem 0 6rem;
}

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

/* Dark gradient overlay — heavier at top/bottom where text sits,
   slightly lighter in the middle so the video still shows through */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 20, 55, 0.72) 0%,
    rgba(4, 28, 70, 0.52) 45%,
    rgba(4, 20, 55, 0.65) 100%
  );
  z-index: 1;
}

/* Ensure blobs, pattern, content all sit above the video */
.hero-blob-1, .hero-blob-2, .hero-blob-3, .hero-pattern { z-index: 2; }
.hero-content { position: relative; z-index: 3 !important; }
.hero-wave { z-index: 4; }
.hero-blob-1 { position: absolute; width: 700px; height: 700px; background: rgba(255,255,255,0.04); border-radius: 50%; top: -300px; right: -200px; pointer-events: none; }
.hero-blob-2 { position: absolute; width: 500px; height: 500px; background: rgba(255,255,255,0.03); border-radius: 50%; bottom: -200px; left: -150px; pointer-events: none; }
.hero-blob-3 { position: absolute; width: 300px; height: 300px; background: rgba(2,136,209,0.2); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); filter: blur(80px); pointer-events: none; }
.hero-pattern { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; pointer-events: none; }
.hero-wave svg { width: 100%; }

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

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1rem; border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem; backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 8px; height: 8px; background: #4ADE80; border-radius: 50%;
  animation: pulse-green 2s infinite;
}
.hero-badge-dot.red { background: #F87171; animation: pulse-red 2s infinite; }
@keyframes pulse-green { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }
@keyframes pulse-red   { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }

.hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 1.5rem; text-shadow: 0 2px 8px rgba(0,0,0,0.50), 0 6px 28px rgba(0,0,0,0.30); }
.hero h1 .highlight { color: #7DD3FA; }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 560px; line-height: 1.7; text-shadow: 0 1px 4px rgba(0,0,0,0.45), 0 3px 12px rgba(0,0,0,0.25); }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .stat-number { font-size: 1.875rem; font-weight: 700; color: var(--white); line-height: 1; text-shadow: 0 1px 4px rgba(0,0,0,0.40); }
.hero-stat .stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; text-shadow: 0 1px 3px rgba(0,0,0,0.35); }

/* ==========================================
   Trust Banner
   ========================================== */
.trust-banner { background: var(--gray-50); padding: 3rem 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; text-align: center; align-items: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.trust-item .trust-number { font-size: 1.875rem; font-weight: 800; color: var(--primary-light); }
.trust-item .trust-text { font-size: 0.875rem; color: var(--gray-500); font-weight: 500; }

/* ==========================================
   Intro Snippet (Home)
   ========================================== */
.intro-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.intro-image {
  border-radius: var(--radius-xl); aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  display: flex; align-items: center; justify-content: center; font-size: 6rem;
  box-shadow: var(--shadow-xl); position: relative; overflow: hidden;
}
.intro-content h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; line-height: 1.2; }
.intro-content p { color: var(--gray-500); line-height: 1.8; margin-bottom: 1rem; }

@media (max-width: 768px) { .intro-layout { grid-template-columns: 1fr; } }

/* ==========================================
   Why Choose Us — Feature Cards
   ========================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1.5rem; }

.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 2rem;
  text-align: center;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.30s ease, border-color 0.30s ease;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 64px; height: 64px; background: var(--primary-bg); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-size: 1.75rem; transition: var(--transition);
}
.feature-card:hover .feature-icon { background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); transform: scale(1.05); }
.feature-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.75rem; }
.feature-card p { color: var(--gray-500); font-size: 0.875rem; line-height: 1.7; }

/* ==========================================
   Service Snapshot Cards (Home)
   ========================================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

/*
 * Spring-style hover animation (Apple "Fluid Interfaces" principle):
 * cubic-bezier(0.34, 1.56, 0.64, 1) overshoots the target slightly then
 * settles — mimics real-world physics and feels satisfying to interact with.
 */
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 340px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}
/* Card springs up and grows on hover */
.service-card:hover {
  transform: scale(1.035) translateY(-6px);
  box-shadow: 0 28px 60px rgba(21,101,192,0.24);
}

/* Image fills the full card; zooms in gently on hover */
.service-card-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}
.service-card-img picture { display: block; width: 100%; height: 100%; }
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.55s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.08); }

/* Gradient overlay — clear at top, dark at bottom */
.service-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.04) 0%,
    rgba(0,0,0,0.20) 38%,
    rgba(0,0,0,0.72) 70%,
    rgba(0,0,0,0.88) 100%
  );
  pointer-events: none;
}

/* Text body — anchored to the card's bottom edge.
   At rest it's just the title + padding, so it sits at the very bottom.
   On hover the body grows UPWARD as the hidden content expands, naturally
   lifting the title and revealing the description + button below it. */
.service-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  z-index: 1;
}

/* Title: sits at the bottom, rides upward as content expands beneath it */
.service-card-body h3 {
  font-size: 1.15rem; font-weight: 700; color: #ffffff;
  margin-bottom: 0;
  transition: margin-bottom 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card:hover .service-card-body h3 { margin-bottom: 0.6rem; }

/* Description: collapsed to zero height + invisible at rest.
   Expands + fades in on hover — the max-height opens up the space,
   which pushes the title upward. */
.service-card-body p {
  color: rgba(255,255,255,0.88);
  font-size: 0.85rem; line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition:
    max-height    0.42s cubic-bezier(0.4, 0, 0.2, 1),
    opacity       0.28s ease                           0.10s,
    margin-bottom 0.40s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .service-card-body p {
  max-height: 130px;
  opacity: 1;
  margin-bottom: 1rem;
}

/* Button: appears last with a slight stagger for the cascade feel */
.service-card-body .btn {
  width: 100%; justify-content: center;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1) 0.06s,
    opacity    0.28s ease                           0.22s;
}
.service-card:hover .service-card-body .btn {
  max-height: 60px;
  opacity: 1;
}

/* Touch / mobile — no hover state, so always show the full card */
@media (hover: none) {
  .service-card-body h3         { margin-bottom: 0.5rem; transition: none; }
  .service-card-body p          { max-height: none; overflow: visible; opacity: 1; margin-bottom: 1rem; transition: none; }
  .service-card-body .btn       { max-height: none; overflow: visible; opacity: 1; transition: none; }
  .service-card:hover           { transform: none; box-shadow: var(--shadow); }
  .service-card:hover .service-card-img img { transform: none; }
}

/* ==========================================
   Service Detail (Services Page)
   ========================================== */
.service-section { padding: 5rem 0; }
.service-section:nth-child(even) { background: var(--gray-50); }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.service-detail.reversed { direction: rtl; }
.service-detail.reversed > * { direction: ltr; }

.service-detail-img {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl); aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  display: flex; align-items: center; justify-content: center; font-size: 6rem;
}

.service-detail-content h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; line-height: 1.2; }
.service-detail-content .lead { font-size: 1.1rem; color: var(--gray-500); margin-bottom: 1.5rem; line-height: 1.7; }

.benefit-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.benefit-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.benefit-check {
  width: 22px; height: 22px; min-width: 22px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.65rem; margin-top: 2px;
}
.benefit-item p { color: var(--gray-600); font-size: 0.9rem; }
.benefit-item strong { display: block; color: var(--gray-800); font-weight: 600; margin-bottom: 2px; }

@media (max-width: 768px) { .service-detail { grid-template-columns: 1fr; } .service-detail.reversed { direction: ltr; } }

/* ==========================================
   Pricing
   ========================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }

.pricing-card {
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 2rem;
  text-align: center; transition: var(--transition); position: relative; overflow: hidden;
}
.pricing-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary-light), var(--accent)); }
.pricing-card.featured { border-color: var(--primary-light); box-shadow: var(--shadow-lg); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-badge { position: absolute; top: 1rem; right: 1rem; background: var(--primary-light); color: white; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.7rem; border-radius: var(--radius-full); }
.pricing-icon { width: 72px; height: 72px; background: var(--primary-bg); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 2rem; }
.pricing-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; }
.pricing-price { margin-bottom: 1.5rem; }
.pricing-amount { font-size: 3rem; font-weight: 800; color: var(--primary-light); line-height: 1; }
.pricing-unit { font-size: 1rem; color: var(--gray-400); font-weight: 400; }
.pricing-features { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; text-align: left; }
.pricing-feature { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--gray-600); }
.pricing-feature i { color: var(--primary-light); font-size: 0.85rem; flex-shrink: 0; }

.pricing-note {
  background: var(--primary-bg); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.25rem; text-align: center; margin-bottom: 1.5rem;
}
.pricing-note p { color: var(--gray-600); font-size: 0.875rem; }

.coming-soon-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  border-radius: var(--radius-xl); padding: 2.5rem; text-align: center; color: white;
  position: relative; overflow: hidden;
}
.coming-soon-card::before { content: ''; position: absolute; width: 400px; height: 400px; background: rgba(255,255,255,0.05); border-radius: 50%; top: -200px; right: -100px; }
.coming-soon-badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); padding: 0.25rem 1rem; border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.coming-soon-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; position: relative; }
.coming-soon-card p { font-size: 1rem; opacity: 0.85; max-width: 500px; margin: 0 auto; position: relative; }

/* ==========================================
   Gallery
   ========================================== */
.gallery-pairs { display: flex; flex-direction: column; gap: 3rem; }

.gallery-pair-container {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm);
}
.gallery-pair-header {
  background: var(--primary-bg); padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--gray-200);
}
.gallery-pair-header h3 { font-size: 0.95rem; font-weight: 600; color: var(--gray-800); }
.gallery-pair-header i { color: var(--primary-light); }

.gallery-pair { display: grid; grid-template-columns: 1fr 1fr; }
.gallery-divider { width: 3px; background: white; }

.gallery-item { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-label {
  position: absolute; top: 0.75rem; left: 0.75rem;
  padding: 0.2rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.gallery-label.before { background: rgba(0,0,0,0.6); color: white; }
.gallery-label.after  { background: var(--primary-light); color: white; }

@media (max-width: 600px) { .gallery-pair { grid-template-columns: 1fr; } }

/* ==========================================
   About
   ========================================== */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-image {
  border-radius: var(--radius-xl); aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 7rem;
  box-shadow: var(--shadow-xl);
}
.about-content h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; line-height: 1.2; }
.about-content p { color: var(--gray-600); margin-bottom: 1rem; line-height: 1.8; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.value-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; transition: var(--transition); }
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-bg); }
.value-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.value-card h3 { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; }

@media (max-width: 768px) { .about-intro { grid-template-columns: 1fr; } }

/* ==========================================
   Contact / Quote Form
   ========================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.7fr; gap: 2.5rem; align-items: start; }

.contact-info h2 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; }
.contact-info > p { color: var(--gray-500); margin-bottom: 2rem; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; }
.contact-detail-icon { width: 44px; height: 44px; min-width: 44px; background: var(--primary-bg); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--primary-light); font-size: 1.1rem; }
.contact-detail-text h4 { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.contact-detail-text p, .contact-detail-text a { font-size: 0.875rem; color: var(--gray-500); }
.contact-detail-text a:hover { color: var(--primary-light); }

.contact-form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.5rem; }

input, select, textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-size: 1rem; font-family: var(--font);
  color: var(--gray-800); background: var(--white);
  transition: var(--transition-fast);
  appearance: none; -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(30,136,229,0.12); }

/* ── Keyboard focus ring (only shows for tab navigation, not mouse clicks) ──
   White halo + blue outline stays visible on both light sections and the
   dark hero. Form fields keep their own focus treatment above. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.faq-question:focus-visible,
.hamburger:focus-visible,
.ba-slider-wrap:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 1rem; text-align: center; }

.form-success { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-success.show { display: block; }
.form-success-icon { width: 80px; height: 80px; background: #DCFCE7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 2.5rem; }
.form-success h3 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; }
.form-success p { color: var(--gray-500); }

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

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  padding: 5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; width: 600px; height: 600px; background: rgba(255,255,255,0.04); border-radius: 50%; top: -300px; right: -100px; }
.cta-section h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-section p { font-size: 1.125rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; position: relative; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ==========================================
   Footer
   ========================================== */
.footer { background: var(--gray-900); color: var(--gray-400); }

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  /* Note: horizontal padding comes from the .container class */
}

.footer-logo { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.25rem; }

.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 0.875rem; transition: var(--transition);
}
.social-link:hover { background: var(--primary-light); color: var(--white); transform: translateY(-2px); }

.footer-heading { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { font-size: 0.875rem; color: var(--gray-400); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--white); padding-left: 0.5rem; }

.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.footer-contact-list i { color: var(--primary-lighter); margin-top: 3px; flex-shrink: 0; }
.footer-contact-list a { color: var(--gray-400); }
.footer-contact-list a:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.875rem; color: var(--gray-500); }

@media (max-width: 900px) { .footer-container { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-container { grid-template-columns: 1fr; } .footer-bottom .container { flex-direction: column; text-align: center; } }

/* Extra bottom padding on mobile so the fixed Call/Quote buttons never cover footer content */
@media (max-width: 768px) {
  .footer { padding-bottom: 5rem; }
}

/* ==========================================
   Floating Call Button (Mobile Only)
   ========================================== */
.floating-call-btn {
  display: none;
  position: fixed; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); right: 1.25rem; z-index: 999;
  background: linear-gradient(135deg, #16A34A, #15803D);
  color: var(--white); border-radius: var(--radius-full);
  padding: 0.875rem 1.25rem;
  align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(22,163,74,0.45);
  transition: var(--transition);
  animation: float-btn 3s ease-in-out infinite;
}
.floating-call-btn:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 6px 28px rgba(22,163,74,0.55); animation: none; }

@keyframes float-btn { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

@media (max-width: 768px) { .floating-call-btn { display: flex; } }

/* ==========================================
   Sticky Mobile Quote Button
   ========================================== */
.sticky-quote-btn {
  display: none;
  position: fixed; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); left: 1.25rem; z-index: 998;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: var(--white); border-radius: var(--radius-full);
  padding: 0.875rem 1.25rem;
  align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; font-family: var(--font);
  box-shadow: 0 4px 20px rgba(21,101,192,0.45);
  transition: var(--transition); white-space: nowrap;
}
.sticky-quote-btn:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); transform: scale(1.05) translateY(-2px); }

@media (max-width: 768px) { .sticky-quote-btn { display: flex; } }

/* On narrow phones, slim both pills so they never crowd each other */
@media (max-width: 400px) {
  .floating-call-btn, .sticky-quote-btn {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
}

/* ==========================================
   Before / After Image Slider
   ========================================== */
.ba-sliders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ba-slider-wrap {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: col-resize;
  user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;
  box-shadow: var(--shadow-lg);
  /* touch-action is set to pan-y in the fluid-interface section below:
     vertical swipes scroll the page, horizontal drags move the divider */
}
.ba-before, .ba-after {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.ba-after {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: white;
  transform: translateX(-50%);
  z-index: 10; pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: white; border-radius: 50%;
  box-shadow: 0 2px 14px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: 0.875rem;
}
.ba-label {
  position: absolute; top: 0.875rem;
  padding: 0.25rem 0.875rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; z-index: 5;
}
.ba-label.before { left: 0.875rem; background: rgba(0,0,0,0.55); color: white; }
.ba-label.after  { right: 0.875rem; background: var(--primary-light); color: white; }

.ba-drag-hint {
  position: absolute; bottom: 0.875rem; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.45); color: white;
  font-size: 0.7rem; padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full); white-space: nowrap; z-index: 6;
  animation: hint-fade 3s ease forwards;
}
@keyframes hint-fade { 0%,70%{opacity:1} 100%{opacity:0;pointer-events:none} }

/* Placeholder inner panels */
.ba-before-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
  background: linear-gradient(145deg, #3d3d52, #1a1a2e);
  color: rgba(255,255,255,0.75); font-size: 0.875rem;
  font-weight: 600; text-align: center;
}
.ba-after-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
  background: linear-gradient(145deg, #1565C0, #0288D1);
  color: rgba(255,255,255,0.9); font-size: 0.875rem;
  font-weight: 600; text-align: center;
}
.ba-before-ph i, .ba-after-ph i { font-size: 2.5rem; opacity: 0.6; }

.ba-slider-caption {
  margin-top: 0.5rem;
  font-size: 0.8rem; color: var(--gray-500); text-align: center;
  font-style: italic;
}

/* ==========================================
   Grime Clock (homepage)
   ========================================== */
.grime-clock {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: 2rem; align-items: center;
  max-width: 1020px; margin: 0 auto;
}
.grime-stage {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.grime-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 60%;
}
.grime-dirty {
  opacity: 0;
  transition: opacity 0.9s ease, filter 0.9s ease;
  will-change: opacity;
}
.grime-badge {
  position: absolute; top: 0.875rem; left: 0.875rem;
  background: rgba(0,0,0,0.55); color: #fff;
  padding: 0.3rem 0.9rem; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 700;
  transition: background 0.4s ease;
}
.grime-controls label { font-weight: 600; color: var(--gray-800); margin-bottom: 0.75rem; }
.grime-controls input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, #16A34A, #FACC15, #B45309, #44403C);
  border: none; padding: 0; cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}
.grime-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--primary-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.grime-controls input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--primary-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.grime-controls input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }
.grime-ticks {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--gray-500);
  margin-top: 0.4rem; font-weight: 600;
}
.grime-desc {
  min-height: 4.2em;
  margin: 1.1rem 0 1.25rem; color: var(--gray-600);
  font-size: 0.95rem; line-height: 1.65;
  transition: opacity 0.3s ease;
}
.grime-desc.swapping { opacity: 0; }
@media (max-width: 820px) {
  .grime-clock { grid-template-columns: 1fr; gap: 1.5rem; }
  .grime-desc { min-height: 0; }
}

/* ==========================================
   YouTube Embed (homepage)
   ========================================== */
.yt-embed-wrap {
  position: relative;
  max-width: 860px; margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--gray-900);
  box-shadow: var(--shadow-lg);
}
.yt-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================
   Service Area Map
   ========================================== */
.service-area-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem; align-items: start;
}
.service-area-map-wrap {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.service-area-map-wrap div { width: 100%; height: 100%; }

.service-area-content h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; line-height: 1.2; }
.service-area-content > p { color: var(--gray-500); line-height: 1.8; margin-bottom: 1.5rem; }

.city-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.city-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--primary-bg); border: 1px solid var(--gray-200);
  border-radius: var(--radius-full); padding: 0.35rem 0.875rem;
  font-size: 0.83rem; font-weight: 500; color: var(--gray-700);
}
.city-tag i { color: var(--primary-light); font-size: 0.7rem; }

@media (max-width: 768px) { .service-area-layout { grid-template-columns: 1fr; } }

/* ==========================================
   Google Reviews
   ========================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem; margin-bottom: 1.5rem;
}
.review-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: var(--transition); position: relative;
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-stars { color: #F59E0B; font-size: 0.95rem; margin-bottom: 0.875rem; letter-spacing: 2px; }
.review-text {
  font-size: 0.9rem; color: var(--gray-600);
  line-height: 1.75; margin-bottom: 1.25rem; font-style: italic;
}
.review-author { display: flex; align-items: center; gap: 0.75rem; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.875rem;
}
.review-name { font-size: 0.875rem; font-weight: 600; color: var(--gray-900); }
.review-date { font-size: 0.775rem; color: var(--gray-400); }
.reviews-google-cta {
  text-align: center; padding: 0.75rem;
  font-size: 0.9rem;
}
.reviews-google-cta a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--primary-light); font-weight: 600; transition: var(--transition-fast);
}
.reviews-google-cta a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Live Google reviews */
.gr-aggregate {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-bottom: 2rem;
}
.gr-agg-rating {
  font-size: 3rem; font-weight: 800; line-height: 1; color: var(--gray-900);
}
.gr-agg-meta { display: flex; flex-direction: column; gap: 0.3rem; }
.gr-stars { display: inline-flex; gap: 0.2rem; color: #FBBC04; font-size: 0.95rem; }
.gr-agg-meta .gr-stars { font-size: 1.15rem; }
.gr-agg-count { font-size: 0.875rem; font-weight: 600; color: var(--primary-light); transition: var(--transition-fast); }
.gr-agg-count:hover { color: var(--primary-dark); text-decoration: underline; }
.gr-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem; max-width: 1000px; margin: 0 auto 2rem;
}
.gr-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.gr-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.gr-card-head { display: flex; align-items: center; gap: 0.75rem; }
.gr-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
}
.gr-author { font-size: 0.9rem; font-weight: 600; color: var(--gray-900); }
.gr-when { font-size: 0.775rem; color: var(--gray-400); }
.gr-glogo { margin-left: auto; font-size: 1.1rem; color: #4285F4; }
.gr-text { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; margin: 0; }

/* ==========================================
   FAQ Accordion
   ========================================== */
.faq-list {
  display: flex; flex-direction: column; gap: 0.625rem;
  max-width: 820px; margin: 0 auto;
}
.faq-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 0.2s ease,
              box-shadow  0.28s ease,
              transform   0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-item:not(.open):hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.faq-item.open { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding: 1.125rem 1.5rem;
  background: none; border: none; cursor: pointer;
  text-align: left; font-family: var(--font);
  font-size: 0.95rem; font-weight: 600; color: var(--gray-900);
  transition: color 0.15s;
}
.faq-question:hover { color: var(--primary-light); }
.faq-icon {
  flex-shrink: 0; width: 28px; height: 28px;
  background: var(--primary-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: 0.8rem;
  transition: transform 0.40s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s;
}
.faq-item.open .faq-icon { background: var(--primary-light); color: white; transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--gray-100); padding-top: 1rem;
  font-size: 0.9rem; color: var(--gray-500); line-height: 1.8;
}

/* ==========================================
   How It Works (Home)
   ========================================== */
.hiw-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
}
.hiw-step { text-align: center; padding: 0 1rem; }
.hiw-step-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem; color: white;
  box-shadow: var(--shadow-md);
  position: relative;
}
.hiw-step-num {
  position: absolute; top: -6px; right: -6px;
  width: 26px; height: 26px;
  background: white; border: 2px solid var(--primary-light);
  border-radius: 50%; font-size: 0.7rem; font-weight: 700;
  color: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
}
.hiw-step h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.hiw-step p  { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; max-width: 200px; margin: 0 auto; }
.hiw-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300); font-size: 1.4rem;
  padding-top: 1.75rem;
}
@media (max-width: 768px) {
  .hiw-steps { grid-template-columns: 1fr; gap: 0; }
  .hiw-arrow { transform: rotate(90deg); padding: 0.25rem 0; }
  .hiw-step { padding: 0.5rem 0; }
}

/* ============================================================
   WEATHER WIDGET
   ============================================================ */
.weather-section { padding: 2rem 0; }
.weather-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.weather-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.wx-current {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}
.wx-emoji { font-size: 3.5rem; line-height: 1; }
.wx-temp-block {}
.wx-temp {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}
.wx-cond {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 0.2rem;
}
.wx-divider {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.wx-info {
  flex: 1;
  min-width: 180px;
}
.wx-location {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}
.wx-msg {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}
.wx-cta {
  display: inline-block;
  margin-top: 0.75rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.125rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.wx-cta:hover { background: rgba(255,255,255,0.28); color: #fff; }
.wx-forecast {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.fc-day-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  text-align: center;
  min-width: 64px;
}
.fc-day { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; opacity: 0.75; margin-bottom: 0.25rem; }
.fc-icon { font-size: 1.5rem; line-height: 1; margin-bottom: 0.2rem; }
.fc-temps { font-size: 0.8rem; font-weight: 600; }
.fc-high { opacity: 1; }
.fc-low  { opacity: 0.6; }
/* Loading / error states */
.wx-loading, .wx-error {
  text-align: center;
  padding: 1.5rem;
  opacity: 0.75;
  font-size: 0.9rem;
  width: 100%;
}
@media (max-width: 900px) {
  .wx-divider { display: none; }
  .weather-card { gap: 1.5rem; padding: 1.5rem; }
}
@media (max-width: 640px) {
  .weather-card { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .wx-forecast { width: 100%; justify-content: space-between; }
  .fc-day-card { flex: 1; }
  .wx-divider { display: none; }
}

/* ============================================================
   GLOBAL MOBILE OPTIMISATIONS
   ============================================================ */

/* Reduce vertical section padding on mobile */
@media (max-width: 768px) {
  .section    { padding: 3rem 0; }
  .section-sm { padding: 1.75rem 0; }
  .cta-section { padding: 3.5rem 0; }
  .page-header { padding: 2.5rem 0 3.5rem; }
}

/* Hero buttons — center and stack on small screens */
@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-stats { justify-content: space-between; gap: 1rem; }
}

/* Contact form card — reduce padding on mobile */
@media (max-width: 600px) {
  .contact-form-card { padding: 1.25rem; }
  .coming-soon-card  { padding: 1.75rem 1.25rem; }
}

/* Ensure no element bleeds past screen edges */
@media (max-width: 768px) {
  .hero-content  { max-width: 100%; }
  .cta-buttons   { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
  .section-header p { font-size: 1rem; }
}

/* Hamburger button — prevent it from ever being squeezed */
.hamburger { flex-shrink: 0; }

/* ============================================================
   ANIMATIONS & MOTION
   Apple-style micro-interactions, entrance sequences, spring
   physics. Zero layout or colour changes — motion only.
   ============================================================ */

/* ── Scroll progress bar (created by JS) ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 2001;
  pointer-events: none;
  will-change: transform;
}

/* ── Entrance animation shared by hero + page headers ── */
@keyframes slide-up-fade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero — each direct child staggers in on page load */
.hero-content .hero-badge  { animation: slide-up-fade 0.70s cubic-bezier(0.34, 1.56, 0.64, 1) 0.10s both; }
.hero-content h1            { animation: slide-up-fade 0.70s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.28s both; }
.hero-content > p           { animation: slide-up-fade 0.70s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.44s both; }
.hero-content .hero-buttons { animation: slide-up-fade 0.70s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.58s both; }
.hero-content .hero-stats   { animation: slide-up-fade 0.70s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.74s both; }

/* Inner page headers — breadcrumb → badge → h1 → p */
.page-header-content .breadcrumb { animation: slide-up-fade 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s both; }
.page-header-content .overline   { animation: slide-up-fade 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.16s both; }
.page-header-content h1          { animation: slide-up-fade 0.60s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.28s both; }
.page-header-content > p         { animation: slide-up-fade 0.60s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.40s both; }

/* ── Hero blobs — slow organic drift keeps background alive ── */
@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(-28px, 18px) scale(1.04); }
  70%      { transform: translate(14px, -12px) scale(0.97); }
}
@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35%      { transform: translate(22px, -28px) scale(1.05); }
  70%      { transform: translate(-12px, 14px) scale(0.96); }
}
@keyframes blob-drift-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    filter: blur(80px); }
  50%      { transform: translate(-50%, -50%) scale(1.18); filter: blur(95px); }
}
.hero-blob-1 { animation: blob-drift-1 15s ease-in-out infinite; }
.hero-blob-2 { animation: blob-drift-2 20s ease-in-out infinite; }
.hero-blob-3 { animation: blob-drift-3 11s ease-in-out infinite; }

/* ── Hero primary CTA — gentle glow pulse draws the eye ── */
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(30,136,229,0.40); }
  50%       { box-shadow: 0 4px 32px rgba(30,136,229,0.68), 0 0 0 6px rgba(30,136,229,0.12); }
}
.hero-buttons .btn-primary       { animation: cta-glow 2.8s ease-in-out infinite; animation-delay: 1.4s; }
.hero-buttons .btn-primary:hover { animation: none; }

/* ── Tactile button press — every button physically depresses on click ── */
.btn:active {
  transform: scale(0.96) !important;
  box-shadow: none !important;
  transition: transform 0.08s ease, box-shadow 0.08s ease !important;
}

/* ── Arrow icon nudges right on hover (spring overshoot) ── */
.btn i.fa-arrow-right {
  display: inline-block;
  transition: transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn:hover i.fa-arrow-right { transform: translateX(5px); }

/* ── Feature & value card icons spring-bounce on card hover ── */
@keyframes icon-spring {
  0%   { transform: scale(1)    translateY(0); }
  35%  { transform: scale(1.08) translateY(-4px); }
  65%  { transform: scale(0.98) translateY(-1px); }
  100% { transform: scale(1)    translateY(0); }
}
.feature-card:hover .feature-icon,
.value-card:hover   .value-icon   { animation: icon-spring 0.58s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* ── Smoother easing on all scroll-reveal elements ──
   Override timing only (not duration or delay) so .fade-in-delay-* still works */
.fade-in {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-duration: 0.65s;
  will-change: opacity, transform;
}

/* ── City tags — pop in one-by-one when group scrolls into view ──
   JS adds .will-animate first (makes them invisible), then .animated to reveal */
.city-tags.will-animate .city-tag {
  opacity: 0;
  transform: scale(0.78) translateY(8px);
  transition: opacity 0.30s ease, transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.city-tags.animated .city-tag              { opacity: 1; transform: scale(1) translateY(0); }
.city-tags.animated .city-tag:nth-child(2) { transition-delay: 0.07s; }
.city-tags.animated .city-tag:nth-child(3) { transition-delay: 0.14s; }
.city-tags.animated .city-tag:nth-child(4) { transition-delay: 0.21s; }
.city-tags.animated .city-tag:nth-child(5) { transition-delay: 0.28s; }
.city-tags.animated .city-tag:nth-child(6) { transition-delay: 0.35s; }
.city-tags.animated .city-tag:nth-child(7) { transition-delay: 0.42s; }
.city-tags.animated .city-tag:nth-child(8) { transition-delay: 0.49s; }

/* ── Nav brand — subtle dimming on hover ── */
.nav-brand { transition: opacity 0.2s ease; }
.nav-brand:hover { opacity: 0.80; }

/* ── Social links — spring-scale instead of simple translate ── */
.social-link {
  transition: background 0.2s ease, color 0.2s ease,
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.social-link:hover { transform: translateY(-3px) scale(1.14) !important; }

/* ============================================================
   Apple-style micro-interactions for the calmer, static bits
   ── everything reacts a little when you touch it, with the same
      spring easing used elsewhere on the site.
   ============================================================ */

/* ── "How It Works" steps — icon lifts & springs, number badge pops ── */
.hiw-step-icon {
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.42s ease;
}
.hiw-step:hover .hiw-step-icon { transform: translateY(-6px) scale(1.06); box-shadow: var(--shadow-lg); }
.hiw-step-num {
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.25s ease, color 0.25s ease;
}
.hiw-step:hover .hiw-step-num { transform: scale(1.18); background: var(--primary-light); color: #fff; }
.hiw-step h3 { transition: color 0.25s ease; }
.hiw-step:hover h3 { color: var(--primary-light); }

/* The connecting arrows gently flow left→right, suggesting forward motion */
.hiw-arrow i { display: inline-block; animation: hiw-arrow-flow 2.4s ease-in-out infinite; }
.hiw-arrow.fade-in-delay-2 i { animation-delay: 0.5s; }
@keyframes hiw-arrow-flow {
  0%, 100% { transform: translateX(0);   opacity: 0.55; }
  50%      { transform: translateX(5px); opacity: 1; }
}

/* ── Stat numbers spring-scale when you hover their block ── */
.hero-stat .stat-number,
.trust-item .trust-number {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-stat:hover .stat-number,
.trust-item:hover .trust-number { transform: scale(1.08); }

/* ── Intro image — gentle lift plus a one-pass light sweep on hover ── */
.intro-image {
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.55s ease;
}
.intro-image::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.intro-image:hover { transform: translateY(-5px) scale(1.012); box-shadow: 0 22px 48px rgba(13,71,161,0.32); }
.intro-image:hover::after { animation: intro-shine 0.9s ease forwards; }
@keyframes intro-shine {
  from { left: -60%; }
  to   { left: 130%; }
}

/* ── Weather forecast day cards — lift, brighten, and pop the icon ── */
.fc-day-card {
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.25s ease, border-color 0.25s ease;
}
.fc-day-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.45);
}
.fc-icon { transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1); }
.fc-day-card:hover .fc-icon { transform: scale(1.2); }

/* The current-conditions emoji bobs softly, like it's floating ── */
.wx-emoji { display: inline-block; animation: wx-bob 4.5s ease-in-out infinite; }
@keyframes wx-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Weather CTA button — small spring lift ── */
.wx-cta {
  transition: background 0.2s ease,
              transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.30s ease;
}
.wx-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.20); }

/* ── City tags — spring lift + tint, after their entrance has played ── */
.city-tags.animated .city-tag {
  transition: opacity 0.30s ease,
              transform 0.40s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, box-shadow 0.30s ease;
}
.city-tags.animated .city-tag:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--white);
  border-color: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

/* ── Before/After slider handle — invites a drag, then responds to it ── */
.ba-handle {
  transition: transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.30s ease;
  animation: ba-handle-pulse 2.6s ease-in-out infinite;
}
@keyframes ba-handle-pulse {
  0%, 100% { box-shadow: 0 2px 14px rgba(0,0,0,0.3); }
  50%      { box-shadow: 0 2px 14px rgba(0,0,0,0.3), 0 0 0 9px rgba(255,255,255,0.16); }
}
.ba-slider-wrap:hover .ba-handle {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.38);
  animation: none;
}

/* While a finger/cursor is actively dragging — handle grows, pulse stops */
.ba-slider-wrap.is-dragging { cursor: grabbing; }
.ba-slider-wrap.is-dragging .ba-handle {
  transform: translate(-50%, -50%) scale(1.22);
  box-shadow: 0 6px 24px rgba(0,0,0,0.42);
  animation: none;
}
.ba-slider-wrap.is-dragging .ba-drag-hint { opacity: 0; }

/* A simple tap glides the divider to the tapped spot (class set briefly by JS) */
.ba-slider-wrap.is-snapping .ba-after   { transition: clip-path 0.38s cubic-bezier(0.25, 1, 0.5, 1); }
.ba-slider-wrap.is-snapping .ba-divider { transition: left 0.38s cubic-bezier(0.25, 1, 0.5, 1); }

/* ── Respect prefers-reduced-motion for all users who need it ── */
@media (prefers-reduced-motion: reduce) {
  .hero-content .hero-badge,
  .hero-content h1,
  .hero-content > p,
  .hero-content .hero-buttons,
  .hero-content .hero-stats,
  .page-header-content .breadcrumb,
  .page-header-content .overline,
  .page-header-content h1,
  .page-header-content > p          { animation: none !important; opacity: 1; transform: none; }
  .hero-blob-1, .hero-blob-2        { animation: none !important; }
  .hero-blob-3                      { animation: none !important; transform: translate(-50%, -50%); filter: blur(80px); }
  .hero-buttons .btn-primary        { animation: none !important; }
  .city-tags.will-animate .city-tag { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:active                       { transform: none !important; }
  .btn i.fa-arrow-right             { transition: none !important; }
  .feature-card:hover .feature-icon,
  .value-card:hover   .value-icon   { animation: none !important; }
  .fade-in                          { transition-duration: 0.25s !important; }
  /* Stop the new ambient/idle motion; hover responses can stay */
  .hiw-arrow i                      { animation: none !important; transform: none !important; opacity: 1 !important; }
  .wx-emoji                         { animation: none !important; }
  .ba-handle                        { animation: none !important; }
  .intro-image:hover::after         { animation: none !important; }
  .floating-call-btn                { animation: none !important; }
  .ba-slider-wrap.is-snapping .ba-after,
  .ba-slider-wrap.is-snapping .ba-divider { transition: none !important; }
}

/* ============================================================
   Fluid-interface upgrades (Apple "Designing Fluid Interfaces")
   Each block is self-contained so any one can be reverted alone.
   ============================================================ */

/* 1 — Cross-document View Transitions: pages morph instead of hard-cut.
       The nav + footer are named so they persist (stay put) across pages. */
@view-transition { navigation: auto; }
#navbar  { view-transition-name: site-nav; }
.footer  { view-transition-name: site-footer; }
::view-transition-old(root) { animation-duration: 0.34s; }
::view-transition-new(root) { animation-duration: 0.34s; }

/* 4 — Navbar hides on scroll-down, returns instantly on scroll-up. */
#navbar {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}
#navbar.nav-hidden { transform: translateY(-100%); }

/* 2 — Pointer-tracked depth: cards tilt toward the cursor, spring back. */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  will-change: transform;
}
.tilt.is-tilting { transition: transform 0.09s ease-out; }

/* 5 — Magnetic buttons: drift toward the cursor, spring back on leave. */
.magnetic { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.magnetic.is-pulling { transition: transform 0.12s ease-out; }

/* 7 — Images fade + sharpen in as they load (no hard pop). */
img.reveal-img { opacity: 0; filter: blur(12px); transition: opacity 0.7s ease, filter 0.7s ease; }
img.reveal-img.is-loaded { opacity: 1; filter: blur(0); }

/* 8 — Cursor spotlight over the dark CTA section. */
.cta-section { isolation: isolate; }
.cta-section .container { position: relative; z-index: 1; }
.cta-section::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(280px circle at var(--spot-x, 50%) var(--spot-y, 50%),
              rgba(255,255,255,0.12), rgba(255,255,255,0) 70%);
  opacity: 0; transition: opacity 0.4s ease;
}
.cta-section.spot-active::after { opacity: 1; }

/* 9 — FAQ accordion: springier open/close easing. */
.faq-answer { transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

/* 3 — Before/after sliders: drag anywhere, flick for momentum, keyboard-able.
       pan-y lets vertical page-scroll pass through; we only claim horizontal drags. */
.ba-slider-wrap { touch-action: pan-y; cursor: ew-resize; }

/* 6 — Scroll-linked parallax: a gentle Ken-Burns drift tied to scroll position.
       Overscan scale keeps image edges from ever showing. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .parallax-img {
      animation: parallax-img linear both;
      animation-timeline: view();
      animation-range: cover;
      will-change: transform;
    }
  }
}
@keyframes parallax-img {
  from { transform: scale(1.12) translateY(-3.5%); }
  to   { transform: scale(1.12) translateY(3.5%); }
}

/* Respect reduced motion across all of the above. */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  #navbar.nav-hidden { transform: none; }
  .tilt, .magnetic { transition: none !important; }
  img.reveal-img { opacity: 1 !important; filter: none !important; }
  .cta-section.spot-active::after { opacity: 0 !important; }
}

/* ============================================================
   Mobile / touch polish
   ============================================================ */

/* No gray tap-flash on touch — the :active press states give feedback instead. */
* { -webkit-tap-highlight-color: transparent; }

@media (hover: none) {
  /* Prevent hover lifts from "sticking" after a tap on touch screens. */
  .feature-card:hover, .pricing-card:hover, .value-card:hover, .review-card:hover,
  .city-tags.animated .city-tag:hover, .fc-day-card:hover, .hiw-step:hover .hiw-step-icon {
    transform: none;
  }
  /* Snappier tactile feedback the moment a button is pressed. */
  .btn:active, .nav-cta:active, .sticky-quote-btn:active, .floating-call-btn:active {
    transform: scale(0.97);
  }

  /* iOS-style press response: everything tappable compresses slightly under
     the finger, then springs back on release via its base transition. */
  .feature-card:active, .pricing-card:active, .value-card:active,
  .review-card:active, .service-card:active, .fc-day-card:active,
  .gallery-pair-container:active {
    transform: scale(0.985);
    transition: transform 0.1s ease-out;
  }
  .city-tags.animated .city-tag:active { transform: scale(0.94); transition: transform 0.1s ease-out; }
  .social-link:active   { transform: scale(0.88) !important; transition: transform 0.1s ease-out !important; }
  .faq-question:active  { background: var(--gray-50); }
  .nav-links li a:active { background: var(--primary-bg); color: var(--primary-light); }
  .wx-cta:active, .btn-link:active, .footer-links a:active { opacity: 0.6; }
}

/* ── Mobile nav menu: smoother sheet + items cascade in like iOS ── */
@media (max-width: 900px) {
  .nav-links {
    transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
                opacity 0.32s ease, visibility 0.42s;
  }
  .nav-links li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .nav-links.open li { opacity: 1; transform: none; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.035s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.07s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.105s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.14s; }
  .nav-links.open li:nth-child(6) { transition-delay: 0.175s; }
  .nav-links.open li:nth-child(7) { transition-delay: 0.21s; }
  .nav-links.open li:nth-child(8) { transition-delay: 0.245s; }
}

/* ── Pricing tables: rebalance the 3-column grid on phones ──
   (columns + padding are inline-styled in pricing.html, hence !important) */
@media (max-width: 600px) {
  .pricing-hdr, .pricing-row {
    grid-template-columns: 1.3fr 0.8fr 1fr !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    column-gap: 0.5rem;
  }
  .pricing-row > div:nth-child(2) span:first-child { font-size: 1.1rem !important; }
}

/* ── Small phones: let long button labels wrap instead of overflowing ── */
@media (max-width: 400px) {
  .btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links li { opacity: 1 !important; transform: none !important; transition: none !important; }
}
