/* ==========================================================================
   Active Rich Clinic - Premium Design System (Updated)
   ========================================================================== */

/* --- 1. CSS Variables (Design Tokens) --- */
:root {
    /* Color Palette - Skin & Hair Clinic Aesthetic */
    --clr-primary: #0A7065;      /* Deep Clinical Teal */
    --clr-secondary: #D8B88B;    /* Soft Warm Gold / Copper */
    --clr-secondary-hover: #C5A476;
    --clr-bg-main: #FAF9F7;      /* Warm Off-White / Cream */
    --clr-bg-alt: #FFFFFF;
    --clr-text-main: #2C3E3B;    /* Dark Teal-Gray */
    --clr-text-muted: #647B77;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Effects */
    --shadow-soft: 0 10px 30px rgba(10, 112, 101, 0.04);
    --shadow-hover: 0 20px 40px rgba(10, 112, 101, 0.12);
    --shadow-deep: 0 30px 60px rgba(10, 112, 101, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Gradients */
    --grad-premium: linear-gradient(135deg, #0A7065 0%, #06403A 100%);
    --grad-gold: linear-gradient(135deg, #D8B88B 0%, #C5A476 100%);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base Styles --- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-main);
    line-height: 1.7;
    overflow-x: hidden;
}
img {
    max-width: 100%;
    height: auto;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-text-main);
    margin-bottom: 1rem;
}
.text-primary { color: var(--clr-primary) !important; }
a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--clr-secondary); }

/* --- Header & Navigation (Glassmorphism) --- */
.premium-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-smooth);
}
.premium-header.scrolled {
    box-shadow: var(--shadow-soft);
    padding: 5px 0;
}
.header-container {
    display: flex; justify-content: space-between; align-items: center; padding: 10px 15px;
}
.brand-logo { max-height: 55px; transition: transform var(--transition-fast); }
.brand-logo:hover { transform: scale(1.05); }

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--clr-text-main) !important;
    padding: 10px 20px !important;
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 5px; left: 20px;
    width: 0; height: 2px;
    background: var(--clr-secondary);
    transition: width var(--transition-smooth);
}
.nav-link:hover::after, .nav-item.active .nav-link::after {
    width: calc(100% - 40px);
}

/* Mega Menu */
.has-megamenu:hover .megamenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.megamenu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(20px);
    width: 900px; background: #fff; padding: 30px; border-radius: 12px;
    box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden;
    transition: all var(--transition-smooth); z-index: 99;
}
.menu-title { font-size: 1.1rem; color: var(--clr-primary); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.menu-col a { display: block; color: var(--clr-text-muted); padding: 5px 0; font-size: 0.95rem; transition: var(--transition-fast); }
.menu-col a:hover { color: var(--clr-secondary); padding-left: 8px; }

/* --- Premium Buttons --- */
.btn-premium {
    display: inline-block;
    padding: 14px 35px;
    background: var(--clr-secondary);
    color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(216, 184, 139, 0.4);
    transition: all var(--transition-smooth);
    border: none; cursor: pointer; text-align: center;
    position: relative; overflow: hidden; z-index: 1;
}
.btn-premium::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--clr-primary); transition: width var(--transition-smooth); z-index: -1;
}
.btn-premium:hover::before { width: 100%; }
.btn-premium:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(10, 112, 101, 0.3); }

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: var(--clr-primary) !important;
    box-shadow: none;
}
.btn-outline::before { background: var(--clr-primary); }
.btn-outline:hover { color: #fff !important; }

/* --- Hero Slider --- */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}
.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(10,112,101,0.85), rgba(10,112,101,0.4));
}
.hero-content {
    position: absolute;
    top: 50%; left: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 700px;
    z-index: 2;
}
.hero-content h1 {
    font-size: 4.5rem;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
}
.hero-content .hero-btns {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

/* Animations for Active Slide */
.swiper-slide-active .hero-content h1,
.swiper-slide-active .hero-content p,
.swiper-slide-active .hero-content .hero-btns {
    opacity: 1; transform: translateY(0);
}

/* Custom Swiper Controls */
.swiper-button-next, .swiper-button-prev {
    color: var(--clr-secondary) !important;
    background: rgba(255,255,255,0.1);
    width: 60px !important; height: 60px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all var(--transition-fast);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--clr-secondary);
    color: #fff !important;
}

/* --- Sections, Cards & Whitespace --- */
.section-padding { padding: 140px 0; }
.section-padding-lg { padding: 180px 0; } /* Macro-whitespace */
.mb-macro { margin-bottom: 120px !important; }
.mt-macro { margin-top: 120px !important; }
.section-bg { background-color: var(--clr-bg-alt); }
.section-title { text-align: center; margin-bottom: 60px; position: relative; }
.section-title span {
    color: var(--clr-secondary); text-transform: uppercase; letter-spacing: 3px;
    font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 10px;
}
.section-title h2 { font-size: 2.8rem; color: var(--clr-primary); }

/* Premium Card */
.premium-card {
    background: #fff; border-radius: 20px; padding: 40px 30px;
    box-shadow: var(--shadow-soft); transition: all var(--transition-smooth);
    height: 100%; position: relative; overflow: hidden;
    border: 1px solid rgba(10,112,101,0.05);
}
.premium-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background: var(--clr-secondary); transform: scaleX(0); transform-origin: left;
    transition: transform var(--transition-smooth);
}
.premium-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-hover); }
.premium-card:hover::after { transform: scaleX(1); }

.premium-card .icon {
    width: 70px; height: 70px; background: rgba(216, 184, 139, 0.15);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--clr-secondary); margin: 0 auto 25px;
    transition: all var(--transition-smooth);
}
.premium-card:hover .icon {
    background: var(--clr-primary); color: #fff;
    box-shadow: 0 5px 15px rgba(10, 112, 101, 0.2);
}

/* Image Animations */
.img-reveal {
    border-radius: 20px; overflow: hidden; position: relative;
    box-shadow: var(--shadow-soft);
    transition: box-shadow var(--transition-smooth);
}
.img-reveal:hover { box-shadow: var(--shadow-hover); }

/* Premium Service Cards (Full background overlay) */
.premium-service-card {
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.premium-service-card img {
    transition: transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.premium-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-deep);
}
.premium-service-card:hover img {
    transform: scale(1.05);
}
.premium-service-card:hover .service-overlay {
    background: linear-gradient(to top, rgba(4,56,49,0.98) 0%, rgba(4,56,49,0.4) 100%) !important;
}
.premium-service-card:hover .service-desc {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.premium-service-card:hover .service-arrow span {
    color: #fff !important;
}

/* --- Forms --- */
.premium-form .form-control {
    width: 100%; padding: 16px 20px; border-radius: 12px;
    border: 2px solid transparent; background: #F3F5F4;
    font-family: var(--font-body); transition: all var(--transition-fast);
}
.premium-form .form-control:focus {
    outline: none; border-color: var(--clr-secondary); background: #fff;
    box-shadow: 0 0 0 5px rgba(216, 184, 139, 0.15);
}
.premium-form label { font-weight: 500; margin-bottom: 8px; display: block; color: var(--clr-primary); }

/* --- Footer --- */
.premium-footer {
    background: #043831; /* Even darker teal for high contrast */
    color: #A6BFBC; 
    padding-top: 100px; 
    position: relative; 
    overflow: hidden;
}

.footer-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}
.footer-shape.shape-1 {
    top: -200px;
    left: -100px;
}
.footer-shape.shape-2 {
    bottom: -150px;
    right: -100px;
}

.premium-footer .widget-title { 
    color: #fff; 
    font-size: 1.3rem; 
    margin-bottom: 25px; 
    position: relative;
    padding-bottom: 15px;
}
.premium-footer .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--clr-secondary);
}

.premium-footer a { color: #A6BFBC; transition: all var(--transition-fast); display: inline-block; }
.premium-footer a:hover { color: var(--clr-secondary); transform: translateX(5px); }

.text-light-teal { color: #A6BFBC !important; }
.text-gold { color: var(--clr-secondary) !important; }

.social-widget a {
    width: 45px; height: 45px; 
    background: rgba(255,255,255,0.05); 
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center; 
    color: #fff;
    transition: all var(--transition-smooth);
}
.social-widget a:hover { 
    background: var(--clr-secondary); 
    transform: translateY(-5px); 
    color: #fff !important;
}

.border-light { border-color: rgba(255,255,255,0.1) !important; }

/* --- Newsletter Form --- */
.newsletter-form .premium-input {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.newsletter-form .premium-input::placeholder { color: #A6BFBC; }
.newsletter-form .premium-input:focus {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
}
.newsletter-form .btn-premium {
    padding: 14px 25px;
    font-size: 0.95rem;
}

/* --- Floating Action Buttons --- */
.fab-btn {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    z-index: 999;
    box-shadow: var(--shadow-hover);
    transition: transform var(--transition-fast);
}

.fab-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.whatsapp-btn {
    right: 30px;
    background: #25D366;
}

.call-btn {
    left: 30px;
    background: var(--clr-primary);
}

/* --- Keyframes & Entrances --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* --- Mobile Sticky Bar --- */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    display: flex;
    z-index: 1050;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}
.btn-premium-mobile {
    background: var(--grad-premium);
    color: #fff !important;
    font-weight: 600;
    font-family: var(--font-heading);
}
.btn-outline-mobile {
    background: #fff;
    color: var(--clr-primary) !important;
    font-weight: 600;
    font-family: var(--font-heading);
    border-top: 1px solid #eee;
}

/* Responsive Tweaks */
@media (max-width: 991px) {
    /* Base & Body */
    body { padding-bottom: 70px; } /* Space for mobile sticky bar */
    
    /* Typography & Spacing */
    .hero-content h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .hero-content p { font-size: 1rem; margin-bottom: 25px; }
    .hero-content { left: 5%; right: 5%; width: 90%; }
    .section-title h2 { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
    .section-padding-lg { padding: 80px 0; }
    .mb-macro { margin-bottom: 60px !important; }
    .mt-macro { margin-top: 60px !important; }

    /* Navigation & Header */
    .mobile-menu-btn {
        background: transparent;
        border: 1px solid var(--clr-secondary);
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
    }
    .mobile-menu-btn .icon-bar {
        display: block; width: 22px; height: 2px;
        background-color: var(--clr-primary);
        margin: 4px 0;
    }
    .navbar-collapse {
        background: #ffffff;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 10px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    .nav-link { padding: 12px 15px !important; min-height: 44px; display: flex; align-items: center; }
    .nav-link::after { display: none; } /* Hide underline effect on mobile */
    
    .has-megamenu:hover .megamenu, .has-megamenu.open .megamenu {
        transform: none !important;
    }
    
    .megamenu { 
        position: static !important; width: 100% !important; transform: none !important; opacity: 1; visibility: visible; 
        display: none; padding: 15px 10px; box-shadow: none; background: #f9f9f9;
        margin-top: 10px;
    }
    .has-megamenu.open .megamenu { display: block; }
    .menu-col { margin-bottom: 20px; }
    .menu-col:last-child { margin-bottom: 0; }
    .menu-col a { padding: 10px 5px; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .menu-col a:last-child { border-bottom: none; }

    /* Services & Cards */
    .premium-card { padding: 30px 20px; }
    .premium-service-card { height: 400px !important; }
    
    /* Touch devices: Make overlay and text always visible or partially visible */
    .premium-service-card .service-overlay {
        background: linear-gradient(to top, rgba(4,56,49,0.98) 0%, rgba(4,56,49,0.2) 100%) !important;
    }
    .premium-service-card .service-desc {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    .premium-service-card .service-arrow span {
        color: #fff !important;
    }

    /* Footer & Widgets */
    .footer-widget { margin-bottom: 40px; text-align: center; }
    .premium-footer { padding-top: 60px; text-align: center; }
    .premium-footer .widget-title::after { left: 50%; transform: translateX(-50%); }
    .social-widget ul { justify-content: center; }
    .contact-info li { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
    .contact-info li i { margin-right: 0 !important; margin-bottom: 5px; }
}

@media (max-width: 575px) {
    .hero-content h1 { font-size: 1.8rem; }
    .btn-premium { padding: 12px 25px; width: 100%; margin-bottom: 10px; }
    .hero-btns { display: flex; flex-direction: column; }
    .hero-btns .btn-outline { margin-left: 0 !important; }
    
    /* Stats */
    .display-4 { font-size: 2.2rem; }
}
