/* Estilos Globais */
:root {
    --primary-color: #D32F2F; /* Vermelho farmácia */
    --secondary-color: #4682B4; /* Azul farmácia */
    --accent-color: #FFC107; /* Cor de destaque - amarelo */
    --primary-dark: #B71C1C; /* Vermelho escuro */
    --secondary-dark: #2C5985; /* Azul escuro */
    --light-color: #F8F9FA;
    --dark-color: #1E2A38; /* Escuro mais profundo */
    --gray-color: #6C757D;
    --light-gray: #E9ECEF;
    --white-color: #FFFFFF;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Botões de WhatsApp no Hero e Serviços */
#hero-whatsapp, #hero-whatsapp-2, #hero-whatsapp-3, #service-whatsapp {
    background-color: #25D366; /* Cor verde oficial do WhatsApp */
    color: var(--white-color);
    border: 2px solid #25D366;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#hero-whatsapp:hover, #hero-whatsapp-2:hover, #hero-whatsapp-3:hover, #service-whatsapp:hover {
    background-color: #128C7E; /* Verde escuro do WhatsApp */
    border-color: #128C7E;
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

#hero-whatsapp i, #hero-whatsapp-2 i, #hero-whatsapp-3 i, #service-whatsapp i {
    margin-left: 8px;
    animation: bounce 2s infinite;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 25%;
}

.section-title p {
    color: var(--secondary-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Header */
.header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    max-height: 60px;
}

.navbar-nav .nav-link {
    color: var(--secondary-dark);
    font-weight: 600;
    padding: 10px 15px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    text-shadow: 0px 0px 1px rgba(211, 47, 47, 0.3);
}

.btn-whatsapp {
    background-color: var(--primary-color);
    color: var(--white-color) !important;
    border-radius: var(--border-radius);
    padding: 10px 20px !important;
}

.btn-whatsapp:hover {
    background-color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    height: 80vh;
    position: relative;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white-color);
    width: 80%;
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Delivery Banner */
.delivery-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 25px 0;
    color: var(--white-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.top-banner {
    margin-top: 0;
    z-index: 1001;
}

.delivery-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
    animation: pulse 3s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

.delivery-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.delivery-icon i {
    font-size: 2.8rem;
    margin-right: 20px;
    animation: bounce 2s infinite;
    color: var(--white-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 
    40% {transform: translateY(-10px);} 
    60% {transform: translateY(-5px);}
}

.delivery-text h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.delivery-text h3 .highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    font-weight: 900;
}

.delivery-text h3 .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.delivery-text p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

.delivery-text p strong {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-delivery {
    background-color: var(--white-color);
    color: #25D366; /* Cor verde oficial do WhatsApp */
    font-weight: 700;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: pulse-button 2s infinite;
    border: 2px solid var(--white-color);
}

.btn-delivery i.fab.fa-whatsapp {
    margin-left: 8px;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes pulse-button {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

.btn-delivery::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-delivery:hover::before {
    left: 100%;
}

.btn-delivery:hover {
    background-color: #25D366; /* Verde do WhatsApp */
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-text {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--white-color);
    opacity: 0.9;
    font-style: italic;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-content {
    padding: 20px;
}

.about-content h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.about-content h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--secondary-dark);
}

.about-features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
}

.feature i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.feature span {
    color: var(--secondary-dark);
    font-weight: 500;
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.service-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 30px;
    transition: var(--transition);
    height: 100%;
    border-bottom: 3px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: var(--secondary-dark);
    line-height: 1.6;
}

.service-cta {
    text-align: center;
    margin-top: 30px;
}

/* Offers Section */
.offers-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.offers-swiper {
    padding: 30px 0;
}

.offer-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 1;
}

.offer-image {
    height: 200px;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.offer-card:hover .offer-image img {
    transform: scale(1.1);
}

.offer-content {
    padding: 20px;
    text-align: center;
}

.offer-content h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.offer-content p {
    color: var(--secondary-dark);
    margin-bottom: 15px;
    min-height: 50px;
}

.offer-price {
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray-color);
    margin-right: 10px;
    font-weight: 500;
}

.new-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0px 0px 1px rgba(255, 99, 71, 0.3);
}

.btn-offer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: inline-block;
}

.btn-offer:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Location Section */
.location-section {
    padding: 80px 0;
}

.location-info {
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.info-item p {
    color: var(--secondary-dark);
    line-height: 1.6;
    font-weight: 500;
}

.location-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-cta {
    margin-top: 30px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 80px 0 0;
}

.footer-logo {
    max-height: 60px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white-color);
    margin-bottom: 25px;
    position: relative;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--light-color);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 15px;
    color: var(--primary-color);
    text-shadow: 0px 0px 2px rgba(211, 47, 47, 0.3);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 60px;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
}

.footer-bottom .fa-heart {
    color: var(--accent-color);
}

/* Float WhatsApp Button */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Cor verde oficial do WhatsApp */
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.float-whatsapp:hover {
    background-color: #128C7E; /* Verde escuro do WhatsApp */
    transform: scale(1.1);
    color: var(--white-color);
}

.float-whatsapp i {
    animation: pulse 2s infinite;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .delivery-content {
        flex-direction: column;
        text-align: center;
    }
    
    .delivery-icon {
        margin-bottom: 15px;
    }
    
    .delivery-text {
        margin-bottom: 20px;
    }
    
    .delivery-button {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .delivery-banner {
        padding: 15px 0;
    }
    
    .delivery-icon {
        display: none; /* Oculta o ícone do caminhão em telas muito pequenas */
    }
    
    .delivery-text h3 {
        font-size: 1.5rem;
    }
    
    .delivery-text p {
        font-size: 0.9rem;
    }
    
    .btn-delivery {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .cta-text {
        font-size: 0.8rem;
    }
}

.cta-text {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--white-color);
    opacity: 0.9;
    font-style: italic;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@media (max-width: 767px) {
    .btn-delivery {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .location-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding-top: 50px;
    }
    
    .footer-about, .footer-links, .footer-contact {
        margin-bottom: 40px;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
}
