@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --fv-navy: #082f66;
    --fv-navy-strong: #052653;
    --fv-blue: #175aa5;
    --fv-blue-soft: #eaf2fb;
    --fv-blue-mist: #f4f8fc;
    --fv-yellow: #ffc51a;
    --fv-yellow-soft: #fff4c7;
    --fv-gold: #d89e00;
    --fv-ink: #16324f;
    --fv-muted: #61748a;
    --fv-line: #dfe8f2;
    --fv-white: #ffffff;
    --fv-shadow: 0 18px 48px rgba(18, 55, 91, 0.10);
    --fv-shadow-soft: 0 8px 28px rgba(18, 55, 91, 0.08);
}

html,
body {
    color: var(--fv-ink);
    font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background:
        radial-gradient(circle at 94% 4%, rgba(23, 90, 165, 0.075), transparent 30rem),
        radial-gradient(circle at 4% 24%, rgba(255, 197, 26, 0.06), transparent 25rem),
        linear-gradient(180deg, #fcfdff 0%, #f6f9fc 100%) !important;
}

::selection {
    background: var(--fv-yellow);
    color: var(--fv-navy-strong);
}

/* Header executivo: leve, preciso e com amarelo apenas como assinatura */
#main-header,
#main-header.header-scrolled {
    isolation: isolate;
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid rgba(8, 47, 102, 0.08) !important;
    box-shadow: 0 7px 24px rgba(15, 45, 78, 0.065) !important;
    backdrop-filter: saturate(145%) blur(20px);
}

#main-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    content: '';
    background: linear-gradient(90deg, transparent 7%, rgba(8, 47, 102, 0.10) 28%, rgba(255, 197, 26, 0.7) 50%, rgba(8, 47, 102, 0.10) 72%, transparent 93%);
    opacity: 0.8;
}

#main-header > div:first-child {
    min-height: 4.65rem;
    gap: 1.25rem;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0;
}

.flexvan-logo-header {
    width: auto;
    max-width: 184px;
    object-fit: contain;
}

#main-header nav ul,
#main-header nav a,
#mobile-menu a {
    color: var(--fv-navy) !important;
}

#main-header nav > ul {
    gap: 0.15rem;
}

#main-header nav > ul > li > a {
    position: relative;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    padding: 0.58rem 0.72rem;
    color: #294660 !important;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

#main-header nav > ul > li > a:hover {
    border-color: rgba(8, 47, 102, 0.08);
    background: #f3f7fb !important;
    color: var(--fv-navy-strong) !important;
    transform: translateY(-1px);
}

#main-header nav > ul > li > a.active,
#main-header nav > ul > li > a[class~="bg-amarelo"] {
    border-color: rgba(8, 47, 102, 0.10);
    background: #edf3f9 !important;
    color: var(--fv-navy-strong) !important;
    box-shadow: inset 0 -2px 0 var(--fv-yellow);
}

#main-header nav .group {
    position: relative;
}

/* Ponte invisível entre o gatilho e o dropdown para o hover não se perder. */
#main-header nav .group::after {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    width: 18rem;
    height: 0.75rem;
    content: '';
}

#main-header nav .group > div {
    margin-top: 0.45rem;
    padding: 0.55rem;
    border-color: rgba(8, 47, 102, 0.10);
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 22px 55px rgba(13, 43, 76, 0.16);
}

#main-header nav .group:focus-within > div {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

#main-header nav .group > div a {
    border: 1px solid transparent;
    border-radius: 0.72rem;
    padding: 0.68rem 0.75rem;
    color: #38536d !important;
    font-size: 0.78rem;
}

#main-header nav .group > div a:hover {
    border-color: #e3ebf3;
    background: #f5f8fc !important;
    color: var(--fv-navy) !important;
}

#main-header nav .group > div a[class*="bg-amber"] {
    border-color: rgba(255, 197, 26, 0.30);
    background: #fff9e7 !important;
}

.header-cta-whatsapp {
    border: 1px solid #d2e7db;
    background: #f8fcfa !important;
    color: #187543 !important;
    box-shadow: 0 4px 12px rgba(22, 117, 67, 0.06) !important;
}

.header-cta {
    min-height: 2.55rem;
    padding: 0.62rem 0.9rem !important;
    border-radius: 0.78rem !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.005em;
}

.header-cta-orcamento {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--fv-navy-strong);
    background: linear-gradient(135deg, #0a3975, #052653) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(5, 38, 83, 0.18) !important;
}

.header-cta-orcamento::before {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    content: '';
    background: var(--fv-yellow);
    box-shadow: 0 0 0 4px rgba(255, 197, 26, 0.12);
}

.header-cta:hover {
    transform: translateY(-2px) !important;
}

.header-cta-orcamento:hover {
    background: linear-gradient(135deg, #104c91, #082f66) !important;
    box-shadow: 0 14px 28px rgba(5, 38, 83, 0.23) !important;
}

#mobile-menu-button {
    background: var(--fv-blue-soft);
    color: var(--fv-navy) !important;
}

#mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: var(--fv-line) !important;
    box-shadow: 0 18px 36px rgba(18, 55, 91, 0.12);
}

#mobile-menu .mobile-nav-link:hover,
#mobile-menu .mobile-nav-link[class~="bg-amarelo"] {
    background: #eef4f9 !important;
    color: var(--fv-navy-strong) !important;
}

#mobile-menu > div > div[class*="border-l"] {
    border-color: #d8e3ef !important;
}

/* Hero: mantém as fotos impactantes, mas troca a moldura escura por luz */
#hero {
    background:
        linear-gradient(120deg, #fbfdff 0%, #f4f8fc 58%, #eaf2f9 100%) !important;
}

#hero::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: '';
    pointer-events: none;
    background:
        linear-gradient(132deg, transparent 0 61%, rgba(8, 47, 102, 0.028) 61.15% 61.55%, transparent 61.7%),
        radial-gradient(ellipse at 95% 40%, rgba(23, 90, 165, 0.075), transparent 38%),
        radial-gradient(ellipse at 76% 94%, rgba(255, 197, 26, 0.065), transparent 31%);
}

#hero::after {
    height: 54px !important;
    background: linear-gradient(180deg, rgba(246, 249, 252, 0) 0%, rgba(241, 246, 251, 0.72) 100%) !important;
}

#hero .hero-carousel {
    border: 1px solid rgba(8, 47, 102, 0.11) !important;
    border-radius: 1.45rem !important;
    box-shadow: 0 24px 55px rgba(8, 47, 102, 0.16) !important;
}

#hero .hero-carousel::after {
    position: absolute;
    inset: 0;
    z-index: 9;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: inherit;
    content: '';
    pointer-events: none;
}

#hero .hero-form-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(8, 47, 102, 0.10) !important;
    border-radius: 1.45rem !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.98)) !important;
    box-shadow: 0 24px 58px rgba(20, 51, 82, 0.105), 0 2px 5px rgba(20, 51, 82, 0.04) !important;
}

#hero .hero-form-card::before {
    display: block;
    width: 5.6rem;
    height: 3px;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    content: '';
    background: linear-gradient(90deg, var(--fv-yellow), #ffd95b);
}

#hero .hero-form-heading {
    border-color: rgba(8, 47, 102, 0.09) !important;
}

#hero .hero-form-heading > p:first-child {
    color: var(--fv-blue) !important;
    font-weight: 800;
    letter-spacing: 0.18em;
}

#hero .hero-form-heading h2 {
    color: var(--fv-navy-strong) !important;
    letter-spacing: -0.035em;
}

.campo-form {
    border-color: #d6e1ec !important;
    background: #ffffff !important;
    color: var(--fv-ink) !important;
    box-shadow: inset 0 1px 2px rgba(21, 51, 80, 0.025);
}

.campo-form:hover {
    border-color: #bdcede !important;
}

.campo-form:focus {
    border-color: var(--fv-blue) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(23, 90, 165, 0.09), 0 7px 16px rgba(23, 90, 165, 0.07) !important;
}

.hero-calc-button,
#hero a[class*="bg-[#FCC60E]"] {
    border: 1px solid #082f66 !important;
    background: linear-gradient(135deg, #0b3c78, #052653) !important;
    color: #fff !important;
    box-shadow: 0 14px 26px rgba(5, 38, 83, 0.20) !important;
}

.hero-calc-button svg {
    color: var(--fv-yellow);
}

.hero-calc-button:hover,
#hero a[class*="bg-[#FCC60E]"]:hover {
    background: linear-gradient(135deg, #104c91, #082f66) !important;
    box-shadow: 0 18px 32px rgba(5, 38, 83, 0.25) !important;
}

#servicos {
    border: 1px solid rgba(8, 47, 102, 0.09) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 20px 50px rgba(20, 51, 82, 0.075) !important;
}

#servicos h2 {
    color: var(--fv-navy) !important;
}

#servicos > div:first-child p:first-child {
    color: var(--fv-blue) !important;
}

.servico-item {
    position: relative;
    overflow: hidden;
    border-color: #e0e8f1 !important;
    background: linear-gradient(145deg, #ffffff, #f7fafd) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.servico-item::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    content: '';
    background: linear-gradient(180deg, var(--fv-yellow), var(--fv-gold));
    opacity: 0.75;
}

.servico-item:hover {
    border-color: rgba(23, 90, 165, 0.30) !important;
    background: #fff !important;
    box-shadow: 0 12px 26px rgba(18, 55, 91, 0.10);
}

.servico-titulo {
    color: var(--fv-navy) !important;
    letter-spacing: 0.055em;
}

.servico-texto {
    color: var(--fv-muted) !important;
}

/* Seções claras, cartões mais refinados */
#frotas {
    background: linear-gradient(180deg, #f2f6fa 0%, #f9fbfd 48%, #ffffff 100%) !important;
}

#frotas::before {
    background:
        radial-gradient(circle at 90% 10%, rgba(23, 90, 165, 0.09), transparent 30%),
        radial-gradient(circle at 5% 65%, rgba(255, 197, 26, 0.08), transparent 28%) !important;
}

#frotas::after,
#depoimentos::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(239, 245, 251, 0.55)) !important;
}

#frotas article,
#depoimentos article,
#depoimentos [class*="rounded-2xl"][class*="bg-white"] {
    border-color: #dfe7ef !important;
    border-radius: 1.3rem !important;
    box-shadow: 0 12px 34px rgba(18, 49, 80, 0.07) !important;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease !important;
}

#frotas article:hover,
#depoimentos article:hover {
    border-color: #cad8e5 !important;
    box-shadow: 0 20px 44px rgba(18, 49, 80, 0.12) !important;
    transform: translateY(-3px);
}

#frotas .frota-card-wrapper article > div:first-child {
    position: relative;
    border-bottom: 1px solid #e2e9f0;
    background: linear-gradient(135deg, #ffffff, #f3f7fb) !important;
}

#frotas .frota-card-wrapper article > div:first-child::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: '';
    background: linear-gradient(90deg, var(--fv-navy) 0 68%, var(--fv-yellow) 68% 100%);
}

#frotas .frota-card-wrapper article > div:first-child h3 {
    color: var(--fv-navy-strong) !important;
    letter-spacing: -0.015em;
}

#frotas .frota-card-wrapper article > div:first-child p {
    color: #587089 !important;
}

#frotas .frota-card-wrapper article a[href="#hero"] {
    border: 1px solid var(--fv-navy);
    background: linear-gradient(135deg, #0b3c78, #052653) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(5, 38, 83, 0.13);
}

#frotas .frota-card-wrapper article a[href="#hero"]:hover {
    background: linear-gradient(135deg, #104c91, #082f66) !important;
}

#frotas .chip-feature {
    border-color: #dde6ef;
    background: #f7f9fc;
    color: #4d657b;
}

#frotas aside[class*="bg-[linear-gradient"] {
    background: linear-gradient(145deg, #0a3975, #175aa5) !important;
}

#depoimentos {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%) !important;
}

#depoimentos h2 {
    color: var(--fv-navy-strong) !important;
    letter-spacing: -0.03em;
}

#depoimentos h2 span {
    color: var(--fv-blue) !important;
}

#depoimentos .depoimento-card-desktop > div,
#depoimentos .depoimento-card-mobile-slide > div,
#instagram-feed > div {
    border-color: #dfe7ef !important;
    background: linear-gradient(145deg, #ffffff, #fbfcfe) !important;
    box-shadow: 0 14px 36px rgba(18, 49, 80, 0.075) !important;
}

#depoimentos .depoimento-card-desktop [class*="bg-amarelo"][class*="rounded-full"],
#depoimentos .depoimento-card-mobile-slide [class*="bg-amarelo"][class*="rounded-full"] {
    background: #edf3f9 !important;
    color: var(--fv-navy) !important;
    box-shadow: inset 0 0 0 1px rgba(8, 47, 102, 0.08);
}

#depoimentos a[href="#hero"] {
    border: 1px solid var(--fv-navy);
    background: var(--fv-navy) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(5, 38, 83, 0.15);
}

#depoimentos a[href="#hero"]:hover {
    background: var(--fv-blue) !important;
}

/* Heroes internos seguem a mesma linguagem clara da nova marca */
#main-header + section:not(#hero)[class*="bg-[#021a3d]"] {
    background:
        radial-gradient(circle at 88% 18%, rgba(23, 90, 165, 0.11), transparent 28rem),
        radial-gradient(circle at 8% 70%, rgba(255, 197, 26, 0.10), transparent 22rem),
        linear-gradient(135deg, #ffffff 0%, #edf4fb 100%) !important;
    border-bottom: 1px solid var(--fv-line);
}

#main-header + section:not(#hero)[class*="bg-[#021a3d]"] h1,
#main-header + section:not(#hero)[class*="bg-[#021a3d]"] h2 {
    color: var(--fv-navy-strong) !important;
}

#main-header + section:not(#hero)[class*="bg-[#021a3d]"] p[class*="text-blue"],
#main-header + section:not(#hero)[class*="bg-[#021a3d]"] p[class*="text-slate"] {
    color: var(--fv-muted) !important;
}

#main-header + section:not(#hero)[class*="bg-[#021a3d]"] a[class*="border-white"] {
    border-color: rgba(8, 47, 102, 0.24) !important;
    color: var(--fv-navy) !important;
    background: rgba(255, 255, 255, 0.65);
}

/* Blog e cabeçalhos editoriais */
main header[class*="bg-[#021a3d]"],
section[class*="bg-[#021a3d]"]:not(#hero) {
    background:
        radial-gradient(circle at 88% 16%, rgba(23, 90, 165, 0.08), transparent 24rem),
        linear-gradient(135deg, #ffffff 0%, #edf4fb 100%) !important;
    border-bottom: 1px solid rgba(8, 47, 102, 0.08);
}

main header[class*="bg-[#021a3d]"] h1,
main header[class*="bg-[#021a3d]"] h2,
section[class*="bg-[#021a3d]"]:not(#hero) h1,
section[class*="bg-[#021a3d]"]:not(#hero) h2 {
    color: var(--fv-navy-strong) !important;
}

main header[class*="bg-[#021a3d]"] p:not([class*="bg-"]),
section[class*="bg-[#021a3d]"]:not(#hero) p:not([class*="bg-"]) {
    color: var(--fv-muted) !important;
}

section[class*="bg-[#021a3d]"]:not(#hero) a[class*="border-white"] {
    border-color: rgba(8, 47, 102, 0.24) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: var(--fv-navy) !important;
}

main > section:not(#hero) article[class*="bg-white"],
main > section:not(#hero) aside[class*="bg-white"] {
    border-color: #dfe7ef !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 14px 38px rgba(18, 49, 80, 0.075) !important;
}

/* O rodapé continua azul para fechar a página e dar contraste à marca */
footer.bg-azul {
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 197, 26, 0.13), transparent 24rem),
        linear-gradient(145deg, #062a59 0%, #0a3975 58%, #0f4c91 100%) !important;
    border-top: 3px solid var(--fv-yellow) !important;
}

footer.bg-azul > div > div > div > div[class*="rounded-2xl"] {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.055) !important;
}

.footer-brand-lockup {
    display: inline-flex;
    align-items: center;
    min-height: 3.35rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 26px rgba(2, 20, 45, 0.16);
}

.footer-brand-logo {
    display: block;
    width: auto;
    height: 2.35rem;
    object-fit: contain;
}

.whatsapp-lead-dialog,
.modal-container {
    border: 1px solid var(--fv-line);
    box-shadow: 0 28px 70px rgba(8, 47, 102, 0.22) !important;
}

/* Na home, o cabe&ccedil;alho flutua sobre a fotografia sem criar uma faixa vazia. */
#main-header.header-home-overlay,
#main-header.header-home-overlay.header-scrolled {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
}

#main-header.header-home-overlay::after {
    display: none;
}

#main-header.header-home-overlay > div:first-child {
    width: min(calc(100% - 2rem), 1160px);
    min-height: 4rem;
    margin-top: .85rem;
    padding: .5rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 34px rgba(2, 20, 45, .18);
    backdrop-filter: saturate(135%) blur(18px);
}

#main-header.header-home-overlay.header-scrolled > div:first-child {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 30px rgba(2, 20, 45, .22);
}

#main-header.header-home-overlay .flexvan-logo-header {
    max-width: 164px;
}

#main-header.header-home-overlay nav > ul > li > a {
    padding: .48rem .62rem;
    font-size: .76rem;
}

#main-header.header-home-overlay .header-cta {
    min-height: 2.35rem;
    padding: .52rem .78rem !important;
}

@media (max-width: 1023px) {
    #main-header > div:first-child {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .flexvan-logo-header {
        max-width: 148px;
    }

    #main-header.header-home-overlay > div:first-child {
        width: calc(100% - 1rem);
        min-height: 3.75rem;
        margin-top: .5rem;
        padding: .45rem .75rem;
        border-radius: 10px;
    }

    #main-header.header-home-overlay #mobile-menu {
        width: calc(100% - 1rem);
        margin: .35rem auto 0;
        border: 1px solid var(--fv-line) !important;
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
