/* Bare Dental Clinic: shared styles (Tailwind Play CDN handles utilities) */
:root { --ink: #343433; --blue: #0078d7; --aqua: #a6f1ff; --magenta: #a300a3; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { font-family: "Manrope", system-ui, sans-serif; overflow-x: hidden; }
.font-display { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; }
.text-display { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 500; }
.text-hero { font-size: clamp(2.9rem, 1.5rem + 5.8vw, 6.6rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 500; }
.text-h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; }
.text-h3 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; border-radius: 2px; }

/* header */
.site-header { background: transparent; }
.site-header.is-scrolled { background: rgba(251, 252, 252, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 rgba(52, 52, 51, .08); }
.nav-link { position: relative; padding: .4rem 0; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; border-radius: 2px; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--blue); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* buttons */
.btn-primary, .btn-ghost, .btn-light { display: inline-flex; align-items: center; gap: .55rem; border-radius: 9999px; padding: .85rem 1.4rem; font-weight: 600; transition: transform .2s ease, background-color .2s, box-shadow .2s, color .2s; min-height: 44px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(52, 52, 51, .6); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 120, 215, .7); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(52, 52, 51, .18); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--aqua); transform: translateY(-2px); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--blue); transition: gap .2s; }
.link-arrow:hover { gap: .75rem; }

.card-hover { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(52, 52, 51, .35); }
.zoom-img { overflow: hidden; }
.zoom-img img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.zoom-img:hover img, .group:hover .zoom-img img { transform: scale(1.06); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* article prose */
.prose-bdc { color: rgba(52, 52, 51, .82); font-size: 1.06rem; line-height: 1.8; }
.prose-bdc > * + * { margin-top: 1.1em; }
.prose-bdc h2 { font-family: "Fraunces", Georgia, serif; color: var(--ink); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; margin-top: 2.2em; }
.prose-bdc h2:first-child { margin-top: 0; }
.prose-bdc h3 { color: var(--ink); font-weight: 700; font-size: 1.12rem; margin-top: 1.8em; }
.prose-bdc ul, .prose-bdc ol { padding-left: 0; list-style: none; }
.prose-bdc ul li, .prose-bdc ol li { position: relative; padding-left: 1.7rem; margin-top: .5em; }
.prose-bdc ul li::before { content: ""; position: absolute; left: .2rem; top: .72em; width: .5rem; height: .5rem; border-radius: 9999px; background: var(--aqua); box-shadow: 0 0 0 2px var(--blue) inset; }
.prose-bdc ol { counter-reset: n; }
.prose-bdc ol li { counter-increment: n; }
.prose-bdc ol li::before { content: counter(n); position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 9999px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.prose-bdc a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose-bdc strong { color: var(--ink); }
.prose-bdc .lead { font-size: 1.2rem; color: var(--ink); }
.prose-bdc .callout { border-radius: 1.5rem; background: #f2fbfd; border: 1px solid rgba(0, 120, 215, .15); padding: 1.25rem 1.5rem; font-size: .98rem; }
.prose-bdc .callout.warn { background: #fdf3fd; border-color: rgba(163, 0, 163, .2); }
.faq summary::-webkit-details-marker { display: none; }
.faq-body ul { list-style: disc; padding-left: 1.2rem; }

/* tables */
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table th, .price-table td { padding: .75rem .9rem; text-align: left; vertical-align: top; }
.price-table thead th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(52, 52, 51, .6); border-bottom: 2px solid var(--ink); }
.price-table tbody tr { border-bottom: 1px solid rgba(52, 52, 51, .08); }
.price-table tbody tr:hover { background: rgba(166, 241, 255, .14); }
.price-table td.amount { font-weight: 700; white-space: nowrap; text-align: right; color: var(--ink); }
.price-table th.amount { text-align: right; }

/* before/after slider */
.ba { position: relative; overflow: hidden; border-radius: 1.75rem; user-select: none; --pos: 50%; aspect-ratio: 3 / 2; background: #eee; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba .ba-knob { position: absolute; top: 50%; left: var(--pos); width: 3rem; height: 3rem; border-radius: 9999px; background: #fff; transform: translate(-50%, -50%); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); pointer-events: none; color: var(--ink); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .ba-tag { position: absolute; top: 1rem; padding: .3rem .75rem; border-radius: 9999px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(52, 52, 51, .75); color: #fff; }

/* carousel */
.carousel-track { display: flex; align-items: flex-start; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.carousel-track > * { flex: 0 0 100%; }
.carousel-viewport { transition: height .45s cubic-bezier(.2, .7, .2, 1); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(28, 28, 27, .92); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 78vh; border-radius: 1rem; }

/* forms */
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; border-radius: 1rem; border: 1.5px solid rgba(52, 52, 51, .15); background: #fff; padding: .85rem 1rem; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 120, 215, .15); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 1rem; padding: 1rem 1.1rem; font-size: .95rem; display: flex; gap: .7rem; align-items: flex-start; }
.form-msg[hidden] { display: none; }
.form-msg.ok { background: #e9fbf2; color: #135c3a; border: 1px solid #b6ecd0; }
.form-msg.err { background: #fdf0f3; color: #8a1630; border: 1px solid #f3c4d0; }
.grecaptcha-badge { visibility: hidden; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 1023px) { main { padding-bottom: 0; } footer { padding-bottom: 4.5rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .carousel-track, .carousel-viewport { transition: none; }
}
