/*
====================================================
  TEMA (CORES & TOKENS) — ESCURO: AZUL BEM ESCURO + DOURADO
====================================================
*/
:root {
    /* Base / superfícies */
    --bg: #0a1226;
    /* azul bem escuro */
    --bg-2: #101b3a;
    --card: #0f1a33;
    --card-rgb: 15, 26, 51;
    --border: #455274;

    /* Tipografia */
    --text: #f5f7fa;
    /* branco quase puro */
    --muted: #c6cadd;

    /* Marca (Azul e Verde da logo) */
    --brand: #3d87f7;
    /* azul principal */
    --brand-2: #0bb616;
    /* verde médio */
    --brand-3: #52b75d;
    /* verde mais claro para destaque */

    /* Extras / tokens */
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);

    /* Header / Navegação */
    --header-bg: rgba(5, 10, 20, .7);
    --header-bg-scrolled: rgba(5, 10, 20, .85);
    --nav-link: #e4e4e4;
    --nav-link-hover: var(--brand-2);
    --nav-underline: var(--brand);

    /* Botões */
    --btn-bg: var(--card);
    --btn-text: #ffffff;
    --btn-border: var(--border);
    --btn-shadow: var(--shadow);
    --btn-ghost-bg: transparent;
    --btn-ghost-text: #ffffff;
    --btn-primary-bg: var(--brand-2);
    --btn-primary-fg: #ffffff;

    /* Inputs */
    --input-bg: #101b3a;
    --input-text: #ffffff;
    --input-border: var(--border);

    /* Gradientes */
    --grad-1: var(--brand);
    --grad-2: var(--brand-2);

    /* Preloader / Footer */
    --preloader-bg: #0a1226;
    --footer-bg-1: #050a17;
    --footer-bg-2: #080e20;
    --footer-divider: rgba(255, 255, 255, 0.06);

    /* Media overlay */
    --media-top: rgba(255, 255, 255, .05);
    --media-bottom: rgba(0, 0, 0, .06);

    --divider-soft: rgba(47, 107, 187, .25);
    --divider-strong: rgba(47, 107, 187, .45);
    --divider-glow: rgba(76, 175, 80, .35);
}

/*
====================================================
  TEMA CLARO: BRANCO + AZUL/VERDE
====================================================
*/
:root[data-theme="light"] {
    --bg: #ffffff;
    --bg-2: #f1f0eb;
    --card: #ffffff;
    --card-rgb: 255, 255, 255;
    --border: #d8d8d8;

    --text: #1d1d1d;
    --muted: #6b6b6b;

    --brand: #1f4c8f;
    /* azul */
    --brand-2: #2c7c31;
    /* verde */
    --brand-3: #52b75d;
    /* verde claro */

    --radius: 16px;
    --shadow: 0 4px 5px rgba(0, 0, 0, .25);

    --header-bg: rgba(255, 255, 255, .85);
    --header-bg-scrolled: rgba(255, 255, 255, .92);
    --nav-link: #444;
    --nav-link-hover: var(--brand-2);
    --nav-underline: var(--brand);

    --btn-bg: var(--card);
    --btn-text: var(--text);
    --btn-border: var(--border);
    --btn-shadow: var(--shadow);
    --btn-ghost-bg: transparent;
    --btn-ghost-text: var(--text);
    --btn-primary-bg: var(--brand-2);
    --btn-primary-fg: #ffffff;

    --input-bg: #ffffff;
    --input-text: var(--text);
    --input-border: var(--border);

    --grad-1: var(--brand);
    --grad-2: var(--brand-2);

    --preloader-bg: #ffffff;
    --footer-bg-1: #ffffff;
    --footer-bg-2: #f6f6f6;
    --footer-divider: #e5e5e5;

    --media-top: rgba(0, 0, 0, .02);
    --media-bottom: rgba(0, 0, 0, .05);

    --divider-soft: rgba(47, 107, 187, .25);
    --divider-strong: rgba(47, 107, 187, .45);
    --divider-glow: rgba(76, 175, 80, .35);
}

/*
====================================================
  RESET / BASE
====================================================
*/
* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100vh;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg), var(--bg-2));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden !important;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:not(.btn):hover {
    color: var(--brand-2);
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section h2 {
    font-size: clamp(24px, 3vw, 40px);
    margin: 0 0 16px;
}

.section p {
    margin: 0 0 10px;
}

.section-head {
    margin: 0 0 16px;
}

.section-head h2 {
    font-size: clamp(24px, 3vw, 40px);
    margin: 0;
}

.section-head p {
    margin: 0;
}

/*
====================================================
  UTILITÁRIOS GERAIS (BOTÕES, PAINEL, CARDS, ETC.)
====================================================
*/
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-text);
    box-shadow: var(--btn-shadow);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn:not(.btn--primary),
.btn:not(.btn--primary):visited {
    color: var(--btn-text);
}

.btn:not(.btn--primary):hover,
.btn:not(.btn--primary):focus {
    color: var(--btn-text);
}

.btn--primary {
    background: var(--btn-primary-bg);
    border-color: transparent;
    color: var(--btn-primary-fg);
}

.btn--primary:hover {
    background: var(--brand-2);
}

.btn--primary:active {
    background: var(--brand-3);
    transform: translateY(0);
}

.btn--ghost {
    background: var(--btn-ghost-bg);
    color: var(--btn-ghost-text);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}

.btn--shine {
    position: relative;
    overflow: hidden;
}

.btn--shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    transition: left .4s ease;
}

.btn--shine:hover::after {
    left: 120%;
}

.glass {
    position: relative;
    border-radius: var(--radius);
    padding: 22px;

    /* fundo translúcido */
    background: rgba(var(--card-rgb, 15, 26, 51), 0.15);
    border: 1px solid var(--border);

    /* efeito de vidro */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    /* sombra igual ao padrão */
    box-shadow: var(--shadow);
}

.cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

@media (max-width:1000px) {
    .cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:680px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.card p {
    color: var(--muted);
}

.card>p:last-child {
    margin-top: auto;
}

.card__media {
    margin: 0 0 12px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, var(--media-top), var(--media-bottom));
    aspect-ratio: 16/9;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-zoom {
    overflow: hidden;
    border-radius: var(--radius);
}

.img-zoom img {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1);
    transition: transform .6s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/*
====================================================
  HEADER / NAVEGAÇÃO / TOGGLE DE TEMA
====================================================
*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-radius: 0px;
    padding: 0px;
    /* background: var(--header-bg); */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled {
    background: var(--header-bg-scrolled);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    color: var(--text);
}

.brand-logo {
    width: 120px;
    height: auto;
}

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

.nav a {
    color: var(--nav-link);
    position: relative;
}

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

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: var(--nav-underline);
    transition: width .25s ease;
}

.nav a:hover::after {
    width: 100%;
}

.btn-whats {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.btn-theme-toggle {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-text);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background .25s ease, color .25s ease, transform .2s ease;
}

.btn-theme-toggle:hover {
    background: var(--brand);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--nav-link-hover);
    margin: 5px 0;
    border-radius: 5px;
}

@media (max-width:880px) {
    .nav {
        position: fixed;
        inset: 60px 16px auto 16px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        display: none;
        flex-direction: column;
    }

    .nav.nav-open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}

/*
====================================================
  SECTION: HERO
====================================================
*/
#hero {
    padding: 96px 0 56px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.05;
    margin: 0 0 12px;
    background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    font-size: clamp(16px, 2.4vw, 18px);
    color: var(--muted);
    margin: 0 0 18px;
}

.hero .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hero .bullet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px dashed var(--divider-strong);
    font-weight: 600;
    color: var(--nav-link-hover);
    background: linear-gradient(180deg, rgba(122, 186, 60, .06), transparent);
}

/*
====================================================
  SECTION: FUNCIONALIDADES (AGRUPADAS)
====================================================
*/
#funcionalidades {
    padding: 84px 0 56px;
}

.features-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.features-grid .glass h3 {
    font-weight: 700;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(122, 186, 60, .12);
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

/* chips dos subitens */
.feature-group-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 0;
    list-style: none;
}

.feature-group-list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--media-top), transparent);
    color: var(--nav-link-hover);
    font-weight: 600;
    white-space: nowrap;
}

.feature-group-list svg {
    width: 16px;
    height: 16px;
}

.note-more {
    color: var(--muted);
    margin: 0 0 6px;
}

/* grid fluido */
.features-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

/* Último card centralizado quando sobrar sozinho em layout 3 colunas */
@media (min-width:980px) {
    .features-grid>.glass:last-child:nth-child(3n + 1) {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/*
====================================================
  SECTION: SEGURANÇA (CARD ÚNICO)
====================================================
*/
#seguranca {
    padding: 84px 0;
}

.security-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--media-top), transparent);
}

.security-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(122, 186, 60, .12);
    color: var(--brand);
    border: 1px solid var(--border);
}

.security-copy {
    line-height: 1.45;
}

.security-copy .item-title {
    display: block;
    font-weight: 700;
    color: var(--nav-link-hover);
    margin-bottom: 2px;
}

.security-copy .item-desc {
    display: block;
    color: var(--muted);
    font-size: .95rem;
    word-break: keep-all;
}

/*
====================================================
  SECTION: CONTATO
====================================================
*/
#contato .form label {
    display: block;
    font-weight: 600;
    margin: 10px 0 6px;
}

#contato .form input,
#contato .form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--input-text);
}

#contato .form textarea {
    min-height: 140px;
    resize: vertical;
}

#contato .form .actions {
    margin-top: 16px;
}

#contato .grid-3 {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: clamp(16px, 2.4vw, 32px);
    align-items: start;
}

@media (max-width:760px) {
    #contato .form .actions .btn {
        width: 100%;
    }
}

#contato .form input,
#contato .form textarea {
    font-size: clamp(14px, 2.4vw, 16px);
    padding: clamp(10px, 2.1vw, 12px) clamp(12px, 2.4vw, 14px);
}

@media (max-width:760px) {
    #contato .form label {
        margin-top: 12px;
    }
}


.contato-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 24px;
}

.contato-card {
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.contato-card--mapa {
    padding: 16px;
    height: 100%;
}

.map-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px #eaeaea;
    background: #f2f4f7;
    margin-bottom: 16px;
}

.map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contato-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.contato-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .975rem;
}

.contato-info a {
    text-decoration: none;
    word-break: break-word;
}

.contato-info a:hover {
    text-decoration: underline;
}

.ci-ico {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
}

.contato-form {
    display: grid;
    gap: 14px;
}

.form-row {
    display: grid;
    gap: 6px;
}

.form-row label {
    font-size: .9rem;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: var(--muted);
}



.form-actions {
    margin-top: 4px;
}

@media (max-width:980px) {
    .contato-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion:reduce) {

    .form-row input:focus,
    .form-row textarea:focus {
        box-shadow: none;
    }
}

/*
====================================
  FORM COMPACTO (NOVO)
====================================
*/
.form--compact label {
    margin: 6px 0 4px !important;
    font-weight: 600;
}

.form--compact input,
.form--compact textarea {
    padding: 8px 10px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
}

.form--compact textarea {
    min-height: 100px !important;
}

.form--compact .fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.form--compact .field {
    display: flex;
    flex-direction: column;
}

.form--compact .field--full {
    grid-column: 1 / -1;
}

@media (min-width:720px) {
    .form--compact .fields {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/*
====================================================
  PRELOADER / SPINNER
====================================================
*/
#preloader {
    position: fixed;
    inset: 0;
    background: var(--preloader-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .35s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, .08);
    border-top-color: var(--brand);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*
====================================================
  FOOTER
====================================================
*/
.site-footer {
    padding: 0;
    border-radius: 0px;
}

.site-footer::before {
    display: none;
}

.site-footer .container {
    padding: 0;
    margin: 0 auto;
}

.site-footer .copy {
    width: 100%;
    min-height: 40px;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .85rem;
    backdrop-filter: none;
    gap: .35rem;
    white-space: nowrap;
}

.copy img {
    height: 1rem;
    width: auto;
    vertical-align: middle;
}


/*
====================================================
  CANVAS BACKGROUND EFFECTS
====================================================
*/
:root {
    /* cor das estrelas/pontos */
    --scene-points: #3d87f7;
    /* cor da poeira */
    --scene-dust: #3d87f7;
}

:root[data-theme="light"] {
    --scene-points: #0bb616;
    --scene-dust: #0bb616;
}

#scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    /* por baixo de tudo */
    display: block;
    background: transparent;
    pointer-events: none;
    /* não captura clique/scroll */
}

/* garante que o conteúdo fique acima do canvas */
.site-main,
.site-footer {
    position: relative;
    z-index: 1;
}


.site-header {
    z-index: 2;
}

/*
====================================================
  ACESSIBILIDADE / MOTION REDUZIDO
====================================================
*/
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    #scene {
        display: none
    }
}



/*
====================================================
  RECAPTCHA
====================================================
*/
.grecaptcha-badge {
    z-index: 99;
}