/* ---------- Design tokens (Earthy palette) ---------- */
:root {
  --primary: #3D5A3A;
  --primary-dark: #2D4529;
  --accent: #C2410C;
  --accent-dark: #9A3308;
  --bg: #F5EFE4;
  --surface: #EADFC8;
  --surface-2: #DFD1B4;
  --text: #2D3B2B;
  --text-muted: #6B6154;
  --border: #D4C4A5;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(45, 59, 43, 0.06), 0 1px 3px rgba(45, 59, 43, 0.08);
  --shadow: 0 4px 6px -1px rgba(45, 59, 43, 0.08), 0 2px 4px -1px rgba(45, 59, 43, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(45, 59, 43, 0.10), 0 10px 10px -5px rgba(45, 59, 43, 0.04);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; color: var(--text); }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 228, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
}
.brand-mark { width: 32px; height: 32px; color: var(--primary); }
.brand-name { font-size: 20px; letter-spacing: -0.01em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.site-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--primary);
  color: var(--bg) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500 !important;
  transition: background 0.2s var(--ease);
}
.nav-cta:hover { background: var(--primary-dark); color: var(--bg) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #FFF7EE; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); color: #FFF7EE; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); background: var(--surface); }
.btn-block { width: 100%; padding: 16px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(194, 65, 12, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(61, 90, 58, 0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero-title {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
}
.hero-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-meta {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
}
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-meta span {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}
.hero-card {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-leaves {
  color: var(--primary);
  align-self: center;
  width: 65%;
  margin-top: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(245, 239, 228, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.15);
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--surface);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Practice ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.practice-card {
  padding: 36px 32px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.practice-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.practice-card h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}
.practice-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Doctors ---------- */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.doctor-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.doctor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.doctor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.doctor-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.25;
}
.doctor-creds {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.doctor-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.doctor-focus {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-item {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.service-item h4 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}
.service-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Waitlist ---------- */
.section-cta {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
.waitlist-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  max-width: 1080px;
}
.waitlist-copy {
  position: sticky;
  top: 100px;
}
.waitlist-copy h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 400;
  margin-bottom: 16px;
}
.waitlist-copy p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}
.waitlist-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
}
.field {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.field .opt { color: var(--text-muted); font-weight: 400; }
.field input, .field select {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  outline: none;
}
.field input:focus, .field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 90, 58, 0.12);
}
.field-row {
  display: flex;
  gap: 14px;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 4px;
}
.consent input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.consent a { color: var(--primary); text-decoration: underline; }
.form-status {
  font-size: 14px;
  min-height: 20px;
  text-align: center;
  margin-top: 4px;
}
.form-status.success { color: var(--primary); font-weight: 500; }
.form-status.error { color: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: var(--surface);
  padding: 64px 0 24px;
}
.site-footer .brand { color: var(--surface); }
.site-footer .brand-mark { color: var(--surface); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(234, 223, 200, 0.15);
}
.footer-tag {
  margin-top: 14px;
  color: var(--surface-2);
  font-size: 14px;
  max-width: 220px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: 8px;
}
.footer-links a {
  color: var(--surface-2);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--bg); }
.footer-note {
  color: var(--surface-2);
  font-size: 13px;
  line-height: 1.55;
}
.footer-legal {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: var(--surface-2);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 400px; margin: 0 auto; width: 100%; }
  .practice-grid { grid-template-columns: 1fr; }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .waitlist-wrap { grid-template-columns: 1fr; gap: 40px; }
  .waitlist-copy { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 18px; }
  .site-nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-meta { gap: 24px; }
  .hero-meta strong { font-size: 26px; }
  .doctor-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .waitlist-form { padding: 24px; }
  .container { padding: 0 20px; }
}

/* ---------- Reveal (progressive enhancement) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
