/* SmileDent v3 — Premium Dental Landing
   Hero Before/After · Shimmer · Patient Journey · Trust · Cases
   Design: MarkLabs Agency
   ============================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #FAFAFA;
    --card: #FFFFFF;
    --text: #111111;
    --text-secondary: #6B7280;
    --accent: #C49B66;
    --accent-dark: #A67C4A;
    --accent-glow: rgba(196, 155, 102, 0.12);
    --border: #EBEBEB;
    --radius: 20px;
    --radius-sm: 10px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; }
p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== SHIMMER ANIMATION ===== */
.shimmer {
    position: relative;
    display: inline-block;
    color: var(--accent);
    background: linear-gradient(
        120deg,
        var(--accent) 0%,
        var(--accent) 35%,
        #F5DEB3 50%,
        var(--accent) 65%,
        var(--accent) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-move 3s ease-in-out infinite;
}
@keyframes shimmer-move {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal="delay"] {
    transition-delay: 0.25s;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    text-decoration: none;
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
    min-height: 48px;
    min-width: 48px;
}
.btn--lg { padding: 1.15rem 2.8rem; font-size: 0.95rem; }
.btn--primary {
    background: var(--text);
    color: #fff;
}
.btn--primary:hover {
    background: #222;
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.btn--accent {
    background: var(--accent);
    color: #fff;
}
.btn--accent:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(196,155,102,0.25);
}
.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn--ghost:hover {
    border-color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}
.btn--full { width: 100%; }
.btn__loader { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease);
}
.header--scrolled {
    background: rgba(250,250,250,0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}
.nav {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { font-size: 1.35rem; font-weight: 900; color: var(--text); text-decoration: none; letter-spacing: -0.04em; }
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.84rem; font-weight: 500; transition: color 0.25s;
    position: relative; padding: 0.5rem 0;
}
.nav__links a::after {
    content:''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1.5px; background: var(--accent);
    transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
    background: var(--text); color: #fff;
    padding: 0.7rem 1.5rem; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 600; text-decoration: none;
    transition: all 0.25s; min-height: 48px;
    display: inline-flex; align-items: center;
}
.nav__cta:hover { background: #222; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.nav__burger {
    display: none; width: 28px; height: 20px;
    position: relative; background: none; border: none; cursor: pointer;
    min-height: 48px; min-width: 48px;
    align-items: center; justify-content: center;
}
.nav__burger span {
    position: absolute; left: 50%; transform: translateX(-50%);
    width: 24px; height: 2px; background: var(--text); transition: all 0.3s;
}
.nav__burger span:first-child { top: 7px; }
.nav__burger span:last-child { bottom: 7px; }
.nav__burger.active span:first-child { top: 50%; transform: translate(-50%,-50%) rotate(45deg); }
.nav__burger.active span:last-child { bottom: 50%; transform: translate(-50%,50%) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; inset: 0; background: var(--bg); z-index: 99;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    opacity: 0; visibility: hidden; transition: all 0.4s var(--ease);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu a {
    font-size: 1.4rem; font-weight: 600; color: var(--text);
    text-decoration: none; padding: 0.5rem 1rem;
    min-height: 48px; display: flex; align-items: center;
}
.mobile-menu__cta {
    margin-top: 1rem; padding: 1rem 2.5rem;
    background: var(--text); color: #fff !important;
    border-radius: var(--radius-sm); font-size: 1rem !important;
}

/* ===== HERO ===== */
.hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem 3rem;
    gap: 2.5rem;
    text-align: center;
}
.hero__text { max-width: 700px; }
.hero__title { margin-bottom: 1rem; }
.hero__desc { font-size: 1.1rem; line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* Hero B/A Slider */
.hero__slider { width: 100%; max-width: 900px; }
.ba-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 30px 80px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03);
}
.ba-hero__before, .ba-hero__after {
    position: absolute; inset: 0;
}
.ba-hero__before img, .ba-hero__after img {
    width: 100%; height: 100%; object-fit: cover;
}
.ba-hero__after { clip-path: inset(0 0 0 50%); }
.ba-hero__label {
    position: absolute; top: 1.25rem; left: 1.25rem;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
    background: rgba(0,0,0,0.65); color: #fff;
    padding: 0.4rem 0.9rem; border-radius: 6px;
    backdrop-filter: blur(4px);
}
.ba-hero__label--after { left: auto; right: 1.25rem; }
.ba-hero__handle {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 4px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 5; pointer-events: none;
}
.ba-hero__handle-line {
    flex: 1; width: 2px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
}
.ba-hero__handle-circle {
    width: 52px; height: 52px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.ba-hero:active .ba-hero__handle-circle { transform: scale(1.1); }
.hero__slider-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    opacity: 0.7;
    letter-spacing: 0.02em;
}

.hero__cta {
    display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.section--alt { max-width: 100%; background: #fff; padding: 6rem 2rem; }
.section--alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section--dark { max-width: 100%; background: var(--text); padding: 6rem 2rem; }
.section--dark > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section__header { margin-bottom: 3.5rem; text-align: center; }
.section__tag {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent); margin-bottom: 0.75rem;
}
.section__tag--light { color: var(--accent); }
.section__title { margin-bottom: 0.5rem; }
.section__title--light { color: #fff; }
.section__sub { font-size: 1rem; color: var(--text-secondary); margin-top: 0.5rem; }
.section__sub--light { color: rgba(255,255,255,0.5); }

/* ===== PATIENT JOURNEY ===== */
.journey {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: flex-start;
    gap: 0;
}
.journey__step {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}
.journey__icon {
    width: 64px; height: 64px;
    background: var(--accent-glow);
    border: 2px solid rgba(196,155,102,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent);
    transition: all 0.35s var(--ease);
}
.journey__step:hover .journey__icon {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(196,155,102,0.3);
}
.journey__num {
    display: block;
    font-size: 0.65rem; font-weight: 700; color: var(--accent);
    letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.journey__title { margin-bottom: 0.4rem; }
.journey__desc { font-size: 0.82rem; line-height: 1.6; max-width: 200px; margin: 0 auto; }
.journey__connector {
    display: flex; align-items: center; justify-content: center;
    padding-top: 2.5rem;
}
.journey__connector span {
    display: block; width: 40px; height: 2px;
    background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
    border-radius: 2px;
}

/* ===== TRUST BLOCK ===== */
.trust__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}
.trust__stat {
    padding: 2rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.35s var(--ease);
}
.trust__stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.05);
    border-color: rgba(196,155,102,0.3);
}
.trust__number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
}
.trust__plus {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--accent);
}
.trust__label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}
.trust__certs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.trust__cert {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
}
.trust__cert:hover {
    border-color: rgba(196,155,102,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.trust__cert-icon { font-size: 1.75rem; flex-shrink: 0; }
.trust__cert-info h4 { font-size: 0.85rem; margin-bottom: 0.1rem; letter-spacing: 0; }
.trust__cert-info p { font-size: 0.72rem; margin: 0; }

/* ===== PATIENT CASES ===== */
.cases { display: flex; flex-direction: column; gap: 4rem; }
.case {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}
.case--reverse { grid-template-columns: 1fr 1.2fr; }
.case--reverse .case__slider { order: 2; }
.case--reverse .case__info { order: 1; }

.case__slider {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.case__before, .case__after { position: absolute; inset: 0; }
.case__before img, .case__after img { width: 100%; height: 100%; object-fit: cover; }
.case__after { clip-path: inset(0 0 0 50%); }
.case__label {
    position: absolute; top: 0.85rem; left: 0.85rem;
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    background: rgba(0,0,0,0.6); color: #fff;
    padding: 0.3rem 0.65rem; border-radius: 4px;
    backdrop-filter: blur(4px);
}
.case__label--after { left: auto; right: 0.85rem; }
.case__handle {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 3px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 5; pointer-events: none;
}
.case__handle-line { flex: 1; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,0.3); }
.case__handle-circle {
    width: 40px; height: 40px;
    background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: var(--text);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.case__info { padding: 1rem 0; }
.case__tag {
    display: inline-block;
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent);
    padding: 0.4rem 0.85rem;
    background: var(--accent-glow);
    border-radius: 50px;
    margin-bottom: 1rem;
}
.case__title { margin-bottom: 0.75rem; font-size: 1.5rem; }
.case__desc { font-size: 0.92rem; line-height: 1.7; margin-bottom: 1.25rem; }
.case__meta {
    display: flex; flex-wrap: wrap; gap: 1rem;
}
.case__meta span {
    font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    background: #F5F5F5;
    border-radius: 6px;
}

/* ===== REVIEWS ===== */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.25rem;
    transition: all 0.35s var(--ease);
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.06);
    border-color: rgba(196,155,102,0.3);
}
.review-card__stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; margin-bottom: 1rem; }
.review-card p {
    font-size: 0.92rem; color: var(--text); font-style: italic;
    line-height: 1.7; margin-bottom: 1.5rem;
}
.review-card footer { border-top: 1px solid var(--border); padding-top: 1rem; }
.review-card cite {
    font-style: normal; font-weight: 600; font-size: 0.88rem;
    display: block; color: var(--text);
}
.review-card footer span { font-size: 0.73rem; color: var(--text-secondary); }

/* ===== CONTACT ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact__form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { position: relative; }
.form-group input, .form-group select {
    width: 100%;
    padding: 1.1rem 1.25rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-family: inherit; font-size: 0.92rem;
    outline: none; transition: border-color 0.25s, box-shadow 0.25s;
    min-height: 48px;
}
.form-group label {
    position: absolute; top: 50%; left: 1.25rem;
    transform: translateY(-50%);
    font-size: 0.85rem; color: rgba(255,255,255,0.4);
    pointer-events: none;
    transition: all 0.25s var(--ease);
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label {
    top: 0.55rem; transform: none;
    font-size: 0.65rem; color: var(--accent);
    letter-spacing: 0.04em; text-transform: uppercase;
}
.form-group select option { color: var(--text); background: var(--card); }
.form-group__error { display: none; font-size: 0.72rem; color: #EF4444; margin-top: 0.35rem; padding-left: 0.25rem; }
.form-group.error input, .form-group.error select { border-color: #EF4444; }
.form-group.error .form-group__error { display: block; }
.contact__success {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(196,155,102,0.1);
    border: 1px solid rgba(196,155,102,0.3);
    border-radius: var(--radius-sm);
    color: #fff; font-size: 0.92rem; font-weight: 500;
}
.contact__success span { font-size: 1.25rem; }
.contact__privacy { font-size: 0.72rem; color: rgba(255,255,255,0.3); text-align: center; margin-top: 0.5rem; }
.contact__info { display: flex; flex-direction: column; gap: 2rem; padding-top: 0.5rem; }
.contact__item { display: flex; flex-direction: column; gap: 0.2rem; }
.contact__label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.contact__item span, .contact__item a { color: #fff; font-size: 1.05rem; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.contact__item a:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.footer { padding: 2rem; border-top: 1px solid var(--border); }
.footer__inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.footer__logo { font-size: 1.1rem; font-weight: 900; color: var(--text); text-decoration: none; letter-spacing: -0.03em; }
.footer__logo span { color: var(--accent); }
.footer__copy { font-size: 0.75rem; color: var(--text-secondary); }
.footer__credit { font-size: 0.73rem; color: var(--text-secondary); }
.footer__credit a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer__credit a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .journey {
        grid-template-columns: 1fr auto 1fr;
        gap: 1rem;
    }
    .journey__step:nth-child(7) { grid-column: 2; }
    .journey__connector:nth-child(6) { display: none; }

    .trust__stats { grid-template-columns: repeat(2, 1fr); }
    .trust__certs { grid-template-columns: repeat(2, 1fr); }

    .case { grid-template-columns: 1fr; gap: 2rem; }
    .case--reverse { grid-template-columns: 1fr; }
    .case--reverse .case__slider { order: 1; }
    .case--reverse .case__info { order: 2; }

    .reviews { grid-template-columns: 1fr; }

    .contact { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .nav__links, .nav__cta { display: none; }
    .nav__burger { display: flex; }
    .nav { padding: 0 1.25rem; }

    .hero {
        min-height: 100dvh;
        padding: 6rem 1.25rem 2.5rem;
        gap: 2rem;
    }
    .hero__title { font-size: 2rem; }
    .hero__desc { font-size: 0.92rem; }
    .ba-hero { aspect-ratio: 4/3; border-radius: 16px; }
    .ba-hero__handle-circle { width: 44px; height: 44px; }
    .ba-hero__label { font-size: 0.6rem; top: 0.75rem; left: 0.75rem; }
    .ba-hero__label--after { right: 0.75rem; left: auto; }
    .hero__cta { flex-direction: column; width: 100%; }
    .hero__cta .btn { width: 100%; }

    .section { padding: 4rem 1.25rem; }
    .section--alt, .section--dark { padding: 4rem 1.25rem; }
    .section__header { margin-bottom: 2.25rem; }

    .journey {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .journey__connector {
        padding: 0.5rem 0;
    }
    .journey__connector span {
        width: 2px; height: 30px;
    }
    .journey__step { padding: 1rem; }
    .journey__icon { width: 56px; height: 56px; }

    .trust__stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .trust__stat { padding: 1.5rem 1rem; }
    .trust__certs { grid-template-columns: 1fr; }

    .case__slider { aspect-ratio: 4/3; }
    .case__title { font-size: 1.25rem; }
    .case__meta { gap: 0.5rem; }
    .case__meta span { font-size: 0.72rem; padding: 0.3rem 0.6rem; }

    .review-card { padding: 1.75rem; }

    .contact { gap: 2.5rem; }
    .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 390px) {
    .hero { padding: 5.5rem 1rem 2rem; }
    .hero__title { font-size: 1.75rem; }
    h2 { font-size: 1.6rem; }
    .ba-hero { aspect-ratio: 3/2; }
    .section { padding: 3rem 1rem; }
    .section--alt, .section--dark { padding: 3rem 1rem; }
    .trust__stats { gap: 0.75rem; }
    .trust__stat { padding: 1.25rem 0.75rem; }
    .trust__number { font-size: 1.8rem; }
    .btn { padding: 0.95rem 1.75rem; font-size: 0.85rem; }
    .btn--lg { padding: 1rem 2rem; }
}


/* === SmileDent Realism Upgrade === */

/* Prices */
.prices { max-width: 720px; margin: 0 auto; }
.price-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 0; border-bottom: 1px solid var(--border);
}
.price-row:last-child { border-bottom: none; }
.price-row__name { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.price-row__val { font-size: 0.95rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Doctors */
.doctors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.doctor { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.doctor:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.06); }
.doctor__photo { aspect-ratio: 4/5; overflow: hidden; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.doctor:hover .doctor__photo img { transform: scale(1.04); }
.doctor__info { padding: 1.5rem; }
.doctor__info h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.doctor__spec { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.15rem; }
.doctor__exp { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.doctor__info p { font-size: 0.85rem; line-height: 1.6; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; padding: 0 1.25rem; background: var(--card); }
.faq__item summary { font-size: 0.92rem; font-weight: 600; padding: 1.1rem 0; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent); font-weight: 300; }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { font-size: 0.85rem; line-height: 1.7; color: var(--text-secondary); padding: 0 0 1.1rem; margin: 0; }

@media (max-width: 768px) {
    .doctors { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ===== MOBILE PREMIUM v2 ===== */
@media(max-width:768px){
    /* Hero */
    .hero{padding:5rem 1.25rem 3rem}
    .hero__title{font-size:2.4rem !important;line-height:1.1 !important;font-weight:900 !important;letter-spacing:-.8px}
    .hero__desc{font-size:.98rem !important;line-height:1.65}
    .hero__cta{width:100%;justify-content:center;min-height:52px;font-size:1rem !important;padding:1rem 1.5rem !important}
    .btn--primary,.btn--ghost,.btn--lg{min-height:52px;font-size:1rem !important;padding:1rem 1.5rem !important;border-radius:12px}
    .hero__cta,.btn--primary{box-shadow:0 8px 28px rgba(14,165,233,.35)}

    /* BA slider hint */
    .hero__slider-hint{font-size:.82rem;opacity:.7;text-align:center;margin-top:.75rem}

    /* Patient journey */
    .journey{display:grid !important;grid-template-columns:1fr 1fr !important;gap:1.25rem !important}
    .journey__connector{display:none !important}
    .journey__step{padding:1.25rem;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}

    /* Trust stats */
    .trust__stats{grid-template-columns:repeat(2,1fr) !important;gap:1rem}
    .trust__number{font-size:2.5rem !important}

    /* Prices */
    .price-row{padding:.9rem 0;font-size:.9rem}
    .price-row__val{font-size:.95rem;font-weight:700}

    /* Doctors */
    .doctors{grid-template-columns:1fr !important;gap:1.25rem}
    .doctor{display:flex;gap:1rem;align-items:flex-start}
    .doctor__photo{width:72px;height:72px;flex-shrink:0;border-radius:50%;overflow:hidden}
    .doctor__photo img{width:100%;height:100%;object-fit:cover}

    /* Cases */
    .cases{display:flex;flex-direction:column;gap:1.75rem}
    .case{flex-direction:column !important}
    .case--reverse{flex-direction:column !important}
    .case__slider{height:260px}

    /* Contact */
    .contact{display:flex;flex-direction:column;gap:2rem}
    .contact__form .btn--accent{width:100%;min-height:52px;font-size:1rem}

    /* Section headers */
    .section__title{font-size:1.85rem !important;font-weight:800 !important;letter-spacing:-.5px}
    .section__sub{font-size:.9rem}
    .section__tag{font-size:.72rem}
}
@media(max-width:390px){
    .hero__title{font-size:2rem !important}
    .section__title{font-size:1.6rem !important}
    .trust__number{font-size:2rem !important}
}

/* Floating CTA */
.float-cta{display:none;position:fixed;bottom:1.25rem;right:1.25rem;z-index:90;animation:float-pulse 3s ease infinite}
@keyframes float-pulse{0%,100%{box-shadow:0 8px 24px rgba(14,165,233,.4)}50%{box-shadow:0 12px 36px rgba(14,165,233,.6)}}
@media(max-width:768px){.float-cta{display:flex}}
/* ===== END MOBILE PREMIUM v2 ===== */


/* ===== MOBILE SAFETY LAYER (320–414px) ===== */
@media(max-width:414px){
    html, body { overflow-x: hidden; max-width: 100vw; }
    * { min-width: 0; }
    img, video, iframe { max-width: 100%; height: auto; }
    .ba-hero, .case__slider, [class*="slider"] { max-width: 100%; }
    h1, h2, h3, .hero__title, .section__title { overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
    .nav, .section, .hero, .footer { max-width: 100vw; }
}
@media(max-width:360px){
    .hero__title { font-size: 1.85rem !important; }
    .section__title { font-size: 1.5rem !important; }
    .section, .hero { padding-left: 1rem; padding-right: 1rem; }
    .btn { font-size: 0.82rem; padding: 0.9rem 1.3rem; }
    .trust__number { font-size: 1.75rem !important; }
    .doctor__photo { width: 64px; height: 64px; }
}
@media(max-width:320px){
    .hero__title { font-size: 1.65rem !important; }
    .journey { grid-template-columns: 1fr !important; }
    .trust__stats { grid-template-columns: 1fr !important; }
}
/* ===== END MOBILE SAFETY LAYER ===== */


/* ===== STICKY / FLOATING CTA OVERLAP FIX ===== */
@media(max-width:768px){
    /* Reserve space so nothing is hidden under the sticky bar */
    body { padding-bottom: 88px; }
    body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

    /* Remove the duplicate round floating button — sticky bar covers this role */
    .float-cta { display: none !important; }

    /* Sticky bar: safe-area + z-index above content but BELOW header(100)/menu */
    .sticky-cta {
        z-index: 90 !important;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    }
    /* Mobile menu must sit above the sticky bar when open */
    .mobile-menu { z-index: 300 !important; }
    .header { z-index: 310 !important; }

    /* Last section (contact) must clear the bar fully */
    #contact { padding-bottom: 3rem; }
    .footer, footer { padding-bottom: calc(2rem + 88px); }
}

/* When contact form is in view, hide sticky bar so it never covers the form/submit */
.sticky-cta--hidden { transform: translateY(120%) !important; }
/* ===== END STICKY / FLOATING CTA OVERLAP FIX ===== */
