/* =========================================================
   ROOT
========================================================= */

:root {
    --cream: #f7f5f0;
    --paper: #fffefa;
    --ink: #18201e;
    --muted: #68706c;
    --line: rgba(24, 32, 30, .11);
    --accent: #9d735e;
    --accent-dark: #765240;
    --soft: #e9e2da;
    --dark: #18201e;

    /* Aliases mapped from ArDoct template */
    --primary: #765240;
    --primary-dark: #4d3529;
    --primary-light: #e9e2da;

    --text: #18201e;
    --text-soft: #68706c;
    --text-light: #8b9089;

    --white: #fffefa;
    --off-white: #f7f5f0;
    --surface: #e9e2da;
    --border: rgba(24, 32, 30, .11);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 42px;

    --shadow-sm: 0 8px 30px rgba(24, 32, 30, 0.06);
    --shadow-md: 0 20px 60px rgba(24, 32, 30, 0.10);

    --container: 1240px;

    --transition: 0.35s cubic-bezier(.2,.8,.2,1);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.65;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

ul {
    list-style: none;
}


/* =========================================================
   GLOBAL
========================================================= */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section {
    padding: 120px 0;
}

.section-sm {
    padding: 80px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--primary);
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.section-description {
    max-width: 600px;
    margin-top: 22px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.8;
}

.center-title {
    text-align: center;
}

.center-description {
    margin-inline: auto;
    text-align: center;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 12px 30px rgba(118, 82, 64, 0.22);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
    background: white;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-3px);
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    background: var(--primary);
    color: white;
    font-size: 12px;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar i {
    margin-right: 6px;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 254, 250, .94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(24, 32, 30, .06);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

main {
    padding-top: 84px;
}

.nav {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--primary);
    color: white;
    font-family: "Playfair Display", serif;
    font-size: 21px;
    font-weight: 700;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
    margin-right: 35px;
}

.nav-links a {
    position: relative;
    color: #4f5c5f;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-phone {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    transition: var(--transition);
}

.header-phone:hover {
    background: var(--primary);
    color: white;
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(88%, 380px);
    height: 100vh;
    z-index: 2000;
    background: white;
    padding: 100px 28px 30px;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .12);
    transition: .45s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-close {
    position: absolute;
    top: 28px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-cta {
    margin-top: 30px;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1900;
    background: rgba(24, 32, 30, .35);
    opacity: 0;
    visibility: hidden;
    transition: .35s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 780px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(157, 115, 94, .10),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #fffefa 0%,
            #f7f5f0 100%
        );
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -220px;
    bottom: -250px;
    border-radius: 50%;
    background: var(--primary-light);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    align-items: center;
    gap: 80px;
}

.hero-content {
    padding: 80px 0;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(52px, 6.4vw, 92px);
    line-height: .98;
    letter-spacing: -.055em;
    max-width: 760px;
}

.hero-title em {
    color: var(--primary);
    font-style: normal;
}

.hero-description {
    max-width: 560px;
    margin-top: 26px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 38px;
}

.trust-avatars {
    display: flex;
}

.trust-avatar {
    width: 40px;
    height: 40px;
    margin-left: -9px;
    display: grid;
    place-items: center;
    border: 3px solid white;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9e2da, #c9bead);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.trust-avatar:first-child {
    margin-left: 0;
}

.trust-copy strong {
    display: block;
    font-size: 13px;
}

.trust-copy span {
    color: var(--text-light);
    font-size: 11px;
}

.hero-visual {
    position: relative;
}

.hero-image-wrap {
    position: relative;
    overflow: hidden;
    height: 650px;
    border-radius: 260px 260px 28px 28px;
    background: #e9e2da;
    box-shadow: var(--shadow-md);
}

.hero-image {
    height: 100%;
}

.hero-image img {
    height: 100%;
}

.hero-badge {
    position: absolute;
    left: -35px;
    bottom: 50px;
    width: 180px;
    padding: 20px;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-md);
}

.hero-badge-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 13px;
    background: var(--primary-light);
    color: var(--primary);
}

.hero-badge strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 22px;
}

.hero-badge span {
    color: var(--text-soft);
    font-size: 11px;
}


/* =========================================================
   STATS
========================================================= */

.stats {
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    position: relative;
    padding: 34px 25px;
    text-align: center;
}

.stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 25%;
    right: 0;
    width: 1px;
    height: 50%;
    background: var(--border);
}

.stat-number {
    font-family: "Playfair Display", serif;
    font-size: 38px;
    color: var(--primary);
}

.stat-label {
    display: block;
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   DOCTOR
========================================================= */

.doctor {
    background: var(--off-white);
}

.doctor-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px;
    align-items: center;
}

.doctor-image {
    position: relative;
    height: 650px;
    overflow: hidden;
    border-radius: 30px;
}

.doctor-image img {
    height: 100%;
}

.doctor-label {
    position: absolute;
    left: 24px;
    bottom: 24px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.doctor-label strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 18px;
}

.doctor-label span {
    color: var(--text-soft);
    font-size: 11px;
}

.doctor-copy h2 {
    max-width: 700px;
}

.doctor-copy p {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.9;
    margin-top: 25px;
}

.doctor-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.doctor-highlight {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
}

.doctor-highlight i {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 12px;
}

.doctor-highlight strong {
    display: block;
    font-size: 14px;
}

.doctor-highlight span {
    display: block;
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 12px;
}


/* =========================================================
   SERVICES
========================================================= */

.services-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 55px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.service-card {
    position: relative;
    min-height: 350px;
    overflow: hidden;
    border-radius: 24px;
    background: #e9e2da;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: .6s ease;
}

.service-card:hover img {
    transform: scale(1.07);
}

.service-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 24px;
    background:
        linear-gradient(
            to top,
            rgba(24, 32, 30, .72),
            rgba(24, 32, 30, .05) 65%
        );
    color: white;
}

.service-number {
    font-size: 11px;
    opacity: .7;
    margin-bottom: auto;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .17);
    backdrop-filter: blur(10px);
}

.service-overlay h3 {
    font-family: "Playfair Display", serif;
    font-size: 23px;
    line-height: 1.1;
}

.service-overlay p {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.5;
    opacity: .8;
}


/* =========================================================
   EXPERIENCE
========================================================= */

.experience {
    background: var(--off-white);
}

.experience-heading {
    max-width: 850px;
    margin-bottom: 65px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.experience-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 28px;
    background: #e9e2da;
}

.experience-card img {
    height: 100%;
    transition: .6s ease;
}

.experience-card:hover img {
    transform: scale(1.05);
}

.experience-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 32px;
    color: white;
    background:
        linear-gradient(
            to top,
            rgba(24, 32, 30, .78),
            rgba(24, 32, 30, .05) 70%
        );
}

.experience-number {
    margin-bottom: 15px;
    font-size: 12px;
    opacity: .75;
}

.experience-overlay h3 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
}

.experience-overlay p {
    max-width: 380px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
    opacity: .85;
}


/* =========================================================
   SMILE GALLERY
========================================================= */

.smile-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
}

.smile-gallery {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 16px;
    height: 580px;
}

.smile-item {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: var(--surface);
}

.smile-item:nth-child(2) {
    margin-top: 60px;
    margin-bottom: 60px;
}

.smile-item img {
    height: 100%;
    transition: .6s ease;
}

.smile-item:hover img {
    transform: scale(1.06);
}

.smile-tag {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 9px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .9);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}


/* =========================================================
   DIFFERENCE
========================================================= */

.difference {
    background: var(--primary);
    color: white;
}

.difference .eyebrow {
    color: #e9e2da;
}

.difference .eyebrow::before {
    background: #e9e2da;
}

.difference .section-title {
    color: white;
}

.difference-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 65px;
}

.difference-description {
    color: rgba(255, 255, 255, .68);
    max-width: 500px;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .18);
}

.difference-card {
    min-height: 230px;
    padding: 30px;
    background: var(--primary);
}

.difference-card:nth-child(2),
.difference-card:nth-child(4),
.difference-card:nth-child(6) {
    background: rgba(0, 0, 0, .07);
}

.difference-number {
    font-family: "Playfair Display", serif;
    color: rgba(255, 255, 255, .4);
    font-size: 22px;
}

.difference-card h3 {
    margin-top: 35px;
    font-family: "Playfair Display", serif;
    font-size: 25px;
    line-height: 1.15;
}

.difference-card p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   CREDENTIALS
========================================================= */

.credentials {
    text-align: center;
}

.credential-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 55px;
}

.credential {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    color: #667375;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.credential:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.credential i {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 22px;
}


/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonials {
    background: var(--off-white);
}

.testimonial-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.testimonial-controls {
    display: flex;
    gap: 8px;
}

.testimonial-btn {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: white;
    color: var(--text);
    transition: var(--transition);
}

.testimonial-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.testimonial-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: white;
}

.stars {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 2px;
}

.testimonial-quote {
    min-height: 145px;
    margin-top: 25px;
    font-family: "Playfair Display", serif;
    color: #334144;
    font-size: 20px;
    line-height: 1.55;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.author-name strong {
    display: block;
    font-size: 13px;
}

.author-name span {
    color: var(--text-light);
    font-size: 11px;
}


/* =========================================================
   CTA
========================================================= */

.cta {
    position: relative;
    overflow: hidden;
    background: #e9e2da;
}

.cta::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -180px;
    top: -200px;
    border-radius: 50%;
    background: rgba(157, 115, 94, .10);
}

.cta-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 60px;
}

.cta-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1;
    max-width: 800px;
}

.cta-description {
    max-width: 650px;
    margin-top: 18px;
    color: var(--text-soft);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 220px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #18201e;
    color: white;
    padding: 80px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 60px;
    padding-bottom: 65px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-mark {
    background: white;
    color: var(--primary);
}

.footer-logo .logo-text {
    color: white;
}

.footer-description {
    max-width: 360px;
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    line-height: 1.8;
}

.footer-heading {
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
}

.footer-contact-item i {
    width: 18px;
    color: #c9a48a;
    margin-top: 3px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 25px;
    color: rgba(255, 255, 255, .4);
    font-size: 11px;
}

.socials {
    display: flex;
    gap: 8px;
}

.social {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    transition: var(--transition);
}

.social:hover {
    background: white;
    color: var(--primary);
}


/* =========================================================
   FLOATING ACTIONS
========================================================= */

.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.floating-btn {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .16);
    transition: var(--transition);
}

.floating-btn:hover {
    transform: translateY(-4px) scale(1.04);
}

.floating-call {
    background: var(--primary);
}

.floating-whatsapp {
    background: #25d366;
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1100px) {

    .nav-links {
        gap: 20px;
        margin-right: 20px;
    }

    .header .btn {
        display: none;
    }

    .hero-grid {
        gap: 45px;
    }

    .hero-image-wrap {
        height: 570px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-card {
        min-height: 360px;
    }

    .experience-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .credential-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonial {
        flex-basis: calc(50% - 10px);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 768px) {

    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .section {
        padding: 78px 0;
    }

    .section-sm {
        padding: 55px 0;
    }

    .topbar {
        display: none;
    }

    main {
        padding-top: 70px;
    }

    .nav {
        height: 70px;
    }

    .nav-links,
    .nav-actions .btn,
    .header-phone {
        display: none;
    }

    .mobile-menu-btn {
        display: grid;
        place-items: center;
    }

    .logo-mark {
        width: 37px;
        height: 37px;
        border-radius: 11px;
    }

    .logo-text {
        font-size: 20px;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-content {
        padding: 65px 0 0;
    }

    .hero-title {
        font-size: clamp(47px, 14vw, 70px);
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-actions .btn {
        width: 100%;
        padding-inline: 12px;
    }

    .hero-trust {
        margin-top: 28px;
    }

    .hero-visual {
        padding-bottom: 55px;
    }

    .hero-image-wrap {
        height: 460px;
        border-radius: 170px 170px 22px 22px;
    }

    .hero-badge {
        left: 12px;
        bottom: 15px;
        width: 155px;
        padding: 15px;
    }

    .hero-badge strong {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        padding: 25px 10px;
    }

    .stat:nth-child(2)::after {
        display: none;
    }

    .stat:nth-child(1),
    .stat:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .stat-number {
        font-size: 31px;
    }

    .doctor-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .doctor-image {
        height: 470px;
    }

    .doctor-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .services-header,
    .smile-heading,
    .testimonial-header {
        display: block;
    }

    .services-header .btn,
    .smile-heading .btn {
        margin-top: 25px;
    }

    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 78%;
        min-height: 400px;
        scroll-snap-align: start;
    }

    .experience-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .experience-grid::-webkit-scrollbar {
        display: none;
    }

    .experience-card {
        flex: 0 0 82%;
        min-height: 460px;
        scroll-snap-align: start;
    }

    .smile-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        height: 420px;
        scrollbar-width: none;
    }

    .smile-gallery::-webkit-scrollbar {
        display: none;
    }

    .smile-item {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .smile-item:nth-child(2) {
        margin: 0;
    }

    .difference-intro {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }

    .difference-grid {
        grid-template-columns: 1fr;
    }

    .difference-card {
        min-height: auto;
        padding: 25px;
    }

    .difference-card h3 {
        margin-top: 25px;
    }

    .credential-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-controls {
        margin-top: 25px;
    }

    .testimonial {
        flex: 0 0 88%;
        padding: 27px;
    }

    .testimonial-quote {
        min-height: auto;
        font-size: 19px;
        margin-bottom: 30px;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-actions {
        min-width: 0;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .footer {
        padding-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 45px 25px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .floating-actions {
        right: 15px;
        bottom: 15px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .hero-image-wrap {
        height: 420px;
    }

    .doctor-image {
        height: 420px;
    }

    .doctor-highlights {
        grid-template-columns: 1fr;
    }

    .service-card {
        flex-basis: 88%;
    }

    .experience-card {
        flex-basis: 88%;
    }

    .credential-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }
}


/* =========================================================
   MOBILE-FRIENDLY ENHANCEMENTS + BOOKING MODAL
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: min(calc(100% - 40px), var(--container));
}

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(24, 32, 30, .65);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.booking-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.booking-dialog {
    position: relative;
    width: min(100%, 720px);
    max-height: min(760px, calc(100vh - 48px));
    overflow-y: auto;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .25);
    transform: translateY(20px) scale(.98);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.booking-modal.active .booking-dialog {
    transform: translateY(0) scale(1);
}

.booking-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 32px 20px;
    border-bottom: 1px solid var(--border);
}

.booking-head .eyebrow {
    margin-bottom: 8px;
}

.booking-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.booking-subtitle {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 13px;
}

.booking-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 17px;
    transition: var(--transition);
}

.booking-close:hover {
    background: var(--primary);
    color: #fff;
}

.booking-form {
    padding: 28px 32px 32px;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.booking-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.booking-field.full {
    grid-column: 1/-1;
}

.booking-field label {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.booking-field label span {
    color: #d34c4c;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    background: #fbfdfd;
    color: var(--text);
    font-size: 14px;
    transition: .25s ease;
}

.booking-field textarea {
    min-height: 95px;
    padding-top: 13px;
    resize: vertical;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(118, 82, 64, .12);
    background: #fff;
}

.booking-submit {
    width: 100%;
    margin-top: 20px;
}

.booking-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 13px;
    color: var(--text-light);
    font-size: 11px;
    text-align: center;
}

.booking-success {
    display: none;
    padding: 30px 32px 36px;
    text-align: center;
}

.booking-success.active {
    display: block;
}

.booking-success-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 25px;
}

.booking-success h3 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
}

.booking-success p {
    max-width: 440px;
    margin: 10px auto 22px;
    color: var(--text-soft);
    font-size: 14px;
}

.mobile-bottom-bar {
    display: none;
}


/* =========================================================
   BOOKING ENHANCEMENTS — MEDIA QUERIES
========================================================= */

@media (max-width: 900px) {

    .hero-grid,
    .doctor-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 35px;
    }

    .hero-content {
        padding-top: 65px;
    }

    .hero-visual {
        padding-bottom: 50px;
    }

    .hero-image-wrap {
        height: 540px;
    }

    .doctor-grid {
        gap: 45px;
    }

    .doctor-image {
        height: 520px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .credential-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    body {
        padding-bottom: 72px;
    }

    .container {
        width: calc(100% - 28px);
        max-width: none;
    }

    .section {
        padding: 68px 0;
    }

    .section-sm {
        padding: 48px 0;
    }

    .nav {
        height: 68px;
    }

    .logo-text {
        font-size: 19px;
    }

    .hero-content {
        padding: 54px 0 0;
    }

    .hero-title {
        font-size: clamp(43px, 13vw, 68px);
    }

    .hero-description {
        max-width: 100%;
        margin-top: 20px;
        font-size: 15px;
    }

    .hero-actions {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 26px;
    }

    .hero-actions .btn {
        min-height: 52px;
    }

    .hero-trust {
        align-items: flex-start;
        margin-top: 25px;
    }

    .hero-image-wrap {
        height: min(118vw, 500px);
        min-height: 390px;
        border-radius: 145px 145px 22px 22px;
    }

    .hero-badge {
        left: 10px;
        bottom: 8px;
        width: 150px;
        padding: 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        padding: 22px 8px;
    }

    .stat-number {
        font-size: 29px;
    }

    .doctor-image {
        height: min(120vw, 480px);
        min-height: 390px;
    }

    .doctor-copy .section-title {
        font-size: clamp(36px, 10vw, 54px);
    }

    .doctor-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .services-header,
    .smile-heading,
    .testimonial-header {
        display: block;
    }

    .services-header .btn,
    .smile-heading .btn {
        margin-top: 20px;
    }

    .services-grid,
    .experience-grid,
    .smile-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .services-grid::-webkit-scrollbar,
    .experience-grid::-webkit-scrollbar,
    .smile-gallery::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 82%;
        min-height: 390px;
        scroll-snap-align: start;
    }

    .experience-card {
        flex: 0 0 86%;
        min-height: 450px;
        scroll-snap-align: start;
    }

    .smile-gallery {
        height: 420px;
    }

    .smile-item {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }

    .difference-intro {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 40px;
    }

    .difference-grid {
        grid-template-columns: 1fr;
    }

    .difference-card {
        min-height: auto;
        padding: 25px;
    }

    .credential-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .credential {
        min-height: 100px;
        padding: 16px 10px;
    }

    .testimonial {
        flex: 0 0 88%;
        padding: 25px;
    }

    .testimonial-quote {
        min-height: auto;
        margin-bottom: 25px;
        font-size: 18px;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cta-actions {
        min-width: 0;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 38px 22px;
    }

    .footer-grid > div:first-child {
        grid-column: 1/-1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 10px;
    }

    .floating-actions {
        display: none;
    }

    .mobile-bottom-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1400;
        display: grid;
        grid-template-columns: 1fr 1fr 1.5fr;
        gap: 8px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96);
        border-top: 1px solid var(--border);
        box-shadow: 0 -12px 35px rgba(24, 32, 30, .10);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-bar a,
    .mobile-bottom-bar button {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border-radius: 14px;
        font-size: 12px;
        font-weight: 700;
    }

    .mobile-bottom-call {
        background: var(--primary-light);
        color: var(--primary);
    }

    .mobile-bottom-book {
        background: var(--primary);
        color: #fff;
        box-shadow: 0 8px 22px rgba(118, 82, 64, .22);
    }

    .mobile-bottom-whatsapp {
        background: #eafaf0;
        color: #159447;
    }

    .booking-modal {
        align-items: flex-end;
        padding: 0;
    }

    .booking-dialog {
        width: 100%;
        max-height: 94vh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }

    .booking-modal.active .booking-dialog {
        transform: translateY(0);
    }

    .booking-head {
        padding: 22px 20px 17px;
    }

    .booking-form {
        padding: 20px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .booking-field.full {
        grid-column: auto;
    }

    .booking-title {
        font-size: 32px;
    }

    .booking-close {
        width: 40px;
        height: 40px;
    }


    /* extra */

    .mobile-cta {
        position: fixed;
        display: grid;
        grid-template-columns: 1fr 1fr 1.4fr;
        left: 0;
        right: 0;
        bottom: 0;
        height: 68px;
        background: rgba(255,254,250,.97);
        backdrop-filter: blur(15px);
        border-top: 1px solid var(--line);
        z-index: 9999;
    }

    .mobile-cta a,
    .mobile-cta button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: .68rem;
        font-weight: 600;
        color: var(--ink);
        background: transparent;
        border: 0;
        cursor: pointer;
        font-family: inherit;
    }

    .mobile-cta i {
        font-size: 1.15rem;
    }

    .mobile-cta .book {
        background: var(--dark);
        color: white;
        margin: 8px;
        border-radius: 12px;
    }
    /* extra end */









}

@media (max-width: 420px) {

    .container {
        width: calc(100% - 22px);
    }

    .hero-title {
        font-size: clamp(40px, 13vw, 58px);
    }

    .hero-image-wrap {
        min-height: 370px;
        border-radius: 125px 125px 20px 20px;
    }

    .hero-badge {
        width: 142px;
    }

    .doctor-highlights {
        grid-template-columns: 1fr;
    }

    .service-card {
        flex-basis: 88%;
    }

    .experience-card {
        flex-basis: 90%;
    }

    .smile-item {
        flex-basis: 90%;
    }

    .credential-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .mobile-bottom-bar {
        gap: 6px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .mobile-bottom-bar a,
    .mobile-bottom-bar button {
        min-height: 50px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}