@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --color-bg: #F2EBD9;
    --color-primary: #2A2522;
    /* Dourado escuro/Marrom */
    --color-secondary: #964F69;
    /* Cinza arroxeado da paleta */
    --color-text: #333333;
    --color-white: #FFFFFF;
    --font-main: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background-color: var(--color-bg);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 140px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

/* Banner Full Width */
.hero {
    padding: 150px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    color: var(--color-white);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay para legibilidade */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* WhatsApp Floating */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 50px;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-main {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s;
        z-index: 1000;
        padding-top: 100px;
    }

    .nav-main.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-menu a {
        font-size: 1.1rem;
    }

    .logo img {
        max-height: 120px !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 0;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Card hover effects */
.card-atuacao {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.card-atuacao:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}
.card-atuacao a:hover {
    background: var(--color-secondary) !important;
}

.post-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}
.post-card a:hover {
    background: var(--color-secondary) !important;
}

/* Dropdown Menu Styles */
.nav-menu li {
    position: relative;
}

.nav-menu li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-white);
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border-top: 3px solid var(--color-secondary);
}

.dropdown-menu li {
    width: 100%;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-primary) !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.4;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: normal;
    text-align: left;
}

.dropdown-menu li a:hover {
    background-color: var(--color-bg) !important;
    color: var(--color-secondary) !important;
}

/* Arrow indicator on the toggle link */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Cookie consent banner styles (Glassmorphism) */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(42, 37, 34, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(150px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 1200px;
    margin: 0 auto;
}

#cookie-banner.show {
    transform: translateY(0);
}

#cookie-banner p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

#cookie-banner p a {
    color: var(--color-bg);
    text-decoration: underline;
    font-weight: 500;
}

#cookie-banner p a:hover {
    color: var(--color-white);
}

#cookie-banner button {
    background: var(--color-bg);
    color: var(--color-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#cookie-banner button:hover {
    background: var(--color-white);
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .nav-menu li.dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border-top: none;
        background-color: rgba(0, 0, 0, 0.03);
        border-radius: 0;
        padding: 10px 0;
        min-width: 100%;
        display: block; /* Always visible on mobile sub-menu */
    }
    
    .dropdown-menu li a {
        text-align: center;
        padding: 8px 20px;
        font-size: 0.9rem !important;
        color: var(--color-primary) !important;
    }
    
    .dropdown-toggle i {
        display: none; /* Hide arrow on mobile since it is always expanded */
    }
}

@media (max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    #cookie-banner button {
        width: 100%;
    }
}