/* ===== LA VIVE PHARMACY OPTIMIZED STYLES - 3KB ===== */
:root {
    --primary-blue: #0a4da2;
    --primary-green: #2a9d8f;
    --gradient-bg: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    --light-blue: #e3f2fd;
    --light-green: #e8f5e9;
    --dark-text: #2c3e50;
    --medium-text: #546e7a;
    --light-text: #ffffff;
    --gray-bg: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Nunito Sans', sans-serif; color: var(--dark-text); line-height: 1.6; background: var(--gray-bg); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary-blue); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--medium-text); }
.section-title { text-align: center; margin-bottom: 1rem; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--gradient-bg); border-radius: 2px; }
.section-subtitle { text-align: center; font-size: 1.1rem; margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; color: var(--medium-text); }

/* ===== WHITE BUTTON ===== */
.btn-white {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.btn-white:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    transform: translateY(-3px);
    border: 2px solid white;
}

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 32px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: var(--transition); border: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--gradient-bg); color: var(--light-text); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: transparent; color: var(--primary-blue); border: 2px solid var(--primary-blue); }
.btn-secondary:hover { background: var(--primary-blue); color: white; transform: translateY(-3px); }

/* ===== CONTACT RIBBON ===== */
.contact-ribbon { background: var(--dark-text); color: var(--light-text); padding: 10px 0; font-size: 0.9rem; position: relative; z-index: 1001; }
.contact-ribbon .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.ribbon-content { display: flex; gap: 20px; align-items: center; }
.ribbon-content span { display: flex; align-items: center; gap: 8px; }
.ribbon-cta { background: var(--primary-green); color: white; padding: 6px 18px; border-radius: 20px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.ribbon-cta:hover { background: #239185; transform: scale(1.05); }

/* ===== HEADER & NAVIGATION ===== */
.main-header { background: var(--card-bg); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; transition: var(--transition); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo-img { height: 50px; width: auto; transition: var(--transition); }
.desktop-nav { display: flex; gap: 30px; }
.nav-link { text-decoration: none; color: var(--dark-text); font-weight: 600; font-size: 1rem; position: relative; padding: 5px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gradient-bg); transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--primary-blue); }

/* ===== MOBILE NAVIGATION ===== */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 5px; }
.hamburger { width: 25px; height: 3px; background: var(--primary-blue); border-radius: 2px; transition: var(--transition); }
.mobile-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--card-bg); z-index: 9999; transform: translateX(-100%); transition: transform 0.4s; display: flex; flex-direction: column; box-shadow: 5px 0 25px rgba(0,0,0,0.1); }
.mobile-nav.active { transform: translateX(0); }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #eee; }
.close-menu { background: none; border: none; font-size: 2.5rem; color: var(--dark-text); cursor: pointer; line-height: 1; padding: 0; }
.mobile-nav-links { padding: 30px 20px; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.mobile-nav-link { text-decoration: none; color: var(--dark-text); font-size: 1.3rem; font-weight: 600; padding: 15px 20px; border-radius: var(--border-radius); transition: var(--transition); }
.mobile-nav-link:hover, .mobile-nav-link.active { background: var(--light-blue); color: var(--primary-blue); padding-left: 30px; }
.mobile-contact-info { padding: 30px 20px; background: var(--gray-bg); border-radius: var(--border-radius); margin: 20px; }
.mobile-contact-link { display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--dark-text); padding: 15px; border-radius: var(--border-radius); transition: var(--transition); margin-bottom: 10px; background: var(--card-bg); }
.mobile-contact-link:hover { background: var(--primary-blue); color: white; transform: translateX(10px); }

/* ===== HERO SLIDER ===== */
.hero-slider { 
    position: relative; 
    min-height: 100vh;
    overflow: hidden; 
}

.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 0.7s; 
    background-size: cover; 
    background-position: center; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active { 
    opacity: 1; 
    z-index: 1; 
}

.slide-overlay { 
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,0.2);
}

.slide-content { 
    color: white; 
    width: 100%; 
    max-width: 800px; 
    padding: 40px 20px; 
    margin: auto; 
    text-align: center; 
}

.slide-title { 
    font-size: 2rem; 
    margin-bottom: 1rem; 
    color: white; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.9); 
}

.slide-subtitle { 
    color:white;
    font-size: 1.1rem; 
    margin-bottom: 2rem; 
    text-shadow: 0 1px 5px rgba(0,0,0,0.8); 
}

.slide-buttons { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    margin-top: 30px; 
    padding: 0 10px; 
}

.slide-buttons .btn { 
    width: 100%; 
    max-width: 280px; 
    margin: 0 auto; 
}

/* Mobile-specific fixes */
@media (max-width: 767px) {
    .hero-slider {
        min-height: 85vh;
    }
    
    .slide-overlay {
        padding: 40px 20px;
        align-items: flex-start;
        padding-top: 80px;
    }
    
    .slide-content {
        padding: 30px 20px;
        margin-top: auto;
        margin-bottom: auto;
    }
    
    .slide-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .slide-buttons {
        margin-top: 25px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-slider {
        min-height: 80vh;
    }
    
    .slide-overlay {
        padding-top: 60px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
}

/* ===== SERVICES GRID ===== */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 25px; margin-top: 40px; }

/* ===== INFO CARDS ===== */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
.info-card { background: var(--card-bg); padding: 40px 30px; border-radius: var(--border-radius); box-shadow: var(--shadow); transition: var(--transition); text-align: center; position: relative; overflow: hidden; }
.info-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--gradient-bg); }
.info-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.info-icon { font-size: 2.5rem; color: var(--primary-blue); background: var(--light-blue); width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 25px; }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
.feature-card { background: var(--card-bg); padding: 40px 30px; border-radius: var(--border-radius); text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.feature-icon { font-size: 2.5rem; color: var(--primary-green); background: var(--light-green); width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 25px; }

/* ===== MAP ===== */
.map-container { border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin: 20px 0; border: 1px solid rgba(0,0,0,0.1); height: 300px; }
.map-container iframe { display: block; width: 100%; height: 100%; border: none; }

/* ===== OPENING HOURS ===== */
.hours-list { text-align: left; margin: 25px 0; }
.hour-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eee; }
.day { font-weight: 600; color: var(--dark-text); }
.time { color: var(--primary-blue); font-weight: 600; }

/* ===== CONTACT LINKS ===== */
.contact-links { margin-top: 25px; }
.contact-link { display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--dark-text); padding: 15px; border-radius: var(--border-radius); background: var(--gray-bg); margin-bottom: 15px; transition: var(--transition); }
.contact-link:hover { background: var(--primary-blue); color: white; transform: translateX(10px); }

/* ===== LIVE STATUS ===== */
.live-status { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; padding: 15px; background: var(--gray-bg); border-radius: var(--border-radius); }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: #ccc; animation: pulse 2s infinite; }
.status-dot.open { background: #2ecc71; box-shadow: 0 0 10px #2ecc71; }
.status-dot.closed { background: #e74c3c; box-shadow: 0 0 10px #e74c3c; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* ===== FOOTER ===== */
.main-footer { background: var(--dark-text); color: var(--light-text); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col { padding: 20px 0; }
.footer-logo-img { height: 50px; margin-bottom: 15px; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 1.2rem; color: var(--primary-green); font-weight: 600; margin-bottom: 15px; }
.footer-about { color: rgba(255,255,255,0.8); line-height: 1.7; }
.footer-heading { color: white; font-size: 1.3rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--primary-green); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; transition: var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--primary-green); transform: translateX(5px); }

/* ==== FIXED: Phone number is now WHITE ==== */
.contact-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
    color: rgba(255,255,255,0.9); 
}
.contact-item i { 
    color: white; /* CHANGED FROM var(--primary-green) to white */
    width: 20px; 
    font-size: 1.1rem; 
}

.social-links { display: flex; gap: 15px; margin-bottom: 25px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: rgba(255,255,255,0.1); border-radius: 50%; color: white; font-size: 1.2rem; transition: var(--transition); }
.social-link:hover { background: var(--primary-green); transform: translateY(-5px); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.copyright { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* ===== FLOATING ELEMENTS ===== */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 4px 15px rgba(37,211,102,0.3); z-index: 999; transition: var(--transition); overflow: hidden; }
.whatsapp-float:hover { width: 160px; border-radius: 30px; background: #128C7E; transform: scale(1.1); }
.whatsapp-text { opacity: 0; font-size: 0.8rem; font-weight: 600; white-space: nowrap; transition: opacity 0.3s ease; position: absolute; bottom: 10px; }
.whatsapp-float:hover .whatsapp-text { opacity: 1; }
.back-to-top { position: fixed; bottom: 100px; right: 30px; width: 45px; height: 45px; background: var(--primary-blue); color: white; border: none; border-radius: 50%; cursor: pointer; z-index: 998; opacity: 0; visibility: hidden; transition: var(--transition); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-green); transform: translateY(-5px); }

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .desktop-nav { display: flex; }
    .menu-toggle { display: none; }
    .slide-title { font-size: 3.5rem; }
    .slide-subtitle { font-size: 1.5rem; }
    .slide-buttons { flex-direction: row; justify-content: center; }
    .info-grid, .services-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 50px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .menu-toggle { display: flex; }
    .desktop-nav { display: none; }
    .slide-buttons { flex-direction: column; }
    .slide-title { font-size: 2.2rem; }
    .slide-subtitle { font-size: 1.1rem; }
    .contact-ribbon .container { justify-content: center; text-align: center; }
    .ribbon-content { flex-direction: column; gap: 10px; margin-bottom: 10px; }
    
    .contact-ribbon .ribbon-content span,
    .contact-ribbon .ribbon-content span i {
        color: white !important;
    }
    
    .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    .back-to-top { bottom: 85px; right: 20px; width: 40px; height: 40px; }
}

/* ===== QUALITY SLIDE ANIMATIONS ===== */
.slide-title {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-subtitle {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.slide-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.slide.active .slide-title,
.slide.active .slide-subtitle,
.slide.active .slide-buttons {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

@media (max-width: 767px) {
    .slide-title {
        transform: translateX(-15px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .slide-subtitle {
        transform: translateX(15px);
        transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
    }
    
    .slide-buttons {
        transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slide-title,
    .slide-subtitle,
    .slide-buttons {
        transition: opacity 0.3s ease !important;
        transform: none !important;
    }
}

/* ===== SERVICE CARDS ===== */
.service-card-with-image {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-image-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
    height: 220px;
}

.service-image {
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.service-image-link:hover .service-image {
    transform: scale(1.02);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image-link:hover .service-image img {
    transform: scale(1.1);
}

.service-title-link {
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.service-title-link h3 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.3;
    text-align: center;
    transition: color 0.3s ease;
}

.service-title-link:hover h3 {
    color: var(--primary-green);
}

.service-learn-more {
    display: inline-block;
    color: var(--primary-green);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.service-learn-more:hover {
    color: var(--primary-blue);
}

.service-learn-more i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.service-learn-more:hover i {
    transform: translateX(3px);
}

.service-card-with-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 77, 162, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: var(--border-radius);
}

.service-card-with-image:hover::after {
    opacity: 1;
}

.service-content {
    padding: 25px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.service-content p {
    margin: 0;
}

/* ===== RESPONSIVE SERVICE IMAGES ===== */
@media (max-width: 767px) {
    .service-image-link {
        height: 200px;
    }
    
    .service-content {
        padding: 20px;
        min-height: 100px;
    }
    
    .service-title-link h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .service-image-link {
        height: 180px;
    }
    
    .service-content {
        padding: 15px;
        min-height: 90px;
    }
    
    .service-title-link h3 {
        font-size: 1.1rem;
    }
}

/* ===== MAKE ALL CONTACT BUTTONS MATCH ===== */
.ribbon-cta {
    background: var(--primary-green) !important;
    color: white !important;
}

.footer-links a:hover,
.contact-link:hover,
.mobile-contact-link:hover {
    color: var(--primary-green) !important;
}

.btn-primary {
    background: var(--primary-green) !important;
    background-image: none !important;
    border-color: var(--primary-green) !important;
}

.ribbon-cta:hover,
.btn-primary:hover {
    background: #239185 !important;
    border-color: #239185 !important;
}

.hero-slider .btn-primary,
.slide-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green)) !important;
}

.whatsapp-float {
    background: #25D366 !important;
}
.whatsapp-float:hover {
    background: #128C7E !important;
}

/* ===== FIX RIBBON TEXT COLOR ===== */
.contact-ribbon { 
    color: white !important; 
}

.contact-ribbon .ribbon-content span i {
    color: white !important;
}

.contact-ribbon .ribbon-content span,
.contact-ribbon .ribbon-content span i,
.contact-ribbon .ribbon-content span:first-child,
.contact-ribbon .ribbon-content span:first-child i {
    color: white !important;
}

.contact-ribbon,
.contact-ribbon * {
    color: white !important;
}

.contact-ribbon .ribbon-content span:hover,
.contact-ribbon .ribbon-content span:hover i {
    color: white !important;
}

/* === FINAL RIBBON FIX === */
.contact-ribbon,
.contact-ribbon *,
.contact-ribbon span,
.contact-ribbon i {
    color: white !important;
}

/* ===== ENSURE ALL FOOTER TEXT IS WHITE ===== */
.main-footer,
.main-footer *,
.main-footer .contact-item,
.main-footer .contact-item i,
.main-footer .contact-item span {
    color: white !important;
}

/* Force white color specifically for phone number */
.main-footer .contact-item:nth-child(2),
.main-footer .contact-item:nth-child(2) i,
.main-footer .contact-item:nth-child(2) span {
    color: white !important;
    opacity: 0.9 !important;
}