/* ======== Remedicina Core — Full Design System ======== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --primary: #9BCFB8;
    --primary-dark: #7DBA9D;
    --secondary: #F4D3D4;
    --accent: #E5B2B3;
    --text-main: #2C2E33;
    --text-muted: #6B7280;
    --bg-main: #FCFCFC;
    --bg-glass: rgba(255, 255, 255, 0.65);
    --border-glass: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(155, 207, 184, 0.15);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s ease;
    --radius-xl: 30px; --radius-lg: 24px; --radius-md: 16px; --radius-sm: 8px; --radius-pill: 50px;
}

.rmd-wrapper { font-family: var(--font-body); color: var(--text-main); box-sizing: border-box; max-width: 100%; }
.rmd-wrapper *, .rmd-wrapper *::before, .rmd-wrapper *::after { box-sizing: border-box; }
.rmd-wrapper h1,.rmd-wrapper h2,.rmd-wrapper h3,.rmd-wrapper h4{font-family:var(--font-heading);font-weight:600;line-height:1.2;color:var(--text-main);}
.rmd-wrapper a { text-decoration: none; color: inherit; }
.rmd-wrapper img { max-width: 100%; height: auto; }

/* Buttons */
.rmd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 32px; font-family: var(--font-body); font-weight: 500; font-size: 15px;
    letter-spacing: 0.5px; border-radius: var(--radius-pill); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer; border: none; text-decoration: none !important;
}
.rmd-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(155,207,184,0.3); }
.rmd-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(155,207,184,0.45); background: var(--primary-dark); color:#fff; }
.rmd-btn-secondary { background: #fff; color: var(--text-main); box-shadow: var(--shadow-sm); }
.rmd-btn-secondary:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Glass panel */
.rmd-glass {
    background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}

/* Reveal animation */
.rmd-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.rmd-reveal.rmd-visible { opacity: 1; transform: translateY(0); }

/* ===== HEADER (Fixed Floating Navbar) ===== */
.rmd-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: min(1200px, calc(100% - 20px));
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.08) 100%);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.5);
}
.rmd-header > * { min-width: 0; flex-shrink: 1; }
.rmd-header-spacer { height: 70px; }

.rmd-header-logo {
    font-family: var(--font-heading); font-size: 24px; font-weight: 600;
    color: var(--primary-dark); display: flex; align-items: center; gap: 12px;
    flex-shrink: 0; white-space: nowrap;
}
.rmd-logo-img {
    height: 44px; width: 44px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.rmd-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.rmd-logo-main {
    font-family: var(--font-body); font-size: 16px; font-weight: 700;
    color: var(--text-main); letter-spacing: 1px; text-transform: uppercase;
}
.rmd-logo-sub {
    font-family: var(--font-body); font-size: 10px; font-weight: 500;
    color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase;
}

.rmd-nav-links { display: flex; gap: 30px; }
.rmd-nav-links a {
    font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px;
    transition: color var(--transition);
}
.rmd-nav-links a:hover { color: var(--primary); }

.rmd-header-cta { flex-shrink: 0; }
.rmd-header-cta .rmd-header-cta-full { display: inline; }
.rmd-header-cta .rmd-header-cta-short { display: none; }

@media (max-width: 1024px) {
    .rmd-header { width: 95%; padding: 12px 20px; top: 12px; }
    .rmd-nav-links { gap: 20px; }
    .rmd-nav-links a { font-size: 13px; letter-spacing: 0.5px; }
    .rmd-header-spacer { height: 70px; }
}

@media (max-width: 768px) {
    .rmd-header { width: calc(100% - 16px); padding: 10px 14px; top: 8px; border-radius: 16px; gap: 10px; }
    .rmd-header-logo { font-size: 18px; gap: 6px; }
    .rmd-logo-img { height: 32px; width: 32px; }
    .rmd-logo-main { font-size: 13px; }
    .rmd-logo-sub { font-size: 8px; letter-spacing: 1px; }
    .rmd-nav-links { display: none; }
    .rmd-header-cta { padding: 8px 14px; font-size: 12px; gap: 6px; }
    .rmd-header-cta .rmd-header-cta-full { display: none; }
    .rmd-header-cta .rmd-header-cta-short { display: inline; }
    .rmd-header-spacer { height: 60px; }
}

/* ===== LANGUAGE SWITCHER ===== */
.rmd-lang-switcher { display: flex; align-items: center; }
.rmd-lang-list { display: flex; align-items: center; gap: 6px; }
.rmd-lang-list .lang-item {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none; color: var(--text-main);
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    transition: all 0.3s ease;
}
.rmd-lang-list .lang-item:hover,
.rmd-lang-list .lang-item.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.rmd-lang-list .lang-item img {
    width: 18px; height: 14px; object-fit: cover; border-radius: 2px;
    display: inline-block;
}
.rmd-lang-item {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none; color: var(--text-main);
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    transition: all 0.3s ease;
}
.rmd-lang-item:hover,
.rmd-lang-item.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.rmd-lang-flag {
    width: 18px; height: 14px; display: inline-block; border-radius: 2px;
    background-size: cover; background-position: center;
}
.rmd-flag-es { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 14"><rect fill="%23AA151B" width="18" height="3.5"/><rect fill="%23F1BF00" y="3.5" width="18" height="7"/><rect fill="%23AA151B" y="10.5" width="18" height="3.5"/></svg>'); }
.rmd-flag-en { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 14"><rect fill="%23012469" width="18" height="14"/><path fill="%23fff" d="M0 0h18v1H0zm0 2h18v1H0zm0 2h18v1H0zm0 2h18v1H0zm0 2h18v1H0zm0 2h18v1H0z"/><path fill="%23fff" d="M0 0h8v7H0z"/><path fill="%23C8102E" d="M0 0h8v7H0z"/><path fill="%23fff" d="M3 0h2v7H3z"/><path fill="%23fff" d="M0 2.5h8v2H0z"/><path fill="%23C8102E" d="M3.5 0h1v7h-1z"/><path fill="%23C8102E" d="M0 3h8v1H0z"/></svg>'); }

@media (max-width: 768px) {
    .rmd-lang-list .lang-item,
    .rmd-lang-item { padding: 4px 8px; font-size: 11px; }
    .rmd-lang-list .lang-item img,
    .rmd-lang-flag { width: 16px; height: 12px; }
}

/* ===== HERO ===== */
.rmd-hero {
    position: relative; min-height: 500px; min-height: 80dvh; display: flex; align-items: center; justify-content: center;
    overflow: hidden; max-width: 100%; border-radius: var(--radius-xl); padding: 60px 20px; background: #f0f6f3;
}
.rmd-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.rmd-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom right, rgba(255,255,255,0.6), rgba(246,198,234,0.15)); z-index: 1; }
.rmd-hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; width: 100%; padding: 0 20px; }
.rmd-hero-content h1 { font-size: clamp(36px, 5vw, 64px); color: var(--text-main); margin-bottom: 20px; }
.rmd-hero-content .rmd-hero-sub { font-size: clamp(16px, 2vw, 20px); color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.rmd-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; width: 100%; }

/* Rotating Text */
.rmd-rotating-wrap { display: inline-block; min-width: 0.5em; vertical-align: baseline; }
.rmd-rotating-text { display: inline-block; color: var(--primary); will-change: transform, opacity; }
.rmd-rotating-text i { font-style: italic; }

@keyframes rmd-fade { 0%{opacity:1;} 45%{opacity:0;} 55%{opacity:0;} 100%{opacity:1;} }
@keyframes rmd-slide-up { 0%{opacity:1;transform:translateY(0);} 40%{opacity:0;transform:translateY(-18px);} 41%{opacity:0;transform:translateY(18px);} 100%{opacity:1;transform:translateY(0);} }
@keyframes rmd-slide-down { 0%{opacity:1;transform:translateY(0);} 40%{opacity:0;transform:translateY(18px);} 41%{opacity:0;transform:translateY(-18px);} 100%{opacity:1;transform:translateY(0);} }
@keyframes rmd-scale { 0%{opacity:1;transform:scale(1);} 40%{opacity:0;transform:scale(0.7);} 41%{opacity:0;transform:scale(1.3);} 100%{opacity:1;transform:scale(1);} }
@keyframes rmd-bounce { 0%{opacity:1;transform:translateY(0);} 30%{opacity:0;transform:translateY(-22px);} 31%{opacity:0;transform:translateY(22px);} 60%{transform:translateY(-8px);} 75%{transform:translateY(4px);} 90%{transform:translateY(-2px);} 100%{opacity:1;transform:translateY(0);} }

.rmd-rotating-text.anim-fade { animation: rmd-fade 0.8s ease-in-out; }
.rmd-rotating-text.anim-slide-up.dir-normal { animation: rmd-slide-up 0.8s cubic-bezier(0.4,0,0.2,1); }
.rmd-rotating-text.anim-slide-up.dir-reverse { animation: rmd-slide-down 0.8s cubic-bezier(0.4,0,0.2,1); }
.rmd-rotating-text.anim-slide-down.dir-normal { animation: rmd-slide-down 0.8s cubic-bezier(0.4,0,0.2,1); }
.rmd-rotating-text.anim-slide-down.dir-reverse { animation: rmd-slide-up 0.8s cubic-bezier(0.4,0,0.2,1); }
.rmd-rotating-text.anim-scale { animation: rmd-scale 0.7s cubic-bezier(0.34,1.56,0.64,1); }
.rmd-rotating-text.anim-bounce { animation: rmd-bounce 0.9s cubic-bezier(0.34,1.56,0.64,1); }

/* Floating Badges (Desktop only) */
.rmd-floating-badge {
    position: absolute; padding: 15px 25px; display: flex; align-items: center; gap: 15px;
    animation: rmd-float-drift 6s ease-in-out infinite; z-index: 3; text-decoration: none; color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rmd-floating-badge:hover { box-shadow: var(--shadow-lg); animation-play-state: paused; }
@keyframes rmd-float-drift { 0%{transform:translateY(0);} 50%{transform:translateY(-15px);} 100%{transform:translateY(0);} }

.rmd-fb-1 { top: 25%; left: 3%; animation-delay: 0s; }
.rmd-fb-2 { bottom: 18%; right: 3%; animation-delay: 3s; }
.rmd-fb-3 { top: 28%; right: 5%; animation-delay: 1.5s; }
.rmd-fb-4 { bottom: 25%; left: 5%; animation-delay: 4.5s; }
.rmd-fb-5 { top: 50%; left: 1%; animation-delay: 2s; }
.rmd-fb-6 { top: 55%; right: 2%; animation-delay: 5s; }

.rmd-fb-icon {
    width: 45px; height: 45px; background: var(--secondary); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.rmd-fb-text strong { font-size: 14px; } .rmd-fb-text small { font-size: 12px; color: var(--text-muted); }

/* Trust Bar (Desktop) */
.rmd-trust-bar {
    display: none; justify-content: center; align-items: center; flex-wrap: wrap;
    gap: 12px 16px; margin: 44px auto 0; max-width: 900px; width: 100%;
}
.rmd-trust-item { display: flex; align-items: center; gap: 8px; padding: 0; font-size: 13px; }
.rmd-trust-icon { width: auto; height: auto; font-size: 15px; flex-shrink: 0; }
.rmd-trust-text { display: flex; flex-direction: column; line-height: 1.25; }
.rmd-trust-text strong { font-weight: 500; color: var(--text-main); }
.rmd-trust-text small { font-size: 11px; color: var(--text-muted); }

@media (min-width: 1025px) {
    .rmd-trust-bar { display: flex; }
    .rmd-floating-badge { display: none; }
}

/* Mobile Chat Badges */
.rmd-mobile-chat { display: none; margin-top: 30px; width: 100%; position: relative; min-height: 120px; }
.rmd-chat-group { display: none; width: 100%; flex-direction: column; gap: 12px; position: absolute; top: 0; left: 0; }
.rmd-chat-group.active { display: flex; animation: rmd-fadeOutGroup 0.5s ease 4.5s forwards; }
@keyframes rmd-fadeOutGroup { to { opacity: 0; } }
.rmd-chat-bubble {
    display: flex; align-items: center; gap: 12px; padding: 10px 16px; text-decoration: none; color: inherit;
    max-width: 90%; background: rgba(255,255,255,0.85); border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform 0.3s;
}
.rmd-chat-bubble.left { align-self: flex-start; border-radius: 20px 20px 20px 4px; animation: rmd-popIn 0.6s cubic-bezier(0.175,0.885,0.32,1.275) 0.2s backwards; }
.rmd-chat-bubble.right { align-self: flex-end; border-radius: 20px 20px 4px 20px; flex-direction: row-reverse; text-align: right; animation: rmd-popIn 0.6s cubic-bezier(0.175,0.885,0.32,1.275) 1.2s backwards; }
.rmd-chat-bubble strong { font-size: 14px; } .rmd-chat-bubble small { font-size: 12px; color: var(--text-muted); display: block; }
@keyframes rmd-popIn { 0%{opacity:0;transform:scale(0.8) translateY(20px);} 100%{opacity:1;transform:scale(1) translateY(0);} }

/* ===== MARQUEE ===== */
.rmd-marquee-section { padding: 24px 0; background: var(--text-main); color: #fff; overflow: hidden; display: flex; }
.rmd-marquee-track { display: flex; gap: 60px; padding: 0 30px; white-space: nowrap; animation: rmd-scroll-left 30s linear infinite; }
.rmd-marquee-item { font-family: var(--font-heading); font-size: clamp(16px,2vw,24px); font-style: italic; display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.rmd-marquee-item i { color: var(--primary); font-size: 16px; }
@keyframes rmd-scroll-left { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

/* ===== SECTION TITLE ===== */
.rmd-section-title { text-align: center; margin-bottom: clamp(32px,5vw,60px); }
.rmd-section-title .rmd-eyebrow { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-dark); font-weight: 600; display: block; margin-bottom: 10px; }
.rmd-section-title h2 { font-size: clamp(28px,4vw,42px); }

/* ===== OFFERS ===== */
.rmd-offers-section { padding: 80px 20px; background: #fafafa; }
.rmd-offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.rmd-offer-card { overflow: hidden; cursor: pointer; transition: transform 0.3s ease; }
.rmd-offer-card:hover { transform: translateY(-6px); }
.rmd-offer-media { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.rmd-offer-content { padding: 24px; }
.rmd-offer-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: var(--accent); color: #fff; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
.rmd-offer-title { font-size: 22px; margin-bottom: 10px; }
.rmd-offer-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.rmd-offer-footer { display: flex; align-items: center; gap: 14px; }
.rmd-offer-price { font-size: 28px; font-weight: 700; color: var(--primary-dark); }
.rmd-offer-orig { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.rmd-offer-expiry { font-size: 13px; color: #e74c3c; margin-left: auto; }

/* ===== CATEGORY TABS ===== */
.rmd-category-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: clamp(30px,4vw,50px); flex-wrap: wrap; }
.rmd-tab-btn {
    padding: 12px 24px; background: #fff; border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 14px; font-weight: 600;
    color: var(--text-muted); cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04); letter-spacing: 0.3px; flex-shrink: 0;
}
.rmd-tab-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.rmd-tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 16px rgba(155,207,184,0.3); }

/* Mobile tabs: horizontal scroll */
@media (max-width: 768px) {
    .rmd-category-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) transparent;
        padding: 4px 4px 12px;
        gap: 10px;
        margin-bottom: 28px;
    }
    .rmd-category-tabs::-webkit-scrollbar {
        height: 6px;
    }
    .rmd-category-tabs::-webkit-scrollbar-track {
        background: transparent;
        margin: 0 4px;
    }
    .rmd-category-tabs::-webkit-scrollbar-thumb {
        background-color: var(--primary);
        border-radius: 10px;
    }
    .rmd-tab-btn {
        padding: 8px 16px; font-size: 12px; font-weight: 600;
        border-radius: 8px; white-space: nowrap; letter-spacing: 0.2px;
    }
}

/* ===== TREATMENTS ===== */
.rmd-treatments-section { padding: 80px 20px; background: #fff; }
.rmd-treatments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.rmd-treatment-card { overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.rmd-treatment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.rmd-treatment-card .rmd-tc-img { width: 100%; height: 200px; object-fit: cover; }
.rmd-treatment-card .rmd-tc-content { padding: 22px; }
.rmd-treatment-card .rmd-tc-content h3 { font-size: 20px; margin-bottom: 8px; }
.rmd-treatment-card .rmd-tc-content p { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
.rmd-treatment-card .rmd-tc-footer { display: flex; align-items: center; justify-content: space-between; }
.rmd-treatment-card .rmd-tc-price { font-size: 18px; font-weight: 600; color: var(--primary-dark); }
.rmd-treatment-card .rmd-tc-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; border-radius: 50%; transition: all 0.3s ease; font-size: 14px; }
.rmd-treatment-card .rmd-tc-btn:hover { transform: scale(1.1); background: var(--primary-dark); }
.rmd-view-all { text-align: center; margin-top: 40px; }

/* ===== BEFORE & AFTER ===== */
.rmd-ba-section { padding: 80px 20px; }
.rmd-ba-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    user-select: none;
    cursor: ew-resize;
}

/* Both images fill container identically */
.rmd-ba-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Before — desaturated */
.rmd-ba-before {
    filter: grayscale(90%) contrast(0.85) brightness(0.65) saturate(0.3);
    -webkit-filter: grayscale(90%) contrast(0.85) brightness(0.65) saturate(0.3);
}

/* After — full color, clipped by --split */
.rmd-ba-after {
    filter: none;
    -webkit-filter: none;
    clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
    z-index: 2;
}

/* Vertical divider */
.rmd-ba-divider {
    position: absolute;
    top: 0;
    left: var(--split, 50%);
    width: 3px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
}

/* Labels */
.rmd-ba-label {
    position: absolute;
    top: 20px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 3;
    pointer-events: none;
}
.rmd-ba-label-before { left: 20px; background: rgba(0,0,0,0.6); color: #fff; }
.rmd-ba-label-after { right: 20px; background: var(--primary); color: #fff; }

/* Slider — invisible, captures input */
.rmd-ba-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    -webkit-appearance: none; appearance: none;
    background: transparent;
    border: none; outline: none;
    cursor: ew-resize;
    z-index: 10;
    margin: 0;
    opacity: 0;
}
.rmd-ba-slider::-webkit-slider-runnable-track {
    width: 100%; height: 100%;
    background: transparent;
    border: none;
}
.rmd-ba-slider::-moz-range-track {
    width: 100%; height: 100%;
    background: transparent;
    border: none;
}
/* Hide native thumb completely */
.rmd-ba-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 1px; height: 1px;
    background: transparent;
    border: none; box-shadow: none;
}
.rmd-ba-slider::-moz-range-thumb {
    width: 1px; height: 1px;
    background: transparent;
    border: none; box-shadow: none;
}

/* Visible handle */
.rmd-ba-handle {
    position: absolute;
    top: 50%;
    left: var(--split, 50%);
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 5;
    pointer-events: none;
    color: var(--text-main);
    font-size: 16px;
    transition: left 0.05s linear;
}

/* ===== DOCTOR ===== */
.rmd-doctor-section { padding: 80px 20px; }
.rmd-doctor-card { display: flex; max-width: 1000px; margin: 0 auto; overflow: hidden; }
.rmd-doctor-img-wrap { flex: 0 0 400px; min-height: 450px; position: relative; }
.rmd-doctor-img-wrap img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.rmd-doctor-badge { position: absolute; bottom: 20px; left: 20px; padding: 8px 16px; border-radius: var(--radius-pill); display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.rmd-doctor-info { flex: 1; padding: 40px; }
.rmd-doctor-info h2 { font-size: 32px; margin-bottom: 6px; }
.rmd-doctor-info .rmd-doc-specialty { font-size: 15px; color: var(--primary-dark); font-weight: 500; display: block; margin-bottom: 16px; }
.rmd-doctor-info .rmd-doc-bio { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.rmd-doc-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.rmd-doc-contact-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.rmd-doc-contact-item i { color: var(--primary); font-size: 18px; }
.rmd-doc-contact-item span { color: var(--text-muted); font-size: 12px; }
.rmd-doc-contact-item strong { font-size: 14px; }
.rmd-doc-social { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.rmd-doc-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f5f5f5; color: var(--text-muted); transition: all 0.3s ease; }
.rmd-doc-social a:hover { background: var(--primary); color: #fff; }

/* ===== LOCATION ===== */
.rmd-location-section { padding: 80px 20px; background: #fafafa; }
.rmd-location-container { max-width: 1000px; margin: 0 auto; }
.rmd-map-wrapper { border-radius: var(--radius-xl); overflow: hidden; height: 350px; }
.rmd-map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* ===== TESTIMONIALS ===== */
.rmd-testimonials-section { padding: 80px 20px; }
.rmd-testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.rmd-testi-card { padding: 40px; position: relative; }
.rmd-testi-card:hover { transform: translateY(-5px); }
.rmd-quote-icon { position: absolute; top: 30px; right: 30px; font-size: 48px; color: var(--secondary); opacity: 0.3; }
.rmd-testi-text { font-size: clamp(15px,1.5vw,18px); color: var(--text-main); margin-bottom: 30px; position: relative; z-index: 2; }
.rmd-testi-author { display: flex; align-items: center; gap: 14px; }
.rmd-testi-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.rmd-testi-author h4 { font-size: 15px; margin: 0; }
.rmd-testi-author span { font-size: 13px; color: var(--text-muted); }

/* Glow button */
.rmd-btn-glow {
    display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px;
    background: var(--primary); color: #fff; border: none; border-radius: var(--radius-pill);
    font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: 0.5px;
    cursor: pointer; box-shadow: 0 8px 30px rgba(155,207,184,0.4);
    transition: all 0.4s ease;
}
.rmd-btn-glow:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(155,207,184,0.5); }

/* ===== MODAL ===== */
.rmd-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.rmd-modal-overlay.active { display: flex; }
.rmd-modal-content { max-width: 560px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; }
.rmd-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(0,0,0,0.1); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; font-size: 16px; transition: background 0.3s; }
.rmd-modal-close:hover { background: rgba(0,0,0,0.2); }
.rmd-modal-header { padding: 32px 28px 16px; }
.rmd-modal-header h3 { font-size: 24px; margin-bottom: 6px; }
.rmd-modal-header p { font-size: 14px; color: var(--text-muted); }

/* ===== FORM ===== */
.rmd-form { padding: 0 28px 28px; }
.rmd-form-group { margin-bottom: 18px; }
.rmd-form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-main); margin-bottom: 6px; }
.rmd-form-group input, .rmd-form-group textarea, .rmd-form-group select {
    width: 100%; padding: 12px 16px; border: 1px solid #e2e2e2; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 15px; transition: border-color 0.3s;
    background: #fafafa;
}
.rmd-form-group input:focus, .rmd-form-group textarea:focus, .rmd-form-group select:focus { outline: none; border-color: var(--primary); background: #fff; }
.rmd-star-rating { display: flex; gap: 6px; direction: rtl; }
.rmd-star-rating input { display: none; }
.rmd-star-rating label { cursor: pointer; font-size: 28px; color: #ddd; transition: color 0.2s; }
.rmd-star-rating input:checked ~ label, .rmd-star-rating label:hover, .rmd-star-rating label:hover ~ label { color: #f1c40f; }
.rmd-form-success { display: none; color: var(--primary-dark); text-align: center; padding: 16px; font-size: 15px; font-weight: 500; }

/* ===== FOOTER ===== */
.rmd-footer { padding: 80px 20px 40px; background: var(--text-main); color: #fff; text-align: center; }
.rmd-footer-content { max-width: 600px; margin: 0 auto; }
.rmd-footer-content h2 { color: #fff; font-size: 36px; margin-bottom: 16px; }
.rmd-footer-content p { color: rgba(255,255,255,0.7); font-size: 16px; margin-bottom: 30px; }
.rmd-footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: rgba(255,255,255,0.5); }

/* ===== RESPONSIVE ===== */

/* Desktop semi-wide */
@media (max-width: 1200px) {
    .rmd-fb-3,.rmd-fb-4,.rmd-fb-5,.rmd-fb-6 { display: none; }
    .rmd-hero-content { max-width: 700px; }
    .rmd-treatments-grid, .rmd-offers-grid, .rmd-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .rmd-ba-img { height: 400px; }
}

/* Tablet */
@media (max-width: 1024px) {
    .rmd-floating-badge { display: none; }
    .rmd-trust-bar { display: flex; gap: 8px 12px; margin-top: 28px; }
    .rmd-mobile-chat { display: none; }
    .rmd-header { top: 10px; padding: 10px 20px; }
    .rmd-header-spacer { height: 50px; }
    .rmd-hero { min-height: auto; padding: 80px 16px 40px; }
    .rmd-hero-content { max-width: 100%; }
    .rmd-hero-content h1 { font-size: clamp(26px, 5vw, 44px); margin-bottom: 12px; }
    .rmd-hero-content .rmd-hero-sub { font-size: 15px; margin-bottom: 24px; }
    .rmd-hero-actions { gap: 12px; }
    .rmd-hero-actions .rmd-btn { padding: 12px 22px; font-size: 14px; }
    .rmd-doctor-card { flex-direction: column; }
    .rmd-doctor-img-wrap { flex: none; height: 280px; min-height: auto; }
    .rmd-doctor-info { padding: 20px; }
    .rmd-doc-contact { grid-template-columns: 1fr; }
    .rmd-treatments-grid, .rmd-offers-grid, .rmd-testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .rmd-trust-item { font-size: 12px; }
    .rmd-trust-icon { font-size: 13px; }
    .rmd-section-title { margin-bottom: 30px; }
    .rmd-treatments-section, .rmd-offers-section, .rmd-ba-section, .rmd-doctor-section, .rmd-location-section, .rmd-testimonials-section { padding: 50px 16px; }
    .rmd-footer { padding: 50px 16px 30px; }
    .rmd-footer-content h2 { font-size: 28px; }
    .rmd-ba-img { height: 380px; }
}

/* Mobile */
@media (max-width: 768px) {
    .rmd-header { top: 8px; padding: 10px 14px; border-radius: 16px; gap: 10px; }
    .rmd-header-spacer { height: 44px; }
    .rmd-hero { min-height: auto; padding: 70px 12px 30px; max-width: 100%; overflow: hidden; }
    .rmd-hero-content h1 { font-size: clamp(22px, 6.5vw, 32px); line-height: 1.2; margin-bottom: 10px; }
    .rmd-hero-content .rmd-hero-sub { font-size: 14px; margin-bottom: 20px; line-height: 1.5; }
    .rmd-hero-actions { flex-direction: column; align-items: center; gap: 10px; }
    .rmd-hero-actions .rmd-btn { min-width: 240px; max-width: 90%; justify-content: center; padding: 12px 20px; font-size: 14px; }
    .rmd-trust-bar { margin-top: 22px; gap: 6px 8px; }
    .rmd-trust-item { font-size: 11px; gap: 6px; }
    .rmd-trust-icon { font-size: 12px; }
    .rmd-mobile-chat { display: none; }
    .rmd-ba-img { height: 260px; }
    .rmd-treatments-grid, .rmd-offers-grid, .rmd-testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
    .rmd-treatments-section, .rmd-offers-section, .rmd-ba-section, .rmd-doctor-section, .rmd-location-section, .rmd-testimonials-section { padding: 40px 12px; }
    .rmd-section-title { margin-bottom: 24px; }
    .rmd-section-title h2 { font-size: 24px; }
    .rmd-section-title .rmd-eyebrow { font-size: 12px; letter-spacing: 1.5px; margin-bottom: 6px; }
    .rmd-footer { padding: 40px 12px 24px; }
    .rmd-footer-content h2 { font-size: 24px; margin-bottom: 10px; }
    .rmd-footer-content p { font-size: 14px; margin-bottom: 20px; }
    .rmd-footer-bottom { margin-top: 30px; }
    .rmd-marquee-item { font-size: 13px; gap: 8px; }
    .rmd-marquee-track { gap: 25px; animation-duration: 18s; }
    .rmd-marquee-section { padding: 16px 0; }
    .rmd-doctor-img-wrap { height: 220px; }
    .rmd-doctor-info h2 { font-size: 22px; }
    .rmd-doc-bio { font-size: 14px; }
    .rmd-map-wrapper { height: 250px; }
    .rmd-offer-media { height: 170px; }
    .rmd-testi-card { padding: 24px; }
}

/* ===== WOOCOMMERCE PRODUCTS ===== */
.rmd-wc-products-section { padding: 80px 20px; background: #fff; }
.rmd-wc-products-grid { display: grid; }
.rmd-wc-product-card {
    background: #fff;
    border-radius: var(--card-radius, 24px);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.rmd-wc-product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.rmd-wc-product-link { text-decoration: none; color: inherit; display: block; }
.rmd-wc-product-image-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.rmd-wc-product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.rmd-wc-product-card:hover .rmd-wc-product-image-wrap img { transform: scale(1.05); }
.rmd-wc-sale-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}
.rmd-wc-product-content { padding: 24px; }
.rmd-wc-product-content h3 { font-size: 20px; margin-bottom: 8px; font-family: var(--font-heading); }
.rmd-wc-product-price { font-size: 18px; font-weight: 600; color: var(--primary-dark); margin-bottom: 16px; }
.rmd-wc-product-price del { font-size: 14px; color: var(--text-muted); margin-right: 8px; }
.rmd-wc-product-price ins { text-decoration: none; }
.rmd-wc-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
    transition: gap 0.3s ease;
}
.rmd-wc-product-card:hover .rmd-wc-product-btn { gap: 12px; }

/* ===== WOOCOMMERCE REVIEWS ===== */
.rmd-wc-reviews-section { padding: 80px 20px; background: var(--bg-main); }
.rmd-wc-reviews-grid { display: grid; }
.rmd-wc-review-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    position: relative;
}
.rmd-wc-review-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.rmd-wc-review-product-img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.rmd-wc-review-product-img img { width: 100%; height: 100%; object-fit: cover; }
.rmd-wc-review-meta { flex: 1; min-width: 0; }
.rmd-wc-review-author {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}
.rmd-wc-verified-badge { color: var(--primary); font-size: 14px; }
.rmd-wc-review-product-name {
    font-size: 12px;
    color: var(--primary-dark);
    margin-top: 2px;
    display: block;
    text-decoration: none;
}
.rmd-wc-review-product-name:hover { text-decoration: underline; }
.rmd-wc-review-stars { display: flex; gap: 3px; margin-top: 6px; }
.rmd-wc-review-stars i { font-size: 14px; }
.rmd-wc-review-stars i.filled { color: #f1c40f; }
.rmd-wc-review-stars i.empty { color: #e2e2e2; }
.rmd-wc-review-body { position: relative; }
.rmd-wc-review-quote {
    position: absolute;
    top: -4px;
    right: 0;
    font-size: 24px;
    color: var(--primary);
    opacity: 0.3;
}
.rmd-wc-review-body p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
    padding-right: 32px;
}

/* ===== BOOKING POPUP MODAL ===== */
.rmd-booking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.rmd-booking-overlay.active {
    display: flex;
    opacity: 1;
}
.rmd-booking-modal {
    background: var(--bg-glass, rgba(255,255,255,0.85));
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--border-glass, rgba(255,255,255,0.5));
    border-radius: var(--radius-xl, 24px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.6);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.rmd-booking-overlay.active .rmd-booking-modal {
    transform: translateY(0) scale(1);
}
.rmd-booking-modal .rmd-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.rmd-booking-modal .rmd-modal-close:hover {
    background: rgba(0,0,0,0.06);
    color: var(--text-main);
}
.rmd-booking-modal h3 {
    margin: 0 0 24px;
    font-size: 24px;
    font-family: var(--font-heading);
    color: var(--text-main);
    text-align: center;
}
.rmd-booking-form .rmd-form-group {
    margin-bottom: 16px;
}
.rmd-booking-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rmd-booking-form label .rmd-required {
    color: #e74c3c;
    margin-left: 2px;
}
.rmd-booking-form input,
.rmd-booking-form select,
.rmd-booking-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-glass, rgba(0,0,0,0.08));
    border-radius: var(--radius-md, 12px);
    background: rgba(255,255,255,0.6);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.rmd-booking-form input:focus,
.rmd-booking-form select:focus,
.rmd-booking-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(155,207,184,0.2);
    background: #fff;
}
.rmd-booking-form textarea {
    resize: vertical;
    min-height: 90px;
}
.rmd-booking-form .rmd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.rmd-booking-form .rmd-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill, 50px);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(155,207,184,0.35);
    margin-top: 8px;
}
.rmd-booking-form .rmd-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(155,207,184,0.45);
}
.rmd-booking-form .rmd-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.rmd-booking-thanks {
    text-align: center;
    padding: 20px 10px;
    display: none;
}
.rmd-booking-thanks i {
    font-size: 52px;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-block;
}
.rmd-booking-thanks h4 {
    font-size: 22px;
    margin: 0 0 10px;
    font-family: var(--font-heading);
    color: var(--text-main);
}
.rmd-booking-thanks p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {
    .rmd-booking-modal { padding: 24px; border-radius: 20px; }
    .rmd-booking-form .rmd-form-row { grid-template-columns: 1fr; }
}

/* Small mobile */
@media (max-width: 480px) {
    .rmd-hero-actions .rmd-btn { min-width: 200px; }
    .rmd-hero-content h1 { font-size: clamp(20px, 6vw, 28px); }
    .rmd-hero { padding: 60px 10px 24px; }
    .rmd-header { top: 6px; padding: 8px 10px; }
    .rmd-header-spacer { height: 38px; }
}
