/* 
    Rainbow Dental Multispecialty Clinic - Premium Style System
    Inspired by high-end Framer/Webflow dental templates.
*/

:root {
    /* Color Palette */
    --primary: #2563EB; /* Professional Blue */
    --primary-hover: #1D4ED8;
    --secondary: #0F172A; /* Deep Navy Text */
    --accent: #F59E0B; /* Premium Gold highlights */
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-main: #334155;
    --text-light: #64748B;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --gradient-blue: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-pad: 100px 0;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

ul {
    list-style: none;
}

/* Utilities */
.text-center { text-align: center; }
.mb-50 { margin-bottom: 50px; }
.mt-40 { margin-top: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #DBEAFE;
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid #E2E8F0;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #F8FAFC;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 18px;
}

.btn-white {
    background: white;
    color: var(--primary);
    border: none;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: var(--secondary);
}

.logo-icon {
    color: var(--primary);
    font-size: 28px;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: 120px; /* To avoid overlap with fixed header */
    padding-bottom: 60px; /* Breathing room for stats at bottom */
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 30%, rgba(255,255,255,0.2) 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin: 20px 0;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #F0F9FF;
    border-radius: 50px;
    color: #0369A1;
    font-weight: 600;
    font-size: 14px;
}

.badge-icon { color: var(--accent); }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stars { color: var(--accent); font-size: 14px; }

.stat-divider {
    width: 1px;
    height: 40px;
    background: #E2E8F0;
}

/* Trust Section */
.trust-section {
    padding: var(--section-pad);
    background: var(--bg-light);
}

.trust-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #F1F5F9;
}

.trust-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.trust-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.trust-card h3 {
    margin-bottom: 12px;
}

.trust-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Services */
.services {
    padding: var(--section-pad);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.header-desc {
    max-width: 450px;
    color: var(--text-light);
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #F1F5F9;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #EFF6FF;
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.service-card h3 {
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-features {
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.service-features i {
    color: #10B981;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
}

/* About */
.about {
    padding: var(--section-pad);
    background: var(--secondary);
    color: white;
}

.about .section-tag {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.about h2 { color: white; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content p {
    color: #94A3B8;
    margin-bottom: 20px;
}

.video-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.5);
}

.interior-video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 50px;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features {
    margin-top: 40px;
    display: grid;
    gap: 24px;
}

.about-feature {
    display: flex;
    gap: 20px;
}

.a-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.about-feature h4 { color: white; margin-bottom: 4px; }

/* Reviews */
.reviews {
    padding: var(--section-pad);
    background: #F8FAFC;
}

.reviews-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.review-stars {
    color: var(--accent);
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    font-size: 17px;
    color: var(--text-main);
    margin-bottom: 30px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.review-author h4 { font-size: 16px; margin: 0; }
.review-author p { font-size: 13px; color: var(--text-light); margin: 0; }

.google-logo {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #4285F4;
    font-size: 20px;
    opacity: 0.2;
}

.view-all-reviews {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
}

/* Gallery */
.gallery {
    padding: var(--section-pad);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.1); }

/* Final CTA */
.final-cta {
    padding: 60px 0;
}

.cta-banner {
    background: var(--gradient-blue);
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 80px;
    color: white;
    overflow: hidden;
    position: relative;
}

.cta-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.cta-banner h2 { color: white; font-size: 48px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 40px; font-size: 20px; }

.cta-buttons {
    display: flex;
    gap: 20px;
}

.cta-image {
    flex: 0.8;
    height: 400px;
    margin-left: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.4);
}

.cta-video-box {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact */
.contact {
    padding: var(--section-pad);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.info-items { margin: 40px 0; display: grid; gap: 30px; }
.info-item { display: flex; gap: 20px; }
.i-icon {
    width: 54px;
    height: 54px;
    background: #EFF6FF;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
}

.info-item h4 { margin-bottom: 4px; }
.info-item p { color: var(--text-light); }

.social-links { display: flex; gap: 16px; }
.social-links a {
    width: 44px;
    height: 44px;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 18px;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.map-container {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #E2E8F0;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { color: white; margin-bottom: 20px; }
.footer-brand p { color: #94A3B8; }

.footer-nav h4, .footer-services h4 { margin-bottom: 24px; color: white; font-size: 18px; }
.footer-nav ul li, .footer-services ul li { margin-bottom: 12px; }
.footer-nav a, .footer-services a { color: #94A3B8; }
.footer-nav a:hover, .footer-services a:hover { color: white; }

.status-online {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: #10B981;
    font-size: 14px;
    margin-bottom: 20px;
}

.dot { width: 8px; height: 8px; background: #10B981; border-radius: 50%; display: block; }

.btn-whatsapp-footer {
    background: #25D366;
    color: white;
    width: 100%;
    justify-content: center;
}

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748B;
}

.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #64748B; }

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
}

.floating-whatsapp .tooltip {
    position: absolute;
    right: 80px;
    background: white;
    color: var(--secondary);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-whatsapp:hover .tooltip { opacity: 1; transform: translateX(0); }

/* Mobile Sidebar & Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background: var(--secondary);
    border-radius: 10px;
    transition: 0.3s;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 2000;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active { right: 0; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.close-sidebar {
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-link {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #F1F5F9;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #F0FDF4;
    color: #16A34A;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 700;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    padding: 40px;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-links {
        gap: 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav-cta {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 1080px) {
    .nav-links { display: none !important; }
    .mobile-menu-toggle { display: flex !important; }

    .grid-3, .grid-4, .reviews-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-banner {
        flex-direction: column;
        padding: 60px 40px;
        text-align: center;
    }
    
    .mobile-sidebar {
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .sidebar-links {
        margin-bottom: 20px;
    }

    .sidebar-links li {
        margin-bottom: 12px;
    }

    .sidebar-footer {
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .grid-3, .grid-4, .reviews-wrapper, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-auto-rows: 200px;
    }
    
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
        height: auto;
        padding-bottom: 40px;
        align-items: flex-start;
        text-align: left;
    }

    .hero-content {
        padding-top: 20px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .cta-banner h2 { font-size: 32px; }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .sidebar-links .btn {
        padding: 10px 16px;
        font-size: 15px;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }

    .sidebar-footer {
        padding-bottom: 30px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
