:root {
    --primary: #0b7fad;
    --primary-dark: #075f82;
    --primary-soft: #eaf5fb;
    --text: #18364a;
    --text-soft: #5d7483;
    --border: #d8e3ea;
    --bg: #f3f7fa;
    --white: #ffffff;
    --success: #25d366;
    --shadow: 0 18px 45px rgba(8, 59, 84, 0.10);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: .2s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

/* TOPO */
.topbar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: sticky;
    top: 0;
    z-index: 30;
}

.topbar-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.03em;
    border: 1px solid rgba(255,255,255,.18);
}

.brand-mark span {
    color: #f39a2d;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 1.08rem;
    font-weight: 700;
}

.brand-text small {
    color: rgba(255,255,255,.82);
    font-size: .9rem;
}

.menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.menu a {
    color: rgba(255,255,255,.95);
    font-weight: 500;
    font-size: .98rem;
}

.menu a:hover {
    color: #fff;
    opacity: .92;
}

.menu-cta {
    background: rgba(255,255,255,.14);
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
}

/* HERO */
.hero {
    padding: 56px 0 36px;
    background:
        radial-gradient(circle at top right, rgba(11,127,173,.10), transparent 28%),
        linear-gradient(180deg, #eef6fb 0%, #f4f8fb 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: stretch;
}

.hero-content,
.hero-panel .panel-card,
.consulta-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-content {
    padding: 34px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: 1px solid #cfe5f1;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: 18px;
    color: #12435e;
}

.hero h1 span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 760px;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.mini-card {
    background: #f8fbfd;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.mini-card strong {
    display: block;
    font-size: .98rem;
    color: #16445d;
    margin-bottom: 4px;
}

.mini-card span {
    display: block;
    font-size: .92rem;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.hero-note {
    margin-top: 18px;
    color: var(--text-soft);
    font-size: .95rem;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.panel-card {
    padding: 28px;
    height: 100%;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.panel-header h2 {
    font-size: 1.3rem;
    color: #12435e;
}

.panel-header p {
    color: var(--text-soft);
    font-size: .95rem;
}

.steps {
    padding-left: 18px;
    color: var(--text-soft);
    margin-bottom: 24px;
}

.steps li + li {
    margin-top: 10px;
}

/* BOTÕES */
.btn {
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 1rem;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(180deg, #1291c4 0%, var(--primary) 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(11,127,173,.22);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #0f88b7 0%, #0a739d 100%);
}

.btn-secondary {
    background: #fff;
    color: var(--primary-dark);
    border: 1px solid #bdd8e6;
}

.btn-secondary:hover {
    background: #f7fbfd;
}

.btn-large {
    padding: 15px 22px;
}

.btn-full {
    width: 100%;
}

/* CONSULTA */
.consulta-section {
    padding: 28px 0 56px;
}

.section-heading {
    text-align: center;
    margin-bottom: 22px;
}

.section-kicker {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .82rem;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #12435e;
    margin-bottom: 10px;
}

.section-heading p {
    color: var(--text-soft);
    max-width: 720px;
    margin: 0 auto;
}

.consulta-card {
    padding: 28px;
}

.consulta-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
}

.input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #19445b;
}

.input-group input {
    width: 100%;
    min-height: 54px;
    border: 1px solid #c7d8e2;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 1rem;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: .2s ease;
}

.input-group input:focus {
    border-color: #73b8d5;
    box-shadow: 0 0 0 4px rgba(17,144,195,.12);
}

.resultado-box {
    margin-top: 18px;
    min-height: 110px;
    border: 1px dashed #bfd3de;
    border-radius: 14px;
    background: #f9fcfe;
    padding: 18px;
}

.resultado-placeholder,
.resultado-loading {
    color: var(--text-soft);
}

.resultado-error {
    color: #b42318;
    font-weight: 600;
}

.consulta-footer {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: .95rem;
}

.consulta-link {
    color: var(--primary);
    font-weight: 700;
}

.consulta-link:hover {
    color: var(--primary-dark);
}

/* FAIXA INFO */
.info-strip {
    padding: 0 0 54px;
}

.info-strip-inner {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
    padding: 18px 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    color: #fff;
    box-shadow: var(--shadow);
}

.info-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.info-item span {
    color: rgba(255,255,255,.88);
    font-size: .96rem;
}

/* FOOTER */
.footer {
    padding: 26px 0 100px;
    text-align: center;
    color: var(--text-soft);
    font-size: .93rem;
}

/* WHATSAPP FLUTUANTE */
.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 30px rgba(0,0,0,.20);
    z-index: 999;
}

.floating-whatsapp:hover {
    transform: translateY(-2px) scale(1.02);
    background: #1ebe5d;
}

.floating-whatsapp svg {
    fill: #fff;
}

/* RESULTADO DO PHP */
#resultado table,
#resultado ul,
#resultado p,
#resultado div {
    max-width: 100%;
}

#resultado a {
    color: var(--primary);
    font-weight: 700;
}

/* RESPONSIVO */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .info-strip-inner {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        align-items: flex-start;
        padding: 16px 0;
        flex-direction: column;
    }

    .menu {
        width: 100%;
        gap: 10px;
    }
}

@media (max-width: 720px) {
    .hero {
        padding-top: 34px;
    }

    .hero-content,
    .panel-card,
    .consulta-card {
        padding: 20px;
    }

    .consulta-form {
        grid-template-columns: 1fr;
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
    }

    .menu a,
    .menu-cta {
        width: 100%;
        text-align: center;
    }

    .brand {
        width: 100%;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .consulta-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .floating-whatsapp {
        width: 58px;
        height: 58px;
        right: 14px;
        bottom: 14px;
    }
}