/* ============================================
   Dr. Jarred — Orthodontic Consultations (V2)
   Editorial / architectural design system.
   Tokens: porcelain / paper / ink / sage / hairline
   Type: Newsreader (serif display) + Inter (sans/UI)
   ============================================ */

:root{
  --bg:      #F5F5F1;   /* porcelain page background */
  --paper:   #FFFFFF;   /* raised surface */
  --ink:     #15181A;   /* near-black, cool */
  --line:    #DEDDD5;   /* hairline rule / border */
  --muted:   #6E7269;   /* secondary text */
  --sage:    #3F5044;   /* primary accent — deep pine/sage */
  --sage-soft: #E9EDE7; /* alternate section tint */
  --sage-line: #C4CDC1; /* mid accent for subtle borders */
  --cream:   #F5F5F1;   /* alias used on dark sections */

  --max: 1180px;
  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
em{ font-style: italic; }

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.wrap{
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 900px){
  .wrap{ max-width: var(--max); padding: 0 56px; }
}

.kicker{
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-block;
  margin-bottom: 16px;
}

.rule{ border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Nav ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245,245,241,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.wordmark{ line-height: 1.2; }
.wordmark .wm-name{
  font-family: 'Newsreader', serif;
  font-size: 19px;
  font-weight: 500;
  display: block;
}
.wordmark .wm-role{
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.nav-links{
  display: none;
  align-items: center;
  gap: 30px;
}
.nav-links a{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-underline-offset: 5px;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ text-decoration-color: var(--sage); color: var(--sage); }
.nav-links a.nav-book{
  border: 1px solid var(--ink);
  padding: 10px 18px;
  text-decoration: none !important;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a.nav-book:hover{ background: var(--ink); color: var(--bg); }

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

.nav-toggle{
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span{ width: 22px; height: 1px; background: var(--ink); display:block; }

/* Full-screen mobile overlay */
.mobile-overlay{
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform .35s var(--ease);
}
.mobile-overlay.open{ transform: translateY(0); }
.mobile-overlay-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 78px;
  border-bottom: 1px solid #2A2E29;
  flex-shrink: 0;
}
.mobile-overlay-top .wordmark .wm-name{ color: var(--bg); }
.mobile-overlay-top .wordmark .wm-role{ color: #9BA095; }
.overlay-close{ background: none; border: none; cursor: pointer; position: relative; width: 26px; height: 26px; }
.overlay-close::before, .overlay-close::after{
  content:''; position:absolute; left: 2px; top: 12px; width: 22px; height: 1px; background: var(--bg);
}
.overlay-close::before{ transform: rotate(45deg); }
.overlay-close::after{ transform: rotate(-45deg); }
.mobile-overlay-links{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  gap: 26px;
}
.mobile-overlay-links a{
  font-family: 'Newsreader', serif;
  font-size: 30px;
  color: var(--bg);
}
.mobile-overlay-links a.overlay-book{
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #4A4F45;
  display: inline-block;
  padding: 14px 20px;
  width: fit-content;
  margin-top: 8px;
  color: var(--bg);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-fill{ background: var(--ink); color: var(--bg); width: 100%; }
.btn-fill:hover{ background: #2A2E29; }
.btn-outline{ background: transparent; color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--bg); }
@media (min-width: 480px){ .btn{ width: auto; } }

/* ---------- Hero ---------- */
.hero{ padding: 56px 0 0; }
.hero-head{ max-width: 640px; }
.hero h1{ font-size: 34px; margin: 0 0 20px; }
@media (min-width: 640px){ .hero h1{ font-size: 48px; } }
.hero .lede{ font-size: 16px; color: var(--muted); max-width: 46ch; margin: 0 0 32px; }
.hero-cta{ display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 48px; }
.hero-cta .helper{ font-size: 12.5px; color: var(--muted); }

.hero-photo{
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.hero-photo img{ width: 100%; height: 100%; object-fit: cover; }

/* ---------- Index list (What to expect / Braces options rows) ---------- */
.index-list{ border-top: 1px solid var(--line); }
.index-row{
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: start;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.index-row .idx-num{ font-family: 'Newsreader', serif; font-style: italic; font-size: 15px; color: var(--sage); padding-top: 2px; }
.index-row h3{ font-size: 20px; margin-bottom: 8px; }
.index-row p{ font-size: 14.5px; color: var(--muted); margin: 0; max-width: 46ch; }
.index-row .idx-arrow{ font-size: 18px; color: var(--muted); padding-top: 2px; transition: transform .2s var(--ease); }
.index-row:hover .idx-arrow{ transform: translateX(4px); color: var(--sage); }

/* ---------- Section generic ---------- */
section{ padding: 64px 0; }
.section-tint{ background: var(--sage-soft); }
.section-head{ margin-bottom: 40px; max-width: 640px; }
.section-head h2{ font-size: 28px; }
@media (min-width: 640px){ .section-head h2{ font-size: 34px; } }
.section-head p{ color: var(--muted); margin-top: 14px; font-size: 15.5px; max-width: 50ch; }

/* ---------- Note (quote + photo) ---------- */
.note-grid{
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.note-photo{
  border: 1px solid var(--sage-line);
  overflow: hidden;
  aspect-ratio: 1/1;
  max-width: 220px;
}
.note-photo img{ width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.note-quote p{
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 14px;
}
@media (min-width: 640px){ .note-quote p{ font-size: 23px; } }
.note-quote span{ font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); }
@media (min-width: 760px){
  .note-grid{ flex-direction: row; align-items: center; gap: 48px; }
  .note-photo{ flex-shrink: 0; }
}

/* ---------- Meet teaser (text only, no image) ---------- */
.teaser-row{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.teaser-row h2{ font-size: 26px; }
.teaser-row p{ font-size: 15px; color: var(--muted); max-width: 56ch; margin: 0; }
.teaser-row .idx-arrow-link{
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 8px; color: var(--sage);
}
@media (min-width: 760px){
  .teaser-row{ flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .teaser-row .t-copy{ flex: 1; }
}

/* ---------- Instagram grid ---------- */
.insta-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.insta-head h2{ font-size: 22px; }
.insta-head a{ font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); }
.insta-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 640px){ .insta-grid{ grid-template-columns: repeat(6, 1fr); } }
.insta-grid a{ display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--paper); }
.insta-grid img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); display: block; filter: grayscale(35%); }
.insta-grid a:hover img{ transform: scale(1.05); filter: grayscale(0%); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: var(--bg); padding: 72px 0 0; }
.footer-top{ display: flex; flex-direction: column; gap: 28px; padding-bottom: 48px; border-bottom: 1px solid #2A2E29; }
.site-footer .kicker{ color: #9BB39F; }
.site-footer h2{ color: var(--bg); font-size: 32px; max-width: 14ch; }
@media (min-width: 640px){ .site-footer h2{ font-size: 42px; } }
.site-footer h2 em{ color: #9BB39F; }
.footer-top .sub{ color: #B7BAB1; font-size: 15px; max-width: 42ch; margin: 0; }
.footer-cta-buttons{ display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 480px){ .footer-cta-buttons{ flex-direction: row; } }
.footer-top .btn-fill{ background: var(--bg); color: var(--ink); border-color: var(--bg); }
.footer-top .btn-fill:hover{ background: #E3E3DC; }
.footer-top .btn-outline{ color: var(--bg); border-color: #4A4F45; }
.footer-top .btn-outline:hover{ background: var(--bg); color: var(--ink); }
@media (min-width: 900px){
  .footer-top{ flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.footer-meta{
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #969A90;
}
@media (min-width: 640px){ .footer-meta{ flex-direction: row; gap: 28px; } }
.footer-meta a{ color: #969A90; }
.footer-meta a:hover{ color: var(--bg); }
.footer-legal{ padding: 18px 0; border-top: 1px solid #2A2E29; font-size: 11px; color: #6D726A; }

/* ---------- Timeline (consultation) ---------- */
.timeline{ border-top: 1px solid var(--line); }
.tl-item{
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.tl-num{ font-family: 'Newsreader', serif; font-style: italic; font-size: 21px; color: var(--sage); }
.tl-item h3{ font-size: 20px; margin-bottom: 10px; }
.tl-item p{ font-size: 14.5px; color: var(--muted); margin: 0; max-width: 56ch; }

.info-panel{
  margin-top: 44px;
  border: 1px solid var(--line);
  padding: 30px 26px;
}
.info-panel h3{ font-size: 16.5px; margin-bottom: 16px; font-family: 'Inter', sans-serif; font-weight: 600; }
.info-panel ul{ margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--muted); }
.info-panel li{ margin-bottom: 9px; }
.info-panel li:last-child{ margin-bottom: 0; }

/* ---------- Options (braces) — alternating rows ---------- */
.treatment-list{ display: flex; flex-direction: column; }
.treatment-row{
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.treatment-row:last-child{ border-bottom: 1px solid var(--line); }
.treatment-row .t-photo{
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.treatment-row .t-photo img{ width: 100%; height: 100%; object-fit: cover; }
.treatment-row .t-tag{ font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); display: block; margin-bottom: 10px; }
.treatment-row h3{ font-size: 23px; margin-bottom: 12px; }
.treatment-row p{ font-size: 15px; color: var(--muted); margin: 0 0 20px; }
.t-meta{ display: flex; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.t-meta div{ font-size: 12.5px; color: var(--muted); }
.t-meta strong{ display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
@media (min-width: 800px){
  .treatment-row{ flex-direction: row; align-items: center; gap: 56px; }
  .treatment-row .t-photo{ width: 42%; flex-shrink: 0; }
  .treatment-row:nth-child(even){ flex-direction: row-reverse; }
}

/* ---------- Before & After ---------- */
.case-grid{ display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.case-item{ background: var(--paper); }
.case-item img{ width: 100%; display: block; }
.case-item .case-cap{ padding: 18px 20px 24px; }
.case-item .case-cap .idx-tag{ font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); display: block; margin-bottom: 6px; }
.case-item .case-cap p{ font-size: 14px; color: var(--muted); margin: 0; }
@media (min-width: 800px){ .case-grid{ flex-direction: row; } .case-item{ flex: 1; } }

.video-grid{ display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1px; }
.video-item{ background: var(--paper); }
.video-item video{ width: 100%; display: block; background: #000; }
.video-item .v-cap{ padding: 16px 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }
@media (min-width: 800px){ .video-grid{ flex-direction: row; } .video-item{ flex: 1; } }

/* ---------- About ---------- */
.about-hero{ padding: 56px 0 0; }
.about-hero h1{ font-size: 32px; margin-bottom: 10px; }
@media (min-width: 640px){ .about-hero h1{ font-size: 44px; } }
.about-hero .role{ font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage); margin-bottom: 6px; }
.about-hero .creds{ font-size: 13px; color: var(--muted); }

.about-story{ display: flex; flex-direction: column; gap: 32px; }
.story-photo{ border: 1px solid var(--line); overflow: hidden; }
.story-photo img{ width: 100%; display: block; object-fit: cover; }
.story-copy p{ font-size: 15.5px; color: var(--muted); margin: 0 0 17px; }
.story-copy p:last-child{ margin-bottom: 0; }
.story-plate{
  border: 1px solid var(--line);
  padding: 18px 22px;
  margin-bottom: 28px;
  display: inline-block;
}
.story-plate .sp-role{ font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); display: block; margin-bottom: 6px; }
.story-plate .sp-name{ font-family: 'Newsreader', serif; font-size: 19px; display: block; }
.story-plate .sp-reg{ font-size: 11.5px; color: var(--muted); display: block; margin-top: 6px; }
@media (min-width: 860px){
  .about-story{ flex-direction: row; align-items: flex-start; gap: 56px; }
  .story-photo{ width: 42%; flex-shrink: 0; position: sticky; top: 100px; }
}

.cred-list{ border-top: 1px solid var(--line); }
.cred-row{ display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.cred-row .c-num{ font-family: 'Newsreader', serif; font-style: italic; color: var(--sage); font-size: 15px; }
.cred-row h3{ font-size: 16.5px; margin-bottom: 5px; font-weight: 500; font-family: 'Inter', sans-serif; }
.cred-row p{ font-size: 14px; color: var(--muted); margin: 0; }

.logo-band{
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.logo-band img{ max-height: 56px; width: auto; object-fit: contain; }
.logo-band img.badge-lg{ max-height: 84px; }
.logo-band-caption{ width: 100%; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: -18px; }

/* ---------- Trust stats strip ---------- */
.trust-stats{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.trust-stat{
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.trust-stat .ts-num{
  font-family: 'Newsreader', serif;
  font-size: 22px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.trust-stat .ts-num em{ color: var(--sage); font-style: italic; }
.trust-stat .ts-label{
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 640px){
  .trust-stats{ grid-template-columns: repeat(3, 1fr); }
  .trust-stat{ border-bottom: none; border-right: 1px solid var(--line); padding: 22px 24px; }
  .trust-stat:first-child{ padding-left: 0; }
  .trust-stat:last-child{ border-right: none; }
}

.cost-note{
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: 18px;
}
.cost-note strong{ font-style: normal; color: var(--ink); font-weight: 500; }

.location-note{
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 46ch;
}
.location-note strong{ color: var(--ink); font-weight: 600; }

/* Secondary call link next to WhatsApp buttons */
.call-link{
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.call-link:hover{ color: var(--sage); }
.call-link svg{ width: 14px; height: 14px; }

/* ---------- Floating WhatsApp button (desktop) ---------- */
.float-whatsapp{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.float-whatsapp:hover{ transform: translateY(-2px); background: #2A2E29; }
.float-whatsapp svg{ width: 24px; height: 24px; }

/* ---------- Sticky mobile book bar ---------- */
.sticky-book-bar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: var(--ink);
  border-top: 1px solid #2A2E29;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
}
.sticky-book-bar a{
  flex: 1;
  text-align: center;
  padding: 13px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sticky-book-bar .sb-whatsapp{ background: var(--bg); color: var(--ink); }
.sticky-book-bar .sb-call{
  border: 1px solid #4A4F45;
  color: var(--bg);
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticky-book-bar .sb-call svg{ width: 18px; height: 18px; }

@media (min-width: 900px){
  .sticky-book-bar{ display: none; }
}
@media (max-width: 899px){
  .float-whatsapp{ display: none; }
  body{ padding-bottom: 70px; }
}
