:root {
    --primary-gold: #D4AF37;
    --gold-light: #F1D279;
    --dark-bg: #121212;
    --card-bg: #1E1E1E;
    --text-light: #F5F5F5;
    --text-muted: #A0A0A0;
}

/* ANTI-VAZAMENTO GLOBAL */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
}

/* MARCA D'ÁGUA */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    background-image: url('../images/marca-dagua.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* HEADER ALINHADO À ESQUERDA */
header {
    background-color: #000;
    border-bottom: 2px solid var(--primary-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 0.7rem 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: auto;
}

.logo-img {
    height: 46px;
    width: auto;
    margin-right: 12px;
    object-fit: contain;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary-gold);
    letter-spacing: 1.5px;
    white-space: nowrap;
    text-transform: uppercase;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

nav a, .dropdown-btn {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: color 0.3s, background-color 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0.35rem 0.55rem;
    border-radius: 4px;
}

nav a:hover, .dropdown-btn:hover {
    color: var(--primary-gold);
}

.btn-nav-green {
    background-color: #25D366 !important;
    color: #fff !important;
    font-weight: bold;
    padding: 0.35rem 0.8rem !important;
    border-radius: 20px !important;
}

.btn-nav-green:hover {
    background-color: #1EBE5D !important;
}

.btn-nav-gold {
    border: 1px solid var(--primary-gold) !important;
    color: var(--primary-gold) !important;
    font-weight: bold;
    padding: 0.35rem 0.8rem !important;
    border-radius: 20px !important;
}

.btn-nav-gold:hover {
    background-color: var(--primary-gold) !important;
    color: #000 !important;
}

/* DROPDOWN */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1A1A1A;
    min-width: 280px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
    border: 1px solid var(--primary-gold);
    border-radius: 4px;
    z-index: 1001;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-light);
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    margin-left: 0;
    border-bottom: 1px solid #2A2A2A;
    font-size: 0.88rem;
    white-space: normal;
}

.dropdown-content a:hover {
    background-color: #252525;
    color: var(--primary-gold);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* HERO */
.hero {
    padding: 3.5rem 5%;
    text-align: center;
    background: linear-gradient(180deg, #000000 0%, #121212 100%);
    border-bottom: 1px solid #333;
}

.hero h1 {
    font-size: 2.3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 850px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    text-align: center;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-whatsapp:hover {
    transform: scale(1.03);
    background-color: #1EBE5D;
}

/* CONTAINER PRINCIPAL */
.container {
    padding: 3.5rem 5%;
    max-width: 1250px;
    margin: 0 auto;
}

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

/* GRID FLUIDO DE 3 COLUNAS (HOME) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #2A2A2A;
    transition: border-color 0.3s, transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-4px);
}

.card h3 {
    color: var(--primary-gold);
    margin-top: 0;
    font-size: 1.2rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: justify;
    line-height: 1.5;
}

.card .read-more {
    color: var(--primary-gold);
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* VÍDEO EMBED (PÁGINA SOBRE NÓS) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--primary-gold);
    max-width: 800px;
    margin: 2rem auto;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* TABELA COMPARATIVA */
.table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #1E1E1E;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.comparison-table th, .comparison-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid #2A2A2A;
}

.comparison-table th {
    background-color: #161616;
    color: var(--primary-gold);
}

.comparison-table .highlight-col {
    background-color: #221C08;
    color: var(--gold-light);
    border-left: 1px solid var(--primary-gold);
    border-right: 1px solid var(--primary-gold);
}

/* FAQ */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.1rem 1.3rem;
    background-color: #1E1E1E;
    color: #FFF;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: var(--primary-gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #121212;
    padding: 0 1.3rem;
}

.faq-answer p {
    margin: 1rem 0;
    color: var(--text-muted);
    text-align: justify;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding: 0.5rem 1.3rem;
}

/* CTA BANNER */
.cta-banner {
    background: linear-gradient(180deg, #1A1A1A 0%, #0D2615 100%);
    border-top: 2px solid #25D366;
    border-bottom: 2px solid #25D366;
    padding: 3.5rem 5%;
}

.cta-banner h2 {
    color: #25D366;
    font-size: 2rem;
    margin-top: 0;
}

.cta-banner p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0.8rem auto 2rem;
}

/* CLIENTES */
.clients-section {
    background-color: #161616;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid #2A2A2A;
    border-bottom: 1px solid #2A2A2A;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.client-logo-item img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

.client-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* PÁGINAS INDIVIDUAIS COM LARGURA AMPLA (PARA 3 COLUNAS) */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.page-content h1 {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-top: 0;
}

.page-content h2 {
    color: var(--primary-gold);
    font-size: 1.3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.page-content p {
    text-align: justify;
    color: var(--text-light);
}

.page-content ul {
    padding-left: 1.2rem;
    color: var(--text-light);
}

.page-content li {
    margin-bottom: 0.8rem;
    text-align: justify;
}

.btn-back {
    background-color: #333;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.highlight-box {
    background-color: #262626;
    border-left: 4px solid var(--primary-gold);
    padding: 1.2rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

/* 3 COLUNAS PERFEITAS PARA AS UNIDADES (SOBRE NÓS E RODAPÉ) */
.units-section {
    background-color: #1A1A1A;
    padding: 3rem 5%;
    border-top: 1px solid #333;
    margin-top: 3rem;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.8rem;
    width: 100%;
    margin-top: 1.5rem;
    align-items: stretch;
}

.unit-box {
    border-left: 3px solid var(--primary-gold);
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.unit-box h3 {
    color: #fff;
    margin-top: 0;
    font-size: 1.05rem;
}

.unit-box p {
    text-align: left;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.unit-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #333;
}

.unit-box a {
    margin-top: auto;
    white-space: nowrap;
    font-size: 0.88rem;
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 0.8rem;
    }
    .logo-container {
        margin-right: 0;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .units-grid {
        grid-template-columns: 1fr !important;
    }
    .page-content {
        padding: 1.5rem;
    }
}

footer {
    background-color: #000;
    text-align: center;
    padding: 2.5rem 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

footer p {
    text-align: center;
}

.social-links a {
    color: #fff;
    margin: 0 12px;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-gold);
}