@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
    --bg: #f4f8f9;
    --bg-deep: #0b3d4a;
    --bg-mid: #135668;
    --surface: #ffffff;
    --text: #12323b;
    --muted: #5a727a;
    --accent: #1a8a9a;
    --accent-soft: #d7eef1;
    --line: #d5e4e8;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(11, 61, 74, 0.12);
    --radius: 18px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(26, 138, 154, 0.12), transparent 32%),
        linear-gradient(180deg, #eef6f7 0%, var(--bg) 40%, #e8f2f4 100%);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(244, 248, 249, 0.86);
    border-bottom: 1px solid rgba(213, 228, 232, 0.8);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bg-deep);
}
.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(176, 148, 200, 0.45);
}
.brand-text { display: grid; line-height: 1.15; }
.brand-text span { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--bg-deep); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--bg-deep); color: #fff; box-shadow: var(--shadow); }
.btn-secondary { background: var(--accent-soft); color: var(--bg-deep); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; }

.hero {
    position: relative;
    min-height: min(92vh, 820px);
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(11,61,74,.92), rgba(19,86,104,.55)),
        radial-gradient(circle at 80% 20%, rgba(26,138,154,.35), transparent 35%),
        linear-gradient(160deg, #0b3d4a, #1a8a9a 70%, #7ec8d1);
}
.hero-photo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    z-index: 0;
}
.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(105deg, rgba(8, 28, 36, 0.88) 0%, rgba(11, 61, 74, 0.72) 48%, rgba(11, 61, 74, 0.35) 100%);
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding: 5.5rem 0 3.5rem;
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}
.hero-grid-solo {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-inline: 0 auto;
    padding-left: max(1rem, calc((100% - 1120px) / 2));
}
.hero-visual { justify-self: end; }
.hero-illust {
    width: min(420px, 100%);
    filter: drop-shadow(0 24px 40px rgba(0,0,0,.28));
    animation: floatSoft 5s ease-in-out infinite;
}
.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.85;
    margin: 0 0 0.6rem;
}
.why-grid, .doctors-grid, .about-layout, .about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.why-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.75rem;
}
.why-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
}
.why-list img { width: 28px; height: 28px; object-fit: contain; }
.why-photo {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.why-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.why-photo figcaption {
    padding: 0.85rem 1rem;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.9rem;
}
.treat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.treat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 8px 28px rgba(11, 61, 74, 0.07);
    transition: transform .2s ease, box-shadow .2s ease;
}
.treat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.treat-card h3 { margin: 0.55rem 0 0.35rem; font-family: var(--font-display); font-size: 1.2rem; }
.treat-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.treat-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--accent-soft);
}
.treat-icon img { width: 34px; height: 34px; object-fit: contain; }
.doctors-band {
    background: linear-gradient(180deg, rgba(215,238,241,.55), transparent);
}
.doctor-illust {
    width: min(340px, 100%);
    margin-inline: auto;
    filter: drop-shadow(0 16px 30px rgba(11,61,74,.15));
}
.about-hero-illust {
    width: min(360px, 100%);
    justify-self: end;
    filter: drop-shadow(0 18px 30px rgba(11,61,74,.12));
}
.doctor-page-illust { max-height: 280px; object-fit: contain; }
.about-aside { position: relative; }
.about-aside > img:first-child {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 4/5;
    object-fit: cover;
    box-shadow: var(--shadow);
}
.about-doctor-badge {
    position: absolute;
    right: -0.5rem;
    bottom: 1rem;
    width: 140px;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,.15));
}
.page-hero-with-icon { display: flex; gap: 1rem; align-items: flex-start; }
.page-hero-tooth { margin-top: 0.35rem; }
.doctor-row { display: flex; gap: 0.9rem; align-items: center; }
.doctor-row h3 { margin: 0 0 0.25rem; }
.doctor-row-icon { flex-shrink: 0; }
.doctor-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.doctor-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.doctor-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(11, 61, 74, 0.08);
}
.doctor-card h3 { margin: 0 0 0.25rem; }
.doctor-card p { margin: 0; color: var(--muted); }
.doctor-card-meta { margin-top: 0.35rem !important; font-size: 0.88rem; }
.doctor-card-photo,
.doctor-show-photo,
.doctor-home-photo {
    object-fit: cover;
    border-radius: 50%;
    background: #eef6f7;
    flex-shrink: 0;
}
.doctor-card-photo { width: 88px; height: 88px; }
.doctor-show-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
}
.doctor-show-photo {
    width: 160px;
    height: 160px;
    border: 4px solid #fff;
    box-shadow: 0 12px 30px rgba(11, 61, 74, 0.14);
}
.doctor-home-card {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}
.doctor-home-photo { width: 64px; height: 64px; }
@media (max-width: 720px) {
    .doctor-cards { grid-template-columns: 1fr; }
    .doctor-show-hero { grid-template-columns: 1fr; justify-items: start; }
}
@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-glow {
    position: absolute;
    width: 42vw;
    height: 42vw;
    right: -8%;
    top: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,230,255,.4), rgba(26,138,154,.2) 45%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
    animation: glowPulse 3.6s ease-in-out infinite;
    z-index: 1;
}
.hero-teeth {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    transition: transform .15s ease-out;
}
.float-tooth {
    position: absolute;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.72);
    filter: drop-shadow(0 0 14px rgba(168, 230, 255, 0.45));
    will-change: transform;
}
.float-tooth .tooth-svg { width: 100%; height: 100%; display: block; }
.tooth-light { color: rgba(255,255,255,.78); }
.tooth-1 { top: 16%; left: 7%; width: 78px; height: 78px; }
.tooth-2 { top: 26%; right: 12%; width: 58px; height: 58px; color: rgba(168,230,255,.75); }
.tooth-3 { bottom: 20%; left: 16%; width: 50px; height: 50px; }
.tooth-4 { bottom: 28%; right: 7%; width: 70px; height: 70px; color: rgba(255,255,255,.55); }

.anim-float-a { animation: toothFloatA 3.2s ease-in-out infinite; }
.anim-float-b { animation: toothFloatB 3.8s ease-in-out infinite 0.3s; }
.anim-float-c { animation: toothFloatC 3.4s ease-in-out infinite 0.6s; }
.anim-float-d { animation: toothFloatA 4.1s ease-in-out infinite 0.15s; }

.tooth-sparkles { animation: sparklePulse 1.8s ease-in-out infinite; transform-origin: center; }
.tooth-plus { animation: plusPop 2.2s ease-in-out infinite; transform-origin: 50px 20px; }
.tooth-check {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: drawStroke 1.4s ease forwards 0.4s, checkPulse 2.4s ease-in-out infinite 1.8s;
}

@keyframes toothFloatA {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg) scale(1); }
    50% { transform: translate3d(8px, -18px, 0) rotate(6deg) scale(1.06); }
}
@keyframes toothFloatB {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(5deg); }
    50% { transform: translate3d(-10px, 14px, 0) rotate(-7deg); }
}
@keyframes toothFloatC {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(6px, -12px, 0) rotate(10deg); }
}
@keyframes sparklePulse {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}
@keyframes plusPop {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.12); }
}
@keyframes checkPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
@keyframes drawStroke {
    to { stroke-dashoffset: 0; }
}

.hero-visual-anim {
    animation: heroIn 0.9s cubic-bezier(.22,.8,.28,1) both 0.25s;
}
.hero-inner > * {
    animation: heroIn 0.8s cubic-bezier(.22,.8,.28,1) both;
}
.hero-logo-wrap { animation-delay: 0.05s; }
.hero-kicker { animation-delay: 0.15s; }
.hero-brand { animation-delay: 0.25s; }
.hero-line { animation-delay: 0.35s; }
.hero-actions { animation-delay: 0.45s; }
@keyframes heroIn {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.12); }
}

.treat-icon {
    animation: iconBob 2.8s ease-in-out infinite;
}
.treat-card:nth-child(2n) .treat-icon { animation-delay: 0.4s; }
.treat-card:nth-child(3n) .treat-icon { animation-delay: 0.8s; }
@keyframes iconBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible,
[data-reveal].reveal-done {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .anim-float-a, .anim-float-b, .anim-float-c, .anim-float-d,
    .tooth-sparkles, .tooth-plus, .hero-glow, .hero-illust,
    .treat-icon, .hero-visual-anim, .hero-inner > * {
        animation: none !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}
.hero-logo-wrap {
    margin-bottom: 1rem;
}
.hero-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(176,148,200,.55), 0 18px 40px rgba(0,0,0,.25);
}
.hero::before {
    content: "";
    position: absolute;
    inset: auto -10% -30% auto;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
    animation: drift 12s ease-in-out infinite alternate;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.02;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}
.hero p { font-size: 1.125rem; max-width: 34rem; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.section { padding: 4.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2,
.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}
.section-head p, .lede { color: var(--muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.item-link {
    display: block;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
    transition: color .2s ease, padding-left .2s ease;
}
.item-link:hover { color: var(--accent); padding-left: 0.35rem; }
.item-link h3 { margin: 0 0 0.35rem; font-size: 1.2rem; font-family: var(--font-display); }
.item-link p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.prose { max-width: 46rem; }
.prose h2, .prose h3 { font-family: var(--font-display); }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }

.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.faq details {
    border-top: 1px solid var(--line);
    padding: 1rem 0;
}
.faq summary { cursor: pointer; font-weight: 600; }

.form {
    display: grid;
    gap: 1rem;
    max-width: 40rem;
}
.form label { display: grid; gap: 0.35rem; font-weight: 500; font-size: 0.95rem; }
.form input, .form select, .form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font: inherit;
}
.alert {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #e8f7ef;
    color: #0f5132;
    margin-bottom: 1rem;
}
.alert-error { background: #fdecec; color: #7a1c1c; }

.site-footer {
    background: var(--bg-deep);
    color: rgba(255,255,255,.88);
    padding: 3.5rem 0 2rem;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
}
.site-footer h4 { margin: 0 0 0.8rem; font-family: var(--font-display); color: #fff; }
.footer-tag { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; color: rgba(255,255,255,.55) !important; margin: 0 0 0.6rem !important; }
.site-footer a { color: rgba(255,255,255,.78); display: block; margin-bottom: 0.45rem; }
.site-footer p { color: rgba(255,255,255,.72); }
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 0.9rem;
    color: rgba(255,255,255,.6);
}

/* float-cta removed — Ask clinic chatbot sits bottom-right */

.page-hero {
    padding: 4rem 0 2rem;
}
.page-hero .page-title { max-width: 18ch; }

.rating { color: #c9a227; letter-spacing: 0.08em; }

.share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin: 1.5rem 0;
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.share-bar span { font-weight: 600; margin-right: 0.25rem; }
.share-bar a, .share-copy {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
}
.share-bar a:hover, .share-copy:hover { color: var(--bg-deep); border-color: var(--accent); }

.site-intro {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #0b3d4a, #1a5f6e 55%, #2a6f7c);
    color: #fff;
    animation: introHold 2.3s ease forwards;
}
@keyframes introHold {
    0%, 85% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
.site-intro.is-done { pointer-events: none; }
.intro-inner { text-align: center; }
.intro-logo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    margin: 0 auto 1rem;
    box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 20px 50px rgba(0,0,0,.25);
    animation: introLogoIn 0.7s cubic-bezier(.22,.8,.28,1) both;
}
.intro-tooth { margin: 0.5rem auto; display: block; overflow: visible; }
.intro-tooth-path {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: drawTooth 1.1s ease forwards 0.35s;
}
.intro-cross {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawTooth 0.55s ease forwards 0.95s;
}
.intro-sparkles {
    animation: sparklePulse 1.6s ease-in-out infinite 1.1s;
    transform-origin: center;
}
.intro-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 0.75rem 0 0;
    animation: introLogoIn 0.6s ease both 0.5s;
}
@keyframes introLogoIn {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes drawTooth {
    to { stroke-dashoffset: 0; }
}

.chatbot { position: fixed; right: 1rem; bottom: 1rem; z-index: 55; }
.chatbot-toggle {
    position: relative;
    border: 0;
    border-radius: 999px;
    background: #0b3d4a;
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1.15rem 0.55rem 0.55rem;
    box-shadow: 0 12px 28px rgba(11, 61, 74, 0.28);
    cursor: pointer;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
}
.chatbot-toggle-copy {
    display: grid;
    gap: 0.05rem;
    line-height: 1.15;
}
.chatbot-toggle-copy strong { font-size: 0.95rem; }
.chatbot-toggle-copy small {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.78;
}
.chatbot-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 2px solid rgba(155, 127, 184, 0.55);
    animation: chatPulse 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes chatPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.12); opacity: 0; }
}
.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}
.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 4.2rem;
    width: min(380px, calc(100vw - 2rem));
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(11, 61, 74, 0.18);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    max-height: min(74vh, 560px);
}
.chatbot-panel[hidden] {
    display: none !important;
}
.chatbot-head-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.chatbot-head-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #fff !important;
    padding: 0 !important;
}
.chatbot-online {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.9 !important;
}
.chatbot-online i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5dce8a;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(93, 206, 138, 0.25);
}
.chatbot-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: var(--bg-deep);
    color: #fff;
}
.chatbot-head span { display: block; font-size: 0.78rem; opacity: .8; }
.chatbot-close {
    border: 0;
    background: rgba(255,255,255,.15);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    cursor: pointer;
}
.chatbot-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.65rem 0.8rem 0.85rem;
    border-top: 1px solid var(--line);
    background: #faf8fc;
}
.chatbot-quick button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--bg-deep);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    cursor: pointer;
    font: inherit;
}
.chatbot-quick button:hover { border-color: var(--accent); background: var(--accent-soft); }
.chatbot-messages {
    padding: 0.85rem;
    overflow-y: auto;
    display: grid;
    gap: 0.7rem;
    min-height: 220px;
    align-content: start;
}
.chat-row { display: flex; gap: 0.45rem; align-items: flex-end; }
.chat-row-user { justify-content: flex-end; }
.chat-bot-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}
.chat-bot-col { display: grid; gap: 0.35rem; max-width: 88%; }
.chat-bubble {
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    white-space: pre-wrap;
    font-size: 0.92rem;
    line-height: 1.45;
}
.chat-bot {
    background: #eef6f7;
    color: var(--text);
    border-bottom-left-radius: 6px;
}
.chat-user {
    background: var(--bg-deep);
    color: #fff;
    border-bottom-right-radius: 6px;
    max-width: 88%;
}
.chat-meta {
    font-size: 0.7rem;
    color: var(--muted);
    padding-left: 0.2rem;
}
.chat-typing {
    display: inline-flex;
    gap: 0.28rem;
    align-items: center;
    min-width: 3.2rem;
    padding: 0.85rem 1rem;
}
.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6a8a92;
    animation: typingDot 1s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}
.chat-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chat-actions a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent-soft);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}
.chatbot-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
    padding: 0.7rem;
    border-top: 1px solid var(--line);
}
.chatbot-form input {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.7rem 0.9rem;
    font: inherit;
}
.chatbot-form button {
    border: 0;
    border-radius: 999px;
    background: var(--bg-deep);
    color: #fff;
    padding: 0.7rem 1rem;
    font-weight: 600;
    cursor: pointer;
    font: inherit;
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-weight: 500;
    font-size: 0.92rem;
    transition: all .2s ease;
}
.chip:hover { color: var(--bg-deep); border-color: var(--accent); }
.chip-active { background: var(--bg-deep); color: #fff; border-color: var(--bg-deep); }
.chip-reels { background: var(--accent-soft); color: var(--bg-deep); border-color: transparent; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}
.gallery-card {
    margin: 0;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(11, 61, 74, 0.08);
}
.gallery-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-card figcaption { padding: 1rem 1.2rem 1.3rem; }
.gallery-card figcaption p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.9rem; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; }
.ba-pair > div { position: relative; }
.ba-tag {
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    background: rgba(11,61,74,.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}
.ba-tag-after { background: var(--accent); }

.reels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}
.reel-card {
    border: 0;
    padding: 0;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    box-shadow: 0 8px 30px rgba(11, 61, 74, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.reel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.reel-thumb { position: relative; aspect-ratio: 9/12; background: linear-gradient(160deg, var(--bg-deep), var(--accent)); }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reel-thumb-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    color: rgba(255,255,255,.9);
    font-size: 2.4rem;
}
.reel-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.6rem;
    background: rgba(11,61,74,.25);
    opacity: 0;
    transition: opacity .2s ease;
}
.reel-card:hover .reel-play { opacity: 1; }
.reel-duration {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}
.reel-meta { padding: 0.85rem 1rem 1.1rem; display: grid; gap: 0.2rem; }
.reel-meta span { color: var(--muted); font-size: 0.85rem; }

.reel-modal { position: fixed; inset: 0; z-index: 60; }
.reel-modal-backdrop { position: absolute; inset: 0; background: rgba(6, 28, 34, 0.82); backdrop-filter: blur(6px); }
.reel-modal-body {
    position: relative;
    width: min(420px, 92vw);
    margin: 4vh auto;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.reel-modal-body h3 { margin: 0 2rem 0.8rem 0; font-family: var(--font-display); }
.reel-modal-frame { aspect-ratio: 9/14; border-radius: 12px; overflow: hidden; background: #000; }
.reel-modal-frame iframe { width: 100%; height: 100%; border: 0; }
.reel-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    border: 0;
    background: var(--accent-soft);
    color: var(--bg-deep);
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
}

.calc-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(11, 61, 74, 0.08);
    max-width: 34rem;
}
.calc-result { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.calc-result .btn { margin-right: 0.5rem; margin-top: 0.5rem; }
.calc-price {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--bg-deep);
    margin: 0.25rem 0;
}

.no-js [data-reveal] { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .reels-grid { grid-template-columns: repeat(2, 1fr); }
}

@keyframes drift {
    from { transform: translate3d(0,0,0) scale(1); }
    to { transform: translate3d(-4%, -3%, 0) scale(1.08); }
}

@media (max-width: 900px) {
    .grid-3, .grid-2, .footer-grid,
    .hero-grid, .why-grid, .doctors-grid, .about-layout, .about-hero-grid,
    .treat-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-inner { padding-top: 4.5rem; }
    .hero-visual { justify-self: center; order: -1; }
    .hero-illust { width: min(280px, 80%); }
    .about-doctor-badge { width: 100px; right: 0.5rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .reels-grid { grid-template-columns: repeat(2, 1fr); }
}
