:root {
    --navy: #03245b;
    --navy-deep: #021a42;
    --blue: #0f63d8;
    --blue-dark: #0b4eaf;
    --cyan: #3ed9ef;
    --ink: #0b1930;
    --muted: #66758d;
    --surface: #ffffff;
    --surface-soft: #f4f8fd;
    --line: #dce6f2;
    --shadow-sm: 0 8px 26px rgba(3, 36, 91, .08);
    --shadow-md: 0 18px 48px rgba(3, 36, 91, .13);
    --radius: 22px;
    --section-space: clamp(3.5rem, 6vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
    margin: 0;
    min-width: 280px;
    overflow-x: hidden;
    background: var(--surface-soft);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; }
a { text-decoration: none; }
button, input, select { font: inherit; }

/* Linked service pages share the landing page's layout and visual language. */
.skip-link { position: fixed; top: -120px; left: 1rem; z-index: 1100; padding: .75rem 1rem; background: #fff; color: var(--navy); border: 2px solid var(--blue); border-radius: 8px; }
.skip-link:focus { top: .5rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.page-hero { padding: clamp(2.5rem, 5vw, 5rem) 0; background: linear-gradient(135deg, #eaf3ff, #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 960px; margin: .75rem 0 1rem; color: var(--navy); font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.15; font-weight: 800; letter-spacing: -.035em; }
.page-lead { max-width: 800px; margin-bottom: 0; color: #425570; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.breadcrumb { margin-bottom: 1.8rem; font-size: .9rem; }
.reading-copy { max-width: 850px; }
.reading-copy h2, .detail-card h2, .faq-list h2, .consultation-box h2 { color: var(--navy); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.25; margin-bottom: 1rem; }
.reading-copy p, .detail-card p { color: #425570; }
.reading-copy a:not(.btn), .detail-card a, .faq-list a { text-decoration: underline; text-underline-offset: 3px; }
.detail-card { height: 100%; padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); scroll-margin-top: 112px; }
.detail-card h2 { font-size: 1.45rem; }
.detail-card li + li { margin-top: .7rem; }
.local-section { background: #eaf2fc; }
.faq-list details { margin-top: .75rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq-list summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq-list details p { margin: 1rem 0 .25rem; }
.consultation-section { background: #fff; }
.consultation-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.consultation-box p { margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.outline-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.1rem; border: 1px solid var(--blue); border-radius: 12px; color: var(--blue-dark); background: #fff; font-weight: 700; }
.outline-btn:hover { background: #edf5ff; color: var(--navy); border-color: var(--navy); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem 1.5rem; margin-top: 1.5rem; }
footer .footer-links a { color: #d9e7fa; text-decoration: underline; text-underline-offset: 3px; }
.footer-address { text-align: center; color: #d9e7fa; margin: 1rem 0 0; font-size: .85rem; }
.footer-credit { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.25rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.16); color: #d9e7fa; text-align: center; font-size: .82rem; }
.footer-credit p { margin: 0; }
.footer-visitors { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem 1.3rem; padding: 1rem 0 0; color: #d9e7fa; font-size: .8rem; }
.visitor-counter { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .85rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.06); }
.visitor-counter strong { color: #fff; font-variant-numeric: tabular-nums; }
footer .footer-visitors a { color: #d9e7fa; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit strong { color: #fff; font-weight: 700; }
.footer-credit a { display: inline-flex; align-items: center; gap: .4rem; color: #d9e7fa; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--cyan); }
.footer-credit a:focus-visible { outline-color: var(--cyan); }
.footer-credit i { color: #75e9b1; font-size: 1rem; }
.service-card h3 a, .doctor-content h2 a { color: inherit; }
.service-card h3 a:hover, .doctor-content h2 a:hover { text-decoration: underline; }
.aesthetic-card h3 a { color: inherit; }
.aesthetic-card h3 a:hover { text-decoration: underline; }
.profile-figure { width: min(100%, 384px); }
.profile-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.profile-figure figcaption { margin-top: 1rem; color: #425570; }

.site-container {
    width: min(100%, 1540px);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2.75rem);
}

.section-block { padding: var(--section-space) 0; }

/* TOP BAR */
.topbar {
    position: relative;
    z-index: 1031;
    background: var(--navy-deep);
    color: #fff;
    padding: .62rem 0;
    font-size: .86rem;
    font-size: clamp(.76rem, .65vw + .5rem, .9rem);
}
.topbar-item, .topbar-phone a { display: flex; align-items: center; gap: .55rem; color: #fff; }
.topbar-item i, .topbar-phone i { color: var(--cyan); flex: 0 0 auto; }
.topbar-phone { display: flex; justify-content: flex-end; }
.topbar-phone a { font-weight: 700; white-space: nowrap; }

/* NAVIGATION */
.custom-navbar {
    min-height: 88px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid rgba(15, 82, 186, .08);
    box-shadow: 0 8px 30px rgba(3, 36, 91, .06);
    backdrop-filter: blur(8px);
}
.navbar-brand { display: inline-flex; align-items: center; margin-right: 1.25rem; }
.navbar-brand img { width: clamp(158px, 11vw, 220px); height: auto; max-height: 70px; object-fit: contain; }
.navbar-toggler { width: 48px; height: 44px; border-color: #cbd9ea; border-radius: 10px; padding: .45rem .65rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(15, 99, 216, .14); }
.nav-link {
    position: relative;
    color: var(--ink) !important;
    font-weight: 700;
    font-size: .94rem;
    padding: .85rem .72rem !important;
    white-space: nowrap;
}
.nav-link:hover, .nav-link:focus, .nav-link.active { color: var(--blue) !important; }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: .72rem;
    right: .72rem;
    bottom: .46rem;
    height: 2px;
    border-radius: 99px;
    background: var(--blue);
}
.appointment-btn, .primary-btn, .booking-submit, .contact-book-btn {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), #066bcf);
    box-shadow: 0 10px 22px rgba(15, 99, 216, .2);
    color: #fff !important;
    font-weight: 800;
}
.nav-appointment { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .7rem 1.1rem; white-space: nowrap; }

/* HERO */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(2, 28, 70, .98) 0%, rgba(2, 37, 91, .91) 42%, rgba(2, 35, 84, .48) 71%, rgba(2, 31, 75, .64) 100%),
        url("/assets/hero.jpg") center 38% / cover no-repeat;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 18% 28%, rgba(23, 121, 238, .18), transparent 40%);
}
.hero-container { position: relative; z-index: 1; }
.hero-row { min-height: clamp(610px, calc(100vh - 128px), 820px); padding-block: clamp(3rem, 6vw, 5.7rem); }
.hero-content { max-width: 790px; }
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .58rem .9rem;
    border: 1px solid rgba(100, 210, 255, .24);
    border-radius: 999px;
    background: rgba(10, 111, 219, .68);
    color: #fff;
    font-size: clamp(.74rem, .7vw, .88rem);
    font-weight: 800;
    letter-spacing: .01em;
}
.hero h1 {
    max-width: 850px;
    margin: clamp(1.35rem, 2.5vw, 2rem) 0 1.15rem;
    font-size: 72px;
    font-size: clamp(2.6rem, 5.25vw, 5.25rem);
    line-height: 1.02;
    font-weight: 850;
    letter-spacing: -.045em;
}
.hero h1 span { color: var(--cyan); }
.hero-lead {
    max-width: 690px;
    margin: 0;
    color: #d8e8ff;
    font-size: 1.15rem;
    font-size: clamp(1rem, 1.25vw, 1.3rem);
    line-height: 1.75;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: clamp(1.5rem, 3vw, 2.2rem); }
.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .58rem;
    min-height: 52px;
    padding: .85rem 1.35rem;
    font-weight: 800;
    border-radius: 12px;
}
.secondary-btn { border: 1px solid rgba(255,255,255,.55); color: #fff; background: rgba(0,0,0,.08); }
.secondary-btn:hover, .secondary-btn:focus { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; margin-top: clamp(2rem, 4vw, 3rem); }
.stat-box { min-width: 0; padding: .2rem 1rem; border-left: 1px solid rgba(255,255,255,.18); }
.stat-box:first-child { padding-left: 0; border-left: 0; }
.stat-box strong { display: block; color: #fff; font-size: clamp(1.25rem, 1.5vw, 1.8rem); line-height: 1.2; }
.stat-box span { display: block; margin-top: .25rem; color: #cfe2ff; font-size: clamp(.7rem, .75vw, .88rem); line-height: 1.35; }

/* APPOINTMENT CARD */
.appointment-card {
    width: 100%;
    max-width: 510px;
    margin-left: auto;
    padding: clamp(1.25rem, 2.4vw, 2rem);
    color: var(--ink);
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: clamp(18px, 2vw, 26px);
    box-shadow: 0 28px 70px rgba(1, 18, 49, .28);
}
.appointment-heading { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.appointment-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #e8f2ff; color: var(--blue); font-size: 1.15rem; flex: 0 0 auto; }
.appointment-heading small { display: block; color: var(--blue); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.appointment-heading h2 { margin: .05rem 0 0; font-size: clamp(1.25rem, 1.8vw, 1.65rem); font-weight: 850; }
.form-label { margin-bottom: .33rem; color: #36465f; font-size: .78rem; font-weight: 750; }
.form-field { margin-bottom: .8rem; }
.form-field .input-group-text { width: 46px; justify-content: center; border-color: var(--line); background: #f7faff; color: var(--blue); }
.appointment-card .form-control, .appointment-card .form-select {
    min-height: 48px;
    border-color: var(--line);
    background-color: #fff;
    color: var(--ink);
    font-size: .93rem;
}
.appointment-card .form-control:focus, .appointment-card .form-select:focus { border-color: #70a9ec; box-shadow: 0 0 0 .2rem rgba(15,99,216,.11); }
.form-field-control { margin-bottom: .8rem; }
.booking-submit { min-height: 51px; margin-top: .55rem; }

/* REGISTRATION / TRUST */
.registration-section { position: relative; z-index: 5; padding: 0; }
.registration-box { margin-top: -34px; padding: clamp(1.2rem, 2.4vw, 1.9rem); background: #fff; border: 1px solid #e8eef6; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.registration-content { display: flex; align-items: center; gap: 1rem; }
.registration-icon { display: grid; place-items: center; width: 62px; height: 62px; flex: 0 0 auto; border-radius: 18px; background: #eaf3ff; color: var(--blue); font-size: 1.5rem; }
.eyebrow { display: inline-block; margin-bottom: .4rem; color: var(--blue); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .075em; }
.registration-content h2 { margin: 0; font-size: clamp(1rem, 1.3vw, 1.35rem); font-weight: 850; }
.registration-content p { margin: .25rem 0 0; color: var(--muted); font-weight: 700; }
.feature-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.feature-item { display: flex; min-width: 0; align-items: center; gap: .7rem; padding: .85rem; border-radius: 15px; background: #f7faff; }
.feature-item i { width: 30px; color: var(--blue); font-size: 1.35rem; text-align: center; flex: 0 0 auto; }
.feature-item span { font-size: .8rem; font-weight: 750; line-height: 1.35; }

/* SECTION TITLES */
.section-title { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3.4rem); text-align: center; }
.section-title h2 { margin: 0 0 .7rem; color: var(--ink); font-size: clamp(2rem, 3.4vw, 3.35rem); line-height: 1.08; font-weight: 850; letter-spacing: -.035em; }
.section-title p { margin: 0; color: var(--muted); font-size: clamp(.95rem, 1vw, 1.08rem); }

/* DENTAL SERVICES */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-height: 208px;
    padding: clamp(1.15rem, 2vw, 1.65rem);
    border: 1px solid var(--line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(3,36,91,.045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: #b9d4f4; box-shadow: var(--shadow-sm); }
.service-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 1rem; border-radius: 15px; background: #edf5ff; color: var(--blue); font-size: 1.35rem; }
.service-card h3 { margin: 0 0 .5rem; font-size: clamp(.95rem, 1.1vw, 1.12rem); font-weight: 850; }
.service-card p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }

/* AESTHETIC AREA */
.aesthetic-section { background: linear-gradient(180deg, #eef6ff 0%, #f9fbff 100%); }
.aesthetic-shell { position: relative; overflow: hidden; padding: clamp(1.3rem, 3.2vw, 3rem); border: 1px solid #d9e8f8; border-radius: clamp(22px, 3vw, 34px); background: linear-gradient(135deg, #052b66 0%, #083b80 46%, #0c5db7 100%); box-shadow: 0 24px 62px rgba(3,36,91,.16); }
.aesthetic-shell::before, .aesthetic-shell::after { content: ""; position: absolute; border-radius: 50%; background: rgba(70, 213, 239, .12); pointer-events: none; }
.aesthetic-shell::before { width: 420px; height: 420px; left: -240px; bottom: -270px; }
.aesthetic-shell::after { width: 330px; height: 330px; right: -170px; top: -190px; }
.aesthetic-intro { position: relative; z-index: 1; color: #fff; }
.aesthetic-eyebrow { color: #75e9f7; }
.aesthetic-intro h2 { max-width: 530px; margin: 0 0 1rem; font-size: clamp(2rem, 3.5vw, 3.65rem); line-height: 1.04; font-weight: 850; letter-spacing: -.035em; }
.aesthetic-intro > p { max-width: 580px; margin: 0; color: #dceaff; }
.aesthetic-points { display: grid; gap: .58rem; margin: 1.4rem 0; }
.aesthetic-points span { display: flex; align-items: center; gap: .6rem; color: #eff7ff; font-size: .9rem; }
.aesthetic-points i { color: var(--cyan); }
.aesthetic-cta { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; color: #fff; background: rgba(255,255,255,.08); font-weight: 800; }
.aesthetic-cta:hover, .aesthetic-cta:focus { color: var(--navy); background: #fff; }
.aesthetic-grid { position: relative; z-index: 1; }
.aesthetic-card {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    height: 100%;
    min-height: 154px;
    padding: clamp(1rem, 1.8vw, 1.35rem);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 35px rgba(0,17,51,.13);
    transition: transform .2s ease, background .2s ease;
}
.aesthetic-card:hover { transform: translateY(-4px); background: #fff; }
.aesthetic-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; background: #e8f4ff; color: var(--blue); font-size: 1.2rem; }
.aesthetic-card h3 { margin: .05rem 0 .35rem; font-size: 1rem; font-weight: 850; }
.aesthetic-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }

/* DOCTOR */
.doctor-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.doctor-media { min-height: 440px; background: #e9f1f9; }
.doctor-img { display: block; width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: center 25%; }
.doctor-content { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: clamp(1.6rem, 4vw, 4rem); }
.doctor-content h2 { margin: 0 0 .4rem; font-size: clamp(2rem, 3vw, 3.25rem); line-height: 1.05; font-weight: 850; letter-spacing: -.035em; }
.doctor-content h3 { margin: 0 0 1rem; color: var(--blue); font-size: clamp(.86rem, 1vw, 1.05rem); line-height: 1.5; font-weight: 800; }
.doctor-content > p { max-width: 850px; margin: 0; color: var(--muted); }
.doctor-features { margin-top: 1.6rem; }
.doctor-features span { display: flex; align-items: flex-start; gap: .6rem; color: #33435c; font-size: .9rem; font-weight: 650; }
.doctor-features i { margin-top: .27rem; color: var(--blue); }

/* TESTIMONIALS */
.reviews-section { background: #fff; }
.testimonial-card { position: relative; height: 100%; min-height: 245px; padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 8px 24px rgba(3,36,91,.05); }
.quote-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1rem; border-radius: 13px; background: #edf5ff; color: var(--blue); }
.testimonial-card p { margin: 0 0 1rem; color: #3d4c63; line-height: 1.7; }
.stars { color: #f5aa18; letter-spacing: .08em; }
.testimonial-card h3 { margin: .55rem 0 0; font-size: 1rem; font-weight: 850; }
.google-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; max-width: 1200px; margin-inline: auto; }
.google-review-card { display: flex; flex-direction: column; min-width: 0; border-top: 3px solid var(--blue); }
.google-review-card:only-child { width: 100%; max-width: 760px; justify-self: center; }
.google-review-header { display: flex; align-items: center; gap: .85rem; }
.google-review-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; background: #edf5ff; color: var(--blue); font-weight: 800; }
.google-review-header h3 { margin: 0 0 .25rem; line-height: 1.4; overflow-wrap: anywhere; }
.google-review-source { color: var(--muted); font-size: .85rem; }
.google-review-stars { margin: 1.25rem 0 .75rem; font-size: 1.25rem; }
.google-review-card blockquote { margin: 0 0 1.25rem; }
.google-review-card blockquote p { margin: 0; font-size: 1.05rem; }
.google-review-link { align-self: flex-start; margin-top: auto; color: var(--blue-dark); font-size: .9rem; font-weight: 750; text-decoration: underline; text-underline-offset: .2em; }
.google-review-link:hover { color: var(--navy); }
.google-review-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }

/* CONTACT */
.contact-section { background: var(--surface-soft); }
.contact-box { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-md); }
.contact-content { display: flex; flex-direction: column; justify-content: center; min-height: 420px; padding: clamp(1.6rem, 4vw, 3.5rem); }
.contact-content h2 { margin: 0 0 .75rem; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.08; font-weight: 850; }
.contact-content > p { margin: 0 0 1.4rem; color: var(--muted); }
.contact-line { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: .85rem; color: #33435c; font-weight: 650; }
.contact-line i { width: 22px; margin-top: .27rem; color: var(--blue); text-align: center; }
.contact-line:hover { color: var(--blue); }
.contact-book-btn { align-self: flex-start; min-height: 48px; margin-top: .6rem; padding: .75rem 1.2rem; }
.map-column, .map-column iframe { min-height: 420px; }
.map-column iframe { display: block; width: 100%; height: 100%; border: 0; }

/* FOOTER */
footer { padding: 1.4rem 0; background: var(--navy-deep); color: #fff; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-logo { width: 150px; height: 50px; padding: .2rem .55rem; border-radius: 9px; background: #fff; object-fit: contain; }
.footer-content p { margin: 0; color: #d9e7fa; font-size: .86rem; }
.footer-content a { color: #fff; font-weight: 750; }

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    right: 18px;
    right: max(18px, env(safe-area-inset-right));
    bottom: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1040;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
    font-size: 1.8rem;
}
.whatsapp-float:hover, .whatsapp-float:focus { color: #fff; transform: translateY(-2px); }

/* BOOTSTRAP / ACCESSIBILITY HELPERS */
.btn { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid rgba(61, 211, 239, .65); outline-offset: 3px; }

/* LARGE LAPTOPS / 1366 x 768 / SMALL TVs */
@media (min-width: 992px) and (max-height: 820px) {
    .custom-navbar { min-height: 78px; }
    .navbar-brand img { max-height: 58px; }
    .hero-row { min-height: 590px; padding-block: 2.6rem; }
    .hero h1 { font-size: clamp(3.3rem, 4.8vw, 4.6rem); margin-top: 1.25rem; }
    .hero-lead { font-size: 1.05rem; line-height: 1.6; }
    .stats { margin-top: 1.9rem; }
    .appointment-card { padding: 1.35rem; }
    .appointment-heading { margin-bottom: .8rem; }
    .appointment-card .form-control, .appointment-card .form-select { min-height: 44px; }
    .booking-submit { min-height: 46px; }
}

/* TABLET AND NAVBAR COLLAPSE */
@media (max-width: 1199.98px) {
    .custom-navbar { min-height: 78px; }
    .navbar-collapse { padding: .8rem 0 1rem; border-top: 1px solid #edf2f8; }
    .nav-link { padding: .7rem .15rem !important; }
    .nav-link.active::after { left: 0; right: auto; bottom: .35rem; width: 42px; }
    .nav-appointment { width: 100%; margin-top: .6rem; }
    .feature-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    html { scroll-padding-top: 92px; }
    .hero { background-position: 58% center; }
    .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(2,27,68,.18); }
    .hero-row { min-height: auto; padding-block: 3.5rem 5rem; }
    .hero-content { max-width: 720px; text-align: center; margin: 0 auto; }
    .hero-lead { margin-inline: auto; }
    .hero-buttons { justify-content: center; }
    .stats { max-width: 700px; margin-inline: auto; }
    .appointment-card { max-width: 680px; margin: 1rem auto 0; }
    .registration-box { margin-top: -28px; }
    .registration-content { justify-content: center; text-align: center; }
    .feature-icons { margin-top: .35rem; }
    .doctor-media { min-height: 520px; max-height: 620px; }
    .doctor-img { min-height: 520px; max-height: 620px; object-position: center 25%; }
    .map-column, .map-column iframe { min-height: 360px; }
}

/* MOBILE */
@media (max-width: 767.98px) {
    .topbar { padding: .48rem 0; }
    .topbar .row { text-align: center; }
    .topbar-address { justify-content: center; }
    .topbar-phone { justify-content: center; margin-top: .15rem; }
    .custom-navbar { min-height: 70px; }
    .navbar-brand img { width: 155px; max-height: 54px; }
    .hero { background-position: 61% center; }
    .hero-row { padding-block: 3rem 4.6rem; }
    .hero h1 { font-size: clamp(2.3rem, 11vw, 3.8rem); }
    .hero-lead { font-size: 1rem; line-height: 1.65; }
    .hero-buttons .btn { flex: 1 1 210px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
    .stat-box { padding: .8rem .7rem; border-left: 1px solid rgba(255,255,255,.18); border-top: 1px solid rgba(255,255,255,.14); }
    .stat-box:nth-child(odd) { border-left: 0; }
    .stat-box:nth-child(-n+2) { border-top: 0; }
    .registration-box { margin-top: -24px; }
    .registration-content { align-items: flex-start; text-align: left; }
    .feature-icons { grid-template-columns: 1fr 1fr; }
    .feature-item { flex-direction: column; align-items: flex-start; }
    .service-card { min-height: 190px; }
    .doctor-media, .doctor-img { min-height: 440px; max-height: 520px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-credit { padding-bottom: 3.5rem; }
}

/* VERY SMALL ANDROID PHONES */
@media (max-width: 479.98px) {
    .site-container { padding-inline: .85rem; }
    .topbar-address { align-items: flex-start; font-size: .72rem; line-height: 1.4; }
    .navbar-brand img { width: 142px; }
    .navbar-toggler { width: 44px; height: 42px; }
    .hero-tag { font-size: .7rem; }
    .hero h1 { font-size: clamp(2.15rem, 12vw, 3rem); }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; flex-basis: auto; }
    .stats { grid-template-columns: 1fr 1fr; }
    .appointment-card { padding: 1rem; }
    .appointment-heading { align-items: flex-start; }
    .registration-content { gap: .75rem; }
    .registration-icon { width: 50px; height: 50px; border-radius: 14px; }
    .feature-icons { grid-template-columns: 1fr; }
    .feature-item { flex-direction: row; align-items: center; }
    .section-title { margin-bottom: 1.8rem; }
    #services .row > [class*="col-"] { width: 100%; }
    .service-card { min-height: auto; }
    .aesthetic-shell { padding: 1rem; border-radius: 20px; }
    .aesthetic-card { min-height: auto; }
    .doctor-media, .doctor-img { min-height: 360px; max-height: 440px; }
    .contact-content { min-height: auto; }
    .map-column, .map-column iframe { min-height: 300px; }
    .whatsapp-float { width: 54px; height: 54px; font-size: 1.55rem; }
}

/* FULL-HD / 2K / 4K TVs AND LARGE DISPLAYS */
@media (min-width: 1800px) {
    :root { --section-space: clamp(5.5rem, 5vw, 7rem); }
    body { font-size: 18px; }
    .site-container { width: min(100%, 1720px); }
    .custom-navbar { min-height: 104px; }
    .navbar-brand img { width: 238px; max-height: 78px; }
    .nav-link { font-size: 1rem; padding-inline: .9rem !important; }
    .hero-row { min-height: min(860px, calc(100vh - 145px)); }
    .hero-content { max-width: 920px; }
    .appointment-card { max-width: 560px; }
    .service-card { min-height: 230px; }
    .aesthetic-card { min-height: 172px; }
}

/* LANDSCAPE PHONE / SHORT VIEWPORT */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 991.98px) {
    .topbar { display: none; }
    .custom-navbar { position: relative !important; }
    .hero-row { padding-block: 2rem; }
    .hero h1 { font-size: clamp(2.1rem, 7vw, 3.3rem); }
}

/* TOUCH DEVICES: avoid sticky hover states */
@media (hover: none) {
    .service-card:hover, .aesthetic-card:hover, .btn:hover, .whatsapp-float:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Small usability refinements preserve the original navy and blue design. */
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.service-card h3 a:focus-visible { outline: none; }
#appointment { scroll-margin-top: 112px; }
.mobile-contact-dock { display: none; }
@media (max-width: 767.98px) {
    .hero-row { --bs-gutter-x: 1.5rem; }
    #appointment { scroll-margin-top: 92px; }
    body:has(.mobile-contact-dock) { padding-bottom: calc(71px + env(safe-area-inset-bottom)); }
    .mobile-contact-dock { position: fixed; z-index: 1035; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -4px 20px rgba(3,36,91,.08); }
    .mobile-contact-dock a { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; background: var(--blue); border: 1px solid var(--blue); border-radius: 10px; color: #fff; font-size: .83rem; font-weight: 700; }
    .mobile-contact-dock a + a { background: #fff; color: var(--blue-dark); border-color: var(--line); }
    body:has(.mobile-contact-dock) .whatsapp-float { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* Clinic social links fit the existing blue footer without changing its layout. */
.footer-social { margin-top: 1.75rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.16); text-align: center; }
.footer-social-title { margin: 0 0 1rem; color: #fff; font-size: .92rem; font-weight: 700; }
.footer-social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; max-width: 1000px; margin-inline: auto; }
footer .footer-social-link { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-width: 120px; min-height: 48px; max-width: 100%; padding: .65rem 1rem; border: 1px solid rgba(171,207,255,.3); border-radius: 999px; background: rgba(255,255,255,.05); color: #e5efff; font-size: .83rem; font-weight: 650; line-height: 1.35; text-decoration: none; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.footer-social-link i { width: 18px; flex: 0 0 18px; color: #81dced; font-size: 1.05rem; text-align: center; }
footer .footer-social-link:hover { border-color: #81dced; background: rgba(129,220,237,.12); color: #fff; }
footer .footer-social-link:focus-visible { outline: 3px solid #81dced; outline-offset: 3px; background: rgba(129,220,237,.12); color: #fff; }
@media (max-width: 479.98px) {
    .footer-social-links { gap: .6rem; }
    footer .footer-social-link { flex: 1 1 120px; max-width: 170px; padding-inline: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .footer-social-link { transition: none; }
}

/* Android app download uses the established navy and blue clinic palette. */
.app-download-section { padding-top: 0; }
.app-download-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .75fr); gap: 3rem; align-items: center; padding: clamp(1.5rem, 4vw, 3.8rem); border-radius: 26px; background: linear-gradient(125deg, var(--navy), #0a3d86); color: #fff; box-shadow: var(--shadow-md); }
.app-download-copy { min-width: 0; }
.app-download-card .eyebrow { color: #81dced; }
.app-download-card h2 { color: #fff; font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.15; margin: .6rem 0 1rem; }
.app-download-copy > p { max-width: 660px; color: #d3e2f7; font-size: .98rem; line-height: 1.75; }
.app-download-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin: 1.6rem 0; }
.app-download-button { display: inline-flex; align-items: center; gap: .95rem; min-height: 64px; max-width: 100%; padding: .85rem 1.3rem; background: #fff; color: var(--navy); border: 1px solid #fff; border-radius: 12px; font-size: .95rem; font-weight: 750; text-align: left; }
.app-download-button > i:first-child { font-size: 1.65rem; color: var(--blue); }
.app-download-button > i:last-child { margin-left: .5rem; font-size: 1rem; color: var(--blue); }
.app-download-button-note { display: block; margin-top: .12rem; font-size: .7rem; font-weight: 500; color: #5e7696; }
.app-download-button:hover { background: #eaf4ff; border-color: #eaf4ff; color: var(--navy); }
.app-download-online { display: inline-flex; align-items: center; gap: .75rem; min-height: 48px; color: #d7f8ff; font-size: .88rem; font-weight: 650; }
.app-download-online:hover { color: #fff; text-decoration: underline; }
.app-download-copy > .app-download-install { margin: 0; font-size: .75rem; line-height: 1.7; color: #b9cfea; }
.app-download-install a { color: #9ae9f5; text-decoration: underline; text-underline-offset: 3px; }
.app-download-card a:focus-visible { outline: 3px solid #81dced; outline-offset: 5px; }
.app-download-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; min-width: 0; padding: 1.8rem 1.35rem; border: 1px solid rgba(179, 219, 255, .2); border-radius: 22px; background: rgba(255, 255, 255, .045); text-align: center; }
.app-android-mark { display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 1.25rem; border-radius: 23px; background: #0f63d8; color: #fff; font-size: 2.7rem; }
.app-visual-title { font-size: 1.25rem; font-weight: 750; }
.app-visual-caption { margin-top: .25rem; color: #b9d3f5; font-size: .78rem; }
.app-visual-steps { display: grid; gap: .85rem; margin-top: 1.5rem; text-align: left; font-size: .78rem; color: #e1efff; }
.app-visual-steps span { display: flex; align-items: center; gap: .7rem; }
.app-visual-steps i { width: 19px; text-align: center; color: #81dced; }
@media (max-width: 767.98px) {
    .app-download-card { grid-template-columns: 1fr; gap: 1.6rem; padding: 1.7rem; border-radius: 21px; }
    .app-download-visual { display: none; }
    .app-download-actions { gap: .7rem; }
    .app-download-button { justify-content: center; width: 100%; padding-inline: 1rem; }
    .app-download-online { width: 100%; justify-content: center; }
}
