/* ---------------------------------------------------------------
   Northline Family Dental — concept build, invented practice.

   A different job from Raajbhog. That site sells atmosphere; this one
   sells trust and ease. Someone finds it on a phone, often in pain or
   long overdue, and needs three things fast: what this place does,
   where it is, and how to get an appointment. Everything here serves
   that, and anything that got in the way of it was cut.

   No webfonts. A dental site that loads instantly is worth more than
   one with a typeface, and the system stack is genuinely good now.
   --------------------------------------------------------------- */

:root {
  --bg:      #f6f7f6;
  --card:    #ffffff;
  --ink:     #12211f;
  --body:    #3f4d4a;
  --muted:   #6d7a77;
  --line:    #dde5e2;
  --line-2:  #eef3f1;
  --brand:   #0b6b63;
  --brand-dk:#08514b;
  --tint:    #e7f1ee;
  --gold:    #a8762f;
  --alert:   #8a3b1d;

  --r: 10px;
  --gut: clamp(18px, 4.5vw, 44px);
  --max: 1120px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;   /* room for the sticky call/book bar */
}
@media (min-width: 820px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dk); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 60; }
.skip:focus { left: 10px; top: 10px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 6.4vw, 52px); letter-spacing: -0.022em; }
h2 { font-size: clamp(23px, 4vw, 34px); letter-spacing: -0.016em; }
h3 { font-size: 19px; letter-spacing: -0.008em; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--body); max-width: 62ch; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 10px;
}
.tight { margin-bottom: 8px; }

/* --------------------------------------------- the honesty banner */
/* On every page. This is not a real practice, and nobody should ever
   be in doubt about that — least of all someone in pain looking for a
   dentist who can see them today. */
.concept { background: var(--ink); color: #dfe8e5; font-size: 13px; line-height: 1.45; }
.concept .wrap { padding-top: 9px; padding-bottom: 9px; }
.concept strong { color: #fff; }
.concept a { color: #9fd8cd; }

/* -------------------------------------------------------- masthead */

.masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.mast-row { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { flex: none; }
.brand-name { font-weight: 700; color: var(--ink); font-size: 17px; letter-spacing: -0.01em; line-height: 1.15; }
.brand-sub { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

.mast-tel { display: none; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 18px; }
.mast-tel span { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 820px) { .mast-tel { display: block; } .mast-row { gap: 22px; } }
/* .btn sets display:inline-flex and is declared later at equal
   specificity, so a bare `.mast-book { display: none }` lost the tie and
   the button showed up on phones. Qualify it to win. */
.mast-row .mast-book { display: none; }
@media (min-width: 820px) { .mast-row .mast-book { display: inline-flex; } }

/* On desktop there is no sticky bar, so the header carries the phone
   number and has to stay put for it to count as always visible. */
@media (min-width: 820px) { .masthead { position: sticky; top: 0; z-index: 40; } }

/* The labels are cut to one word each so all five fit a 375px row.
   They did not fit as written -- "Services & prices", "Our team",
   "Smile gallery" -- and the nav scrolled silently, which on a phone
   means Book was simply off the edge of the screen. overflow-x stays
   as a safety net for large text settings, not as the design. */
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line-2); }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; padding: 12px 9px; font-size: 14.5px; font-weight: 600;
  color: var(--body); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
/* At 375px the five labels came to exactly the available width with no
   slack at all, so any device whose font metrics run a hair wider would
   tip the row back into scrolling. Buy ~20px below 480. */
@media (max-width: 479px) { .nav a { padding-left: 7px; padding-right: 7px; } }
.nav a[aria-current="page"] { color: var(--brand-dk); border-bottom-color: var(--brand); }
@media (min-width: 820px) { .nav { gap: 8px; border-top: 0; } .nav a { padding: 14px; font-size: 15px; } }

/* --------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 14px 24px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  border-radius: var(--r); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dk); border-color: var(--brand-dk); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dk); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.actions { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 0; }
@media (min-width: 560px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions .btn { flex: 1 1 auto; min-width: 200px; }
}

/* ------------------------------------------------------------ hero */

.hero { background: var(--card); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: clamp(26px, 5vw, 54px); padding-bottom: clamp(26px, 5vw, 54px); }
.hero h1 { max-width: 17ch; }
.hero-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: start; } }

/* Where they are and when they are open, above the fold, not buried
   three clicks away on a contact page. */
.at-a-glance { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.at-a-glance dl { margin: 0; display: grid; gap: 14px; }
.at-a-glance dt {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-dk); margin-bottom: 3px;
}
.at-a-glance dd { margin: 0; color: var(--ink); font-size: 16px; }
.at-a-glance a { font-weight: 700; }

/* Where they are, above the fold. The full address block sits in the
   aside, which on a phone falls below everything else — so the street
   and the hours get repeated here in one compact line. */
.hero-where {
  margin: 20px 0 0; padding: 12px 14px;
  background: var(--tint); border-radius: var(--r);
  font-size: 15px; line-height: 1.45;
}
.hero-where strong { display: block; color: var(--ink); }
.hero-where span { color: var(--muted); }
@media (min-width: 900px) { .hero-where { display: none; } }

.trust { display: grid; gap: 12px; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
@media (min-width: 700px) { .trust { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.trust div { font-size: 15.5px; }
.trust b { color: var(--ink); display: block; }

/* -------------------------------------------------------- sections */

.section { padding: clamp(34px, 6vw, 66px) 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 26px; }

.cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 15.5px; }
.card-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 15px; }

/* ----------------------------------------------- price + insurance */

.prices { border-top: 2px solid var(--ink); margin: 0; }
.price-row {
  display: flex; flex-wrap: wrap; gap: 2px 16px;
  justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.price-row .what { font-weight: 600; color: var(--ink); flex: 1 1 58%; }
.price-row .what small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); line-height: 1.5; }
.price-row .amt { font-weight: 700; color: var(--ink); font-size: 17px; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chips li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.section-alt .chips li { background: var(--bg); }

.callout {
  border-left: 4px solid var(--brand); background: var(--tint);
  border-radius: 0 var(--r) var(--r) 0; padding: 16px 18px; margin: 24px 0 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout h3 { margin-bottom: 6px; }

/* ------------------------------------------------------------ team */

.team { display: grid; gap: 16px; }
@media (min-width: 700px) { .team { grid-template-columns: 1fr 1fr; } }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.section-alt .person { background: var(--bg); }
.person-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
/* A monogram, not a stock headshot. These are invented people, and a
   stock face would be a real stranger's photograph pressed into
   service as a fake dentist. */
.monogram {
  flex: none; width: 58px; height: 58px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 19px; font-weight: 700;
}
.person-head h3 { margin: 0; }
.person-role { font-size: 14px; color: var(--muted); font-weight: 600; }
.person p { font-size: 15.5px; }
.person p:last-child { margin-bottom: 0; }

/* -------------------------------------------------- before / after */

.case { margin: 0; }
.ba { position: relative; background: #101d1c; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ba-pane { position: relative; aspect-ratio: 4 / 3; }
@media (min-width: 700px) { .ba-pane { aspect-ratio: 16 / 10; } }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ba-tag {
  position: absolute; bottom: 12px; z-index: 3;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(18,33,31,.82); color: #fff; padding: 5px 10px; border-radius: 6px;
}
.ba-tag.is-before { left: 12px; }
.ba-tag.is-after { right: 12px; }
.ba-line { position: absolute; top: 0; bottom: 0; z-index: 4; left: var(--split, 50%); width: 2px; background: #fff; pointer-events: none; }
.ba-line::after {
  content: "◂ ▸"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 700;
  padding: 9px 11px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 1px 6px rgba(0,0,0,.35);
}
/* The handle is a real range input: drag, tap and arrow keys all work,
   and assistive tech gets a labelled slider with no extra wiring. */
.ba-range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.ba-caption { margin: 14px 0 0; }
.ba-caption h3 { margin-bottom: 4px; }
.ba-caption p { font-size: 15.5px; margin: 0; }

/* ------------------------------------------------------------- faq */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 16px 34px 16px 0; position: relative;
  font-weight: 700; color: var(--ink); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 24px; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 16px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ form */

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 13px 14px; min-height: 50px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--tint);
}
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.err { color: var(--alert); font-size: 14.5px; font-weight: 600; margin: 6px 0 0; }
.two-up { display: grid; }
@media (min-width: 620px) { .two-up { grid-template-columns: 1fr 1fr; gap: 0 16px; } }

.demo-notice {
  background: #fdf4e8; border: 1px solid #e6cfa8;
  border-radius: var(--r); padding: 14px 16px; margin: 0 0 20px;
  font-size: 15px; color: #5c4318;
}
.demo-notice strong { color: #3f2d0c; }
.demo-notice p:last-child { margin-bottom: 0; }
.form-done { background: var(--tint); border: 1px solid var(--brand); border-radius: var(--r); padding: 18px; margin-top: 16px; }
.form-done h3 { margin-bottom: 6px; }
.form-done p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------ sticky bar */
/* Most people meet a dentist's website on a phone, and often because
   something hurts. Calling and booking stay one thumb-reach away. */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
}
.sticky .btn { min-height: 50px; font-size: 15px; padding: 12px 6px; }
@media (min-width: 820px) { .sticky { display: none; } }

/* ---------------------------------------------------------- footer */

.foot { background: var(--ink); color: #c3d1ce; padding: 34px 0 30px; }
.foot a { color: #9fd8cd; }
.foot h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 7px; font-size: 15px; }
.foot-legal {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid #2c3d3a;
  font-size: 13.5px; line-height: 1.55; color: #97a8a5;
}
.foot-legal strong { color: #dfe8e5; }
.foot-legal p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
