/* ============================================================
   Village Health Center — styles.css
   System: Elevated Wellness × Warm Professional
   Built for: x4-714281
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Outfit:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* — Brand Palette — */
  --color-primary:        #3B5444;   /* deep sage — anchor, headings, nav */
  --color-primary-dark:   #2C3F34;   /* deeper sage — hover states */
  --color-accent:         #B5604A;   /* terracotta — CTAs, labels, key moments */
  --color-accent-hover:   #9E5040;   /* deeper terracotta — CTA hover */

  /* — Backgrounds — */
  --color-bg:             #F6F2EC;   /* warm parchment — page background */
  --color-bg-alt:         #EEE9E1;   /* deeper sage-tinted parchment — alternating sections */
  --color-bg-sage:        #E8EDE9;   /* pale sage wash — testimonials, philosophy */
  --color-bg-primary:     #3B5444;   /* deep sage — CTA strips, dark sections */

  /* — Text — */
  --color-text:           #2A2E27;   /* near-black with olive warmth — body text */
  --color-text-muted:     #6B7062;   /* muted olive-gray — secondary text, captions */
  --color-text-light:     #F6F2EC;   /* parchment — text on dark/sage backgrounds */
  --color-text-display:   #2A2E27;   /* headings on light surfaces */

  /* — Borders — */
  --color-border:         #D9D3C7;   /* warm sand — section and card dividers */
  --color-border-light:   #E5DFD5;   /* lighter sand — subtle inner borders */

  /* — Overlays & Shadows — */
  --color-overlay:        rgba(42, 46, 39, 0.52);  /* text-dark semi-opaque — image overlays */
  --color-overlay-sage:   rgba(59, 84, 68, 0.72);  /* sage-tinted overlay — hero split */
  --color-shadow:         rgba(42, 46, 39, 0.10);   /* warm shadow */
  --color-shadow-deep:    rgba(42, 46, 39, 0.18);   /* hover shadow */

  /* — Typography — */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Outfit', system-ui, sans-serif;

  /* — Type Scale — */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   2rem;       /* 32px */
  --text-4xl:   2.75rem;    /* 44px */
  --text-5xl:   3.5rem;     /* 56px */
  --text-6xl:   4.5rem;     /* 72px */
  --text-hero:  clamp(2.75rem, 5.5vw, 4rem);

  /* — Spacing — */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-28:  7rem;
  --space-32:  8rem;

  /* — Radii — */
  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-pill: 999px;

  /* — Transitions — */
  --ease-calm:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-fast:   0.25s;
  --dur-base:   0.45s;
  --dur-slow:   0.75s;
  --dur-drift:  0.85s;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.72;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text-display);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 500;
}

p {
  font-size: var(--text-base);
  line-height: 1.72;
  color: var(--color-text);
}

/* Image fade-in on load */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img.img-loaded { opacity: 1; }


/* ============================================================
   LAYOUT — CONTAINERS
   ============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-wide {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

/* Alternating section backgrounds */
.section-parchment {
  background: var(--color-bg);
}

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

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

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

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
  .section-lg { padding: var(--space-20) 0; }
  .section-sm { padding: var(--space-12) 0; }
}


/* ============================================================
   GRID PATTERNS
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.grid-2-asymmetric {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: var(--space-12);
  align-items: center;
}

.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
}

@media (max-width: 1024px) {
  .grid-2, .grid-2-asymmetric { gap: var(--space-8); }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-2-asymmetric,
  .grid-split {
    grid-template-columns: 1fr;
  }
  .grid-split { min-height: auto; }
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) ease,
              background var(--dur-base) ease,
              backdrop-filter var(--dur-base) ease;
}

.nav.scrolled {
  border-color: var(--color-border);
  background: rgba(246, 242, 236, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.nav-brand-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.02em;
  transition: color var(--dur-fast) ease;
  position: relative;
}

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

.nav-links a:hover {
  color: var(--color-primary);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-text-light) !important;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background var(--dur-base) ease,
              transform var(--dur-base) var(--ease-calm),
              box-shadow var(--dur-base) ease;
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(181, 96, 74, 0.28);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--dur-base) ease, opacity var(--dur-fast) ease;
}

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

.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--color-bg);
  z-index: 190;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-12);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-calm);
}

.nav-mobile-menu.open {
  transform: translateX(0);
}

.nav-mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.nav-mobile-menu .nav-cta {
  font-size: var(--text-base);
  padding: 0.9rem 2.5rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta.nav-cta-desktop { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: flex; }
}


/* ============================================================
   HERO — SPLIT LAYOUT (Elevated Wellness Variant B)
   ============================================================ */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92vh;
  position: relative;
  overflow: hidden;
}

.hero-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-20) var(--space-12) var(--space-20) clamp(var(--space-8), 6vw, var(--space-20));
  background: var(--color-bg);
  position: relative;
  z-index: 2;
}

.hero-split-image {
  position: relative;
  overflow: hidden;
}

.hero-split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-calm), opacity 0.5s ease;
}

.hero-split-image img:hover {
  transform: scale(1.03);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.hero-split h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.13;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  letter-spacing: -0.015em;
  max-width: 14ch;
}

.hero-split h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero-subtext {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
  max-width: 44ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero-trust {
  margin-top: var(--space-10);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.hero-trust-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-trust-stat strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}

.hero-trust-stat span {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-trust-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Organic floating shapes — Elevated Wellness signature */
.hero-organic-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.organic-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.organic-shape-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 68%);
  opacity: 0.055;
  top: -90px;
  left: -60px;
  animation: drift-1 18s ease-in-out infinite;
}

.organic-shape-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.065;
  bottom: 10%;
  left: 20%;
  animation: drift-2 15s ease-in-out infinite;
}

.organic-shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 65%);
  opacity: 0.05;
  top: 40%;
  right: -40px;
  animation: drift-1 20s ease-in-out infinite reverse;
}

@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0); }
  25%       { transform: translate(18px, -28px); }
  50%       { transform: translate(-12px, -48px); }
  75%       { transform: translate(14px, -18px); }
}

@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0); }
  25%       { transform: translate(-14px, 22px); }
  50%       { transform: translate(22px, 12px); }
  75%       { transform: translate(-8px, 28px); }
}

@media (max-width: 1024px) {
  .hero-split-text {
    padding: var(--space-16) var(--space-8);
  }
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-split-image {
    height: 55vw;
    min-height: 280px;
    max-height: 420px;
    order: -1;
  }

  .hero-split-image img {
    position: absolute;
  }

  .hero-split-text {
    padding: var(--space-12) var(--space-6);
  }

  .hero-split h1 {
    max-width: 100%;
  }
}


/* ============================================================
   PAGE HERO (inner pages — not split)
   ============================================================ */
.page-hero {
  background: var(--color-bg-alt);
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.015em;
  line-height: 1.14;
  margin-bottom: var(--space-5);
  max-width: 18ch;
}

.page-hero p {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 52ch;
}


/* ============================================================
   BUTTONS & CTAs
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 48px;
  padding: 0.875rem 2rem;
  transition: background var(--dur-base) ease,
              color var(--dur-base) ease,
              transform var(--dur-base) var(--ease-calm),
              box-shadow var(--dur-base) ease;
}

/* Primary — terracotta pill */
.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-light);
  border-radius: var(--radius-pill);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(181, 96, 74, 0.30);
}

/* Secondary — sage outline pill */
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-pill);
  padding: calc(0.875rem - 1.5px) calc(2rem - 1.5px);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-2px);
}

/* Ghost — light text on dark background */
.btn-ghost {
  background: transparent;
  color: var(--color-text-light);
  border: 1.5px solid rgba(246, 242, 236, 0.5);
  border-radius: var(--radius-pill);
  padding: calc(0.875rem - 1.5px) calc(2rem - 1.5px);
}

.btn-ghost:hover {
  background: rgba(246, 242, 236, 0.12);
  border-color: var(--color-text-light);
}

/* Phone CTA button */
.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.btn-phone:hover { color: var(--color-accent); }

.btn-phone svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-cta-group .btn { width: auto; }
}


/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header.centered {
  text-align: center;
}

.section-header.centered h2 {
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

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

.section-label.centered::before,
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.section-label.centered::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.section-label.centered::before {
  margin-left: 0;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
  max-width: 18ch;
}

.section-header h2.wide { max-width: 26ch; }

.section-header .lead {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 54ch;
}

.section-header.centered .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Thin divider line */
.gentle-divider {
  width: 60px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto var(--space-10);
}


/* ============================================================
   SERVICES — ALTERNATING FULL-WIDTH ROWS
   ============================================================ */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 520px;
  overflow: hidden;
}

.service-row:nth-child(even) .service-row-image {
  order: -1;
}

.service-row-image {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.service-row-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-calm);
}

.service-row:hover .service-row-image img {
  transform: scale(1.04);
}

.service-row-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) clamp(var(--space-8), 5vw, var(--space-16));
  background: var(--color-bg-alt);
}

.service-row:nth-child(odd) .service-row-content {
  background: var(--color-bg);
}

.service-row-content .service-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.service-row-content h2,
.service-row-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: var(--space-5);
}

.service-row-content p {
  font-size: var(--text-base);
  line-height: 1.78;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 46ch;
}

.service-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.service-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.service-benefit::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .service-row:nth-child(even) .service-row-image {
    order: 0;
  }

  .service-row-image {
    height: 58vw;
    min-height: 240px;
  }

  .service-row-content {
    padding: var(--space-10) var(--space-6);
  }
}


/* ============================================================
   ABOUT TEASER (Home page)
   ============================================================ */
.about-teaser {
  position: relative;
  overflow: hidden;
}

/* Oversized visual anchor — '1984' in faint sage */
.about-anchor {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0.055;
  white-space: nowrap;
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
}

.about-teaser-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-teaser-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.about-teaser-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-calm);
}

.about-teaser-photo:hover img {
  transform: scale(1.04);
}

.about-teaser-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.about-teaser-text h2 em {
  font-style: italic;
  font-weight: 400;
}

.about-teaser-text p {
  font-size: var(--text-base);
  line-height: 1.78;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .about-teaser-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-teaser-photo {
    aspect-ratio: 4 / 3;
    max-height: 340px;
  }

  .about-anchor {
    font-size: 22vw;
    opacity: 0.04;
    right: 0;
  }
}


/* ============================================================
   DR. TROPEANO — ABOUT PAGE SPLIT LAYOUT
   ============================================================ */
.dr-split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-16);
  align-items: start;
}

.dr-portrait-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.dr-portrait-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-calm);
}

.dr-portrait-wrap:hover img {
  transform: scale(1.03);
}

.dr-bio h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.015em;
  line-height: 1.14;
  margin-bottom: var(--space-3);
}

.dr-bio .dr-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-8);
}

.dr-bio p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.dr-credentials {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.dr-credential {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.dr-credential-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.dr-credential-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.dr-credential-text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.dr-credential-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .dr-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .dr-portrait-wrap {
    aspect-ratio: 3 / 2;
    max-height: 380px;
  }
}


/* ============================================================
   PHILOSOPHY SECTION (About page)
   ============================================================ */
.philosophy-section {
  background: var(--color-bg-alt);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.philosophy-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 var(--space-6);
}

.philosophy-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.philosophy-inner p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.72;
  color: var(--color-text-muted);
}

.philosophy-clinic-image {
  margin-top: var(--space-16);
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.philosophy-clinic-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .philosophy-clinic-image {
    aspect-ratio: 4 / 3;
  }
}


/* ============================================================
   TESTIMONIALS (Home page — centered italic on sage)
   ============================================================ */
.testimonials-section {
  background: var(--color-bg-sage);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.testimonial-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fade-in-up 0.75s var(--ease-calm) both;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.testimonial-quote-mark {
  width: 60px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto var(--space-8);
}

.testimonial-blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.62;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.testimonial-attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.testimonial-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.testimonial-service {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* Stars (CSS only — no emoji) */
.testimonial-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: var(--space-4);
}

.star {
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Testimonial navigation dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.testimonial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background var(--dur-base) ease, transform var(--dur-base) ease;
}

.testimonial-dot.active {
  background: var(--color-accent);
  transform: scale(1.4);
}


/* ============================================================
   CTA STRIP (Sticky full-width call-to-action)
   ============================================================ */
.cta-strip {
  background: var(--color-primary);
  padding: var(--space-12) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.cta-strip p {
  font-size: var(--text-base);
  font-weight: 300;
  color: rgba(246, 242, 236, 0.72);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.cta-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

.cta-strip-phone {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: opacity var(--dur-fast) ease;
}

.cta-strip-phone:hover { opacity: 0.82; }

.cta-strip-or {
  font-size: var(--text-sm);
  color: rgba(246, 242, 236, 0.5);
  font-weight: 300;
}

/* Background shapes for CTA strip */
.cta-strip-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-strip-shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(246,242,236,0.06) 0%, transparent 65%);
  top: -80px;
  left: -60px;
}

.cta-strip-shape-2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(181,96,74,0.12) 0%, transparent 65%);
  bottom: -60px;
  right: 5%;
}

@media (max-width: 640px) {
  .cta-strip-actions { flex-direction: column; }
}


/* ============================================================
   CONTACT PAGE — SPLIT LAYOUT
   ============================================================ */
.contact-split {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.contact-info .contact-intro {
  font-size: var(--text-base);
  line-height: 1.78;
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
}

.contact-detail {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.contact-detail-body h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

.contact-detail-body p,
.contact-detail-body a {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.5;
  text-decoration: none;
}

.contact-detail-body a:hover {
  color: var(--color-primary);
}

.contact-hours {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.contact-hours h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-6);
}

.hours-row {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.hours-row strong {
  color: var(--color-text);
  font-weight: 500;
}

@media (max-width: 768px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}


/* ============================================================
   APPOINTMENT FORM
   ============================================================ */
.appointment-form-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
}

.appointment-form-wrap h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.5;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 84, 68, 0.12);
}

.form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7062' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  width: 100%;
  padding: 1rem 2rem;
  margin-top: var(--space-4);
}

@media (max-width: 640px) {
  .appointment-form-wrap {
    padding: var(--space-6);
    border-radius: var(--radius-md);
  }
}


/* ============================================================
   MAP EMBED
   ============================================================ */
.map-section {
  padding: var(--space-20) 0;
  background: var(--color-bg-alt);
}

.map-wrap {
  position: relative;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .map-wrap { aspect-ratio: 4 / 3; }
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg-primary);
  color: var(--color-text-light);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(246, 242, 236, 0.55);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: 38ch;
}

.footer-phone {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-2);
  transition: opacity var(--dur-fast) ease;
}

.footer-phone:hover { opacity: 0.78; }

.footer-address {
  font-size: var(--text-sm);
  color: rgba(246, 242, 236, 0.55);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 242, 236, 0.45);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(246, 242, 236, 0.70);
  transition: color var(--dur-fast) ease;
}

.footer-links a:hover { color: var(--color-text-light); }

.footer-bottom {
  border-top: 1px solid rgba(246, 242, 236, 0.12);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(246, 242, 236, 0.38);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-calm),
              transform var(--dur-slow) var(--ease-calm);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.60s; }

/* Hero elements stagger inline */
.hero-split-text .reveal { opacity: 0; transform: translateY(22px); }


/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary  { color: var(--color-primary); }
.text-accent   { color: var(--color-accent); }
.text-muted    { color: var(--color-text-muted); }
.text-light    { color: var(--color-text-light); }

.font-display  { font-family: var(--font-display); }
.font-italic   { font-style: italic; }

.text-center   { text-align: center; }
.text-left     { text-align: left; }

.mt-auto       { margin-top: auto; }
.mb-0          { margin-bottom: 0; }
.mb-4          { margin-bottom: var(--space-4); }
.mb-6          { margin-bottom: var(--space-6); }
.mb-8          { margin-bottom: var(--space-8); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.visually-hidden { @extend .sr-only; }


/* ============================================================
   SCROLL-REVEAL JAVASCRIPT HOOK
   ============================================================ */
/* IntersectionObserver targets: [data-reveal] */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-calm),
              transform var(--dur-slow) var(--ease-calm);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.15s; }
[data-reveal-delay="2"] { transition-delay: 0.30s; }
[data-reveal-delay="3"] { transition-delay: 0.45s; }
[data-reveal-delay="4"] { transition-delay: 0.60s; }


/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .nav, .cta-strip, .footer-bottom { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #666; }
}


/* ── CSS safety-net (injected by proxy-orchestrator) ──
   Ensures image containers always have resolvable dimensions so imgs with
   height:100% don't collapse. Scoped to common container class patterns. */
[class*="image-col"],
[class*="image-wrap"],
[class*="img-wrap"],
[class*="img-container"],
[class*="image-container"],
[class*="photo-wrap"],
[class*="photo-container"],
.bento-card,
.listing-img-wrap,
.card-image,
.feature-image,
.hero-image,
.hero-media {
  min-height: 320px;
  aspect-ratio: 3 / 2;
  position: relative;
}
[class*="image-col"] > img,
[class*="image-wrap"] > img,
[class*="img-wrap"] > img,
[class*="img-container"] > img,
[class*="image-container"] > img,
[class*="photo-wrap"] > img,
[class*="photo-container"] > img,
.bento-card > img,
.bento-card-image > img,
.listing-img-wrap > img,
.card-image > img,
.feature-image > img,
.hero-image > img,
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .hero-image-col,
  .hero-media,
  .hero-image {
    aspect-ratio: auto;
    min-height: 100vh;
  }
}
/* Fallback for any bare img with percentage height */
img[style*="height: 100%"],
img[style*="height:100%"] {
  min-height: 320px;
}
/* ── end safety-net ── */
