/* ============================================================
   BMC Dent — clean stylesheet
   Sections: 1) tokens 2) reset 3) typography 4) layout utils
   5) topbar 6) header/nav 7) hero 8) trust 9) about
   10) services 11) doctor 12) gallery 13) faq 14) contact
   15) cta banner 16) footer 17) modal 18) whatsapp float
   19) language switcher 20) reveal 21) responsive 22) RTL
   ============================================================ */

/* 1) tokens */
:root {
    --primary: #2a241c;
    --primary-dark: #1a1611;
    --primary-light: #4a3f33;
    --accent: #c9a961;
    --accent-light: #dcc28a;
    --accent-soft: #f3ead7;
    --cream: #faf5e9;
    --bg: #ffffff;
    --bg-soft: #fbf8f1;
    --text: #1a1611;
    --text-soft: #4a4036;
    --text-mute: #8a7f73;
    --border: #ece4d3;
    --whatsapp: #25d366;
    --shadow-sm: 0 2px 8px rgba(42, 36, 28, 0.06);
    --shadow-md: 0 8px 24px rgba(42, 36, 28, 0.10);
    --shadow-lg: 0 20px 60px rgba(42, 36, 28, 0.15);
    --radius: 4px;
    --radius-lg: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 116px;
}

/* 2) reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { font-family: inherit; }

/* 3) typography */
h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; font-family: 'Inter', sans-serif; }
h5 { font-size: 1rem; font-family: 'Inter', sans-serif; }
p { color: var(--text-soft); }

.accent { color: var(--accent); font-style: italic; font-weight: 500; }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 32px;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 22px; height: 1px;
    background: var(--accent);
}
.section-head .eyebrow::after {
    content: '';
    position: absolute;
    right: -28px; top: 50%;
    width: 22px; height: 1px;
    background: var(--accent);
}

/* 4) layout utils */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: clamp(60px, 9vw, 110px) 0; }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius);
    white-space: nowrap;
    text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* 5) topbar */
.topbar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    padding: 10px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar-info {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.topbar-info a,
.topbar-address,
.topbar-hours {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.85);
}
.topbar-info a:hover { color: var(--accent); }
.topbar-divider {
    width: 1px; height: 14px;
    background: rgba(255, 255, 255, 0.2);
}

/* 6) header / nav */
.header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 0;
}
.logo-img {
    height: 92px;
    width: auto;
    display: block;
    transition: transform var(--transition);
}
.logo:hover .logo-img { transform: scale(1.04); }
.logo-img--light {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.nav ul {
    display: flex;
    gap: 24px;
}
.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 6px 0;
    display: inline-block;
}
.nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 130;
    position: relative;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary);
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* nav backdrop for mobile */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 22, 17, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 100;
}
.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* 7) hero */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top right, #faf0d8 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, #fbf6ea 0%, transparent 50%),
        linear-gradient(135deg, #fbf8f1 0%, #ffffff 50%, #faf5e9 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: -10%; right: -10%;
    width: 720px; height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.12), transparent 65%);
    filter: blur(40px);
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -15%; left: -10%;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 36, 28, 0.1), transparent 60%);
    filter: blur(30px);
}
.hero-inner {
    position: relative;
    z-index: 2;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}
.hero-content { max-width: 640px; }
.hero h1 { margin-bottom: 24px; }

.lead {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-features {
    display: flex;
    gap: 14px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-dark);
}
.hero-feature svg {
    width: 18px; height: 18px;
    color: var(--accent);
}

.hero-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 520px;
    width: 100%;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-visual-glow {
    position: absolute;
    inset: 8%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.35), transparent 65%);
    filter: blur(60px);
    z-index: 0;
}
.hero-visual-ring {
    position: absolute;
    inset: 5%;
    border-radius: 50%;
    border: 1px dashed rgba(201, 169, 97, 0.4);
    animation: spin 40s linear infinite;
}
.hero-visual-ring--2 {
    inset: 16%;
    border: 1px solid rgba(42, 36, 28, 0.15);
    animation-direction: reverse;
    animation-duration: 30s;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-tooth {
    position: relative;
    z-index: 2;
    width: 70%;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(42, 36, 28, 0.25));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.hero-sparkle {
    position: absolute;
    color: var(--accent);
    z-index: 3;
    filter: drop-shadow(0 0 12px rgba(201, 169, 97, 0.6));
}
.hero-sparkle svg { width: 100%; height: 100%; }
.hero-sparkle--1 {
    top: 8%; right: 15%;
    width: 28px; height: 28px;
    animation: twinkle 2.5s ease-in-out infinite;
}
.hero-sparkle--2 {
    bottom: 18%; left: 8%;
    width: 36px; height: 36px;
    color: var(--accent-light);
    animation: twinkle 3.2s ease-in-out infinite 0.5s;
}
.hero-sparkle--3 {
    top: 35%; left: 0;
    width: 20px; height: 20px;
    animation: twinkle 2.8s ease-in-out infinite 1s;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 1.5px solid var(--primary);
    border-radius: 14px;
    z-index: 3;
}
.hero-scroll span {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}
@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 22px; }
}

/* 8) trust */
.trust {
    background: var(--bg-soft);
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}
.trust-item { text-align: center; }
.trust-item svg {
    width: 36px; height: 36px;
    color: var(--accent);
    margin: 0 auto 16px;
}
.trust-item h4 { margin-bottom: 8px; color: var(--primary-dark); }
.trust-item p { font-size: 0.9rem; color: var(--text-mute); }

/* 9) about */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.about-image { position: relative; }
.about-image-frame {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image-frame::before {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: var(--radius);
}
.about-image-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-tooth {
    position: absolute;
    width: 70%;
    height: auto;
    z-index: 1;
    opacity: 0.9;
}
.about-logo-img {
    position: relative;
    z-index: 2;
    width: 85%;
    max-width: 380px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25)) brightness(0) invert(1);
}
.about-content h2 { margin-bottom: 24px; }
.about-content p { margin-bottom: 18px; }
.about-list {
    margin: 32px 0;
    display: grid;
    gap: 18px;
}
.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.check {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: rgba(201, 169, 97, 0.15);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.about-list strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 2px;
}
.about-list span:not(.check) {
    font-size: 0.9rem;
    color: var(--text-mute);
}

/* 10) services */
.services { background: var(--bg-soft); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.service-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 64px; height: 64px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(42, 36, 28, 0.08), rgba(201, 169, 97, 0.15));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition);
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}
.service-icon svg { width: 36px; height: 36px; }
.service-card h3 {
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: var(--primary-dark);
}
.service-card p {
    font-size: 0.92rem;
    color: var(--text-mute);
}

/* 11) doctor */
.doctor-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}
.doctor-content h2 { margin: 12px 0 8px; }
.doctor-title {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.doctor-content p { margin-bottom: 18px; }
.doctor-credentials {
    display: grid;
    gap: 16px;
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}
.cred {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: baseline;
}
.cred-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-mute);
}
.cred-value {
    color: var(--primary-dark);
    font-weight: 500;
}
.doctor-image-frame {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #faf5e9 0%, #f3ead7 100%);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.doctor-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-align: center;
    padding: 24px;
}
.doctor-placeholder svg {
    width: 140px; height: 140px;
    opacity: 0.3;
    margin-bottom: 16px;
}
.doctor-placeholder span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1.3;
}

/* 12) gallery */
.gallery { background: var(--bg-soft); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 220px 220px;
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition);
    background-size: cover;
    background-position: center;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 36, 28, 0.05) 30%, rgba(26, 22, 17, 0.75));
    z-index: 1;
    transition: background var(--transition);
}
.gallery-item:hover::before {
    background: linear-gradient(180deg, rgba(42, 36, 28, 0.2) 0%, rgba(26, 22, 17, 0.6));
}
.gallery-1 {
    grid-column: 1 / 3;
    background-image: url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?auto=format&fit=crop&w=1400&q=80');
}
.gallery-2 { background-image: url('https://images.unsplash.com/photo-1606811841689-23dfddce3e95?auto=format&fit=crop&w=900&q=80'); }
.gallery-3 { background-image: url('https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?auto=format&fit=crop&w=900&q=80'); }
.gallery-4 { background-image: url('https://images.unsplash.com/photo-1609840114035-3c981b782dfe?auto=format&fit=crop&w=900&q=80'); }
.gallery-5 { background-image: url('https://images.unsplash.com/photo-1588776813677-77aaf5595b83?auto=format&fit=crop&w=900&q=80'); }
.gallery-6 { background-image: url('https://images.unsplash.com/photo-1606265752439-1f18756aa5fc?auto=format&fit=crop&w=900&q=80'); }
.gallery-label {
    position: absolute;
    bottom: 20px; left: 24px;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* 13) faq */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.faq-item[open] {
    box-shadow: var(--shadow-sm);
    border-color: var(--accent);
}
.faq-item summary {
    padding: 22px 28px;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-dark);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--accent);
    transition: transform var(--transition);
    line-height: 0.7;
    flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
    padding: 0 28px 22px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* 14) contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
}
.contact-info {
    display: grid;
    gap: 20px;
}
.contact-card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    transition: all var(--transition);
}
.contact-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}
.contact-icon {
    width: 44px; height: 44px;
    background: rgba(42, 36, 28, 0.08);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-card h4 { margin-bottom: 8px; color: var(--primary-dark); }
.contact-card p { font-size: 0.95rem; }
.contact-card a:hover { color: var(--accent); }
.contact-card small {
    color: var(--text-mute);
    font-size: 0.82rem;
}
.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 480px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 480px;
}

/* 15) cta banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.3), transparent 70%);
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; }

/* 16) footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}
.footer-logo {
    display: inline-flex;
    margin-bottom: 18px;
}
.footer-logo .logo-img { height: 96px; }
.footer-col p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 280px;
}
.footer h5 {
    color: #fff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}
.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: var(--accent);
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-col li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}
.footer-legal {
    background: rgba(0, 0, 0, 0.2);
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-legal p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    line-height: 1.7;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-legal strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
    cursor: pointer;
}
.footer-links a:hover { color: var(--accent); }
.footer-links span { color: rgba(255, 255, 255, 0.3); }
.footer-credit {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}
.footer-credit a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
    font-weight: 500;
}
.footer-credit a:hover { color: var(--accent); }

/* 17) modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active {
    display: flex;
    animation: modalFade 0.25s ease;
}
@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 22, 17, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal-dialog {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 44px 40px 36px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.3s ease;
}
@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-dialog h3 {
    color: var(--primary-dark);
    margin-bottom: 18px;
    font-size: 1.4rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}
.modal-dialog p {
    margin-bottom: 14px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-soft);
}
.modal-dialog strong { color: var(--primary-dark); }
.modal-close {
    position: absolute;
    top: 14px; right: 18px;
    width: 32px; height: 32px;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-mute);
    cursor: pointer;
    transition: color var(--transition);
}
.modal-close:hover { color: var(--primary); }

/* 18) whatsapp float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px; height: 58px;
    background: var(--whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform var(--transition);
    animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* 19) language switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
}
.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition);
}
.lang-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}
.lang-trigger::after {
    content: '▾';
    font-size: 0.7rem;
    opacity: 0.7;
}
.lang-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 200;
}
.lang-switcher.open .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 9px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text);
    text-align: left;
    transition: background var(--transition);
}
.lang-option:hover { background: var(--bg-soft); }
.lang-option.active {
    background: rgba(201, 169, 97, 0.1);
    color: var(--primary);
    font-weight: 600;
}
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-name { flex: 1; }

/* 20) reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   21) RESPONSIVE — single source of truth
   980 → tablet/mobile nav drawer
   900 → grids collapse to 1 col
   720 → small tablet / large phone
   480 → phone
   ============================================================ */

@media (max-width: 980px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 86%;
        max-width: 340px;
        height: 100dvh;
        background: #fff;
        padding: 80px 28px 32px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 110;
    }
    .nav.active { transform: translateX(0); }

    .nav ul {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }
    .nav a {
        font-size: 1.05rem;
        padding: 8px 0;
        display: block;
    }

    .menu-toggle { display: flex; }
    .header-cta { display: none; }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-content { max-width: 100%; }
    .hero-visual {
        max-width: 380px;
        margin: 0 auto;
        order: -1;
    }
    .lead { max-width: none; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-image-frame {
        max-width: 380px;
        margin: 0 auto;
    }

    .doctor-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .doctor-image-frame {
        max-width: 360px;
        margin: 0 auto;
    }
    .cred {
        grid-template-columns: 1fr;
        gap: 4px;
    }

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

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 720px) {
    .container { padding: 0 18px; }
    .section { padding: 60px 0; }
    .section-head { margin-bottom: 40px; }

    .topbar { font-size: 0.76rem; padding: 8px 0; }
    .topbar-inner {
        flex-wrap: nowrap;
        gap: 10px;
    }
    .topbar-info { gap: 10px; min-width: 0; }
    .topbar-address,
    .topbar-hours,
    .topbar-divider { display: none; }
    .topbar-info a {
        white-space: nowrap;
        font-size: 0.76rem;
    }

    .header-inner {
        padding: 10px 18px;
        gap: 14px;
    }
    .logo-img { height: 64px; }

    .hero-inner { padding: 48px 18px 28px; }
    .hero h1 { margin-bottom: 18px; }
    .lead { font-size: 1rem; margin-bottom: 28px; }
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 32px;
    }
    .hero-cta .btn { width: 100%; }
    .hero-features { gap: 10px; padding-top: 24px; }
    .hero-feature { width: 100%; justify-content: flex-start; }
    .hero-visual { max-width: 280px; }
    .hero-scroll { display: none; }

    .trust { padding: 50px 0; }
    .trust-grid { grid-template-columns: 1fr; gap: 28px; }

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

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 180px);
    }
    .gallery-1 { grid-column: 1 / 3; }
    .gallery-5 { grid-column: auto; }

    .contact-map,
    .contact-map iframe { min-height: 320px; }
    .contact-map iframe { height: 320px; }

    .cta-banner { padding: 50px 0; }
    .cta-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer { padding: 50px 0 0; }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        text-align: left;
    }
    .footer-logo {
        margin-left: 0;
        margin-right: auto;
    }
    .footer-col p { max-width: none; }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .footer-links { justify-content: flex-start; }

    .modal { padding: 16px; }
    .modal-dialog { padding: 36px 24px 24px; }
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px; height: 52px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .section { padding: 50px 0; }

    .topbar-info a { font-size: 0.72rem; }
    .topbar-info a svg { width: 12px; height: 12px; }

    .header-inner { padding: 8px 14px; }
    .logo-img { height: 56px; }
    .menu-toggle { padding: 6px; }
    .menu-toggle span { width: 24px; }

    .hero-inner { padding: 36px 14px 24px; }
    .hero h1 {
        font-size: clamp(1.85rem, 9.5vw, 2.4rem);
    }
    .hero-feature { font-size: 0.8rem; padding: 9px 14px; }
    .hero-visual { max-width: 240px; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .gallery-label {
        font-size: 1.15rem;
        bottom: 14px;
        left: 16px;
    }
}

/* ============================================================
   22) RTL — Arabic support
   Use direction: rtl on body; flex containers auto-flip.
   Keep manual overrides minimal (only fix what's pinned absolutely).
   ============================================================ */

html[dir="rtl"] body {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5 {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    letter-spacing: 0;
}

html[dir="rtl"] .accent {
    font-style: normal;
}

/* eyebrow line flips to right */
html[dir="rtl"] .eyebrow {
    padding-left: 0;
    padding-right: 32px;
}
html[dir="rtl"] .eyebrow::before {
    left: auto;
    right: 0;
}
html[dir="rtl"] .section-head .eyebrow::after {
    right: auto;
    left: -28px;
}

/* contact card border accent flips */
html[dir="rtl"] .contact-card {
    border-left: 1px solid var(--border);
    border-right: 3px solid var(--accent);
}
html[dir="rtl"] .contact-card:hover {
    transform: translateX(-4px);
}

/* doctor credentials stripe flips */
html[dir="rtl"] .doctor-credentials {
    border-left: none;
    border-right: 3px solid var(--accent);
}

/* gallery label */
html[dir="rtl"] .gallery-label {
    left: auto;
    right: 24px;
}

/* whatsapp float left */
html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 24px;
}

/* footer h5 underline */
html[dir="rtl"] .footer h5::after {
    left: auto;
    right: 0;
}

/* lang switcher dropdown flips */
html[dir="rtl"] .lang-list {
    right: auto;
    left: 0;
}
html[dir="rtl"] .lang-option {
    text-align: right;
}

/* hero visual margin */
html[dir="rtl"] .hero-visual {
    margin-left: 0;
    margin-right: auto;
}

/* nav drawer slides in from left in RTL */
@media (max-width: 980px) {
    html[dir="rtl"] .nav {
        right: auto;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
    }
    html[dir="rtl"] .nav.active {
        transform: translateX(0);
    }
}

/* modal close stays in opposite corner */
html[dir="rtl"] .modal-close {
    right: auto;
    left: 18px;
}

/* check icon mirror */
html[dir="rtl"] .check {
    transform: scaleX(-1);
}

/* hero scroll arrow disabled in RTL phone (already hidden < 720) */

/* lock body scroll while menu open or modal open */
body.no-scroll {
    overflow: hidden;
}

@media (max-width: 720px) {
    html[dir="rtl"] .footer-inner {
        text-align: right;
    }
}
