/* ===== VARIÁVEIS E CONFIGURAÇÕES GERAIS ===== */
:root {
    /* Paleta de cores */
    --vermelho-farmacia: #d90429;
    --vermelho-escuro: #c1121f;
    --branco: #ffffff;
    --verde-saude: #085431; /* RGB: 8, 84, 49 */
    
    /* Cores para texto */
    --texto-principal: #085431;
    --texto-secundario: rgba(8, 84, 49, 0.8);
    
    /* Cores de fundo */
    --fundo-claro: #f8f9fa;
    --fundo-branco: #ffffff;
    
    /* Outras cores */
    --facebook-azul: #1877F2;
    --instagram-vermelho: #E1306C;
    --whatsapp-verde: #25D366;
}

/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
}

body {
    background-color: var(--fundo-claro);
    color: var(--texto-principal);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BARRA DE REDES SOCIAIS ===== */
.social-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

.social-btn {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    text-decoration: none;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-btn.facebook {
    background-color: var(--facebook-azul);
}

.social-btn.instagram {
    background-color: var(--instagram-vermelho);
}

.social-btn.whatsapp {
    background-color: var(--whatsapp-verde);
}

/* ===== HEADER ===== */
.header {
    background-color: var(--branco);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--vermelho-farmacia);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-img img {
    height: 75px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-link {
    color: var(--texto-principal);
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--vermelho-farmacia);
    color: var(--branco);
}

.btn-order {
    display: inline-flex;
    align-items: center;
    background-color: var(--vermelho-farmacia);
    color: var(--branco);
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 5px;
}

.btn-order:hover {
    background-color: var(--vermelho-escuro);
}

.btn-order i {
    margin-right: 8px;
}

.fa-whatsapp::before {
    font-size: 1.5rem;
}

/* ===== MENU MOBILE ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--texto-principal);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--branco);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--vermelho-farmacia);
    color: var(--branco);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--branco);
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--texto-principal);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background-color: var(--fundo-claro);
    color: var(--vermelho-farmacia);
    border-left-color: var(--vermelho-farmacia);
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-btn-order, .mobile-location {
    text-align: center;
}

/* ===== SLIDER DE IMAGENS COM BANNERS REAIS ===== */
.image-slider {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.slider-container {
    position: relative;
    width: 100%;
    height: auto;
}

.slider-wrapper {
    width: 500%;
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    width: 20%;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Proporção 16:9 como fallback */
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
}

/* Imagens do slider para desktop (padrão) */
.slide:nth-child(1) .slide-image {
    background-image: url('imagens/banners/banner1-desktop.webp');
}
.slide:nth-child(2) .slide-image {
    background-image: url('imagens/banners/banner2-desktop.webp');
}
.slide:nth-child(3) .slide-image {
    background-image: url('imagens/banners/banner3-desktop.webp');
}
.slide:nth-child(4) .slide-image {
    background-image: url('imagens/banners/banner4-desktop.webp');
}
.slide:nth-child(5) .slide-image {
    background-image: url('imagens/banners/banner5-desktop.webp');
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--vermelho-farmacia);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: var(--vermelho-farmacia);
    color: var(--branco);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.indicator.active {
    background-color: var(--vermelho-farmacia);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: var(--branco);
}

/* ===== SEÇÕES COMUNS ===== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--texto-principal);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--vermelho-farmacia);
}

.highlight {
    color: var(--vermelho-farmacia);
}

.section-subtitle {
    text-align: center;
    color: var(--texto-secundario);
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SEÇÃO SERVIÇOS ===== */
.services {
    padding-top: 80px;
    background-color: var(--fundo-branco);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--fundo-branco);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(217, 4, 41, 0.1);
    border-color: var(--vermelho-farmacia);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--vermelho-farmacia), var(--vermelho-escuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--branco);
    font-size: 2.5rem;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--texto-principal);
}

.service-description {
    color: var(--texto-secundario);
    line-height: 1.6;
}

/* ===== SEÇÃO PRODUTOS ===== */
.products {
    padding-top: 80px;
    background-color: var(--fundo-branco);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--fundo-branco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(217, 4, 41, 0.1);
}

.product-badge {
    position: absolute;
    top: 33px;
    right: 33px;
    background-color: var(--vermelho-farmacia);
    border: 2px solid white;
    color: var(--branco);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 100px;
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: left;
    color: var(--branco);
    font-size: 4rem;
    background: linear-gradient(135deg, var(--vermelho-farmacia), var(--vermelho-escuro));
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--texto-principal);
    text-align: center;
}

.product-description {
    color: var(--texto-secundario);
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

/* ===== SEÇÃO SOBRE ===== */
.about {
    padding-top: 80px;
    background-color: var(--fundo-branco);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.about-description {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--texto-principal);
    line-height: 1.5;
    padding-left: 20px;
    border-left: 3px solid var(--vermelho-farmacia);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--fundo-claro);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--vermelho-farmacia);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(217, 4, 41, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--vermelho-farmacia), var(--vermelho-escuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--branco);
    font-size: 1.8rem;
}

.feature-icon img {
    height: 50%;
}

.feature-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--texto-principal);
}

.feature-content p {
    color: var(--texto-secundario);
    line-height: 1.6;
}

/* ===== SEÇÃO PEDIDO ===== */
.order {
    padding: 80px 0;
    background-color: var(--fundo-branco);
}

.order-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.method-card {
    background-color: var(--fundo-branco);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(217, 4, 41, 0.1);
    border-color: var(--vermelho-farmacia);
}

.method-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--vermelho-farmacia), var(--vermelho-escuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--branco);
    font-size: 2.5rem;
}

.method-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--texto-principal);
}

.method-description {
    color: var(--texto-secundario);
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    margin-top: auto;
    border: none;
    cursor: pointer;
    background-color: var(--vermelho-farmacia);
    color: var(--branco);
}

.btn-primary:hover {
    background-color: var(--vermelho-escuro);
}

.btn-primary i {
    margin-right: 10px;
}

/* ===== RODAPÉ ===== */
.footer {
    background-color: var(--fundo-claro);
    border-top: 2px solid var(--vermelho-farmacia);
    color: var(--branco);
    padding: 30px;
}

.footer p {
    text-align: center;
    color: var(--verde-saude)
}

/* ===== RESPONSIVIDADE ===== */

/* DESKTOP MÉDIO (992px - 1400px) */
@media (max-width: 1400px) {
    .container {
        max-width: 95%;
    }
}

/* TABLET GRANDE (768px - 992px) */
@media (max-width: 992px) {
    .services-grid,
    .products-grid,
    .features-grid,
    .order-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .social-sidebar {
        display: none;
    }
    
    .logo-img img {
        height: 50px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* TABLET PEQUENO e MOBILE (max-width: 768px) - BANNERS MOBILE */
@media (max-width: 768px) {
    .image-slider {
        height: auto;
    }
    
    /* BANNERS MOBILE */
    .slide:nth-child(1) .slide-image {
        background-image: url('imagens/banners/banner1-mobile.webp');
    }
    .slide:nth-child(2) .slide-image {
        background-image: url('imagens/banners/banner2-mobile.webp');
    }
    .slide:nth-child(3) .slide-image {
        background-image: url('imagens/banners/banner3-mobile.webp');
    }
    .slide:nth-child(4) .slide-image {
        background-image: url('imagens/banners/banner4-mobile.webp');
    }
    .slide:nth-child(5) .slide-image {
        background-image: url('imagens/banners/banner5-mobile.webp');
    }
    
    .slide-image {
        min-height: 300px;
        background-size: cover;
        background-position: center;
        padding-bottom: 0;
        height: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .service-card,
    .product-card,
    .feature-card,
    .method-card {
        padding: 30px 20px;
    }
    
    .service-icon,
    .method-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .product-image {
        height: 100px;
        font-size: 3.5rem;
        border-radius: 10px;
    }

    .product-badge {
        margin-top: 30px;
        margin-right: 20px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

/* MOBILE (max-width: 576px) */
@media (max-width: 576px) {
    .image-slider {
        height: auto;
    }
    
    .slide-image {
        min-height: 250px !important;
        height: 250px;
    }
    
    .services-grid,
    .products-grid,
    .features-grid,
    .order-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-order,
    .btn-primary {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .mobile-menu {
        width: 280px;
    }
    
    .footer {
        padding: 20px;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* MOBILE MUITO PEQUENO (max-width: 400px) */
@media (max-width: 400px) {
    .image-slider {
        height: auto;
    }
    
    .slide-image {
        min-height: 200px !important;
        height: 200px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .service-card,
    .product-card,
    .feature-card,
    .method-card {
        padding: 20px 15px;
    }
    
    .logo-img img {
        height: 45px;
    }
    
    .mobile-menu {
        width: 250px;
    }
}