:root {
    /* Paleta Farmácias Taperoá (Extraída do Manual da Marca) */

    /* Verde Petróleo Escuro (Usado para fundos escuros, header) - Aprox RGB 03, 83, 83 */
    --primary-dark: #035353;

    /* Verde Água/Teal (Cor Primária da marca) - Aprox RGB 36, 188, 177 */
    --primary-color: #24BCB0;

    /* Laranja (Cor Secundária/Destaque) - Aprox RGB 242, 107, 53 */
    --secondary-color: #F26B35;
    --secondary-hover: #d95a2b;

    --text-dark: #333333;
    --text-light: #ffffff;
    --text-gray: #666666;

    --background-light: #f4f6f9;
    --background-white: #ffffff;

    /* Fonte Exo 2 conforme Manual */
    --font-family: "Exo 2", sans-serif;

    --header-height: 75px;
    --radius-card: 12px;
    --radius-btn: 50px;
}

/* Reset Otimizado */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-white);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    height: var(--header-height);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    z-index: 1000;
    background-color: var(--primary-dark);
    /* Fundo Header Escuro */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--secondary-color);
    /* Detalhe Laranja */
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: auto;
    width: 200px;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

/* Navigation */
header nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

nav a:not(.whatsapp-link):hover {
    color: var(--secondary-color);
}

nav a:not(.whatsapp-link)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav a:not(.whatsapp-link):hover::after {
    width: 100%;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    background-color: var(--secondary-color);
    /* Botão Laranja */
    padding: 8px 20px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    transition: transform 0.3s ease, background-color 0.3s;
}

.whatsapp-link:hover {
    background-color: var(--primary-color);
    /* Hover Teal */
    color: var(--text-light);
    transform: scale(1.05);
}

.whatsapp-link i {
    font-size: 1.4rem;
    margin-right: 2px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    height: 3px;
    width: 28px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: 0.4s;
}

/* ================= HERO SECTION ================= */
section[id] {
    scroll-margin-top: var(--header-height);
}

.hero-section {
    min-height: 90vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 5%;
    color: var(--text-light);
    position: relative;
    background-color: var(--primary-dark);
    margin-top: var(--header-height);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Gradiente com as cores da Taperoá */
    background-image: linear-gradient(to right, rgba(3, 83, 83, 0.3) 0%, rgba(36, 188, 177, 0.3) 50%, rgba(0, 0, 0, 0.2) 100%), url('background-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: transform;
}

.hero-background-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    will-change: opacity;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    margin-top: -100px;
}

.hero-content h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 570px;
}

/* Animações Hero */
.hero-content>* {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content p {
    animation-delay: 0.4s;
}

.hero-content .btn {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    font-size: 1rem;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: var(--radius-btn);
    border: none;
    color: var(--text-light);
    background-color: var(--secondary-color);
    /* Botão Laranja */
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--primary-color);
    /* Hover Teal */
    color: var(--text-light);
    transform: translateY(-3px);
}

/* ================= SECTIONS GERAIS ================= */
.services-section,
.about-us-section,
.contact-section,
.purpose-section,
.address-section {
    padding: 60px 60px;
    margin-bottom: 60px;
    text-align: center;
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    /* Títulos em Dark Teal */
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--text-gray);
    margin-bottom: 50px;
}

/* ================= SERVICES ================= */
.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.card-header-color {
    height: 6px;
    background-color: var(--primary-color);
    /* Faixa Teal */
    width: 100%;
}

.service-card.highlight-card .card-header-color {
    background-color: var(--secondary-color);
    /* Faixa Laranja */
    height: 10px;
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background-color: rgba(36, 188, 177, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.highlight-card .service-icon {
    color: var(--secondary-color);
    background-color: rgba(242, 107, 53, 0.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    flex: 1;
}

.btn-card {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: var(--radius-btn);
    transition: 0.3s;
}

.btn-card:hover,
.highlight-card .btn-card {
    background-color: var(--primary-color);
    color: white;
}

.highlight-card .btn-card:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* ================= SOBRE ================= */
.about-us-section {
    background-color: var(--background-light);
    display: flex;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.about-us-content,
.about-us-image-container {
    flex: 1;
}

.about-us-logo {
    max-width: 200px;
    margin-bottom: 20px;
    margin: 0 auto 20px auto;
}

.about-us-image {
    width: 100%;
    border-radius: var(--radius-card);
    box-shadow: 10px 10px 0px var(--secondary-color);
    /* Sombra Sólida Laranja */
}

/* ================= PROPÓSITO ================= */
.purpose-section p {
    margin-bottom: 40px;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.purpose-cards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.purpose-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: #fff;
    padding: 40px 25px;
    border-radius: var(--radius-card);
    border-bottom: 4px solid var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.purpose-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.purpose-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--primary-dark);
}

/* ================= ENDEREÇO & MAPA ================= */
.address-unit a {
    font-size: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin: 20px 0;
}

.address-unit a:hover {
    color: var(--secondary-color);
}

.map-container {
    max-width: 800px;
    height: 300px;
    margin: 0 auto;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.map-container iframe {
    width: 100%;
    display: block;
}

.hours-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: var(--radius-card);
    margin: 20px auto 40px auto;
    max-width: 500px;
    border-bottom: 5px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hours-container h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.hours-list .dots {
    flex: 1;
    border-bottom: 2px dotted #ccc;
    margin: 0 10px;
    position: relative;
    top: -4px;
}

.hours-list strong {
    color: var(--primary-color);
}

/* ================= STATUS LOJA ================= */
.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    /* Transparente no header escuro */
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-bolinha {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-item.aberto .status-bolinha {
    background-color: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
    animation: pulse-green 2s infinite;
}

.status-item.fechado .status-bolinha {
    background-color: #e74c3c;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
    padding: 0 10px;
}

.store-card {
    background-color: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Alinhamento do texto à esquerda para leitura */
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.store-header {
    background-color: var(--primary-dark);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--secondary-color);
}

.store-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
}

.city-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.store-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.store-body p {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.store-body i {
    color: var(--primary-color);
    margin-top: 3px;
    min-width: 18px;
    /* Para alinhar ícones */
}

.store-address {
    font-weight: 600;
}

.btn-map {
    margin-top: auto;
    /* Empurra o botão para o final do card */
    display: block;
    text-align: center;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-map:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (min-width: 769px) {
    .status-item {
        margin-left: auto;
        margin-right: 20px;
    }
}

/* ================= CONTATO ================= */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-card {
    background: var(--background-light);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: var(--radius-card);
    width: 280px;
    border-top: 4px solid var(--primary-color);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.contact-card p {
    font-size: 0.9rem;
}

.contact-card .btn {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
}

.contact-card .btn:hover {
    background-color: var(--secondary-color);
}

/* ================= FOOTER & UTILITARIOS ================= */
.social-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.social-bar a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    color: var(--text-light);
    font-size: 35px;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background-color: #25D366;
    animation: pulse 2s infinite;
}

.social-bar a:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    animation-play-state: paused;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 5px solid var(--secondary-color);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

footer a:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline;
}

#back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Banner Cookies */
#consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 20px;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: opacity 0.5s ease, visibility 0.5s;
    border-left: 5px solid var(--primary-color);
}

#consent-banner.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#accept-consent-btn {
    background-color: var(--primary-color);
    color: white;
    text-transform: none;
}

#accept-consent-btn:hover {
    background-color: var(--secondary-color);
}

/* Animação Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Conteúdo Legal */
.legal-content h1 {
    font-size: 1.8rem;
    margin-top: 40px;
    color: var(--primary-dark);
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 30px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
    color: var(--primary-dark);
}

.alert-box {
    background-color: #fff3cd;
    color: #856404;
    padding: 20px;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    margin: 20px 0;
}

.legal-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    margin: 30px 0;
    border-radius: 5px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .logo {
        width: 120px;
        height: auto;
    }

    header nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--background-white);
        flex-direction: column;
        justify-content: flex-start;
        transition: 0.4s;
        border-top: 4px solid var(--secondary-color);
        overflow-y: auto;
    }

    header.open nav {
        right: 0;
    }

    header nav ul {
        margin-top: 30px;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    header nav a {
        padding: 20px;
        border-bottom: 1px solid #eee;
        display: block;
        width: 100%;
        text-align: center;
        color: var(--primary-dark);
        font-size: 1.2rem;
    }

    .whatsapp-link {
        justify-content: center;
        width: 100%;
        margin: 20px auto;
    }

    /* Animação Hamburger */
    header.open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    header.open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.open .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        padding: 60px 20px;
        justify-content: left;
        text-align: left;
    }

    .hero-section::before {
        background-image: linear-gradient(to bottom, rgba(3, 83, 83, 0.8), rgba(3, 83, 83, 0.6)), url('background-hero.png');
        background-attachment: scroll;
    }

    .hero-content {
        width: 100%;
        margin-top: -200px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-us-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 60px 20px;
    }

    .about-us-image {
        margin-top: 0px;
        box-shadow: none;
    }

    .about-us-logo {
        margin: 0 auto 20px auto;
    }

    .contact-card {
        width: 100%;
    }

    #consent-banner {
        flex-direction: column;
        text-align: center;
    }

    .status-item {
        margin: 0 auto 10px auto;
        width: fit-content;
    }

    .services-section h2 {
        line-height: 1.4;
    }

    footer {
        padding-bottom: 90px;
    }
}