:root {
    /* Cores extraídas/inspiradas no Logo Farma Dia */
    --primary-color: #E62020;
    /* Vermelho vivo do "Dia" para botões e destaque */
    --secondary-color: #00418B;
    /* Azul marinho do "Farma" para textos e base */
    --btn-hover-color: #b30000;
    /* Vermelho mais escuro para hover */

    --accent-color: #f0f0f0;
    --text-dark: #0E3364;
    /* Textos principais agora em Azul Marinho para identidade forte */
    --text-body: #333333;
    /* Texto corrido cinza escuro para leitura */
    --text-light: #ffffff;
    --background-light: #f4f6f9;
    --font-family: "Montserrat", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: var(--font-family);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #ffffff;
    color: var(--text-body);
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    /* Aumentei levemente */
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    width: 130px;
    height: auto;
    transition: transform 0.3s ease;
    padding: 0px 0px 10px 0px;
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

header nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: var(--secondary-color);
    /* Links do menu em Azul */
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

nav a:hover {
    color: var(--primary-color);
    /* Hover em Vermelho */
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #25D366 !important;
    /* Verde WhatsApp oficial */
    font-weight: 700;
}

.whatsapp-link i {
    font-size: 24px;
}

.whatsapp-link span {
    font-size: 18px;
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 30px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

header.open .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

header.open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

header.open .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

section[id] {
    scroll-margin-top: 70px;
}

/* ================= HERO ================= */
.hero-section {
    height: 100vh;
    /* Ajuste visual */
    display: flex;
    justify-content: left;
    align-items: center;
    text-align: left;
    padding: 60px;
    color: var(--text-light);
    position: relative;
    background-position: center;
    background-size: cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Gradiente com o Azul da marca */
    background-image: linear-gradient(to right,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0) 100%), url('background-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-background-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-light);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
    margin-top: 0;
}

.hero-content h1 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.9);
    line-height: 1.1;
    color: #ffffff;

}

.hero-content p {
    max-width: 600px;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1,
.hero-content p,
.hero-content a.btn {
    opacity: 0;
    animation: fadeInSlideUp 0.8s ease-out forwards;
}

.hero-content h1 {
    animation-delay: 0.3s;
}

.hero-content p {
    animation-delay: 0.6s;
}

.hero-content a.btn {
    animation-delay: 0.9s;
}

.btn {
    font-size: 1rem;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 50px;
    /* Botão arredondado mais moderno */
    border: none;
    color: var(--text-light);
    background-color: var(--text-dark);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background-color: var(--btn-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(230, 32, 32, 0.5);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= SERVIÇOS ================= */
.services-section {
    padding: 80px 30px;
    text-align: center;
    background-color: #ffffff;
}

.services-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.service-card {
    background-color: var(--background-light);
    border-radius: 12px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-bottom: 4px solid var(--text-dark);
    /* Detalhe colorido */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(14, 51, 100, 0.1);
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.service-icon {
    font-size: 2rem;
    color: var(--text-body);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-body-secondary-color);
    font-weight: 700;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    color: #555;
}

.service-card .btn {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
}

.service-card .btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ================= SOBRE ================= */
.about-us-section {
    padding: 80px 30px;
    background-color: var(--background-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 100px;
    justify-content: center;
}

.about-us-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.about-us-logo {
    width: 220px;
    height: auto;
    margin-bottom: 25px;
    align-items: center;
}

.about-us-image {
    flex: 1;
    max-width: 500px;
    height: 450px;
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--secondary-color);
    /* Efeito visual */
}

.about-us-section p {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: justify;
    color: var(--text-body);
}

/* ================= PROPÓSITO ================= */
.purpose-section {
    padding: 80px 30px;
    background-color: #ffffff;
}

.purpose-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.purpose-section>p {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

.purpose-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.purpose-card {
    background-color: #fff;
    border: 1px solid #eee;
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.purpose-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.purpose-card-content {
    padding: 35px 30px;
    text-align: center;
}

.purpose-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    /* Ícones azuis */
    margin-bottom: 20px;
}

.purpose-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    /* Títulos vermelhos */
    margin-bottom: 15px;
}

.purpose-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* ================= ENDEREÇO ================= */
.address-section {
    padding: 80px 30px;
    text-align: center;
    background-color: var(--background-light);
}

.address-section h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.address-unit h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.address-unit a {
    display: inline-block;
    color: var(--text-body);
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

.address-unit a:hover {
    color: var(--primary-color);
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
}

.operating-hours {
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.operating-hours h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* ================= CONTATO ================= */
.contact-section {
    padding: 80px 30px;
    text-align: center;
    background-color: #ffffff;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-card {
    padding: 40px;
    border-radius: 15px;
    background-color: var(--background-light);
    width: 100%;
    max-width: 320px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--text-body);
}

.contact-card h3 i {
    color: var(--text-body);
}

.contact-card p {
    margin-bottom: 20px;
    font-weight: 600;
    color: #555;
}

/* ================= SOCIAL BAR ================= */
.social-bar {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.social-bar a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 32px;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.social-bar a:hover {
    transform: scale(1.1);
}

@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);
    }
}

.social-bar a[href*="wa.me"] {
    background-color: #25D366;
    animation: pulse 2s infinite;
}

/* ================= FOOTER ================= */
footer {
    padding: 40px 20px;
    padding-bottom: 90px;
    text-align: center;
    color: #fff;
    background-color: #000f20;
    /* Footer azul */
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-link-email {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-top: 10px;
}

/* ================= LEGAL PAGES ================= */
.legal-page-content {
    max-width: 900px;
    /* Limita a largura para não esticar na tela toda */
    margin: 0 auto;
    /* Centraliza o bloco na tela */
    padding: 120px 20px 60px;
    /* Dá espaço no topo para não ficar embaixo do header */
    background-color: #fff;
    min-height: 80vh;
}

.legal-page-content h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
    /* Centraliza o título principal */
}

.legal-page-content h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    /* Títulos das seções em vermelho */
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.legal-page-content p,
.legal-page-content li {
    font-size: 1.1rem;
    color: #444;
    text-align: justify;
    /* Deixa o texto quadradinho e organizado */
    margin-bottom: 15px;
}

.legal-page-content ul {
    padding-left: 40px;
    /* Recuo para as bolinhas da lista */
    margin-bottom: 20px;
}

.legal-page-content li {
    list-style-type: disc;
    /* Garante que as bolinhas apareçam */
}

/* ================= CONSENT ================= */
#consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-color);
    /* Fundo azul */
    color: var(--text-body);
    padding: 15px;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: transform 0.5s ease;
}

#consent-banner.hidden {
    transform: translateY(100%);
}

.consent-text a {
    color: var(--text-body);
    text-decoration: underline;
}

#accept-consent-btn {
    background-color: var(--text-body);
    /* Botão vermelho */
    border: none;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    border-radius: 50px;
    font-weight: bold;
}



/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        display: flex;
        align-items: center;
        color: var(--text-light);
        position: relative;
        background-position: center;
        background-size: cover;
        padding: 60px 20px;
        justify-content: center;
        text-align: center;
    }

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 120%;
        z-index: -1;
        background-image: linear-gradient(to right,
                rgba(0, 0, 0, 0.3) 100%,
                rgba(0, 0, 0, 0.3) 100%,
                rgba(0, 0, 0, 0.3) 100%), url('background-hero-mobile.png');
        background-size: cover;
        background-position: center;
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }

    .hero-background-fade-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--background-light);
        opacity: 0;
    }

    .hero-content {
        margin-top: -240px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .about-us-section {
        flex-direction: column;
        text-align: center;
    }

    .about-us-logo {
        margin: 0 auto 20px auto;
        margin-left: 70px;
    }

    .about-us-image {
        width: 100%;
        box-shadow: 10px 10px 0px var(--secondary-color);
    }

    .about-us-content {
        max-width: 100%;
    }

    .address-unit h3 {
        margin-top: 20px;
    }

    header nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        display: none;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    header.open {
        background-color: #fff;
    }

    header.open nav {
        display: flex;
    }

    header nav a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    header nav ul {
        flex-direction: column;
        padding: 20px;
        background-color: #fff;
    }

    header nav ul li {
        margin-bottom: 10px;
    }

    header nav ul li:last-child {
        margin-bottom: 0;
    }

    header .menu-toggle {
        display: flex;
    }

    #consent-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .legal-page-content {
        padding: 100px 20px 40px;
    }

    .legal-page-content h1 {
        font-size: 2rem;
    }

}