/* ============================================
   ChiroGPT Public Website — Premium Design System
   Typography-driven, Apple-quality, mobile-first
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-accent: #0071E3;
  --color-accent-hover: #0077ED;
  --color-accent-light: #E8F4FD;
  --color-text: #1D1D1F;
  --color-text-body: #3D3D3D;
  --color-text-secondary: #6E6E73;
  --color-text-tertiary: #86868B;
  --color-surface: #F5F5F7;
  --color-bg: #FFFFFF;
  --color-border: #E8E8ED;
  --color-success: #34C759;
  --color-warning: #FF9500;
  --color-error: #FF3B30;
  --radius-card: 16px;
  --radius-btn: 8px;
  --radius-input: 12px;
  --radius-pill: 980px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-nav: 0 1px 0 rgba(0,0,0,0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1120px;
  --nav-height: 56px;
  --transition: 0.3s ease-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: -webkit-fill-available;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--color-text-body);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* --- Reduced Motion --- */
@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 !important; transform: none !important; }
  .hero-fade-in { opacity: 1 !important; animation: none !important; }
  .hero-visual-dot { animation: none !important; }
}

/* --- iOS-Specific Fixes --- */
button, a, input, select, textarea, [role="button"], .btn, .card, .slot-btn, .date-btn, .visit-chip, .nav-mobile-toggle {
  touch-action: manipulation;
}
button, [role="button"], nav, .btn, .card, .slot-btn, .date-btn, .visit-chip, .nav-mobile-toggle {
  -webkit-user-select: none;
  user-select: none;
}
button, a.btn, .slot-btn, .date-btn, .visit-chip, .cal-nav, .cal-cell[data-date], .nav-mobile-toggle {
  min-height: 44px;
  min-width: 44px;
}
@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size: 16px !important;
  }
}
@supports (padding-top: env(safe-area-inset-top)) {
  .nav {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--nav-height) + env(safe-area-inset-top));
  }
  .hero {
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top) + 60px);
  }
  .footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .nav-mobile-menu {
    top: calc(var(--nav-height) + env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* --- Accessibility --- */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10001;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-to-content:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
h1 { font-size: 2.25rem; line-height: 1.05; }
h2 { font-size: 1.75rem; text-align: center; margin-bottom: 16px; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
p { color: var(--color-text-body); line-height: 1.65; }

.section-title {
  letter-spacing: -0.03em;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.75rem; }
}

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

.section {
  padding: 80px 0;
}
.section-surface {
  background: var(--color-surface);
}
@media (min-width: 768px) {
  .section { padding: 120px 0; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-nav);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo:hover { color: var(--color-text); }
.logo-icon { display: none; }
.nav-links {
  display: none;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 400;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-accent); }
.nav-links .btn-primary {
  font-size: 0.875rem;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  height: 36px;
}

.nav-mobile-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  padding: 24px;
  z-index: 999;
  overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; flex-direction: column; gap: 0; }
.nav-mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}
.nav-mobile-menu a:last-child { border-bottom: none; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-mobile-toggle { display: none; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,113,227,0.25);
}
.btn-primary:active {
  transform: scale(0.98) translateY(0);
}
.btn-outline {
  background: #fff;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent-light);
}
.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  height: 48px;
  border-radius: 12px;
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-content {
  text-align: left;
}
.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.hero-headline {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 560px;
}
.hero-subheadline {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  font-weight: 400;
}

/* Hero visual — abstract wellness composition */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.hero-visual-shape {
  position: absolute;
  border-radius: 50%;
}
.hero-visual-shape-1 {
  width: 75%;
  height: 75%;
  top: 10%;
  left: 15%;
  background: var(--color-accent-light);
  opacity: 0.7;
}
.hero-visual-shape-2 {
  width: 55%;
  height: 55%;
  bottom: 5%;
  right: 5%;
  background: var(--color-surface);
  opacity: 0.9;
}
.hero-visual-shape-3 {
  width: 40%;
  height: 40%;
  top: 5%;
  right: 10%;
  background: #F2F2F7;
  opacity: 0.8;
}
.hero-visual-spine {
  position: absolute;
  left: 48%;
  top: 15%;
  width: 3px;
  height: 70%;
  background: var(--color-accent);
  opacity: 0.15;
  border-radius: 2px;
}
.hero-visual-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.1;
}
.hero-visual-dot-1 {
  width: 12px;
  height: 12px;
  top: 20%;
  left: 25%;
  animation: heroDrift1 20s ease-in-out infinite;
}
.hero-visual-dot-2 {
  width: 8px;
  height: 8px;
  top: 60%;
  right: 20%;
  animation: heroDrift2 18s ease-in-out infinite;
}
.hero-visual-dot-3 {
  width: 16px;
  height: 16px;
  bottom: 25%;
  left: 35%;
  animation: heroDrift3 22s ease-in-out infinite;
  opacity: 0.07;
}
.hero-visual-dot-4 {
  width: 6px;
  height: 6px;
  top: 35%;
  right: 30%;
  animation: heroDrift1 16s ease-in-out infinite reverse;
}

@keyframes heroDrift1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(12px, -8px); }
  50% { transform: translate(-6px, 14px); }
  75% { transform: translate(8px, 6px); }
}
@keyframes heroDrift2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-10px, 10px); }
  66% { transform: translate(8px, -12px); }
}
@keyframes heroDrift3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -10px); }
}

@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 0;
  }
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .hero-headline {
    font-size: 3rem;
  }
  .hero-subheadline {
    font-size: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .hero-headline {
    font-size: 3.5rem;
  }
  .hero-subheadline {
    font-size: 1.25rem;
  }
}
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }
  .hero-visual {
    max-width: 280px;
    order: -1;
  }
  .hero-content {
    text-align: center;
  }
  .hero-headline, .hero-subheadline {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-eyebrow {
    text-align: center;
  }
  .hero-tagline {
    text-align: center;
  }
}

/* --- Cards --- */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  border: none;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease-out;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: var(--color-text);
}
.card-icon svg {
  width: 32px;
  height: 32px;
}
.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

/* --- Service Cards Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  text-align: left;
}
.service-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: var(--color-text);
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 600;
}
.service-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* Services "View All" link */
.services-view-all {
  text-align: center;
  margin-top: 2rem;
}
.services-view-all a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.services-view-all a:hover {
  border-bottom-color: var(--color-accent);
}

/* --- About Section --- */
.about-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.about-photo {
  flex-shrink: 0;
}
.about-photo-circle {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: var(--color-surface);
}
.about-photo-circle img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.about-photo-circle svg {
  width: 100%;
  height: auto;
}
.about-content {
  position: relative;
  padding-left: 20px;
}
.about-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 60px;
  background: var(--color-accent);
  border-radius: 2px;
}
.about-content .section-title {
  text-align: left;
  font-size: 2rem;
  margin-bottom: 4px;
}
.about-credentials {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 400;
}
.about-bio {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-body);
}

@media (min-width: 768px) {
  .about-row {
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
  }
  .about-photo {
    width: 400px;
    flex-shrink: 0;
  }
}

/* --- Differentiators ("A Different Kind of Practice") --- */
.diff-grid {
  max-width: 720px;
  margin: 0 auto;
}
.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.diff-item:last-child {
  border-bottom: none;
}
.diff-number {
  font-size: 3rem;
  font-weight: 300;
  color: #D1D1D6;
  line-height: 1;
  flex-shrink: 0;
  min-width: 56px;
  letter-spacing: -0.02em;
}
.diff-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.diff-content p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Booking Section --- */
.booking-widget {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 32px;
}
.booking-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
.booking-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.booking-trust .trust-check {
  color: var(--color-text-secondary);
  font-weight: 600;
}

.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  min-width: 72px;
}
.date-btn:hover { border-color: var(--color-accent); }
.date-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.date-btn.active .date-day { color: #fff; }
.date-btn.active .date-num { color: #fff; }
.date-day { font-size: 0.75rem; font-weight: 500; color: var(--color-text-secondary); text-transform: uppercase; }
.date-num { font-size: 1.125rem; font-weight: 700; color: var(--color-text); }
.date-month { font-size: 0.6875rem; color: var(--color-text-secondary); }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
@media (min-width: 640px) {
  .slots-grid { grid-template-columns: repeat(4, 1fr); }
}
.slot-btn {
  padding: 12px 8px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-text);
}
.slot-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.slot-btn.selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.slot-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}

/* Month Calendar — override .date-strip flex layout */
.booking-calendar,
.date-strip.booking-calendar {
  display: block !important;
  overflow: visible !important;
  padding: 0 0 16px;
}
/* Ensure booking widget is always visible (not hidden by reveal animation) */
#booking-widget {
  opacity: 1 !important;
  transform: none !important;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 12px;
}
.cal-month {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}
.cal-nav {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.cal-nav:hover { border-color: var(--color-accent); }
.cal-nav.disabled { opacity: 0.3; cursor: default; }
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
}
.cal-weekdays span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-cell {
  position: relative;
  aspect-ratio: 1;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: default;
  transition: all 0.2s;
}
.cal-cell[data-date] { cursor: pointer; }
.cal-cell[data-date]:hover { background: rgba(0,113,227,0.06); }
.cal-cell.today .cal-day {
  color: #0071E3;
  font-weight: 700;
  outline: 2px solid #0071E3;
  outline-offset: 2px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-cell.selected {
  background: #0071E3;
  border-radius: 10px;
}
.cal-cell.selected .cal-day { color: #fff; font-weight: 700; }
.cal-cell.disabled { opacity: 0.35; }
.cal-cell.closed { background: var(--color-surface); }
.cal-cell.full .cal-day { color: #C7C7CC; }
.cal-cell.available .cal-day { color: var(--color-text); font-weight: 500; }
.cal-day { font-size: 0.9375rem; color: var(--color-text); line-height: 1; }
.cal-x { position: absolute; top: 3px; right: 4px; font-size: 9px; color: #C7C7CC; }
.cal-full { position: absolute; bottom: 2px; font-size: 8px; color: #8E8E93; }
.cal-dot {
  position: absolute;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0071E3;
}

/* Visit Type Selector */
.visit-type-selector { margin-bottom: 16px; }
.visit-type-label { font-size: 0.875rem; font-weight: 600; color: var(--color-text); margin-bottom: 8px; }
.visit-type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.visit-chip {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-text);
}
.visit-chip:hover { border-color: var(--color-accent); }
.visit-chip.selected {
  background: rgba(0,113,227,0.08);
  border-color: #0071E3;
  color: #0071E3;
  font-weight: 600;
}
@media (max-width: 767px) {
  .cal-cell { min-height: 40px; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-type-chips { gap: 6px; }
  .visit-chip { font-size: 0.75rem; padding: 6px 10px; }
}

.slots-empty {
  text-align: center;
  padding: 32px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}
.slots-loading {
  text-align: center;
  padding: 32px;
}
.slot-placeholder {
  text-align: center;
  padding: 24px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

/* --- Booking Form --- */
.booking-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.booking-selected-time {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}
.booking-disclaimer {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  margin-top: 12px;
  text-align: center;
}
.booking-success {
  text-align: center;
  padding: 32px 16px;
}
.booking-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* --- Forms (shared) --- */
.form-group {
  margin-bottom: 16px;
}
.form-group label,
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea,
input[type="text"], input[type="tel"], input[type="email"],
select, textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  border: 1.5px solid var(--color-border);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus,
input:focus, select:focus, textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}
input::placeholder, textarea::placeholder { color: var(--color-text-tertiary); opacity: 0.7; }
textarea { resize: vertical; min-height: 80px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2386868B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

.form-error {
  font-size: 0.8125rem;
  color: var(--color-error);
  margin-top: 4px;
}

/* --- Insurance Grid --- */
.insurance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.insurance-chip {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
  cursor: default;
}
.insurance-chip:hover {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,113,227,0.2);
}
.insurance-extra {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* --- Location --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .location-grid { grid-template-columns: 1fr 1fr; }
}
.location-map {
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 320px;
  background: var(--color-surface);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}
.location-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.location-detail {
  margin-bottom: 24px;
}
.location-detail p {
  color: var(--color-text);
  font-size: 0.9375rem;
}

.hours-list {
  list-style: none;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 0.9375rem;
  border-radius: 6px;
}
.hours-list li:nth-child(odd) {
  background: #FAFAFA;
}
.hours-list li:last-child { border-bottom: none; }
.hours-day { font-weight: 600; min-width: 110px; flex-shrink: 0; color: var(--color-text); }
.hours-time { color: var(--color-text-secondary); text-align: right; }
.hours-time.closed { color: var(--color-text-tertiary); }
.hours-list li.today {
  background: rgba(0,113,227,0.04);
}

.walk-ins-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
.walk-ins-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  background: #1D1D1F;
  color: #9E9E9E;
  padding: 64px 0 24px;
  border-top: 1px solid #333333;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer h4 {
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #CACACA;
  font-size: 0.875rem;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: #FFFFFF; }
.footer-contact { font-size: 0.875rem; margin-bottom: 4px; color: #9E9E9E; }
.footer-contact a { display: inline; color: var(--color-accent); }
.footer-tagline { font-size: 0.875rem; margin-bottom: 12px; color: var(--color-text-secondary); }
.footer-brand {
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: #6E6E73;
}
.footer-bottom a { color: #6E6E73; }
.footer-bottom a:hover { color: #CACACA; }
.footer-powered {
  color: #6E6E73;
}
.footer-powered strong {
  color: #9E9E9E;
  font-weight: 600;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 500ms; }

/* --- Hero CSS-only fade-in --- */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-fade-in {
  animation: heroFadeIn 0.8s ease forwards;
}
.hero-fade-in-delay-1 { animation-delay: 0.15s; opacity: 0; }
.hero-fade-in-delay-2 { animation-delay: 0.3s; opacity: 0; }
.hero-fade-in-delay-3 { animation-delay: 0.45s; opacity: 0; }
.hero-fade-in-delay-4 { animation-delay: 0.6s; opacity: 0; }

/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, #e8e8ed 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 16px; margin-bottom: 8px; }
.skeleton-heading { height: 36px; width: 60%; margin: 0 auto 16px; }
.skeleton-card { height: 200px; }

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-error); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-secondary { color: var(--color-text-secondary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* --- Services Full Cards (services page) --- */
.service-full-card {
  background: #fff;
  border: none;
  border-radius: var(--radius-card);
  padding: 32px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}
.service-full-card:hover {
  box-shadow: var(--shadow-card-hover);
}
.service-full-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}
.service-full-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--color-text);
}
.service-full-icon svg {
  width: 36px;
  height: 36px;
}
.service-full-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  text-align: left;
}
.service-full-desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.service-detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}
@media (max-width: 640px) {
  .service-detail-columns { grid-template-columns: 1fr; }
}
.service-detail-section {
  margin-bottom: 0.75rem;
}
.service-detail-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  text-align: left;
}
.service-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.service-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
.service-full-cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
}
.service-book-link {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--transition);
}
.service-book-link:hover {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

/* --- Service Anchor Nav (sticky pill bar) --- */
.service-anchor-wrap {
  position: sticky;
  top: var(--nav-height);
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.service-anchor-nav {
  overflow-x: auto;
  display: flex;
  gap: 8px;
  padding: 12px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.service-anchor-nav::-webkit-scrollbar { display: none; }
.service-pill {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.service-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.service-pill.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* --- About Page Specific --- */
.about-page-hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.about-page-info h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.about-credentials-lg {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}
.about-photo-lg {
  width: 200px;
  height: auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
@media (min-width: 768px) {
  .about-photo-lg { width: 240px; }
}
.about-bio-full p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}
.about-details p,
.about-philosophy p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}
.about-edu-list {
  list-style: none;
  padding: 0;
}
.about-edu-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 1rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}
.about-edu-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.about-edu-list li:last-child {
  border-bottom: none;
}

/* --- Nav Active Link --- */
.nav-links a.active,
.nav-mobile-menu a.active {
  color: var(--color-accent);
  font-weight: 600;
}
