/* ============================================================
   FORZA ROOF CLEANING — Global Stylesheet
   Brand: Navy #1a2a5e | Accent: #2ecc71 (green CTA) | White
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

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

:root {
  --navy:       #1a2a5e;
  --navy-dark:  #0f1a3d;
  --navy-light: #253575;
  --green:      #27ae60;
  --green-dark: #1e8449;
  --white:      #ffffff;
  --gray-light: #f4f6fb;
  --gray:       #6b7280;
  --gray-dark:  #374151;
  --text:       #1f2937;
  --border:     #e5e7eb;
  --shadow:     0 4px 24px rgba(26,42,94,0.10);
  --shadow-lg:  0 8px 40px rgba(26,42,94,0.16);
  --radius:     8px;
  --radius-lg:  16px;
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;
  --max-width:  1200px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
html, body { max-width: 100vw; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.01em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; color: var(--gray-dark); line-height: 1.85; }
p:last-child { margin-bottom: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39,174,96,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0b1230 0%, #111d45 30%, var(--navy) 100%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.header-top {
  background: transparent;
  padding: 6px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  border-bottom: none;
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.header-top a { color: rgba(255,255,255,0.85); transition: color var(--transition); }
.header-top a:hover { color: #4ade80; }
.header-top-left, .header-top-right { display: flex; align-items: center; gap: 20px; }
.header-top-item { display: flex; align-items: center; gap: 6px; }

.nav-main {
  padding: 14px 0;
  background: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.nav-logo-sub {
  font-family: var(--font-head);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  z-index: 100;
  overflow: hidden;
  border: 1px solid var(--border);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--navy) !important;
  font-size: 0.85rem !important;
  background: transparent !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--border);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--gray-light) !important; color: var(--navy) !important; }

.nav-cta { margin-left: 8px; font-size: 0.88rem; padding: 12px 28px; white-space: nowrap; letter-spacing: 0.5px; font-weight: 700; box-shadow: 0 2px 8px rgba(39,174,96,0.3); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e3a8a 100%);
  color: var(--white);
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.hero h1 span { color: #4ade80; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.hero-trust-item .icon { color: #4ade80; font-size: 1.1rem; }

.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.hero-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.stars { color: #fbbf24; font-size: 1.4rem; letter-spacing: 2px; }
.rating-info { display: flex; flex-direction: column; }
.rating-score { font-family: var(--font-head); font-weight: 900; font-size: 2rem; color: var(--white); line-height: 1; }
.rating-count { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.hero-features { display: flex; flex-direction: column; gap: 12px; }
.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}
.hero-feature .check { color: #4ade80; font-weight: 700; font-size: 1rem; flex-shrink: 0; }

/* ---- Video Hero ---- */
.hero-video-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,20,60,0.80) 0%, rgba(10,20,60,0.55) 60%, rgba(10,20,60,0.70) 100%);
  z-index: 1;
}
.hero-video-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 140px 0 100px;
  text-align: center;
}
.hero-badge-video {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.hero-video-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-video-title span {
  color: #4ade80;
}
.hero-video-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.90);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-video-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-white {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-white:hover {
  background: rgba(255,255,255,0.25);
  border-color: #fff;
  transform: translateY(-2px);
}
.hero-video-trust {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-trust-badge {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust-badge span { color: #fbbf24; }

/* ---- Section Styles ---- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--gray-light); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.8); }

.section-header { text-align: center; margin-bottom: 56px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.section-header .eyebrow {
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; margin-bottom: 20px; }
.service-card .link-arrow {
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.service-card:hover .link-arrow { gap: 10px; }

/* ---- Why Choose Us ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 32px;
}
.why-item { text-align: center; }
.why-icon {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  color: var(--white);
}
.why-item h3 { margin-bottom: 10px; }

/* ---- Process Steps ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 36px);
  right: calc(16.66% + 36px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 72px;
  height: 72px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.process-step h3 { margin-bottom: 10px; }

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); }
.review-stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 12px; }
.review-text {
  font-style: italic;
  color: var(--gray-dark);
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 0.95rem;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.review-source { font-size: 0.78rem; color: var(--gray); }

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--navy);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-number {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.4rem;
  color: #4ade80;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 1px; }

/* ---- Guarantee Banner ---- */
.guarantee-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: 48px 0;
}
.guarantee-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.guarantee-icon { font-size: 4rem; flex-shrink: 0; }
.guarantee-text h2 { color: var(--white); margin-bottom: 8px; }
.guarantee-text p { color: rgba(255,255,255,0.9); margin: 0; }
.guarantee-cta { margin-left: auto; flex-shrink: 0; }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Service Area Map ---- */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.city-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
}
.city-link:hover {
  background: var(--navy);
  color: #ffffff !important;
  border-color: var(--navy);
  transform: translateY(-2px);
}
.city-link::before { content: '📍'; font-size: 0.75rem; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-light); }
.faq-question .faq-icon { font-size: 1.2rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--gray-dark);
  line-height: 1.7;
  font-size: 0.95rem;
}
.faq-item.open .faq-answer { display: block; }

/* ---- Contact Form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-text strong { display: block; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.contact-info-text span { color: var(--gray-dark); font-size: 0.95rem; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-dark);
  color: #fff;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--green); color: var(--white); }
.site-footer h3 { color: #fff; }
.site-footer .footer-brand p { color: #fff; }
.site-footer .footer-brand a { color: #fff; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: #fff;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: var(--white); }

/* ---- Floating Phone Button ---- */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: all var(--transition);
}
.float-btn-phone {
  background: var(--green);
  color: var(--white);
}
.float-btn-phone:hover {
  background: var(--green-dark);
  transform: scale(1.04);
}
.float-btn-quote {
  background: var(--navy);
  color: var(--white);
}
.float-btn-quote:hover {
  background: var(--navy-dark);
  transform: scale(1.04);
}

/* ---- Utility Classes ---- */
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-green { color: var(--green) !important; }
.text-navy { color: var(--navy) !important; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.highlight { color: var(--green); }
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gray-light);
  color: var(--navy);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-green { background: rgba(39,174,96,0.12); color: var(--green-dark); }
.badge-navy { background: var(--navy); color: var(--white); }

/* ============================================================
   ENHANCED HOVER EFFECTS — All Clickable Elements
   ============================================================ */

/* --- Global link transitions --- */
a {
  transition: color var(--transition), opacity var(--transition);
}

/* --- Inline text links (inside paragraphs, content areas) --- */
p a, .blog-article a, .content a, li a:not(.btn):not(.nav-links a):not(.footer-col a):not(.city-link):not(.float-btn):not(.social-link) {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}
p a:hover, .blog-article a:hover, .content a:hover, li a:not(.btn):not(.nav-links a):not(.footer-col a):not(.city-link):not(.float-btn):not(.social-link):hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

/* --- btn-outline (no navy variant — white/generic outline) --- */
.btn-outline {
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.20);
}

/* --- btn-cta-primary & btn-cta-secondary (CTA widget buttons) --- */
.btn-cta-primary {
  transition: all var(--transition);
}
.btn-cta-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39,174,96,0.35);
}
.btn-cta-secondary {
  transition: all var(--transition);
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* --- btn-back & btn-next (pagination / navigation buttons) --- */
.btn-back, .btn-next {
  transition: all var(--transition);
}
.btn-back:hover, .btn-next:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* --- Article cards (resources / blog listing) --- */
.article-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.article-card:hover .article-card-img img,
.article-card:hover .article-card-img-placeholder,
.article-card:hover .article-card-img-wrapper img {
  transform: scale(1.05);
}
.article-card-img img, .article-card-img-placeholder,
.article-card-img-wrapper img {
  transition: transform 0.35s ease;
}
.article-card-img-wrapper {
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.article-card-img-wrapper img {
  width: 100%;
  height: 218px;
  object-fit: cover;
  display: block;
}
img.article-card-img {
  width: 100%;
  height: 218px;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 8px 8px 0 0;
  transition: transform 0.35s ease;
}
.article-card:hover > img.article-card-img {
  transform: scale(1.05);
}

/* --- Feature cards (location pages, service pages) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  background: var(--white, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card h3 {
  margin: 16px 0 8px;
  font-size: 1.15rem;
  color: var(--heading, #1a2a5e);
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted, #64748b);
  line-height: 1.6;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover .feature-icon {
  transform: scale(1.08);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #e8edf5;
  font-size: 2rem;
  margin: 0 auto;
  transition: transform 0.3s ease;
}
.feature-icon svg {
  width: 40px;
  height: 40px;
}

/* --- Why cards --- */
.why-card {
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.why-card:hover .why-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(26,42,94,0.25);
}
.why-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Factor cards (pricing page) --- */
.factor-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.factor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--navy);
}
.factor-card:hover .factor-icon {
  transform: scale(1.15);
}
.factor-icon {
  transition: transform 0.3s ease;
}

/* --- Specialist cards --- */
.specialist-card {
  transition: transform var(--transition), box-shadow var(--transition);
}
.specialist-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Symptom cards (quiz / diagnostic) --- */
a.symptom-card, .symptom-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
a.symptom-card:hover, .symptom-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}
.symptom-card:hover .symptom-icon {
  transform: scale(1.1);
}
.symptom-icon {
  transition: transform 0.3s ease;
}

/* --- Stat cards --- */
.stat-card {
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* --- Project cards (portfolio / results pages) --- */
a.project-card, .project-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: block;
}
a.project-card:hover, .project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.project-card:hover img {
  transform: scale(1.04);
}
.project-card img {
  transition: transform 0.4s ease;
}

/* --- Flagship card (Bexley hub) --- */
a.flagship-card, .flagship-card {
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
a.flagship-card:hover, .flagship-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(26,42,94,0.20);
}
.flagship-card:hover img {
  transform: scale(1.03);
}
.flagship-card img {
  transition: transform 0.4s ease;
}

/* --- Hub links (portfolio hub navigation) --- */
.hub-link, .mv-hub-link, .q-hub-link {
  transition: all var(--transition);
}
.hub-link:hover, .mv-hub-link:hover, .q-hub-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--navy);
}

/* --- Roof type cards & links --- */
.roof-type-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.roof-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.roof-type-card:hover .roof-type-icon {
  transform: scale(1.08);
}
.roof-type-icon {
  transition: transform 0.3s ease;
}
.roof-type-link, .roof-link {
  transition: all var(--transition);
}
.roof-type-link:hover, .roof-link:hover {
  color: var(--green);
  transform: translateX(4px);
}

/* --- Read more links & related links --- */
.read-more-link {
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.read-more-link:hover {
  color: var(--green);
  gap: 10px;
}
.related-link {
  transition: all var(--transition);
}
.related-link:hover {
  color: var(--green);
  transform: translateX(4px);
}

/* --- Related blog links --- */
a.related-blog-link, .related-blog-link {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: block;
}
a.related-blog-link:hover, .related-blog-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

/* --- Link arrows (service cards, etc.) --- */
.link-arrow {
  transition: gap var(--transition), color var(--transition);
}
.link-arrow:hover {
  color: var(--green);
  gap: 12px;
}

/* --- Tags & badges --- */
.article-tag, .badge, .chapter-tag, .roof-tag, .ba-card-tag, .result-badge {
  transition: all var(--transition);
}
.article-tag:hover, .chapter-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* --- Review cards (enhanced from existing) --- */
.review-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* --- Severity options (quiz) --- */
.severity-option {
  transition: all var(--transition);
  cursor: pointer;
}
.severity-option:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}

/* --- Calculator button --- */
.calc-btn-calculate {
  transition: all var(--transition);
  cursor: pointer;
}
.calc-btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39,174,96,0.35);
}

/* --- Process steps (hover lift) --- */
.process-step {
  transition: transform var(--transition);
}
.process-step:hover {
  transform: translateY(-4px);
}
.process-step:hover .step-number {
  box-shadow: 0 4px 16px rgba(26,42,94,0.30);
  transform: scale(1.08);
}
.step-number {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- FAQ items (enhanced) --- */
.faq-item {
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 12px rgba(26,42,94,0.08);
}

/* --- Footer links (enhanced) --- */
.footer-col ul a {
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}
.footer-col ul a:hover {
  color: #4ade80 !important;
  transform: translateX(4px);
}
.footer-bottom a {
  transition: color var(--transition);
}
.footer-bottom a:hover {
  color: #4ade80 !important;
}

/* --- Header top links (enhanced) --- */
.header-top a {
  transition: color var(--transition), opacity var(--transition);
}
.header-top a:hover {
  color: #4ade80 !important;
}

/* --- Nav links (enhanced underline effect) --- */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #4ade80;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
}

/* --- Dropdown menu items (enhanced) --- */
.dropdown-menu a {
  transition: background var(--transition), padding-left var(--transition) !important;
}
.dropdown-menu a:hover {
  padding-left: 22px !important;
  background: var(--gray-light) !important;
  color: var(--green-dark) !important;
}

/* --- Breadcrumb links --- */
.breadcrumb a {
  transition: color var(--transition) !important;
}
.breadcrumb a:hover {
  color: #4ade80 !important;
}

/* --- CTA widget (sidebar sticky CTA) --- */
.cta-widget {
  transition: box-shadow var(--transition);
}
.cta-widget:hover {
  box-shadow: var(--shadow-lg);
}

/* --- Video cards (enhanced) --- */
.video-card {
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* --- Service card image zoom on hover --- */
.service-card:hover .service-icon img {
  transform: scale(1.08);
}
.service-icon img {
  transition: transform 0.4s ease;
}

/* --- Form inputs focus glow --- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(26,42,94,0.12);
}

/* --- Form submit buttons --- */
button[type="submit"] {
  transition: all var(--transition);
}
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39,174,96,0.30);
}

/* --- Guarantee banner CTA --- */
.guarantee-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.25);
}

/* --- BA (Before/After) cards image zoom --- */
.ba-card:hover img {
  transform: scale(1.02);
}

/* --- Contact info items --- */
.contact-info-item {
  transition: transform var(--transition);
}
.contact-info-item:hover {
  transform: translateX(4px);
}
.contact-info-item:hover .contact-info-icon {
  background: var(--green);
}
.contact-info-icon {
  transition: background var(--transition);
}

/* --- Hero trust badges hover --- */
.hero-trust-badge {
  transition: all var(--transition);
}
.hero-trust-badge:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

/* --- Sidebar links --- */
.sidebar-links a {
  transition: all var(--transition);
}
.sidebar-links a:hover {
  color: var(--green);
  transform: translateX(4px);
}

/* --- Error page links --- */
.error-links a {
  transition: all var(--transition);
}
.error-links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-top .container { flex-direction: column; gap: 4px; align-items: center; }
  .header-top-left, .header-top-right { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  .header-top-left { font-size: 0.75rem; }
  .header-top-right { font-size: 0.8rem; }
  .header-top-right .header-top-item:first-child { display: none; }  /* hide email on mobile */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col-stack { grid-template-columns: 1fr !important; gap: 32px !important; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px;
    gap: 4px;
    z-index: 100;
  }
  .nav-inner { position: relative; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .guarantee-inner { flex-direction: column; text-align: center; }
  .guarantee-cta { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  /* Mobile bottom bar CTA */
  .float-cta {
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    gap: 0;
    align-items: stretch;
    border-radius: 0;
    padding: 0;
  }
  .float-btn {
    flex: 1;
    justify-content: center;
    border-radius: 0;
    padding: 14px 12px;
    font-size: 0.85rem;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  }
  body {
    padding-bottom: 56px;
  }
  /* Video hero mobile */
  .hero-video-content { padding: 120px 0 80px; }
  .hero-video-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-video-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-video-trust { gap: 8px; }
  .hero-trust-badge { font-size: 0.78rem; padding: 6px 12px; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 0 64px; }
  .section { padding: 56px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  .btn { max-width: 100%; text-align: center; justify-content: center; word-break: break-word; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
  /* Video hero small mobile */
  .hero-video-content { padding: 100px 0 60px; }
  .hero-badge-video { font-size: 0.7rem; padding: 6px 14px; }
  .hero-video-sub { font-size: 0.95rem; }
  .hero-video-trust { flex-direction: column; align-items: center; }
  .hero-trust-badge { width: 100%; max-width: 300px; justify-content: center; }
}

/* ---- Before / After Gallery ---- */
.ba-section { background: var(--gray-light); }
.ba-section.dark-bg { background: var(--navy-dark); }
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 600px));
  gap: 24px;
  margin-top: 40px;
  justify-content: center;
}
.ba-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ba-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.14); }

/* ---- Before/After Reveal Slider ---- */
/* Use padding-top % trick to preserve 4:3 aspect ratio without stretching */
.ba-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: min(75%, 420px); /* 4:3 ratio but capped at 420px tall */
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.ba-slider img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
}
.ba-slider .ba-img-after {
  z-index: 1;
}
.ba-slider .ba-img-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba-slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  z-index: 10;
  transform: translateX(-50%);
  cursor: ew-resize;
}
.ba-slider-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-slider-handle::before {
  content: '◀ ▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  color: var(--navy);
  font-weight: 900;
  z-index: 11;
  white-space: nowrap;
  letter-spacing: -2px;
}
.ba-label {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 12;
  pointer-events: none;
}
.ba-label-before { left: 8px; background: #2b6cb0; color: #fff; }
.ba-label-after { right: 8px; background: var(--green); color: #fff; }
.ba-info { padding: 16px 20px; }
.ba-info h4 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.ba-info p { font-size: 0.85rem; color: var(--gray); margin: 0; }
/* Video showcase */
.video-showcase { margin-top: 40px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-top: 24px;
}
.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.video-card video {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: contain;
  background: #000;
}
.video-card-info { background: var(--white); padding: 14px 18px; }
.video-card-info h4 { font-size: 0.95rem; color: var(--navy); margin: 0; }
@media (max-width: 600px) {
  .ba-grid { grid-template-columns: 1fr; }
}

/* Mobile table fix */
@media (max-width: 600px) {
  table { font-size: 0.85rem; }
  th, td { padding: 8px 10px; }
}

/* Ensure no horizontal overflow on mobile */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .container { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 1.8rem; word-wrap: break-word; }
  h2 { font-size: 1.4rem; word-wrap: break-word; }
}

/* ============================================================
   SCROLL-TRIGGERED ENTRANCE ANIMATIONS
   Uses Intersection Observer (in main.js) to add .is-visible
   when elements enter the viewport.
   ============================================================ */

/* --- Base hidden state for all animated elements --- */
[data-animate] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Revealed state --- */
[data-animate].is-visible {
  opacity: 1;
  transform: none !important;
}

/* --- Animation variants --- */

/* Fade up (default) */
[data-animate="fade-up"] {
  transform: translateY(36px);
}

/* Fade down */
[data-animate="fade-down"] {
  transform: translateY(-36px);
}

/* Fade left */
[data-animate="fade-left"] {
  transform: translateX(40px);
}

/* Fade right */
[data-animate="fade-right"] {
  transform: translateX(-40px);
}

/* Fade in (no movement, just opacity) */
[data-animate="fade-in"] {
  transform: none;
}

/* Scale up from slightly smaller */
[data-animate="zoom-in"] {
  transform: scale(0.92);
}

/* Slide up with more distance (for hero elements) */
[data-animate="slide-up"] {
  transform: translateY(60px);
}

/* --- Stagger delays for child elements --- */
[data-animate-stagger] > [data-animate]:nth-child(1)  { transition-delay: 0ms; }
[data-animate-stagger] > [data-animate]:nth-child(2)  { transition-delay: 80ms; }
[data-animate-stagger] > [data-animate]:nth-child(3)  { transition-delay: 160ms; }
[data-animate-stagger] > [data-animate]:nth-child(4)  { transition-delay: 240ms; }
[data-animate-stagger] > [data-animate]:nth-child(5)  { transition-delay: 320ms; }
[data-animate-stagger] > [data-animate]:nth-child(6)  { transition-delay: 400ms; }
[data-animate-stagger] > [data-animate]:nth-child(7)  { transition-delay: 480ms; }
[data-animate-stagger] > [data-animate]:nth-child(8)  { transition-delay: 560ms; }
[data-animate-stagger] > [data-animate]:nth-child(9)  { transition-delay: 640ms; }
[data-animate-stagger] > [data-animate]:nth-child(10) { transition-delay: 720ms; }
[data-animate-stagger] > [data-animate]:nth-child(11) { transition-delay: 800ms; }
[data-animate-stagger] > [data-animate]:nth-child(12) { transition-delay: 880ms; }

/* --- Custom delay utility via data-delay attribute --- */
[data-delay="100"] { transition-delay: 100ms !important; }
[data-delay="200"] { transition-delay: 200ms !important; }
[data-delay="300"] { transition-delay: 300ms !important; }
[data-delay="400"] { transition-delay: 400ms !important; }
[data-delay="500"] { transition-delay: 500ms !important; }
[data-delay="600"] { transition-delay: 600ms !important; }

/* --- Respect reduced motion preference --- */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   IMAGE SKELETON / SHIMMER LOADING EFFECTS
   Adds a pulsing shimmer placeholder while CDN images load.
   Applied automatically via JS to all <img> elements.
   ============================================================ */

/* --- Shimmer keyframe --- */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* --- Skeleton wrapper applied to image containers --- */
.img-skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    100deg,
    #e8ecf1 0%,
    #e8ecf1 33%,
    #f4f6f8 50%,
    #e8ecf1 66%,
    #e8ecf1 100%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

/* Dark-bg variant (for navy/dark sections) */
.dark-bg .img-skeleton,
.hero .img-skeleton,
.page-hero .img-skeleton,
.hub-hero .img-skeleton,
.ba-section.dark-bg .img-skeleton {
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.06) 33%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.06) 66%,
    rgba(255,255,255,0.06) 100%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

/* Hide the image while loading */
.img-skeleton > img,
img.img-skeleton-self {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Reveal the image once loaded */
.img-skeleton.img-loaded > img,
img.img-skeleton-self.img-loaded {
  opacity: 1;
}

/* Remove shimmer once loaded */
.img-skeleton.img-loaded {
  animation: none;
  background: transparent;
}

/* --- Specific aspect-ratio placeholders for known containers --- */

/* Service card images */
.service-icon.img-skeleton {
  min-height: 200px;
}

/* Project card images */
.project-card .img-skeleton {
  min-height: 180px;
}

/* Before/After slider images */
.ba-slider .img-skeleton {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

/* Article card images */
.article-card .img-skeleton {
  aspect-ratio: 16/9;
}

/* Flagship card images */
.flagship-card .img-skeleton {
  min-height: 300px;
}

/* --- Reduced motion: skip shimmer, show images immediately --- */
@media (prefers-reduced-motion: reduce) {
  .img-skeleton {
    animation: none !important;
    background: var(--gray-light) !important;
  }
  .img-skeleton > img,
  img.img-skeleton-self {
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ============================================================
   YOUTUBE LAZY-LOAD PLACEHOLDERS
   Replaces heavy YouTube iframes with a lightweight thumbnail
   + play button. The real iframe loads only on click.
   Also applies to <video> elements outside the viewport.
   ============================================================ */

/* --- YouTube placeholder container --- */
.yt-lazy {
  position: relative;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  background: #0a0a0a;
}

/* Maintain 16:9 aspect ratio */
.yt-lazy::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

/* Thumbnail image */
.yt-lazy .yt-lazy-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.yt-lazy:hover .yt-lazy-thumb {
  transform: scale(1.03);
  filter: brightness(0.85);
}

/* Dark gradient overlay for better play button visibility */
.yt-lazy .yt-lazy-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.05) 60%,
    rgba(0,0,0,0.25) 100%
  );
  z-index: 1;
  transition: background 0.3s ease;
}

.yt-lazy:hover .yt-lazy-overlay {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.10) 40%,
    rgba(0,0,0,0.10) 60%,
    rgba(0,0,0,0.35) 100%
  );
}

/* Play button */
.yt-lazy .yt-lazy-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 72px;
  height: 72px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.yt-lazy:hover .yt-lazy-play {
  transform: translate(-50%, -50%) scale(1.12);
}

/* Play button SVG (YouTube red) */
.yt-lazy .yt-lazy-play svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

/* Video title overlay */
.yt-lazy .yt-lazy-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  line-height: 1.4;
}

/* Loading state after click */
.yt-lazy.yt-loading .yt-lazy-play {
  opacity: 0;
}

.yt-lazy.yt-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  z-index: 3;
  animation: yt-spin 0.8s linear infinite;
}

@keyframes yt-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Loaded iframe fills container */
.yt-lazy iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  z-index: 4;
}

/* --- Lazy video placeholders --- */
.video-lazy-placeholder {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  background: #0a0a0a;
}

.video-lazy-placeholder img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.video-lazy-placeholder:hover img {
  transform: scale(1.03);
}

.video-lazy-placeholder .video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 2;
}

.video-lazy-placeholder:hover .video-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(0,0,0,0.8);
}

.video-lazy-placeholder .video-play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .yt-lazy .yt-lazy-thumb,
  .yt-lazy .yt-lazy-play,
  .video-lazy-placeholder img,
  .video-lazy-placeholder .video-play-icon {
    transition: none !important;
  }
  .yt-lazy.yt-loading::after {
    animation: none !important;
  }
}

/* ============================================================
   BACK TO TOP BUTTON
   Floating button that appears after scrolling down 400px.
   Positioned above the existing Call Now / Get Free Quote FABs.
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 160px;
  right: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--navy, #1a2a5e);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease,
              background 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--green, #2ecc71);
  box-shadow: 0 6px 24px rgba(46, 204, 113, 0.35);
  transform: translateY(-3px) scale(1.05);
}

.back-to-top:active {
  transform: translateY(0) scale(0.97);
}

/* Arrow icon inside the button */
.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* Screen reader label */
.back-to-top .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile adjustments — position above the sticky Call Now / Get Free Quote buttons */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 170px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transform: none !important;
  }
  .back-to-top.visible {
    transform: none !important;
  }
  .back-to-top:hover {
    transform: none !important;
  }
  .back-to-top:hover svg {
    transform: none !important;
  }
}
