: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;
    --whatsapp-green-hover: #0a441f;
}

/* =========================================================
   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: 0; /* removido para alinhamento do banner */
}
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; }

/* =========================================================
   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: 10px 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.nav-list { 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 - hidden on desktop, visible on mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 22px;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
}
.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.nav-list.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.08);
}

/* =========================================================
   HERO / BANNER
========================================================= */
.hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 65px; /* empurra o banner abaixo do header fixo */
}

/* Banner Desktop */
.hero-img-wrapper img.desktop-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Banner Mobile (hidden by default) */
.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: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
    z-index: 10;
}

/* Desktop / Mobile text toggles */
.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;
}

/* =========================================================
   FORM
========================================================= */
.form-container {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 14px;
    max-width: 800px; width: 100%;
    margin: 40px auto 80px auto;
    box-shadow: var(--shadow);
    outline: 2px solid var(--gold);
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0 20px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all .3s;
    font-size: 1rem;
    box-shadow: none;
}
.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    border-color: #0077cc;
    box-shadow: 0 0 5px rgba(0,119,204,0.18);
    outline: none;
}
textarea { resize: vertical; min-height: 120px; }
.checkbox-group { display: flex; align-items: center; margin-bottom: 20px; font-size: .95rem; flex-wrap: wrap; }
.checkbox-group input { margin-right: 10px; }
.form-container h2 { text-align: center; margin-bottom: 18px; color: var(--brand); font-size: 1.6rem; }

button[type="submit"] {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 14px 16px;
    font-size: 1.02rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all .25s;
    margin-bottom: 12px;
}
button[type="submit"]:hover { background: #2c3e78; }

/* WhatsApp CTA */
.whatsapp-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    background: #21994d;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 1.02rem;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
    transition: all .18s;
}
.whatsapp-btn:hover { background: var(--whatsapp-green-hover); transform: translateY(-3px); }
.whatsapp-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* success message */
.success-message { display: none; text-align: center; background: #d4edda; color: #155724; padding: 15px; border-radius: 8px; margin-top: 15px; font-weight: bold; }

/* error messages */
.error-message { color: #b91c1c; font-size: 0.9rem; margin-top: -16px; margin-bottom: 10px; display: none; }

/* small utility for screen-readers */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    .hero-banner-text { max-width: 640px; }
}

@media (max-width: 768px) {
    /* Banner swap */
    .hero-img-wrapper img.desktop-banner { display: none !important; }
    .hero-img-wrapper img.mobile-banner { display: block !important; }

    /* Text variants */
    .banner-text-desktop { display: none; }
    .banner-text-mobile { display: block; }

    /* Header / nav adjustments for mobile */
    .hamburger { display: flex; }
    nav ul.nav-list { display: none; } /* hidden by default */
    nav ul.nav-list.active { display: flex; padding: 12px 18px; gap: 12px; }
    nav ul.nav-list.active li { padding: 6px 0; }

    /* Ajuste do form-container */
    .form-container {
        width: 94%;
        max-width: 94%;
        margin: 20px auto 60px auto;
        padding: 22px 16px;
        outline-offset: -2px;
    }
}
