/* ============================================================
   ANIMAS NATURAL HEALTH — styles.css
   Palette: white · near-black · warm wood tones
   ============================================================ */

/* ------------------------------------------------------------
   Custom Fonts
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Carmen Sans';
  src: url('../fonts/CarmenSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------
   CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --white:        #FFFFFF;
  --off-white:    #FAF8F5;
  --linen:        #F0EBE3;
  --wood-light:   #C8B49A;
  --wood-mid:     #9E7F5E;
  --wood-dark:    #6B4F35;
  --charcoal:     #2A2520;
  --black:        #1A1614;
  --text-body:    #3D3530;
  --text-muted:   #7A6E66;
  --border:       #DDD5C8;
  --border-light: #EDE8E1;

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;
  --space-2xl:  10rem;

  /* Layout */
  --max-width:        1200px;
  --max-width-narrow: 760px;
  --header-height:    72px;
  --section-pad:      var(--space-xl);

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   0.25s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-body);
  background-color: var(--white);
  line-height: 1.7;
}

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

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

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
  color: var(--black);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-body);
}

em { font-style: italic; }
strong { font-weight: 600; color: var(--black); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wood-mid);
  margin-bottom: 0.75rem;
  display: block;
}

/* ------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

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

section {
  padding: var(--section-pad) 0;
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 1rem auto 0;
  line-height: 1.8;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85em 1.8em;
  min-height: 44px; /* WCAG 2.5.5 touch target minimum */
  border-radius: 2px;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background-color: var(--charcoal);
  color: var(--white);
  border: 1.5px solid var(--charcoal);
}

.btn-primary:hover {
  background-color: var(--black);
  border-color: var(--black);
}

.btn-secondary {
  background-color: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}

.btn-secondary:hover {
  background-color: var(--charcoal);
  color: var(--white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-ghost-light {
  background-color: transparent;
  color: var(--linen);
  border: 1.5px solid rgba(240, 235, 227, 0.4);
}

.btn-ghost-light:hover {
  border-color: var(--linen);
  background-color: rgba(240, 235, 227, 0.08);
}

.btn-header {
  background-color: var(--charcoal);
  color: var(--white);
  border: 1.5px solid var(--charcoal);
  font-size: 0.78rem;
  padding: 0.65em 1.4em;
}

.btn-header:hover {
  background-color: var(--wood-dark);
  border-color: var(--wood-dark);
}

.btn-large {
  font-size: 0.9rem;
  padding: 1em 2.2em;
}

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

/*
 * backdrop-filter is applied via ::before rather than directly on #site-header.
 * Reason: iOS Safari/WebKit treats any element with a non-none backdrop-filter
 * as a containing block for position:fixed descendants. Putting backdrop-filter
 * directly on the header caused #main-nav (position:fixed) to be positioned
 * relative to the header instead of the viewport, breaking z-index and hit-
 * testing for the mobile hamburger toggle. Using ::before avoids this.
 */
#site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color var(--transition);
  z-index: -1;
}

#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(26, 22, 20, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Logo */
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  color: var(--black);
}

/* White/inverted version for dark backgrounds */
.logo--inverted .logo-icon {
  filter: invert(1);
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.logo-primary {
  font-family: 'Carmen Sans', 'Futura', 'Century Gothic', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.logo-sub {
  font-family: 'Carmen Sans', 'Futura', 'Century Gothic', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

/* Inverted wordmark text colors */
.logo--inverted .logo-primary { color: var(--white); }
.logo--inverted .logo-sub { color: var(--wood-light); }

/* Nav */
.nav-book-cta { display: none; }

#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

#main-nav ul {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

#main-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-body);
  padding: 0.4em 0.6em;
  position: relative;
  transition: color var(--transition);
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.6em;
  right: 0.6em;
  height: 1px;
  background-color: var(--wood-mid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#main-nav a:hover { color: var(--black); }
#main-nav a:hover::after { transform: scaleX(1); }
#main-nav a.active { color: var(--wood-dark); }
#main-nav a.active::after { transform: scaleX(1); background-color: var(--wood-dark); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  /* iOS HIG minimum touch target is 44×44px */
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  margin-left: auto;
  /* Prevents double-tap zoom delay on iOS and improves tap responsiveness */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--black);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Darken to match original Unsplash contrast; saturate keeps greens vibrant */
  filter: brightness(0.72) saturate(1.45) hue-rotate(-14deg);
}

/* Fallback gradient if hero image fails to load */
.hero-bg {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--wood-dark) 60%, var(--wood-mid) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 22, 20, 0.72) 0%,
    rgba(26, 22, 20, 0.5) 50%,
    rgba(26, 22, 20, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  padding-top: var(--header-height);
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wood-light);
  margin-bottom: 1.25rem;
}

#hero h1 {
  color: var(--white);
  font-weight: 300;
  max-width: 700px;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
}
/* Each sentence on its own line on desktop */
.hero-h1-s1,
.hero-h1-s2 { display: block; }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.best-of-badge-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.best-of-badge-img--large {
  width: 110px;
  height: 110px;
  margin-bottom: 0.5rem;
}

.badge-years {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood-light);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   BRIDGE / ABOUT
   ------------------------------------------------------------ */
.section-bridge {
  background-color: var(--off-white);
}

.section-bridge h2 {
  margin-bottom: 1.5rem;
}

.section-bridge .lead {
  margin-bottom: 1.5rem;
}

.section-bridge .btn {
  margin-top: 1rem;
}

/* ------------------------------------------------------------
   BIO / DR. DOVER
   ------------------------------------------------------------ */
.section-bio {
  background-color: var(--white);
}

.bio-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.bio-photo {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.photo-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--linen);
  position: relative;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback background while portrait loads */
.photo-frame {
  background: linear-gradient(160deg, var(--linen) 0%, var(--wood-light) 100%);
}

.credential-badge {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 1.25rem 1.5rem;
}

.cred-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.1em;
  color: var(--white);
}

.cred-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood-light);
  margin-bottom: 0.25em;
}

.cred-years {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0;
}

.bio-text h2 {
  margin-bottom: 1.5rem;
}

.bio-text p {
  color: var(--text-body);
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 2rem 0 2.5rem;
  padding: 1.5rem;
  background-color: var(--off-white);
  border-left: 3px solid var(--wood-light);
}

.credential-item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.9rem;
}

.credential-item strong {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood-mid);
  min-width: 80px;
}

.credential-item span {
  color: var(--text-body);
}

/* ------------------------------------------------------------
   SERVICES
   ------------------------------------------------------------ */
.section-services {
  background-color: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--border);
  margin-bottom: 1px;
}

.service-card {
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.service-card:hover {
  z-index: 1;
  box-shadow: 0 8px 40px rgba(26, 22, 20, 0.1);
}

.service-card-img {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  position: relative;
  background-color: var(--linen);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.service-card:hover .service-card-img img {
  transform: scale(1.03);
}

.service-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(26,22,20,0.1));
}

.service-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  margin-bottom: 0.75rem;
}

.service-card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-list {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--text-body);
  padding-left: 1.2em;
  position: relative;
}

.service-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--wood-mid);
}

.service-note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--wood-mid) !important;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.service-note-link {
  color: inherit;
  text-decoration: underline;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.85rem;
}

.partner-logos a:not(.next-class-callout) {
  display: inline-block;
  line-height: 0;
}

.partner-logo {
  width: 120px;
  height: auto;
  opacity: 0.8;
}

.next-class-callout {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--wood-dark);
  line-height: normal;
}

.next-class-arrow {
  font-size: 1.2rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.next-class-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.next-class-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--wood-dark);
}

.next-class-details {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wood-mid);
  letter-spacing: 0.02em;
}

.service-card--featured {
}

/* Callout strip */
.callout-strip {
  background-color: var(--charcoal);
  color: var(--white);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: 1px;
}

.callout-text h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.callout-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin: 0;
  max-width: 560px;
}

/* ------------------------------------------------------------
   PROCESS / HOW IT WORKS
   ------------------------------------------------------------ */
.section-process {
  background-color: var(--white);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: var(--space-lg);
  position: relative;
}

.process-step {
  flex: 1;
  padding: 2.5rem 2rem;
  background-color: var(--off-white);
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease;
}

a.process-step:hover {
  filter: brightness(0.96);
}

.process-step:nth-child(3) {
  background-color: var(--linen);
}

.process-connector {
  width: 2px;
  align-self: stretch;
  background: repeating-linear-gradient(
    to bottom,
    var(--border) 0,
    var(--border) 8px,
    transparent 8px,
    transparent 16px
  );
  flex-shrink: 0;
  margin-top: 3.5rem;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.step-price {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood-mid);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

/* Pricing Table */
.pricing-table-wrap {
  background-color: var(--off-white);
  padding: var(--space-md);
  border: 1px solid var(--border-light);
  overflow-x: auto; /* prevent table overflow on narrow screens */
  -webkit-overflow-scrolling: touch;
}

.pricing-table-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--black);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pricing-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.65rem 1rem;
  border-bottom: 2px solid var(--border);
}

.pricing-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.pricing-table tr:last-child td { border-bottom: none; }

.pricing-table tr:hover td { background-color: rgba(200, 180, 154, 0.08); }

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--linen);
  color: var(--wood-dark);
  padding: 0.15em 0.5em;
  border-radius: 2px;
  margin-left: 0.5rem;
  display: inline-block;
  white-space: nowrap;
}

.price-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.2em;
  font-style: italic;
}

/* ------------------------------------------------------------
   PHILOSOPHY
   ------------------------------------------------------------ */
.section-philosophy {
  background-color: var(--off-white);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.philosophy-img {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--linen);
}

.philosophy-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-text h2 {
  margin-bottom: 1.5rem;
}

.philosophy-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pillar {
  padding: 1.5rem;
  background-color: var(--white);
  border-bottom: 2px solid var(--wood-light);
}

.pillar h4 {
  color: var(--black);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.pillar p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ------------------------------------------------------------
   TESTIMONIALS
   ------------------------------------------------------------ */
.section-testimonials {
  background-color: var(--charcoal);
}

.section-testimonials .eyebrow {
  color: var(--wood-light);
}

.section-testimonials h2 {
  color: var(--white);
}

.section-testimonials .section-header {
  margin-bottom: var(--space-md);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--wood-mid);
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  opacity: 0.6;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.testimonial-author {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood-light);
}

.testimonials-cta {
  padding-top: 1rem;
}

/* ------------------------------------------------------------
   INSURANCE
   ------------------------------------------------------------ */
.section-insurance {
  background-color: var(--linen);
}

.section-insurance .eyebrow {
  color: var(--wood-dark);
}

.section-insurance h2 {
  margin-bottom: 3rem;
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.insurance-card {
  background-color: var(--white);
  padding: 2rem;
  border-top: 3px solid var(--wood-light);
}

.insurance-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.25rem;
  color: var(--wood-mid);
}

.insurance-icon svg {
  width: 100%;
  height: 100%;
}

.insurance-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.insurance-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ------------------------------------------------------------
   SUPPLEMENTS / FULLSCRIPT
   ------------------------------------------------------------ */
.section-supplements {
  background-color: var(--off-white);
}

.section-supplements .eyebrow {
  color: var(--wood-dark);
}

.section-supplements h2 {
  margin-bottom: 1.5rem;
}

.section-supplements .lead {
  margin-bottom: 1.25rem;
}

.section-supplements p + p {
  margin-bottom: 0;
}

.supplements-cta {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.supplements-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   CONTACT
   ------------------------------------------------------------ */
.section-contact {
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1.25rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-item strong {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item a,
.contact-item address {
  font-size: 1rem;
  color: var(--text-body);
  transition: color var(--transition);
}

.contact-item a:hover { color: var(--wood-dark); text-decoration: underline; }

.address-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.contact-map {
  background-color: var(--linen);
  margin-top: var(--space-lg);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  filter: grayscale(20%) contrast(95%);
}

/* Honeypot spam trap — positioned off-screen, not display:none */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------------------
   CONTACT FORM
   ------------------------------------------------------------ */
.contact-form-wrap {
  position: relative;
}

/* Form fields */
.form-row {
  margin-bottom: 1.25rem;
}

.form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-body);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.7em 0.9em;
  min-height: 44px; /* touch target minimum */
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  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='%237A6E66' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  padding-right: 2.5em;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--wood-mid);
  box-shadow: 0 0 0 3px rgba(158, 127, 94, 0.12);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #b94a3a;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--border);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 260px;
}

/* Submit button states */
#form-submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-left: 0.4em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error message */
.form-group--captcha {
  /* reCAPTCHA widget has a fixed internal width of 304px.
     On very narrow viewports we scale it down to avoid overflow. */
}

.captcha-error {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #7a2e22;
}

@media (max-width: 340px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: left top;
  }
}

.form-error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background-color: #fdf0ee;
  border-left: 3px solid #b94a3a;
  font-size: 0.88rem;
  color: #7a2e22;
  line-height: 1.55;
}

.form-error a {
  color: #7a2e22;
  text-decoration: underline;
}

/* Success state */
.form-success {
  background-color: var(--off-white);
  border: 1px solid var(--border-light);
  padding: 3rem 2rem;
  text-align: center;
}

.form-success-inner svg {
  width: 48px;
  height: 48px;
  color: var(--wood-mid);
  margin: 0 auto 1rem;
}

.form-success-inner h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.form-success-inner p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
#site-footer {
  background-color: var(--black);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.footer-social a:hover { color: var(--white); }

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.footer-nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--white); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}

.footer-contact a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  padding: 1.5rem 0;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
  line-height: 1.5;
}

.footer-disclaimer {
  font-size: 0.7rem !important;
  color: rgba(255, 255, 255, 0.2) !important;
}

/* ------------------------------------------------------------
   RESPONSIVE — Tablet (< 1024px)
   ------------------------------------------------------------ */
@media (max-width: 1023px) {
  :root {
    --section-pad: 5rem;
  }

  .bio-grid {
    grid-template-columns: 300px 1fr;
    gap: var(--space-lg);
  }

  .bio-photo { position: static; }

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

  .philosophy-img {
    position: static;
    aspect-ratio: 985 / 635;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .footer-contact {
    align-items: flex-start;
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .footer-nav ul {
    align-items: flex-end;
  }
}

/* ------------------------------------------------------------
   RESPONSIVE — Mobile (< 768px)
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  :root {
    --section-pad: 4rem;
  }

  /* Header */
  #main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-light);
    padding: 1.5rem var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    /* visibility:hidden is delayed until after the opacity/transform transition
       completes so the menu fades out before becoming untouchable. When opening,
       visibility switches to visible immediately (0s delay). This is more
       reliable than pointer-events:none alone on iOS WebKit. */
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility 0s linear 0.25s;
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(26,22,20,0.1);
  }

  #main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform var(--transition), opacity var(--transition), visibility 0s linear 0s;
    pointer-events: auto;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  #main-nav a {
    display: block;
    padding: 0.9em 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
  }

  #main-nav a::after { display: none; }

  .btn-header { display: none; }
  .nav-toggle { display: flex; }

  .nav-book-cta { display: block; }
  .nav-book-cta a {
    color: var(--wood-dark);
    font-weight: 600;
  }

  /* Nav touch target */
  #main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hero */
  .hero-eyebrow { letter-spacing: 0.1em; white-space: nowrap; }
  #hero h1 { font-size: clamp(1.95rem, 7vw, 2.8rem); }
  /* Inline spans let the text flow as one unit, wrapping to 3 lines naturally */
  .hero-h1-s1, .hero-h1-s2 { display: inline; }
  .hero-overlay {
    background: rgba(26, 22, 20, 0.6);
  }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  /* Hero badge — stack vertically on mobile, reduce image size */
  .hero-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .best-of-badge-img { width: 70px; height: 70px; }

  /* Hero content: ensure bottom padding so badge isn't clipped on short screens */
  .hero-content { padding-bottom: 3rem; }

  /* Bio */
  .bio-grid {
    grid-template-columns: 1fr;
  }

  .bio-photo {
    max-width: 320px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .callout-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }

  /* Process */
  .process-steps {
    flex-direction: column;
  }

  .process-connector {
    width: 100%;
    height: 2px;
    align-self: auto;
    margin: 0;
    background: repeating-linear-gradient(
      to right,
      var(--border) 0,
      var(--border) 8px,
      transparent 8px,
      transparent 16px
    );
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Insurance */
  .insurance-grid {
    grid-template-columns: 1fr;
  }

  /* Philosophy pillars */
  .philosophy-pillars {
    grid-template-columns: 1fr;
  }

  /* Pricing table */
  .pricing-table th:nth-child(2),
  .pricing-table td:nth-child(2) {
    display: none;
  }

  /* Bump up small font sizes for mobile readability */
  .eyebrow           { font-size: 0.8rem; }
  .service-list li   { font-size: 0.9rem; }
  .step-price        { font-size: 0.82rem; }
  .testimonial-author { font-size: 0.82rem; }
  .form-privacy      { font-size: 0.82rem; }
  .footer-nav a      { font-size: 0.8rem; }

  /* Contact form */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row--2col {
    grid-template-columns: 1fr;
  }

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

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .footer-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ------------------------------------------------------------
   Extra-small screens (< 400px) — Galaxy S, iPhone SE, etc.
   ------------------------------------------------------------ */
@media (max-width: 399px) {
  /* Prevent .tag from overflowing narrow table cells */
  .tag {
    white-space: normal;
    display: inline;
  }

  /* Reduce section padding slightly */
  :root { --section-pad: 3rem; }

  /* Tighten pricing table cell padding */
  .pricing-table td,
  .pricing-table th {
    padding: 0.65rem 0.6rem;
  }

  /* Hero: allow content to scroll rather than clip */
  #hero {
    height: auto;
    min-height: 100svh;
    padding-bottom: 3rem;
  }
}

/* ------------------------------------------------------------
   Scroll reveal animation (optional, progressive enhancement)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ------------------------------------------------------------
   Accessibility utilities
   ------------------------------------------------------------ */

/* Skip navigation link — visually hidden until focused by keyboard */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.65em 1.4em;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* Focus ring — shown only for keyboard navigation, not mouse clicks */
:focus-visible {
  outline: 2px solid var(--wood-mid);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduced motion — disable animations for users with that OS preference enabled */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
