/* ==========================================================================
   Caring Hands Rehab — Master Stylesheet
   Author: Caring Hands Rehab
   Version: 1.1 (dropdown fix)
   ==========================================================================
   TABLE OF CONTENTS
   1. CSS Variables / Design Tokens
   2. Reset & Base
   3. Typography
   4. Layout (container, grids, sections)
   5. Header & Navigation
   6. Buttons
   7. Cards
   8. Hero
   9. Forms
   10. FAQ Accordion
   11. Breadcrumbs
   12. Testimonials
   13. Trust Badges & Insurance Strip
   14. Footer
   15. Topographic Background Pattern
   16. Utilities
   17. Animations
   18. Responsive Breakpoints
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables / Design Tokens
   ========================================================================== */
:root {
  --color-pine: #1F3A2D;
  --color-pine-dark: #14271E;
  --color-pine-light: #2F5544;
  --color-sandstone: #B8704A;
  --color-sandstone-dark: #9A5C3C;
  --color-sandstone-light: #D08B66;
  --color-cream: #F5EFE3;
  --color-cream-dark: #EBE4D2;
  --color-sage: #7B9A8F;
  --color-sage-light: #A8BFB6;
  --color-charcoal: #2A2A28;
  --color-charcoal-soft: #4A4A45;
  --color-snow: #FFFFFF;
  --color-mist: #F9F6EE;

  --color-text: var(--color-charcoal);
  --color-text-soft: var(--color-charcoal-soft);
  --color-text-muted: #7A786E;
  --color-bg: var(--color-cream);
  --color-bg-alt: var(--color-mist);
  --color-bg-card: var(--color-snow);
  --color-border: rgba(42, 42, 40, 0.12);
  --color-border-strong: rgba(42, 42, 40, 0.25);
  --color-success: #4A7A4A;
  --color-warning: #C97B3A;
  --color-error: #A04040;

  --font-display: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 4rem;
  --fs-5xl: 5rem;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;
  --lh-loose: 1.85;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --sp-12: 5rem;
  --sp-16: 6rem;
  --sp-20: 8rem;
  --sp-24: 10rem;

  --container-max: 1240px;
  --container-narrow: 880px;
  --container-wide: 1400px;
  --header-height: 88px;
  --header-height-mobile: 72px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(31, 58, 45, 0.06), 0 1px 3px rgba(31, 58, 45, 0.04);
  --shadow-md: 0 4px 12px rgba(31, 58, 45, 0.08), 0 2px 4px rgba(31, 58, 45, 0.04);
  --shadow-lg: 0 12px 32px rgba(31, 58, 45, 0.10), 0 4px 12px rgba(31, 58, 45, 0.05);
  --shadow-xl: 0 24px 48px rgba(31, 58, 45, 0.12), 0 8px 16px rgba(31, 58, 45, 0.06);

  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--color-pine);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--color-sandstone); }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--color-sandstone); color: var(--color-snow); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-pine);
  color: var(--color-cream);
  padding: var(--sp-3) var(--sp-5);
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
}
.skip-link:focus { top: 0; color: var(--color-cream); }

.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;
}

*:focus-visible {
  outline: 2px solid var(--color-sandstone);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--color-pine);
  margin: 0 0 var(--sp-4);
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

h1 {
  font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(var(--fs-xl), 3.5vw, var(--fs-3xl));
  line-height: 1.1;
}
h3 {
  font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl));
  line-height: 1.15;
}
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  margin: 0 0 var(--sp-4);
  line-height: var(--lh-relaxed);
}

.lede {
  font-size: clamp(var(--fs-md), 2.2vw, var(--fs-lg));
  line-height: var(--lh-normal);
  color: var(--color-text-soft);
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-sandstone);
  margin-bottom: var(--sp-3);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-sandstone);
  vertical-align: middle;
  margin-right: var(--sp-3);
  margin-bottom: 3px;
}

.text-display {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.text-italic { font-style: italic; }

ul, ol {
  margin: 0 0 var(--sp-4);
  padding-left: var(--sp-5);
  line-height: var(--lh-relaxed);
}
ul li, ol li { margin-bottom: var(--sp-2); }

.list-check {
  list-style: none;
  padding-left: 0;
}
.list-check li {
  position: relative;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-3);
}
.list-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 18px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12' fill='none'%3E%3Cpath d='M1 6L6.5 11L17 1' stroke='%23B8704A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  border-left: 3px solid var(--color-sandstone);
  background: var(--color-mist);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--color-pine);
  line-height: var(--lh-normal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-narrow { max-width: var(--container-narrow); }
.container-wide { max-width: var(--container-wide); }

.section {
  padding: var(--sp-16) 0;
  position: relative;
}
.section-sm { padding: var(--sp-10) 0; }
.section-lg { padding: var(--sp-20) 0; }

.section-cream { background: var(--color-cream); }
.section-mist { background: var(--color-mist); }
.section-snow { background: var(--color-snow); }
.section-pine {
  background: var(--color-pine);
  color: var(--color-cream);
}
.section-pine h1, .section-pine h2, .section-pine h3,
.section-pine h4, .section-pine h5, .section-pine h6 { color: var(--color-cream); }
.section-pine .eyebrow { color: var(--color-sandstone-light); }
.section-pine .eyebrow::before { background: var(--color-sandstone-light); }
.section-pine p { color: rgba(245, 239, 227, 0.85); }
.section-pine a { color: var(--color-sandstone-light); }

.section-sandstone {
  background: var(--color-sandstone);
  color: var(--color-cream);
}
.section-sandstone h1, .section-sandstone h2, .section-sandstone h3 { color: var(--color-cream); }

.grid {
  display: grid;
  gap: var(--sp-5);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-10);
}
.section-header.section-header-left {
  text-align: left;
  margin: 0 0 var(--sp-10);
}
.section-header h2 { margin-bottom: var(--sp-4); }

.divider-mountain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin: var(--sp-6) auto;
  color: var(--color-sandstone);
  opacity: 0.8;
}
.divider-mountain::before,
.divider-mountain::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: currentColor;
}

/* ==========================================================================
   5. Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 227, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.site-header.scrolled {
  background: rgba(245, 239, 227, 0.98);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--sp-6);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.site-logo img {
  height: 56px;
  width: auto;
  transition: transform var(--t-base);
}
.site-logo:hover img { transform: scale(1.03); }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.main-nav a {
  color: var(--color-pine);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--t-fast);
}
.main-nav a:hover { color: var(--color-sandstone); }
.main-nav a.active { color: var(--color-sandstone); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--sp-3);
  right: var(--sp-3);
  height: 2px;
  background: var(--color-sandstone);
  border-radius: 2px;
}

/* ==========================================================================
   DROPDOWN — FIXED VERSION
   Key changes from v1.0:
   1. top: 100% (was: calc(100% + 10px)) — menu now TOUCHES the parent link,
      no 10px transparent gap to cross.
   2. Wider hover bridge via parent link padding — the parent link itself
      extends slightly below its visible text so hover persists into the menu.
   3. Visibility transition is delayed on close (0.3s grace period) so even
      brief mouse-offs don't immediately kill the menu.
   ========================================================================== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  /* Extra vertical padding on the parent link extends its hover area
     downward into where the menu opens, creating a seamless hover zone */
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}
.nav-dropdown > a::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px;
  transition: transform var(--t-fast);
}
.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after {
  transform: rotate(-135deg) translateY(2px);
}

.nav-dropdown-menu {
  position: absolute;
  /* CRITICAL: no gap. Menu touches parent's bottom edge directly. */
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 280px;
  background: var(--color-snow);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3);
  opacity: 0;
  visibility: hidden;
  /* On close: opacity fades out 250ms, but visibility delays 300ms.
     This gives you a 300ms grace window to re-enter the menu after mousing
     off — even if you accidentally leave the hover zone, the menu stays
     interactive long enough to come back. */
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.3s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  /* On open: no visibility delay — appear immediately */
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}
.nav-dropdown-menu a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--color-text);
}
.nav-dropdown-menu a:hover {
  background: var(--color-cream);
  color: var(--color-pine);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-pine);
}
.header-phone svg { width: 16px; height: 16px; color: var(--color-sandstone); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--sp-2);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-pine);
  border-radius: 2px;
  transition: all var(--t-base);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.top-bar {
  background: var(--color-pine);
  color: var(--color-cream);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  padding: 8px 0;
  text-align: center;
}
.top-bar a { color: var(--color-sandstone-light); font-weight: 600; }
.top-bar a:hover { color: var(--color-cream); }

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary { background: var(--color-pine); color: var(--color-cream); }
.btn-primary:hover {
  background: var(--color-pine-dark);
  color: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sandstone { background: var(--color-sandstone); color: var(--color-snow); }
.btn-sandstone:hover {
  background: var(--color-sandstone-dark);
  color: var(--color-snow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-pine);
  border-color: var(--color-pine);
}
.btn-outline:hover {
  background: var(--color-pine);
  color: var(--color-cream);
}

.btn-ghost {
  background: transparent;
  color: var(--color-pine);
  border-color: transparent;
  padding: 14px 16px;
}
.btn-ghost:hover {
  background: var(--color-cream-dark);
  color: var(--color-pine);
}

.btn-cream { background: var(--color-cream); color: var(--color-pine); }
.btn-cream:hover {
  background: var(--color-snow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg { padding: 18px 36px; font-size: var(--fs-base); }
.btn-sm { padding: 10px 18px; font-size: var(--fs-xs); }

.btn-icon svg, .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-sandstone);
  letter-spacing: 0.02em;
  transition: gap var(--t-base), color var(--t-base);
}
.arrow-link::after {
  content: '→';
  transition: transform var(--t-base);
}
.arrow-link:hover {
  gap: var(--sp-3);
  color: var(--color-sandstone-dark);
}

/* ==========================================================================
   7. Cards
   ========================================================================== */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
}

.card-flat {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
  text-decoration: none;
  color: inherit;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--color-sandstone);
  transition: height var(--t-base);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-sandstone-light);
  color: inherit;
}
.service-card:hover::before { height: 100%; }
.service-card-icon {
  width: 52px;
  height: 52px;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sandstone);
  margin-bottom: var(--sp-5);
  transition: all var(--t-base);
}
.service-card:hover .service-card-icon {
  background: var(--color-sandstone);
  color: var(--color-cream);
  transform: rotate(-4deg);
}
.service-card-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.service-card p {
  color: var(--color-text-soft);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  margin-bottom: var(--sp-5);
  flex-grow: 1;
}
.service-card .arrow-link { margin-top: auto; }

.stat-card { text-align: center; padding: var(--sp-6) var(--sp-4); }
.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: 500;
  color: var(--color-sandstone);
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}
.stat-card .stat-label {
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  letter-spacing: 0.02em;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.feature-row-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-cream);
  color: var(--color-sandstone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-row-icon svg { width: 22px; height: 22px; }
.feature-row h4 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-1);
  color: var(--color-pine);
}
.feature-row p {
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  margin: 0;
  line-height: var(--lh-normal);
}

/* ==========================================================================
   8. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: var(--sp-12) 0 var(--sp-16);
  background: var(--color-cream);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' fill='none' opacity='0.04'%3E%3Cpath d='M0 480L150 380L300 420L450 300L600 360L750 240L900 320L1050 220L1200 280' stroke='%231F3A2D' stroke-width='1.5'/%3E%3Cpath d='M0 520L150 440L300 470L450 360L600 410L750 310L900 380L1050 290L1200 340' stroke='%231F3A2D' stroke-width='1'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-10);
  align-items: center;
}
.hero h1 { margin-bottom: var(--sp-5); }
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-sandstone);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.hero .lede { margin-bottom: var(--sp-6); max-width: 540px; }
.hero-ctas {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}
.hero-trust {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--color-border);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--color-text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-sandstone);
}

.hero-visual {
  position: relative;
  aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-pine) 0%, var(--color-pine-dark) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  bottom: var(--sp-5);
  left: var(--sp-5);
  right: var(--sp-5);
  background: rgba(245, 239, 227, 0.96);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.hero-badge-num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--color-sandstone);
  font-weight: 500;
  line-height: 1;
}
.hero-badge-label {
  font-size: var(--fs-xs);
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.page-hero {
  position: relative;
  padding: var(--sp-12) 0 var(--sp-10);
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' fill='none' opacity='0.05'%3E%3Cpath d='M0 240L200 160L400 200L600 100L800 180L1000 80L1200 140' stroke='%231F3A2D' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 800px; }
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero .lede { max-width: 640px; }

/* ==========================================================================
   9. Forms
   ========================================================================== */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-pine);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
}
.form-label .required { color: var(--color-sandstone); }
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-snow);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-sandstone);
  box-shadow: 0 0 0 4px rgba(184, 112, 74, 0.12);
}
textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}
.form-help {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--sp-1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  cursor: pointer;
}
.form-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--color-sandstone); flex-shrink: 0; }
.form-check label { font-size: var(--fs-sm); color: var(--color-text); line-height: 1.5; cursor: pointer; }

/* ==========================================================================
   10. FAQ Accordion
   ========================================================================== */
.faq { border-bottom: 1px solid var(--color-border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--color-pine);
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--color-sandstone); }
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 5L6 9L10 5' stroke='%231F3A2D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--t-base);
}
.faq[open] summary::after { transform: rotate(180deg); }
.faq-content {
  padding: 0 0 var(--sp-5);
  color: var(--color-text-soft);
  line-height: var(--lh-relaxed);
  max-width: 80%;
}
.faq-content p:last-child { margin-bottom: 0; }

/* ==========================================================================
   11. Breadcrumbs
   ========================================================================== */
.breadcrumbs {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-5);
  letter-spacing: 0.04em;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before {
  content: '/';
  margin-right: var(--sp-2);
  color: var(--color-border-strong);
}
.breadcrumbs a { color: var(--color-text-soft); }
.breadcrumbs a:hover { color: var(--color-sandstone); }
.breadcrumbs [aria-current="page"] { color: var(--color-pine); font-weight: 600; }

/* ==========================================================================
   12. Testimonials
   ========================================================================== */
.testimonial {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-5);
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: var(--color-sandstone);
  opacity: 0.18;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-3);
  color: var(--color-sandstone);
}
.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }
.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--color-text);
  margin-bottom: var(--sp-5);
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-pine);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-pine);
  line-height: 1.2;
}
.testimonial-meta {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   13. Trust Badges & Insurance Strip
   ========================================================================== */
.trust-strip {
  padding: var(--sp-8) 0;
  background: var(--color-mist);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-6);
}
.trust-strip-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--color-pine);
  font-style: italic;
  flex-basis: 200px;
}
.trust-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}
.trust-item {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-snow);
  white-space: nowrap;
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
  background: var(--color-pine);
  color: rgba(245, 239, 227, 0.85);
  padding: var(--sp-12) 0 var(--sp-6);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' fill='none' opacity='0.04'%3E%3Cpath d='M0 320L150 200L300 260L450 140L600 220L750 100L900 180L1050 80L1200 160V400H0V320Z' fill='%23F5EFE3'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
}
.footer-brand img {
  height: 80px;
  width: auto;
  filter: invert(1) brightness(1.3) sepia(0.1);
  margin-bottom: var(--sp-4);
}
.footer-brand p {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: rgba(245, 239, 227, 0.7);
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a {
  color: rgba(245, 239, 227, 0.7);
  font-size: var(--fs-sm);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--color-sandstone-light); }
.footer-contact-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  color: rgba(245, 239, 227, 0.75);
  line-height: 1.5;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-sandstone-light);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item a { color: inherit; }
.footer-bottom {
  position: relative;
  z-index: 2;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(245, 239, 227, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: rgba(245, 239, 227, 0.55);
}
.footer-bottom-links {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.footer-bottom-links a { color: inherit; }
.footer-bottom-links a:hover { color: var(--color-sandstone-light); }

/* ==========================================================================
   15. Topographic Background Pattern
   ========================================================================== */
.topo-bg { position: relative; }
.topo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400' fill='none' opacity='0.05'%3E%3Cpath d='M0 200Q200 120 400 200T800 200' stroke='%231F3A2D' stroke-width='1'/%3E%3Cpath d='M0 220Q200 160 400 220T800 220' stroke='%231F3A2D' stroke-width='1'/%3E%3Cpath d='M0 240Q200 200 400 240T800 240' stroke='%231F3A2D' stroke-width='1'/%3E%3C/svg%3E");
  background-size: cover;
  pointer-events: none;
}
.topo-bg > * { position: relative; z-index: 2; }

/* ==========================================================================
   16. Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-pine { color: var(--color-pine); }
.text-sandstone { color: var(--color-sandstone); }
.text-cream { color: var(--color-cream); }
.text-muted { color: var(--color-text-muted); }
.text-soft { color: var(--color-text-soft); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.w-full { width: 100%; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.font-display { font-family: var(--font-display); }

.prose-two-col {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--sp-10);
  align-items: start;
}
.prose-two-col .col-side h2 { margin-bottom: var(--sp-3); }
.prose-two-col .col-content {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-soft);
}
.prose-two-col .col-content h3 {
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}
.prose-two-col .col-content h3:first-child { margin-top: 0; }

.cta-banner {
  background: var(--color-pine);
  color: var(--color-cream);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' fill='none' opacity='0.08'%3E%3Cpath d='M0 160L100 80L200 120L300 40L400 100L500 20L600 80V200H0V160Z' fill='%23F5EFE3'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner h2 { color: var(--color-cream); margin-bottom: var(--sp-4); }
.cta-banner p { color: rgba(245, 239, 227, 0.9); max-width: 580px; margin: 0 auto var(--sp-6); }

/* ==========================================================================
   17. Animations
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-up { animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards; }
.fade-in { animation: fadeIn 0.6s ease-out backwards; }
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1), transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ==========================================================================
   18. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --header-height: 76px; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero-visual { aspect-ratio: 16/10; max-height: 480px; }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose-two-col { grid-template-columns: 1fr; gap: var(--sp-6); }
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
  }

  .section { padding: var(--sp-12) 0; }
  .section-lg { padding: var(--sp-16) 0; }

  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-cream);
    border-top: 1px solid var(--color-border);
    padding: var(--sp-5);
    gap: 0;
    max-height: calc(100vh - var(--header-height-mobile));
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base);
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav a {
    padding: var(--sp-4);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--fs-base);
  }
  .main-nav a.active::after { display: none; }

  /* Mobile dropdowns: always visible (no hover), no fancy positioning */
  .nav-dropdown > a { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: var(--color-mist);
    border-radius: 0;
    padding: var(--sp-2) var(--sp-4);
    margin: 0 calc(-1 * var(--sp-4));
    min-width: 0;
    transition: none;
  }
  .nav-dropdown > a::after { display: none; }

  .header-cta .btn { display: none; }
  .header-cta .header-phone { display: none; }

  h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2.25rem); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto-lg { grid-template-columns: 1fr; }

  .hero { padding: var(--sp-8) 0 var(--sp-10); }
  .hero-ctas .btn { flex: 1; min-width: 0; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: var(--sp-3); }

  .trust-strip-inner { flex-direction: column; align-items: flex-start; }
  .trust-strip-items { justify-content: flex-start; }

  .cta-banner { padding: var(--sp-8) var(--sp-5); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--sp-4); }
  .footer-inner { grid-template-columns: 1fr; }
  .btn { padding: 12px 20px; font-size: var(--fs-xs); }
  .btn-lg { padding: 16px 28px; font-size: var(--fs-sm); }
}

@media print {
  .site-header, .site-footer, .menu-toggle, .top-bar { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}
