/* Vue Dental concept, "Campbelltown Dusk": shared look (tokens, bar, menu, footer, smile line). */
:root {
  --sc-canvas: #22100C;
  --sc-surface: #3A1A12;
  --sc-ink: #FFF1E6;
  --sc-ink-soft: #E8C3AC;
  --sc-accent: #FF7A2F;
  --sc-accent-ink: #22100C;
  --sc-font-display: "Instrument Serif", Georgia, serif;
  --sc-font-text: "Geist", system-ui, sans-serif;
  --sc-shadow-color: 12 70% 3%;
  --ember: #FFB27A;
  --sun-1: #FFB25C;
  --sun-2: #FF7A2F;
  --sun-3: #C2401F;
  --night: #120705;
  --bar-h: 84px;
  --page-p: 0;
}
html { background: var(--sc-canvas); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, table { margin: 0; }
body {
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  font-size: var(--sc-t-base);
  line-height: 1.62;
  letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.wrap-any { overflow-wrap: anywhere; }
main, .foot { position: relative; z-index: 1; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--sc-ink); color: var(--sc-canvas); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Shared type */
.kicker { font: 600 0.82rem/1.2 var(--sc-font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.h1, .h2, .h3 { font-family: var(--sc-font-display); font-weight: 400; letter-spacing: -0.012em; line-height: 0.98; text-wrap: balance; }
.h1 { font-size: clamp(3.2rem, 1.6rem + 5.6vw, 7.4rem); }
.h2 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5.4rem); }
.h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.04; }
.h1 em, .h2 em, .h3 em { font-style: italic; color: var(--ember); }
.lede { font-size: var(--sc-t-lg); line-height: 1.55; color: var(--sc-ink-soft); max-width: 40ch; text-wrap: pretty; }
.body { color: var(--sc-ink-soft); max-width: 60ch; text-wrap: pretty; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0.85em 1.6em; border-radius: 999px;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font: 600 1.05rem/1 var(--sc-font-text); text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(255, 110, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.btn:hover { background: #FF8E4D; }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--sc-ink); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--sc-ink) 45%, transparent); }
.btn--ghost:hover { background: color-mix(in oklab, var(--sc-ink) 10%, transparent); }
.link { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; color: var(--sc-ink); text-decoration: none; border-bottom: 1.5px solid var(--sc-accent); padding-bottom: 3px; transition: color 160ms var(--sc-ease-out); }
.link::after { content: "\2192"; transition: transform 160ms var(--sc-ease-out); }
.link:hover { color: var(--ember); }
.link:hover::after { transform: translateX(4px); }

/* The ambient dusk: one sun behind the whole page that sinks as you scroll */
.dusk { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dusk__glow {
  position: absolute; right: -18vw; bottom: -40vmax; width: 110vmax; height: 110vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 47, 0.30) 0%, rgba(194, 64, 31, 0.16) 32%, rgba(34, 16, 12, 0) 62%);
  transform: translate3d(0, calc(var(--page-p) * 26vmax), 0);
  opacity: calc(1 - var(--page-p) * 0.55);
}

/* Bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar-h);
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.6rem);
  padding-inline: var(--sc-gutter);
  transition: background-color 240ms var(--sc-ease-out), box-shadow 240ms var(--sc-ease-out);
}
.bar.is-solid { background: color-mix(in oklab, #1A0B08 92%, transparent); box-shadow: 0 1px 0 rgba(255, 178, 122, 0.16), 0 10px 30px -12px rgba(0, 0, 0, 0.5); }
.bar__logo { flex: none; display: block; background: #fff; border-radius: 12px; padding: 9px 14px; line-height: 0; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.55); }
.bar__logo img { height: 42px; width: auto; }
.nav { display: flex; gap: clamp(1rem, 2vw, 2.2rem); margin-left: auto; }
.nav a { font-size: 1.15rem; font-weight: 500; text-decoration: none; color: var(--sc-ink); padding: 8px 2px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--sc-accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--sc-ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.bar__call { flex: none; display: inline-flex; align-items: center; gap: 0.35em; min-height: 48px; padding: 0 1.3em; border-radius: 999px; background: var(--sc-accent); color: var(--sc-accent-ink); font-weight: 600; font-size: 1.05rem; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out); }
.bar__call:hover { background: #FF8E4D; }
.bar__call:active { transform: scale(0.97); }
.bar__menu { display: none; flex: none; min-height: 48px; padding: 0 1.2em; border-radius: 999px; border: 1.5px solid color-mix(in oklab, var(--sc-ink) 50%, transparent); background: rgba(34, 16, 12, 0.55); color: var(--sc-ink); font: 600 1.05rem/1 var(--sc-font-text); cursor: pointer; }
.bar__menu:hover { background: rgba(255, 241, 230, 0.1); }
@media (max-width: 1200px) {
  .nav { display: none; }
  .bar__menu { display: inline-flex; align-items: center; }
  .bar__call { margin-left: auto; }
}
@media (max-width: 700px) {
  :root { --bar-h: 68px; }
  .bar__logo { padding: 7px 10px; border-radius: 10px; }
  .bar__logo img { height: 30px; }
  .bar__call { display: none; }
  .bar__menu { margin-left: auto; min-height: 44px; }
}

/* Full-screen dusk menu */
.menu {
  position: fixed; inset: 0; z-index: 55; padding: calc(var(--bar-h) + 2rem) var(--sc-gutter) 2rem;
  background: radial-gradient(120% 80% at 85% 110%, #8A2E16 0%, #3A1A12 38%, #160806 75%);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-content: center; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; gap: 0.2rem; }
.menu__links a { font: 400 clamp(2.4rem, 1.4rem + 4vw, 4.6rem)/1.05 var(--sc-font-display); text-decoration: none; color: var(--sc-ink); }
.menu__links a:hover, .menu__links a[aria-current="page"] { color: var(--ember); font-style: italic; }
.menu__info { color: var(--sc-ink-soft); align-self: end; display: grid; gap: 0.6rem; justify-items: start; }
.menu__head { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--ember); margin-top: 0.8rem; }
@media (max-width: 760px) { .menu { grid-template-columns: 1fr; align-content: start; gap: 2rem; } }
body.menu-open { overflow: hidden; }

/* Phone call strip */
.callstrip { display: none; }
@media (max-width: 700px) {
  .callstrip {
    display: flex; position: fixed; z-index: 58; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    min-height: 54px; align-items: center; justify-content: center; border-radius: 999px;
    background: var(--sc-accent); color: var(--sc-accent-ink); font-weight: 700; font-size: 1.08rem; text-decoration: none;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
  }
  body { padding-bottom: 80px; }
  body.menu-open .callstrip { display: none; }
}

/* The smile line: one hand-drawn curve that follows the reader down the page */
.smileline { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 50; pointer-events: none; overflow: visible; }
.smileline path { fill: none; stroke: var(--sc-accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
body.menu-open .smileline { opacity: 0; }

/* Footer */
.foot { background: #160806; border-top: 1px solid rgba(255, 178, 122, 0.16); padding: clamp(3.5rem, 7vw, 6rem) var(--sc-gutter) 2rem; color: var(--sc-ink-soft); }
.foot__in { max-width: var(--sc-maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: clamp(2rem, 4vw, 4rem); }
.foot__logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; line-height: 0; }
.foot__logo img { height: 40px; width: auto; }
.foot__tag { margin-top: 1.2rem; font: 400 1.6rem/1.15 var(--sc-font-display); color: var(--sc-ink); max-width: 22ch; }
.foot__lines { margin-top: 1rem; }
.foot__tel { font: 400 2rem/1.2 var(--sc-font-display); color: var(--sc-ink); text-decoration: none; }
.foot__head { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; color: var(--ember); margin-bottom: 0.8rem; }
.foot__col p + p { margin-top: 0.6rem; }
.foot__links { display: flex; flex-direction: column; gap: 0.35rem; }
.foot__links a { text-decoration: none; }
.foot__links a:hover, .foot a:hover { color: var(--sc-ink); }
.foot__note { font-size: 0.92rem; margin-top: 0.8rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 20rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 0.35rem 0; border-bottom: 1px solid rgba(255, 178, 122, 0.14); font-weight: 400; }
.hours th { color: var(--sc-ink); padding-right: 1rem; }
.concept { max-width: var(--sc-maxw); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 178, 122, 0.14); font-size: 0.9rem; }
@media (max-width: 1000px) { .foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .dusk__glow { transform: none; }
}
