/* Andrew Baderski Dental concept: the luxury clinic look.
   Deep teal-black, warm gold, frosted glass over moving light. Cormorant Garamond + Manrope. */
:root {
  --lx-bg: #061416;
  --lx-bg2: #0A1F22;
  --lx-teal: #0F3B3E;
  --lx-aqua: #5FD3C8;
  --lx-gold: #D9B26F;
  --lx-gold-hi: #EED39D;
  --lx-ink: #F3EEE4;
  --lx-soft: #A9BEBA;
  --lx-line: hsl(40 45% 70% / 0.18);
  --lx-line-strong: hsl(40 50% 70% / 0.38);
  --lx-glass: hsl(178 40% 22% / 0.28);
  --lx-glass-edge: hsl(40 60% 85% / 0.14);
  --lx-r: 14px;

  --sc-canvas: var(--lx-bg);
  --sc-surface: var(--lx-bg2);
  --sc-ink: var(--lx-ink);
  --sc-ink-soft: var(--lx-soft);
  --sc-accent: var(--lx-gold);
  --sc-accent-ink: #061416;
  --sc-font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sc-font-text: "Manrope", system-ui, sans-serif;
  --sc-shadow-color: 185 60% 3%;
}

html { scroll-padding-top: 6rem; background: var(--lx-bg); }
body { background: var(--lx-bg); color: var(--lx-ink); font-family: var(--sc-font-text); font-size: var(--sc-t-base); line-height: var(--sc-leading-body); }
@media (max-width: 860px) { body { padding-bottom: 5.25rem; } }
h1, h2, h3 { font-family: var(--sc-font-display); font-weight: 500; color: var(--lx-ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--lx-gold-hi); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lx-gold-hi); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--lx-gold); color: var(--lx-bg); }
img { max-width: 100%; }
.ab-wrap-any { overflow-wrap: anywhere; }
.ab-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--lx-gold); color: var(--lx-bg); padding: 0.6rem 1rem; border-radius: 8px; }
.ab-skip:focus { top: 1rem; }

/* Buttons: gold, pill, one shape everywhere */
.lx-btn, .ab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 3rem; padding: 0.6rem 1.5rem; border-radius: 999px;
  background: linear-gradient(180deg, var(--lx-gold-hi), var(--lx-gold)); color: #0A1A1C;
  font: 700 0.98rem/1.1 var(--sc-font-text); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 hsl(45 90% 92% / 0.6) inset, 0 8px 24px hsl(40 70% 40% / 0.25);
  transition: transform 140ms var(--sc-ease-out), box-shadow 180ms var(--sc-ease-out), filter 180ms var(--sc-ease-out);
}
.lx-btn:hover, .ab-btn:hover { filter: brightness(1.06); box-shadow: 0 1px 0 hsl(45 90% 92% / 0.6) inset, 0 12px 30px hsl(40 70% 40% / 0.35); }
.lx-btn:active, .ab-btn:active { transform: translateY(1px) scale(0.98); }
.ab-btn--ghost { background: transparent; color: var(--lx-ink); box-shadow: inset 0 0 0 1.5px var(--lx-line-strong); }
.ab-btn--ghost:hover { background: hsl(40 50% 70% / 0.08); }

/* Wordmark (typeset, in the spirit of their logo) */
.lx-mark { display: inline-grid; text-decoration: none; line-height: 1; }
.lx-mark__name { font: 500 1.65rem/1 var(--sc-font-text); letter-spacing: -0.03em; color: var(--lx-ink); }
.lx-mark__tag { margin-top: 0.35rem; font: 700 0.68rem/1 var(--sc-font-text); letter-spacing: 0.32em; text-transform: uppercase; color: var(--lx-gold); }

/* Top bar: transparent over the scene, becomes a glass capsule after the hero */
.lx-bar { position: fixed; z-index: 60; inset: 0 0 auto 0; padding: 1rem var(--sc-gutter); transition: padding 300ms var(--sc-ease-out); }
.lx-bar__in { display: flex; align-items: center; gap: 1.5rem; max-width: 96rem; margin-inline: auto; padding: 0.85rem 0.9rem 0.85rem 1.4rem; border-radius: 999px; border: 1px solid transparent; transition: background-color 300ms var(--sc-ease-out), border-color 300ms var(--sc-ease-out), box-shadow 300ms var(--sc-ease-out); }
.lx-bar.is-solid { padding-top: 0.6rem; }
.lx-bar.is-solid .lx-bar__in { background: hsl(185 50% 6% / 0.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-color: var(--lx-glass-edge); box-shadow: 0 10px 40px hsl(185 60% 2% / 0.45); }
.lx-nav { display: flex; gap: clamp(0.9rem, 1.4vw, 1.6rem); margin-left: auto; }
.lx-nav a { font-size: 1.05rem; font-weight: 500; color: var(--lx-ink); text-decoration: none; padding: 0.4rem 0; border-bottom: 1px solid transparent; transition: color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out); }
.lx-nav a:hover, .lx-nav a[aria-current="page"] { color: var(--lx-gold-hi); border-color: var(--lx-gold); }
.lx-bar__tel { color: var(--lx-ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.lx-bar__tel:hover { color: var(--lx-gold-hi); }
.lx-menu-btn { display: none; margin-left: auto; min-height: 3rem; padding: 0 1.3rem; border-radius: 999px; border: 1px solid var(--lx-line-strong); background: hsl(185 50% 6% / 0.5); color: var(--lx-ink); font: 600 1rem var(--sc-font-text); cursor: pointer; }
.lx-menu { max-width: 96rem; margin: 0.6rem auto 0; padding: 1.25rem 1.5rem 1.5rem; border-radius: 22px; background: hsl(185 50% 6% / 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--lx-glass-edge); }
.lx-menu nav { display: grid; }
.lx-menu nav a { font: 500 1.7rem/1.2 var(--sc-font-display); color: var(--lx-ink); text-decoration: none; padding: 0.5rem 0; border-bottom: 1px solid var(--lx-line); }
.lx-menu__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.25rem; font-weight: 600; }
@media (max-width: 1360px) { .lx-bar__tel { display: none; } }
@media (max-width: 1180px) {
  .lx-nav { display: none; }
  .lx-bar__book { margin-left: auto; }
  .lx-menu-btn { display: inline-flex; align-items: center; margin-left: 0; }
}
@media (max-width: 860px) {
  .lx-bar { padding: 0.6rem 0.75rem; }
  .lx-bar__in { padding: 0.55rem 0.55rem 0.55rem 1rem; }
  .lx-mark__name { font-size: 1.28rem; }
  .lx-mark__tag { font-size: 0.6rem; }
  .lx-bar__book { display: none; }
  .lx-menu-btn { margin-left: auto; }
}

/* Phone dock: call + book always to hand */
.lx-dock { display: none; }
@media (max-width: 860px) {
  .lx-dock { position: fixed; z-index: 55; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); display: flex; gap: 0.5rem; padding: 0.45rem; border-radius: 999px; background: hsl(185 50% 6% / 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--lx-glass-edge); box-shadow: 0 10px 30px hsl(185 60% 2% / 0.5); }
  .lx-dock a { flex: 1; min-height: 3rem; }
  .lx-dock__call { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--lx-ink); text-decoration: none; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--lx-line-strong); }
}

/* Shared type */
.ab-kicker { font: 700 0.76rem/1.3 var(--sc-font-text); letter-spacing: 0.28em; text-transform: uppercase; color: var(--lx-gold); }
.ab-kicker + .ab-h1, .ab-kicker + .ab-h2 { margin-top: 1rem; }
.ab-h1 { font-size: clamp(3rem, 1.5rem + 5.4vw, 6.4rem); line-height: 0.95; letter-spacing: -0.02em; font-weight: 500; }
.ab-h2 { font-size: var(--sc-t-3xl); line-height: 1; letter-spacing: -0.015em; font-weight: 500; }
.ab-h1 em, .ab-h2 em { font-style: italic; color: var(--lx-gold-hi); font-weight: 500; }
.ab-h3 { font-size: var(--sc-t-xl); line-height: 1.1; font-weight: 600; }
.ab-lede { font: 400 var(--sc-t-lg)/1.5 var(--sc-font-text); color: var(--lx-ink); max-width: 40ch; text-wrap: pretty; opacity: 0.94; }
.ab-body { max-width: var(--sc-measure); color: var(--lx-soft); text-wrap: pretty; }
.ab-body + .ab-body { margin-top: 1rem; }
.ab-body strong { color: var(--lx-ink); font-weight: 600; }
.ab-quote { font: italic 500 var(--sc-t-xl)/1.25 var(--sc-font-display); color: var(--lx-gold-hi); max-width: 30ch; margin: 0; }
.ab-quote cite { display: block; margin-top: 0.75rem; font: normal 500 0.9rem/1.4 var(--sc-font-text); color: var(--lx-soft); }
.ab-caption { font-size: 0.86rem; line-height: 1.45; color: var(--lx-soft); margin-top: 0.7rem; }
.ab-more { display: inline-block; margin-top: var(--sc-6); font-weight: 600; }
.ab-more::after { content: " \2192"; }

/* Moving light behind glass */
.lx-lights { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.lx-lights::before, .lx-lights::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: 0.55; will-change: transform; }
.lx-lights::before { background: radial-gradient(circle, hsl(176 60% 30% / 0.9), transparent 62%); left: -20vmax; top: -25vmax; animation: lx-drift-a 26s ease-in-out infinite alternate; }
.lx-lights::after { background: radial-gradient(circle, hsl(40 70% 45% / 0.5), transparent 60%); right: -25vmax; bottom: -30vmax; animation: lx-drift-b 32s ease-in-out infinite alternate; }
@keyframes lx-drift-a { to { transform: translate3d(18vmax, 12vmax, 0) scale(1.1); } }
@keyframes lx-drift-b { to { transform: translate3d(-16vmax, -10vmax, 0) scale(0.92); } }
@media (prefers-reduced-motion: reduce) { .lx-lights::before, .lx-lights::after { animation: none; } }

/* Footer */
.lx-foot { position: relative; z-index: 2; background: #040E10; border-top: 1px solid var(--lx-line); padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem; color: var(--lx-soft); font-size: 0.95rem; }
.lx-foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--lx-line); }
.lx-foot__mark { display: grid; }
.lx-foot__mark .lx-mark__name { font-size: clamp(1.8rem, 1rem + 2.4vw, 2.8rem); }
.lx-foot__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 2.25rem; }
.lx-foot__grid p + p { margin-top: 0.75rem; }
.lx-foot__h { font: 700 0.76rem/1.3 var(--sc-font-text); letter-spacing: 0.28em; text-transform: uppercase; color: var(--lx-gold); margin-bottom: 0.8rem; }
.lx-foot__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.lx-foot__notice { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--lx-line); font-size: 0.84rem; max-width: 92ch; }
@media (max-width: 760px) { .lx-foot__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Inside-page header: moving light, a gold line drawing far back, glass tab in front */
.ab-ph { position: relative; overflow: clip; background: var(--lx-bg); padding-top: 6.5rem; border-bottom: 1px solid var(--lx-line); isolation: isolate; }
.ab-ph__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); z-index: 1; }
.ab-ph__draw { position: absolute; right: 2%; top: 12%; width: min(40vw, 480px); color: var(--lx-gold); opacity: 0.4; pointer-events: none; z-index: 0; transform: translate3d(0, calc(var(--ph, 0) * 70px), 0); filter: drop-shadow(0 0 18px hsl(40 70% 50% / 0.35)); }
.ab-ph__draw--wide { width: min(50vw, 620px); top: 22%; }
.ab-ph__draw svg { width: 100%; height: auto; display: block; }
.ab-ph__copy { position: relative; z-index: 1; }
.ab-ph__copy:only-child { grid-column: 1 / -1; }
.ab-ph__copy:only-child .ab-h1 { max-width: 15ch; }
.ab-ph__copy .ab-lede { margin-top: 1.4rem; }
.ab-ph__tab, .ab-ph__photo { position: relative; z-index: 2; justify-self: end; max-width: 24rem; padding: 1.4rem 1.5rem; background: var(--lx-glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--lx-glass-edge); border-radius: var(--lx-r); box-shadow: 0 24px 60px hsl(185 60% 2% / 0.45); transform: translate3d(0, calc(var(--ph, 0) * -50px), 0); }
.ab-ph__tab .ab-kicker { margin-bottom: 0.6rem; }
.ab-ph__tab p + p { margin-top: 0.6rem; }
.ab-ph__photo { max-width: 540px; padding: 0.55rem; background: linear-gradient(145deg, #EED39D, #8E6A2F); border: 0; }
.ab-ph__photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
.ab-ph__photo figcaption { color: #2A2112; padding: 0.3rem 0.3rem 0; margin-top: 0.3rem; font-weight: 600; }
@media (max-width: 860px) {
  .ab-ph { padding-top: 5rem; }
  .ab-ph__in { grid-template-columns: 1fr; }
  .ab-ph__draw { width: 66vw; right: -16vw; top: 9%; opacity: 0.3; }
  .ab-ph__tab, .ab-ph__photo { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .ab-ph__draw, .ab-ph__tab, .ab-ph__photo { transform: none; } }
.lx-mark__name, .lx-nav a { white-space: nowrap; }
@media (max-width: 1500px) { .lx-bar__tel { display: none; } }
