/* =========================================================
   VARIABLES
========================================================= */
:root {
    --brand: hsl(229,34%,26%);
    --brand-600: hsl(229,34%,20%);
    --muted: #6b7280;
    --bg: #f5f7fb;
    --card-bg: #ffffff;
    --shadow: 0 8px 30px rgba(16,24,40,0.08);
    --radius: 12px;
    --maxw: 1100px;
    --cta-color: #081240;
    --icon-color: #6b7280;
    --gold: #b89403;
}

/* =========================================================
   BASE RESET
========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: "Inter","Segoe UI",sans-serif;
    color: #111827;
    background: #dbe3f0;
    line-height: 1.5;
    padding-top: 72px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* =========================================================
   WHATSAPP BUTTON
========================================================= */
.btn-whatsapp {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #21994d;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.btn-whatsapp:hover {
    background-color: #0a441f;
    color: #ffffff;
}

/* =========================================================
   HEADER / NAVBAR
========================================================= */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 0 rgba(16,24,40,0.04);
    z-index: 1100;
}
.navrow {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand h1 { font-size: 1.05rem; color: var(--brand); font-weight: 700; margin-bottom: 4px; }
.brand .small { font-size: 0.85rem; color: #6b7280; letter-spacing: 0.5px; text-transform: uppercase; }

nav ul { display: flex; gap: 18px; align-items: center; transition: all 0.3s ease; }
nav li { list-style: none; }
nav a {
    color: #374151;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    opacity: 0.95;
    transition: all 0.3s ease;
}
nav a:hover {
    background-color: #d4af37;
    color: #0058A3;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 22px;
    cursor: pointer;
    gap: 5px;
}
.hamburger span {
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

nav ul.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(6px);
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================================
   HERO / BANNER
========================================================= */
.hero {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Banner Desktop */
.hero-img-wrapper img.desktop-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Banner Mobile */
.hero-img-wrapper img.mobile-banner {
    display: none;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Texto sobre o banner */
.hero-banner-text {
    position: absolute;
    top: 39%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
    z-index: 10;
}

/* Desktop */
.banner-text-desktop {
    display: block;
}
.banner-text-mobile {
    display: none;
}

.hero-banner-text h1 {
    font-size: clamp(1.45rem, 5vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}
.hero-banner-text p {
    color: var(--brand);
    font-weight: 400;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    text-shadow: 0 0 6px rgba(255,255,255,0.4);
}

/* Créditos */
.credito {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    background: rgba(255,255,255,0.6);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
}

/* =========================================================
   BOX BRANCO (FAQ INTRO)
========================================================= */
.faq-intro {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 990px;
    margin: 40px auto;
    outline: 3px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.faq-intro .intro-header {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 22px;
}
.faq-intro p {
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 16px;
}
.faq-intro .intro-header h2 {
    color: #001c3f;
    font-size: 1.6rem;
    font-weight: 700;
    max-width: 850px;
}

/* =========================================================
   CARDS
========================================================= */
.areas-section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px 40px;
}
.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 24px;
    margin: 24px auto 0;
    max-width: calc(var(--maxw) - 56px);
}
.cert-card {
    background: var(--card-bg);
    padding: 28px 22px;
    border-radius: 14px;
    box-shadow: 0 0 0 2px var(--gold), 0 8px 30px rgba(16,24,40,0.08);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}
.cert-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 0 1px var(--gold), 0 10px 26px rgba(0,0,0,0.10);
}
.cert-card h3 {
    color: var(--brand);
    margin-bottom: 12px;
    font-size: 1.3rem;
}
.cert-card .card-btn {
    background-color: #001c3f;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.cert-card .card-btn:hover {
    background: #d4af37;
    color: #001c3f;
}

/* =========================================================
   MODAL
========================================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.modal-content {
    position: relative;
    width: calc(100% - 40px);
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 0 0 4px var(--gold), 0 8px 24px rgba(0,0,0,0.25);
}
.close-modal {
    position: absolute;
    top: 14px; right: 18px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: 0.3s;
}
.close-modal:hover { color: #791229; }

/* =========================================================
   MODAIS: CENTRALIZAÇÃO DE TEXTO
========================================================= */
.modal-text {
    text-align: center;
}
.modal-content h2,
.modal-content p,
.modal-content a {
    text-align: center;
}
.modal-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-bottom: 20px;
}
.logo-principal { max-height: 140px; }

/* =========================================================
   RESPONSIVIDADE
========================================================= */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    nav ul { display: none; }

    .modal-content { padding: 20px; }
    .modal-logos { gap: 24px; }
    .logo-principal { max-height: 100px; }

    /* Banner Mobile */
    .hero-img-wrapper img.desktop-banner { display: none; }
    .hero-img-wrapper img.mobile-banner { display: block; }

    /* Ajuste do texto mobile do banner */
    .hero-banner-text {
        top: 60%; /* desce o bloco de texto no banner */
    }

    /* Mostrar o texto mobile e esconder desktop */
    .banner-text-desktop { display: none; }
    .banner-text-mobile { display: block; }

    .hero-banner-text h1 {
        font-size: clamp(1.45rem, 6vw, 2rem);
        margin-bottom: 2px; /* aproxima o subtítulo */
    }
    .hero-banner-text p {
        font-size: clamp(1rem, 3vw, 1.3rem);
    }

    .faq-intro {
        padding: 24px 16px;
        margin: 20px auto;
        max-width: 90%;
    }
    .faq-intro .intro-header h2 {
        font-size: 1.4rem;
    }
    .faq-intro p {
        font-size: 1rem;
    }
}
