/* ============================================
   THE DENTAL PRACTICE GUIDES — Design System
   Palette drawn from the brand mark: stacked
   stones (a cairn — the guide's own trail marker)
   and a single path line.
   ============================================ */

/* Fonts are loaded via <link rel="preconnect"> + <link> in each page's <head>
   for faster rendering — see index.html / inflection-point.html */

:root {
  /* Brand palette */
  --stone-dark: #51545A;
  --stone-mid: #83868A;
  --path-green: #3D5444;
  --path-green-deep: #2C3E33;
  --warm-taupe: #A6A29B;
  --cream: #FAFAF7;
  --cream-deep: #F2F2ED;
  --ink: #3A3D40;
  --line: rgba(75, 82, 89, 0.16);
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Montserrat', 'Futura', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Poppins', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Rhythm */
  --max-width: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Eyebrow / labels (matches logo treatment:
   light wide-tracked word + bold word) ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--path-green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--path-green);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--stone-dark);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; color: var(--stone-dark); }
.lede { font-size: 1.26rem; font-weight: 300; color: var(--stone-dark); max-width: 640px; }

.light { font-weight: 300; }
.thin-cap {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.04em;
}
.bold-cap {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--path-green);
  color: var(--cream);
}
.btn-primary:hover { background: var(--path-green-deep); }
.btn-secondary {
  background: transparent;
  color: var(--stone-dark);
  border-color: var(--stone-dark);
}
.btn-secondary:hover { background: var(--stone-dark); color: var(--cream); }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

:focus-visible {
  outline: 2px solid var(--path-green);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
}
.logo-mark svg { height: 34px; width: auto; }
.logo-img {
  height: 68px;
  width: auto;
  display: block;
}
@media (max-width: 880px) {
  .logo-img { height: 50px; }
}
.logo-text-fallback { font-size: 16px; }
.logo-text-fallback .thin { font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm-taupe); font-size: 11px; display: block; }
.logo-text-fallback .bold { font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; color: var(--stone-dark); }

nav.main-nav { display: flex; gap: 34px; }
nav.main-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--stone-dark);
  position: relative;
  padding-bottom: 4px;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--path-green);
  transition: width 0.2s ease;
}
nav.main-nav a:hover::after { width: 100%; }

.nav-toggle { display: none; }

/* ---------- The Path signature element ---------- */
.path-rail {
  position: relative;
  width: 2px;
  background: var(--warm-taupe);
  opacity: 0.5;
}
.path-node {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--path-green);
  position: absolute;
  left: -4px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 26px; }
.hero .lede { margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-signature {
  position: relative;
  height: 420px;
}

/* Paired partner portraits — "human-first, partner faces" */
.hero-portraits {
  position: relative;
  min-height: 460px;
}
.portrait {
  position: absolute;
  margin: 0;
  width: 47.5%;
}
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  filter: saturate(0.94);
}
.portrait figcaption {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.portrait-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--stone-dark);
  letter-spacing: 0.01em;
}
.portrait-role {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--path-green);
  margin-top: 3px;
}
.portrait-a { top: 0; left: 0; }
.portrait-b { top: 84px; right: 0; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-alt { background: var(--cream-deep); }
.section-dark {
  background: var(--path-green);
  color: var(--cream);
}
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: rgba(248,247,241,0.82); }
.section-dark .eyebrow { color: var(--warm-taupe); }
.section-dark .eyebrow::before { background: var(--warm-taupe); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

hr.divider {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ---------- Wheel diagram ---------- */
.wheel-block {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 64px;
  align-items: center;
}
.wheel-svg { width: 100%; height: auto; }
.wheel-copy ul { list-style: none; padding: 0; margin: 0 0 28px; }
.wheel-copy li {
  padding: 11px 0 11px 26px;
  position: relative;
  color: var(--stone-dark);
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
}
.wheel-copy li:last-child { border-bottom: none; }
.wheel-copy li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--path-green);
}

/* ---------- Two-track services ---------- */
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
.track {
  padding: 48px 44px;
  background: var(--white);
}
.track + .track { border-left: 1px solid var(--line); }
.track-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.track-eyebrow { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warm-taupe); font-weight: 600; }
.track-lead { font-family: var(--font-display); font-weight: 600; color: var(--path-green); font-size: 16.5px; }

.service-line {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.service-line:first-of-type { border-top: none; margin-top: 24px; }
.service-line h4 { font-size: 17px; margin-bottom: 6px; color: var(--stone-dark); }
.service-line p { font-size: 15.5px; margin-bottom: 0; color: var(--stone-mid); }

/* ---------- Guides / bios ---------- */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.guide-card { }
.guide-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--stone-mid);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}
.guide-photo img { width: 100%; height: 100%; object-fit: cover; }
.guide-photo .placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(160deg, var(--stone-mid), var(--stone-dark));
}
.guide-name { font-size: 1.5rem; margin-bottom: 2px; }
.guide-role { font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--path-green); margin-bottom: 18px; display: block; }
.guide-card p { font-size: 16px; }

/* ---------- Inflection Point teaser ---------- */
.ip-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ip-facts { list-style: none; padding: 0; margin: 28px 0; }
.ip-facts li {
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid rgba(248,247,241,0.18);
  position: relative;
  font-size: 16px;
}
.ip-facts li:last-child { border: none; }
.ip-facts li::before {
  content: '';
  position: absolute; left: 0; top: 20px;
  width: 16px; height: 1px;
  background: var(--warm-taupe);
}

/* ---------- Session card (Inflection Point page) ---------- */
.session-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 44px;
}
.session-meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 26px 0 30px; }
.session-meta-item { }
.session-meta-item .label { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-taupe); font-weight: 600; margin-bottom: 4px; }
.session-meta-item .value { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--stone-dark); }

.numbered-list { list-style: none; padding: 0; counter-reset: q; margin: 0; }
.numbered-list li {
  counter-increment: q;
  padding: 18px 0 18px 46px;
  position: relative;
  border-top: 1px solid var(--line);
  font-size: 16.5px;
}
.numbered-list li:first-child { border-top: none; }
.numbered-list li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0; top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--path-green);
}

/* ---------- Form ---------- */
form.lead-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-mid);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--path-green);
}
.form-note { font-size: 14.5px; color: var(--stone-mid); margin-top: 4px; }
.form-success {
  display: none;
  padding: 18px 20px;
  background: var(--path-green);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 14px;
}

/* ---------- Why Guides comparison ---------- */
.word-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 56px;
}
.word-card {
  padding: 34px 28px;
  border-left: 1px solid var(--line);
}
.word-card:first-child { border-left: none; }
.word-card p { font-size: 15.5px; margin-bottom: 0; color: var(--stone-mid); }
.word-label {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-taupe);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.word-card.is-guide {
  background: var(--path-green);
}
.word-card.is-guide .word-label {
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.12em;
  border-bottom-color: rgba(248,247,241,0.3);
}
.word-card.is-guide p { color: rgba(248,247,241,0.9); }

.convention-note {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 2px solid var(--path-green);
}
.convention-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--stone-dark);
  margin-bottom: 18px;
}
.convention-note p { font-size: 16.5px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--stone-dark);
  color: var(--cream);
  padding: 56px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--cream); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { color: rgba(248,247,241,0.75); font-size: 15.5px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(248,247,241,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: rgba(248,247,241,0.5);
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  nav.main-nav { display: none; }
  .hero-grid, .wheel-block, .tracks, .guides-grid, .ip-teaser, .footer-grid, .two-col, .form-row {
    grid-template-columns: 1fr !important;
  }
  .track + .track { border-left: none; border-top: 1px solid var(--line); }
  .word-grid { grid-template-columns: 1fr 1fr; }
  .word-card { border-left: none; border-top: 1px solid var(--line); }
  .word-card:first-child, .word-card:nth-child(2) { border-top: none; }
  .word-card:nth-child(even) { border-left: 1px solid var(--line); }
  .hero-signature { height: 260px; }
  .hero-portraits { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
  .portrait { position: static; width: 100%; }
  .portrait-b { top: auto; }
  .portrait-name { font-size: 13.5px; }
  .portrait-role { font-size: 9.5px; letter-spacing: 0.1em; }
  section { padding: 64px 0; }
}
