/* Estilos Globais */
:root {
    --primary-color: #d32f2f; /* Vermelho */
    --secondary-color: #ffc107; /* Amarelo */
    --accent-color: #b71c1c; /* Vermelho escuro */
    --light-color: #fff;
    --dark-color: #333;
    --gray-color: #f5f5f5;
    --text-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

section {
    padding: 60px 0;
}

/* Botão de WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 70px; /* Aumentado de 20px para 70px para evitar sobreposição com o rodapé no mobile */
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin: 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-maps {
    background-color: #facc15;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-maps:hover {
    background-color: #eab308;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 15px 0; /* Reduzido de 25px para 15px */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center bottom;
    opacity: 0.8;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container .logo-image {
    max-width: 180px; /* Reduzido de 220px para 180px */
    height: auto;
    margin-bottom: 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.logo-container .logo-image:hover {
    transform: translateY(-5px);
}

.slogan {
    color: var(--light-color);
    opacity: 0.95;
    max-width: 600px;
    font-style: italic;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 1rem; /* Reduzido de 1.2rem para 1rem */
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.cta-buttons {
    display: none;
}

/* Sobre a Farmácia */
.about {
    background-color: var(--gray-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.pharmacy-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-image-secondary {
    margin-top: 30px;
    text-align: center;
}

.team-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

/* Produtos e Diferenciais */
.products {
    background-color: var(--gray-color);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.feature-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid var(--secondary-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background-color: rgba(211, 47, 47, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Informações */
.info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--light-color);
}

.info h2, .info h3 {
    color: var(--light-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.info-card p {
    margin-bottom: 10px;
}

.info-card a {
    color: var(--light-color);
    text-decoration: none;
}

/* Visite-nos */
.visit-us {
    padding: 60px 0;
}

.visit-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.visit-image {
    text-align: center;
}

.care-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: var(--light-color);
    margin-bottom: 15px;
}

.social-media {
    margin-top: 15px;
}

.social-media a {
    color: var(--light-color);
    font-size: 24px;
    margin-right: 15px;
    transition: var(--transition);
}

.social-media a:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.footer-contact h3, .footer-hours h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-contact p, .footer-hours p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-container {
        margin-bottom: 15px;
        margin-right: 0;
        text-align: center;
        flex-direction: column;
    }
    
    .logo-container .logo-image {
        margin: 0 auto 15px;
    }
    
    .slogan {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-contact p, .footer-hours p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    section {
        padding: 40px 0;
    }
}