/* Emergency dental platform. Brand system from sncdentalbh.com: black ink, champagne gold, warm porcelain.
   Centered, editorial, calm. Gold is the action color. Red appears only on the ER warning. */

:root {
  --ink: #0B0B0C;
  --ink-soft: #1C1A17;
  --body: #2A2724;
  --slate: #6B6459;
  --porcelain: #F7F6F4;
  --paper: #FFFFFF;
  --mist: #E9E5DF;
  --line: #DDD6CC;
  --gold: #C5A572;
  --gold-deep: #AB8A58;
  --gold-lift: #E0CBA4;
  --gold-text: #8C6F42;
  --gold-wash: rgba(197,165,114,.16);
  --gold-ring: rgba(197,165,114,.35);
  --on-gold: #1A1400;
  --er: #B23A2E;
  --er-wash: #FBF0EE;
  --radius: 3px;
  --radius-card: 6px;
  --serif: 'EB Garamond', Garamond, 'Adobe Garamond Pro', 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: var(--serif);
  --wrap: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.65;
  color: var(--body);
  background: var(--porcelain);
  padding-bottom: 72px;
  text-align: center;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 7.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; }
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 84px 0; } }
.section-sub { color: var(--slate); margin: -.4em auto 1.8em; max-width: 48ch; }

/* Gold hairline under section titles */
section > .wrap > h2::after { content: ''; display: block; width: 44px; height: 2px; background: var(--gold); margin: 16px auto 0; }
section > .wrap > h2 { margin-bottom: 1.1em; }

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

/* Header */
.site-head {
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid rgba(197,165,114,.35);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
.brand-word { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .02em; }
.brand-tag { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lift); border-left: 1px solid rgba(197,165,114,.5); padding-left: 14px; white-space: nowrap; }
.head-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; text-decoration: none; padding: 9px 14px; border: 1px solid var(--gold); color: var(--gold-lift); border-radius: var(--radius); white-space: nowrap; }
@media (max-width: 639px) { .brand-tag { display: none; } .brand img { height: 36px; max-width: 120px; } }
@media (min-width: 640px) { .head-call { padding: 10px 18px; font-size: 1.1rem; } .brand img { height: 46px; max-width: 170px; } }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 36px 0 44px; }
.hero-grid { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 92px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
}
.hero-copy { display: grid; justify-items: center; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 1.02rem; letter-spacing: .02em; color: var(--gold-lift); margin: 0 0 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.status.open .dot { background: #7BC49A; box-shadow: 0 0 0 4px rgba(123,196,154,.22); }
.status.closed .dot { background: var(--gold); }
.hero h1 { color: #fff; margin-bottom: .5em; max-width: 13ch; }
@media (max-width: 480px) { .hero h1 { max-width: none; font-size: 2.5rem; } }
.subhead { font-family: var(--serif); font-size: clamp(1.35rem, 4.2vw, 1.9rem); line-height: 1.25; color: var(--gold-lift); max-width: 30ch; margin: 0 0 .6em; }
.lede { font-size: 1.25rem; line-height: 1.55; color: #E2DDD4; max-width: 42ch; margin-bottom: 1.5em; font-weight: 400; }
.hero-note { font-size: 1.05rem; color: #B8B1A6; margin: 20px 0 0; max-width: 40ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 12px 28px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font-weight: 600; font-size: 1.2rem; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--gold); color: var(--on-gold); flex: 1 1 100%; }
.btn-call:hover { background: var(--gold-lift); }
.btn-num { font-weight: 400; white-space: nowrap; }
.btn-text { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); flex: 1 1 auto; }
.btn-text:hover { border-color: var(--gold-lift); color: var(--gold-lift); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--gold-lift); color: var(--gold-lift); }
.btn-submit { width: 100%; background: var(--ink); color: #fff; margin-top: 20px; }
.btn-submit:hover { background: var(--ink-soft); }
.btn-submit[disabled] { opacity: .7; cursor: wait; }
@media (min-width: 480px) { .btn-call, .btn-text { flex: 0 1 auto; min-width: 200px; } }

/* Form card */
.form-card {
  background: var(--paper); color: var(--body);
  border-radius: var(--radius-card);
  border-top: 3px solid var(--gold);
  padding: 26px 20px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  text-align: left;
  width: 100%; max-width: 520px; margin: 0 auto;
}
@media (min-width: 900px) { .form-card { padding: 34px 32px 28px; max-width: none; } }
.form-card h2 { font-size: 1.8rem; margin-bottom: .25em; text-align: center; }
.form-card h2::after { display: none; }
.form-sub { color: var(--slate); font-size: 1.05rem; margin-bottom: 1.3em; text-align: center; }
.form-card label { display: block; font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; margin: 14px 0 6px; }
.form-card .opt { font-weight: 400; color: var(--slate); }
.form-card input:not([type=hidden]), .form-card select, .form-card textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; min-height: 54px; font-size: 1.1rem;
}
.form-card textarea { resize: vertical; min-height: 64px; }
.form-card select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B0B0C' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--gold-deep); outline: none; box-shadow: 0 0 0 3px var(--gold-ring); }
.form-card .invalid { border-color: var(--er) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-fine { font-size: .95rem; color: var(--slate); margin: 12px 0 0; text-align: center; }
.form-error { color: var(--er); font-weight: 500; font-size: .95rem; margin: 12px 0 0; text-align: center; }
.form-done { text-align: center; }
.form-done h2 { font-size: 1.7rem; }
.form-done .er { font-size: .9rem; color: var(--slate); border-top: 1px solid var(--mist); padding-top: 14px; margin: 18px 0 0; }

/* Proof row */
.proof { background: var(--paper); padding: 26px 0; border-bottom: 1px solid var(--mist); }
.proof-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
@media (min-width: 760px) { .proof-row { grid-template-columns: repeat(4, 1fr); } }
.proof-item { display: flex; flex-direction: column; align-items: center; }
.proof-item strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.1; color: var(--ink); }
.proof-item span { font-size: 1rem; color: var(--slate); letter-spacing: .02em; }
.star { color: var(--gold); }

/* Clock strip */
.clock-strip { background: var(--gold-wash); padding: 30px 0; border-bottom: 1px solid var(--mist); }
.clock-line { font-family: var(--serif); font-size: clamp(1.5rem, 4.2vw, 2rem); margin: 0 auto; max-width: 34ch; color: var(--ink); }
.clock-time { font-style: italic; color: var(--gold-text); }

/* Steps */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 760px) { .step-list { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.step-list li { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.step-n { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-text); display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; }
.step-list h3 { margin-bottom: .25em; }
.step-list p { color: var(--slate); font-size: 1.05rem; margin: 0; max-width: 30ch; }

/* Conditions */
.conditions { background: var(--paper); }
.cond-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cond-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cond-grid { grid-template-columns: repeat(4, 1fr); } }
.cond {
  width: 100%; text-align: center; background: var(--porcelain); color: var(--body);
  border: 1px solid var(--mist); border-radius: var(--radius-card); padding: 22px 18px 20px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.cond:hover { border-color: var(--gold); background: #fff; }
.cond h3 { font-size: 1.4rem; margin-bottom: .35em; }
.cond p { margin: 0; font-size: 1.02rem; color: var(--slate); }
.er-line { margin: 28px auto 0; padding: 14px 18px; border-left: 3px solid var(--er); background: var(--er-wash); font-size: 1.05rem; max-width: 70ch; text-align: left; }

/* Doctors */
.doc-row { display: grid; gap: 36px; justify-content: center; }
@media (min-width: 700px) { .doc-row { grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); gap: 44px; } }
.doc { display: flex; flex-direction: column; align-items: center; }
.doc-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; background: var(--gold-wash); margin-bottom: 16px; box-shadow: 0 0 0 1px var(--gold-lift), 0 0 0 6px #fff, 0 0 0 7px var(--mist); }
.doc-initials { display: grid; place-items: center; font-family: var(--serif); font-size: 2rem; color: var(--gold-text); }
.doc-body { min-width: 0; }
.doc h3 { margin-bottom: .3em; }
.known-as { display: block; font-weight: 400; font-style: italic; font-size: 1rem; color: var(--slate); letter-spacing: .04em; }
.doc p { margin: 0; color: var(--slate); font-size: 1.05rem; max-width: 34ch; }
.pending { font-size: .85rem !important; color: var(--gold-text) !important; margin-top: 8px !important; letter-spacing: .06em; text-transform: uppercase; }

/* Reviews */
.reviews { background: var(--paper); }
.review-row { display: grid; gap: 18px; }
@media (min-width: 760px) { .review-row { grid-template-columns: repeat(3, 1fr); } }
blockquote { margin: 0; padding: 26px 24px 22px; background: var(--porcelain); border-radius: var(--radius-card); position: relative; }
blockquote::before { content: '\201C'; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 6px; }
blockquote p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; margin-bottom: .9em; color: var(--ink); }
blockquote footer { font-size: .95rem; color: var(--slate); letter-spacing: .06em; text-transform: uppercase; }
.review-meta { margin: 22px 0 0; color: var(--slate); font-size: 1rem; }

/* Location */
.loc-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .loc-grid { grid-template-columns: 1fr 1fr; } }
.loc-grid h2::after { content: ''; display: block; width: 44px; height: 2px; background: var(--gold); margin: 16px auto 0; }
.loc-grid h2 { margin-bottom: 1em; }
address { font-style: normal; font-size: 1.25rem; margin-bottom: .9em; color: var(--ink); }
.link { font-weight: 500; color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.other-loc { color: var(--slate); font-size: .95rem; }
.other-loc a { color: var(--gold-text); }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin: 0 auto; }
.hours td { padding: 10px 8px; border-bottom: 1px solid var(--mist); font-size: 1.05rem; vertical-align: top; }
.hours td:first-child { font-weight: 500; width: 40%; text-align: right; color: var(--ink); }
.hours td:last-child { text-align: left; }
.hours-note { margin: 14px 0 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); color: var(--slate); }

/* FAQ */
.faq { background: var(--paper); }
.faq .wrap { max-width: 760px; }
details { border-bottom: 1px solid var(--mist); text-align: left; }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; position: relative; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--gold-deep); border-bottom: 1.5px solid var(--gold-deep); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { margin: 0 0 20px; color: var(--slate); }

/* Final CTA */
.final { background: var(--ink); color: #fff; }
.final h2 { color: #fff; max-width: 22ch; margin: 0 auto 1.1em; }
.final h2::after { background: var(--gold); }

/* Footer */
.site-foot { background: var(--ink); color: #C4BDB2; padding: 32px 0 40px; font-size: 1rem; border-top: 1px solid rgba(197,165,114,.3); }
.foot-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
.site-foot strong { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.site-foot a { color: var(--gold-lift); }
.foot-small { font-size: .9rem; }

/* Sticky mobile bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(11,11,12,.96); border-top: 1px solid rgba(197,165,114,.4);
  backdrop-filter: blur(8px);
}
.sticky-bar a { display: grid; place-items: center; min-height: 50px; border-radius: var(--radius); font-weight: 600; letter-spacing: .02em; text-decoration: none; border: 1px solid rgba(255,255,255,.45); color: #fff; font-size: 1.1rem; }
.sticky-bar .sb-call { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.sticky-bar.two { grid-template-columns: 1fr 1.6fr; }
@media (min-width: 900px) { .sticky-bar { display: none; } }

/* Index (multi-location chooser) */
.index-page { background: var(--porcelain); color: var(--body); padding-bottom: 0; }
.index-head { justify-content: center; }
.index-main { padding: 44px 0 64px; }
@media (min-width: 900px) { .index-main { padding: 72px 0 88px; } }
.index-main h1 { max-width: 17ch; margin: 0 auto .4em; }
.index-main h1::after { content: ''; display: block; width: 44px; height: 2px; background: var(--gold); margin: 18px auto 0; }
.index-lede { color: var(--slate); max-width: 52ch; margin: 0 auto 2.2em; }
.loc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .loc-list { grid-template-columns: 1fr 1fr; gap: 22px; } }
.loc-card { background: var(--paper); border: 1px solid var(--mist); border-top: 3px solid var(--gold); border-radius: var(--radius-card); padding: 28px 22px 22px; display: grid; gap: 18px; }
.loc-main { display: grid; gap: 14px; justify-items: center; text-decoration: none; color: inherit; }
.loc-logo-wrap { display: grid; place-items: center; height: 56px; }
.loc-logo { display: block; max-height: 56px; max-width: 250px; width: auto; height: auto; object-fit: contain; }
.loc-logo-text { font-family: var(--serif); font-size: 1.5rem; line-height: 56px; }
.loc-meta { display: grid; gap: 4px; justify-items: center; }
.loc-city { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; color: var(--ink); }
.loc-addr { color: var(--slate); font-size: 1.05rem; }
.loc-status { display: inline-flex; align-items: center; gap: 8px; font-size: .98rem; color: var(--slate); margin-top: 6px; letter-spacing: .02em; }
.loc-status.open { color: #2F7A55; } .loc-status.open .dot { background: #2F7A55; }
.loc-status.closed .dot { background: var(--gold); }
.loc-go { font-weight: 600; font-size: 1.02rem; color: var(--gold-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; letter-spacing: .04em; }
.loc-call { width: 100%; }
.index-er { margin: 32px auto 0; padding: 14px 18px; border-left: 3px solid var(--er); background: var(--er-wash); font-size: 1.05rem; max-width: 70ch; text-align: left; }
