/* HiDrLee Clinic — Modern Dark Bone (v3) */
/* Dark forest palette · mint + amber accents · editorial serif + Inter body */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* surfaces */
  --bg-deepest:    #0a1310;
  --bg-base:       #0e1a16;
  --bg-elevated:   #14211c;
  --bg-hover:      #1c2f29;
  --border-subtle: #1f312b;
  --border-faded:  #2a4039;

  /* text */
  --text-primary:   #f5f0e6;
  --text-secondary: #b8c8c0;
  --text-tertiary:  #7a8a83;

  /* accents */
  --accent:        #7fd4b3;
  --accent-hover:  #95e0c2;
  --accent-soft:   rgba(127, 212, 179, 0.10);
  --accent-deep:   #2d6b56;
  --amber:         #e0b870;
  --amber-soft:    rgba(224, 184, 112, 0.10);

  /* shape */
  --pad-x:    max(32px, calc((100vw - 1200px) / 2));
  --radius-sm:   8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-pill: 999px;

  /* type */
  --font-serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg-deepest);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

h1, h2 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0 0 8px;
}
h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 12px;
}
p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
  font-size: 16px;
}
ul, ol { color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }
em { font-family: var(--font-serif); font-style: italic; }

/* ─────────── Announcement bar ─────────── */
.wireframe-banner {
  background: var(--accent);
  color: var(--bg-deepest);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 11px 16px;
  text-align: center;
  font-weight: 600;
}
.wireframe-banner strong { color: var(--bg-deepest); font-weight: 700; }
.wireframe-banner a {
  color: var(--bg-deepest);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
  font-weight: 700;
}
.wireframe-banner a:hover { text-decoration: none; }

/* ─────────── Utility bar ─────────── */
.util-bar {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px var(--pad-x);
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─────────── Sections ─────────── */
section {
  position: relative;
  padding: 88px var(--pad-x);
  background: var(--bg-deepest);
}
section:nth-of-type(even) { background: var(--bg-base); }

section::before { display: none; }

/* Small accent line under H2s that are the "section heading" */
section > h2:first-of-type {
  padding-bottom: 12px;
}
section > h2:first-of-type::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 16px;
  border-radius: 2px;
}

/* ─────────── Site Header ─────────── */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px var(--pad-x);
  background: var(--bg-deepest);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
header.site-header::before { display: none; }

nav.primary ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  flex-wrap: wrap;
}
nav.primary a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.primary a:hover { color: var(--text-primary); }
nav.primary a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─────────── Logo placeholder ─────────── */
.logo-block {
  background: transparent;
  border: 1px dashed var(--border-faded);
  color: var(--text-tertiary);
  height: 40px;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  padding: 4px 8px;
  text-align: center;
}

/* Brand wordmark in nav / footer (no dashed border, real type) */
header.site-header .logo-block,
footer.site-footer .logo-block {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  width: auto;
  height: auto;
  padding: 0;
  justify-content: flex-start;
  text-align: left;
  text-transform: none;
}
header.site-header .logo-block::first-letter,
footer.site-footer .logo-block::first-letter {
  color: var(--accent);
}

/* Affiliation chips (clean text pill, not dashed) */
.affiliations-strip .logo-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  padding: 14px 28px;
  font-weight: 500;
  width: auto;
  height: auto;
}

/* ─────────── Buttons ─────────── */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-deepest);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-deepest);
  box-shadow: 0 6px 24px rgba(127, 212, 179, 0.25);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ─────────── Embedded map ─────────── */
.map-embed {
  width: 100%;
  min-height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.85) saturate(0.9);
}

/* ─────────── Image placeholders ─────────── */
.img-block {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
  border: 1px dashed var(--border-faded);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 120px;
  border-radius: var(--radius-md);
  padding: 24px;
  font-family: var(--font-sans);
}
.img-block.tall   { min-height: 420px; }
.img-block.medium { min-height: 280px; }

/* ─────────── Hero ─────────── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
  margin-top: 24px;
}
.hero h1 {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 400;
}
.hero h1 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.hero p.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 36px;
  max-width: 540px;
}
.hero .telehealth-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(127, 212, 179, 0.22);
  letter-spacing: 0.04em;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─────────── Page Title (sub-pages) ─────────── */
.page-title {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
  margin-top: 24px;
}
.page-title h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  margin: 0 0 20px;
}
.page-title .lede {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

/* ─────────── 3-up tiles ─────────── */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.tile {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  transition: all 0.22s ease;
  position: relative;
}
.tile:hover {
  border-color: var(--accent-deep);
  background: var(--bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.tile h3 { margin: 18px 0 10px; font-size: 18px; }
.tile p  { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.tile .icon-block {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border: 1px solid rgba(127, 212, 179, 0.22);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* ─────────── Integrated 3-column ─────────── */
.integrated {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 14px;
  margin-top: 48px;
}
.integrated > div {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 32px 26px;
  border-radius: var(--radius-md);
  min-height: 220px;
}
.integrated .center {
  background: linear-gradient(160deg,
              rgba(127, 212, 179, 0.10) 0%,
              rgba(224, 184, 112, 0.06) 100%);
  border-color: var(--accent-deep);
  position: relative;
}
.integrated h4 {
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
}
.integrated .center h4 { color: var(--amber); }
.integrated ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.integrated ul li { margin: 4px 0; }

/* ─────────── Two-up ─────────── */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 24px;
}

/* ─────────── About row ─────────── */
.about-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 24px;
}

/* ─────────── Affiliations strip ─────────── */
.affiliations-strip {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 40px;
}
.affiliations-strip .logo-block {
  width: 200px;
  height: 64px;
}

/* ─────────── Final CTA ─────────── */
.final-cta {
  text-align: center;
  padding: 80px 32px;
  margin-top: 24px;
  background: radial-gradient(circle at 50% 0%,
              rgba(127, 212, 179, 0.10) 0%,
              transparent 60%),
              linear-gradient(180deg,
              rgba(127, 212, 179, 0.04) 0%,
              rgba(45, 107, 86, 0.08) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.final-cta h2 { margin: 0 0 14px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.final-cta h2::after { display: none; }
.final-cta p { font-size: 17px; margin: 0 0 32px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ─────────── Table ─────────── */
table.bone-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
table.bone-table th, table.bone-table td {
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 20px;
  text-align: left;
}
table.bone-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
table.bone-table td { color: var(--text-secondary); }
table.bone-table tr:last-child td { border-bottom: none; }
table.bone-table tr:hover td { background: rgba(127, 212, 179, 0.03); }

/* ─────────── FAQ ─────────── */
.faq-item {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.faq-item:hover { border-color: var(--accent-deep); transform: translateY(-1px); }
.faq-item .q {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-sans);
}
.faq-item .a { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ─────────── Process steps ─────────── */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.process .step {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 36px 28px 30px;
  position: relative;
  transition: all 0.2s ease;
}
.process .step:hover {
  border-color: var(--accent-deep);
  transform: translateY(-2px);
}
.process .step .num {
  position: absolute;
  top: -22px;
  left: 28px;
  background: var(--accent);
  color: var(--bg-deepest);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  font-family: var(--font-sans);
  box-shadow: 0 4px 16px rgba(127, 212, 179, 0.25);
}
.process .step h3 { margin: 8px 0 8px; font-size: 17px; }
.process .step p  { color: var(--text-secondary); font-size: 15px; margin: 0; line-height: 1.55; }

/* ─────────── Form ─────────── */
.bone-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.bone-form label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.bone-form input,
.bone-form select,
.bone-form textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 13px 16px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bone-form input::placeholder,
.bone-form textarea::placeholder { color: var(--text-tertiary); }
.bone-form input:focus,
.bone-form select:focus,
.bone-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-hover);
}
.bone-form textarea { min-height: 130px; resize: vertical; }
.bone-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bone-form button.btn-primary { font-family: var(--font-sans); }

/* ─────────── Page list ─────────── */
.page-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.page-list li {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
}

/* ─────────── Footer ─────────── */
footer.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: 72px var(--pad-x) 28px;
}
footer.site-footer::before { display: none; }
footer.site-footer .footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
footer.site-footer h5 {
  margin: 0 0 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  font-weight: 600;
  font-family: var(--font-sans);
}
footer.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
footer.site-footer ul li { margin: 8px 0; }
footer.site-footer a { color: var(--text-secondary); }
footer.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  margin-top: 52px;
  padding-top: 22px;
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ─────────── Selection ─────────── */
::selection { background: var(--accent); color: var(--bg-deepest); }

/* Drawer CTA is mobile-only; bone.js injects it but desktop hides it */
.drawer-cta { display: none; }

/* ─────────── Hamburger button (mobile) ─────────── */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
  position: relative;
  z-index: 110;
}
.nav-toggle:hover { background: var(--bg-elevated); border-color: var(--border-faded); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ─────────── Responsive ─────────── */
@media (max-width: 900px) {
  .hero, .two-up, .page-title, .about-row { grid-template-columns: 1fr; gap: 40px; }
  .three-up, .integrated, .process,
  footer.site-footer .footer-cols { grid-template-columns: 1fr; gap: 16px; }
  .bone-form .row-2 { grid-template-columns: 1fr; }
  section { padding: 60px var(--pad-x); }
  header.site-header { padding-top: 14px; padding-bottom: 14px; }
  .final-cta { padding: 56px 24px; }

  /* Show hamburger, hide nav + waitlist button in header */
  .nav-toggle { display: flex; }
  header.site-header > .btn-primary { display: none; }

  /* Slide-in drawer */
  nav.primary {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    background: var(--bg-deepest);
    border-left: 1px solid var(--border-subtle);
    padding: 88px 28px 32px;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.4);
  }
  nav.primary ul {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
  nav.primary a {
    font-family: var(--font-serif);
    font-size: 22px;
    padding: 10px 0;
    border-bottom: none;
    color: var(--text-secondary);
    display: block;
  }
  nav.primary a.active {
    color: var(--accent);
    border-bottom: none;
  }
  /* Waitlist CTA inside the drawer (real link, injected by bone.js) */
  nav.primary .drawer-cta {
    display: block;
    margin-top: 28px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--bg-deepest);
    text-align: center;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    font-family: var(--font-sans);
  }
  nav.primary .drawer-cta:hover {
    background: var(--accent-hover);
  }

  /* Backdrop when drawer is open */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    animation: fadeIn 0.2s ease;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open nav.primary { transform: translateX(0); }

  /* Hamburger morphs to X */
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 540px) {
  h1 { font-size: 2.25rem; }
  .hero h1 { font-size: 2.5rem; }
  .page-title h1 { font-size: 2rem; }
}
