/* ============================================
   HARTFORD ELDERLY SERVICES — Modern Redesign
   Bold & Modern | Inter Font | Full Animation
   ============================================ */

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

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
  --color-primary: #095296;
  --color-secondary: #2596be;
  --color-accent: #5BA836;
  --color-accent-dark: #4a9029;
  --color-hero: #06254a;
  --color-hero-mid: #0a3d6d;
  --color-dark: #0d1117;
  --color-light: #f8fafc;
  --color-light-alt: #f1f5f9;
  --color-error: #d32f2f;
  --color-border: #e2e8f0;
  --color-text: #1e293b;
  --color-text-secondary: #64748b;
  --color-white: #ffffff;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 100px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(9,82,150,0.06);
  --shadow-md: 0 4px 16px rgba(9,82,150,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(9,82,150,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(9,82,150,0.18), 0 8px 20px rgba(0,0,0,0.10);
  --shadow-dark: 0 24px 80px rgba(0,0,0,0.35);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  font-weight: 400;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

strong, b { font-weight: 700; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 900; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }
h5 { font-size: 1.1rem; font-weight: 700; }
h6 { font-size: 1rem; font-weight: 700; }

p { margin-bottom: 1rem; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-secondary); }
a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-secondary); }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-header {
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header .lead {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0s);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -50px;
  left: 1rem;
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 999;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(9,82,150,0.06), 0 4px 16px rgba(9,82,150,0.06);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.8; }
.logo img {
  height: 48px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

nav a:hover {
  background: var(--color-light);
  color: var(--color-primary);
}

nav a.active {
  color: var(--color-accent);
  background: rgba(91,168,54,0.08);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent);
  color: white !important;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: all var(--transition-bounce);
  box-shadow: 0 4px 12px rgba(91,168,54,0.3);
}
.btn-nav:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91,168,54,0.4);
  color: white;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  line-height: 1;
}
.menu-btn:hover { background: var(--color-light); }
.menu-btn svg { width: 24px; height: 24px; display: block; }

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.5rem;
  z-index: 99;
  overflow-y: auto;
  border-top: 1px solid var(--color-border);
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: all var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--color-light);
  color: var(--color-primary);
}
.mobile-nav-cta {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--color-accent);
  color: white !important;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
}
.mobile-nav-cta:hover {
  background: var(--color-accent-dark) !important;
  color: white !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-bounce);
  text-decoration: none;
  min-height: 52px;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(9,82,150,0.3);
}
.btn-primary:hover {
  background: var(--color-hero-mid);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(9,82,150,0.4);
  color: white;
}

.btn-accent {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 14px rgba(91,168,54,0.35);
}
.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(91,168,54,0.45);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-ghost:hover {
  background: rgba(9,82,150,0.06);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background: var(--color-secondary);
  color: white;
  box-shadow: 0 4px 14px rgba(37,150,190,0.3);
}
.btn-secondary:hover {
  background: #1a7ca0;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,150,190,0.4);
  color: white;
}

.btn-prev, .btn-next {
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
}

/* ============================================
   HERO — HOMEPAGE (DARK SPLIT)
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--color-hero) 0%, var(--color-hero-mid) 55%, var(--color-primary) 100%);
  position: relative;
  overflow: hidden;
  color: white;
}

/* Decorative background elements */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91,168,54,0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,150,190,0.15) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Homepage split hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(92vh - 73px);
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.hero-content .subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-content .subtitle::before {
  content: '';
  width: 32px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-content h1 {
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-content .description {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero load animations */
.hero-content .subtitle {
  animation: slideUp 0.7s ease 0.1s both;
}
.hero-content h1 {
  animation: slideUp 0.7s ease 0.25s both;
}
.hero-content .description {
  animation: slideUp 0.7s ease 0.4s both;
}
.hero-content .hero-buttons {
  animation: slideUp 0.7s ease 0.55s both;
}
.hero-image {
  animation: slideInRight 0.9s ease 0.3s both;
}

/* Hero image */
.hero-image {
  position: relative;
  z-index: 1;
}
.hero-image::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: linear-gradient(135deg, rgba(91,168,54,0.25) 0%, rgba(37,150,190,0.2) 100%);
  border-radius: calc(var(--radius-xl) + 16px);
  filter: blur(24px);
  z-index: 0;
}
.hero-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-dark);
}

/* Hero badge overlay on image */
.hero-badge {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  z-index: 2;
  animation: slideInLeft 0.8s ease 0.8s both;
}
.hero-badge-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #3d8a1f 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.hero-badge-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}
.hero-badge-text span {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Inner page hero (centered) */
.hero-inner {
  text-align: center;
  padding: 6rem 0 5rem;
  position: relative;
  z-index: 1;
}
.hero-inner .subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
  animation: fadeIn 0.6s ease 0.1s both;
}
.hero-inner h1 {
  color: white;
  margin-bottom: 1.25rem;
  animation: slideUp 0.7s ease 0.2s both;
}
.hero-inner .description {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
  animation: slideUp 0.7s ease 0.35s both;
}

/* ============================================
   TRUST BADGES BAR
   ============================================ */
.trust-badges-section {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: relative;
  z-index: 2;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 2.25rem;
  border-right: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
  transition: background var(--transition);
}
.trust-badge:last-child { border-right: none; }
.trust-badge:hover { background: var(--color-light); }

.trust-badge-icon {
  width: 34px;
  height: 34px;
  background: rgba(91,168,54,0.1);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 5rem 0;
  position: relative;
}

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

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

section.primary-bg {
  background: linear-gradient(135deg, var(--color-hero) 0%, var(--color-hero-mid) 50%, var(--color-primary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
section.primary-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
section.primary-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(91,168,54,0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
section.primary-bg .container { position: relative; z-index: 1; }
section.primary-bg h1,
section.primary-bg h2,
section.primary-bg h3 { color: white; }
section.primary-bg p { color: rgba(255,255,255,0.85); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition-slow);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: block;
  color: var(--color-text);
}

/* Top gradient bar on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: rgba(9,82,150,0.15);
}
.card:hover::before { transform: scaleX(1); }

.card h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.card p { color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 0; }

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 16px rgba(9,82,150,0.25);
  transition: all var(--transition-bounce);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.card:hover .card-icon {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 8px 24px rgba(9,82,150,0.35);
}

.card.text-center { text-align: center; }
.card.text-center .card-icon { margin: 0 auto 1.5rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: gap var(--transition);
}
.card:hover .card-link { gap: 0.625rem; }

/* Step cards */
.card-step-number {
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(9,82,150,0.08);
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.card.text-center .card-step-number { text-align: center; }

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   STATS SECTION
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-box {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}
.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.stat-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.stat-number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
  display: block;
  position: relative;
}
.stat-number::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.stat-label {
  font-size: 1rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ============================================
   PARALLEL LAYOUT — FIXED (WAS BROKEN)
   ============================================ */
.parallel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Reverse: content left, image right */
.parallel-layout.reverse > .image-container {
  order: 2;
}
.parallel-layout.reverse > .parallel-layout-content {
  order: 1;
}

.image-container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--color-light);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(6, 37, 74, 0.12) 100%
  );
  border-radius: var(--radius-xl);
  z-index: 1;
  pointer-events: none;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  display: block;
}

.image-container:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-dark);
}
.image-container:hover img { transform: scale(1.04); }

/* Content side */
.parallel-layout-content {}

.parallel-layout-content .section-eyebrow {
  margin-bottom: 0.75rem;
}

.parallel-layout-content h2 {
  margin-bottom: 1.25rem;
  position: relative;
}

.parallel-layout-content p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: 1.0625rem;
}

.parallel-layout-content ul {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.parallel-layout-content li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: rgba(91,168,54,0.04);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: all var(--transition);
  font-size: 0.9375rem;
  color: var(--color-text);
}
.parallel-layout-content li:hover {
  background: rgba(91,168,54,0.09);
  transform: translateX(6px);
}
.parallel-layout-content li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
  width: 20px;
  height: 20px;
  background: rgba(91,168,54,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-slow);
  overflow: hidden;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  font-size: 7rem;
  line-height: 1;
  color: rgba(91,168,54,0.12);
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(9,82,150,0.15);
}

.stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  display: block;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.author-name {
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.3;
}
.author-relation {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
  font-weight: 500;
}

/* ============================================
   SERVICE AREA
   ============================================ */
.service-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.75rem;
}

.area-tag {
  background: rgba(9,82,150,0.06);
  color: var(--color-primary);
  border: 1.5px solid rgba(9,82,150,0.15);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: default;
}
.area-tag:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.area-map-visual {
  background: linear-gradient(135deg, var(--color-hero) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.area-map-visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.area-map-visual::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.area-map-pin {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.area-map-city {
  font-size: 1.75rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.375rem;
  position: relative;
  z-index: 1;
}
.area-map-state {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}
.area-map-radius {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(91,168,54,0.2);
  border: 1px solid rgba(91,168,54,0.4);
  color: #a8e07a;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9375rem;
}
.required { color: var(--color-error); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background: white;
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(9,82,150,0.1);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(211,47,47,0.1);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: 0.375rem;
}
.form-error {
  color: var(--color-error);
  font-size: 0.8125rem;
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.75rem;
}
.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0;
}
.checkbox-group input { width: auto; margin: 0; margin-top: 3px; }

/* Form Steps */
.form-steps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}
.step {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: all var(--transition);
  flex-shrink: 0;
}
.step.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(9,82,150,0.35);
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  border-radius: 1px;
  transition: background var(--transition);
}
.step-line.active { background: var(--color-primary); }

.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.success-message {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(91,168,54,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(91,168,54,0.2);
}
.success-message h3 {
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.success-message p { color: var(--color-text-secondary); }

/* Contact info sidebar */
.contact-info-item {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}
.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.contact-info-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  margin-bottom: 0.375rem;
  display: block;
}
.contact-info-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}
.contact-info-value a {
  color: var(--color-text);
  transition: color var(--transition);
}
.contact-info-value a:hover { color: var(--color-primary); }

/* ============================================
   ACCORDION
   ============================================ */
.accordion-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.875rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.accordion-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(9,82,150,0.2);
}

.accordion-header {
  width: 100%;
  padding: 1.375rem 1.5rem;
  background: white;
  border: none;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
  font-family: inherit;
}
.accordion-header:hover { background: var(--color-light); }

.accordion-toggle {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.accordion-toggle.active { transform: rotate(45deg); }
.accordion-header[aria-expanded="true"] .accordion-toggle { transform: rotate(45deg); }

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: 0.9875rem;
  display: none;
}
.accordion-content.active,
.accordion-item:has(.accordion-header[aria-expanded="true"]) .accordion-content {
  display: block;
  padding: 0 1.5rem 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--color-dark);
  color: white;
  padding: 0;
}

.footer-top {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {}
.footer-brand img {
  height: 42px;
  width: auto;
  opacity: 0.9;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin: 0;
}
.footer-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}
.footer-contact-quick a {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.footer-contact-quick a:hover { color: var(--color-accent); }

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

footer h3 {
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
footer ul { list-style: none; }
footer li { margin-bottom: 0.625rem; }
footer a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}
footer a:hover { color: var(--color-accent); }
footer p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--color-accent);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(91,168,54,0.45), 0 2px 8px rgba(0,0,0,0.2);
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-bounce);
  text-decoration: none;
}
.sticky-cta:hover {
  background: var(--color-accent-dark);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 32px rgba(91,168,54,0.55), 0 4px 12px rgba(0,0,0,0.2);
  color: white;
}
.sticky-cta-pulse {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.sticky-cta-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  animation: pulse 1.8s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0; }
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Carousel */
#service-carousel {
  display: inline-block;
  min-height: 1.5em;
  vertical-align: baseline;
  position: relative;
}
.carousel-text { color: var(--color-accent); font-weight: 700; }
.carousel-item { position: absolute; opacity: 0; white-space: nowrap; }
.carousel-item.active { position: relative; opacity: 1; }

/* ============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 0;
    gap: 3rem;
  }
  .hero-image { order: -1; }
  .hero-image img { height: 400px; }
  .hero-badge { left: 0; bottom: 1rem; }

  .parallel-layout,
  .parallel-layout.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .parallel-layout.reverse > .image-container { order: 0; }
  .parallel-layout.reverse > .parallel-layout-content { order: 0; }

  .service-area-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .footer-content { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.25rem; }

  section { padding: 3.5rem 0; }

  nav { display: none; }
  .btn-nav { display: none; }
  .menu-btn { display: flex; align-items: center; }

  .sticky-cta { display: flex; }

  .hero-inner {
    padding: 4rem 0 3.5rem;
  }

  .hero-image img { height: 280px; }
  .hero-badge { display: none; }

  .hero-buttons {
    flex-direction: column;
    gap: 0.875rem;
  }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .trust-badges {
    flex-direction: column;
    align-items: stretch;
  }
  .trust-badge {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    justify-content: center;
  }
  .trust-badge:last-child { border-bottom: none; }

  .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .footer-content { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem 1.5rem; }
  .footer-top-inner { flex-direction: column; text-align: center; }
  .footer-contact-quick { text-align: center; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
  }

  .form-buttons {
    flex-direction: column;
  }
  .form-buttons .btn { width: 100%; }

  .image-container { aspect-ratio: 4 / 3; }

  .service-area-grid { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; } /* prevent zoom on iOS */

  .stat-number { font-size: 3rem; }
  .hero-badge { display: none; }
  .area-map-visual { min-height: 280px; padding: 2rem; }
}
