/* ===============================
   NEXOR INVESTIMENTOS - STYLES
   =============================== */

/* ----- VARIÁVEIS ----- */
:root {
    --azul: #21385A;
    --azul-escuro: #182942;
    --azul-hover: #2d4a76;
    --preto: #000000;
    --branco: #ffffff;
    --cinza: #7a7a7a;
    --cinza-claro: #f5f7fa;
    --cinza-borda: #e5e8ee;
    --sombra: 0 10px 40px rgba(33, 56, 90, 0.08);
    --sombra-hover: 0 20px 60px rgba(33, 56, 90, 0.15);
    --transicao: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--cinza);
    line-height: 1.8;
    background: var(--branco);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transicao);
}

ul {
    list-style: none;
}

/* ----- CONTAINER ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===============================
   TIPOGRAFIA GLOBAL
   =============================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--azul);
    font-weight: 700;
    line-height: 1.2;
}

p {
    text-align: justify;
    text-justify: inter-word;
}

/* ===============================
   BOTÕES
   =============================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transicao);
}

.btn-primary {
    background: var(--azul);
    color: var(--branco);
    border-color: var(--azul);
}

.btn-primary:hover {
    background: var(--azul-hover);
    border-color: var(--azul-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(33, 56, 90, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--branco);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
    background: var(--branco);
    color: var(--azul);
    border-color: var(--branco);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===============================
   NAVBAR
   =============================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transicao);
}

.navbar.scrolled {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

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

.nav-logo img {
    height: 50px;
    width: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--azul);
    letter-spacing: 2px;
}

.nav-logo-sub {
    font-size: 10px;
    color: var(--cinza);
    letter-spacing: 4px;
    margin-top: 2px;
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--preto);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--azul);
    transition: var(--transicao);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--azul);
}

.btn-nav {
    padding: 12px 24px;
    background: var(--azul);
    color: var(--branco) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 2px;
    text-transform: uppercase;
}

.btn-nav:hover {
    background: var(--azul-hover);
    transform: translateY(-2px);
}

.btn-nav::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: var(--azul);
    transition: var(--transicao);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===============================
   HERO / HOME
   =============================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(33, 56, 90, 0.95) 0%, rgba(24, 41, 66, 0.88) 100%),
        url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--branco);
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 780px;
}

.hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: 45px;
    font-weight: 700;
    color: var(--branco);
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

.hero-title .accent {
    color: #a9b8d0;
    position: relative;
    display: inline-block;
}

.hero-title .accent::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--branco);
}

.hero-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
    margin-bottom: 40px;
    max-width: 620px;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}

.stat h3 {
    font-size: 45px;
    font-weight: 700;
    color: var(--branco);
    line-height: 1;
    margin-bottom: 8px;
}

.stat p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    z-index: 2;
}

.scroll-indicator span {
    width: 4px;
    height: 8px;
    background: var(--branco);
    border-radius: 2px;
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ===============================
   SEÇÕES GERAIS
   =============================== */
.section {
    padding: 120px 0;
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--azul);
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
    padding-right: 40px;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28px;
    height: 1px;
    background: var(--azul);
}

.section-label::before { left: 0; }
.section-label::after { right: 0; }

.section-title {
    font-size: 45px;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-sub {
    font-size: 14px;
    color: var(--cinza);
    line-height: 1.9;
    text-align: center;
}

.section-head-light .section-label-light {
    color: var(--branco);
}
.section-head-light .section-label-light::before,
.section-head-light .section-label-light::after {
    background: var(--branco);
}
.section-title-light { color: var(--branco) !important; }
.section-sub-light { color: rgba(255,255,255,0.75) !important; }

/* ===============================
   SERVIÇOS
   =============================== */
.services {
    background: var(--branco);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--branco);
    padding: 50px 36px;
    border: 1px solid var(--cinza-borda);
    border-radius: 4px;
    transition: var(--transicao);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--azul);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transicao);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--sombra-hover);
    transform: translateY(-8px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(33, 56, 90, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 28px;
    transition: var(--transicao);
}

.service-icon i {
    font-size: 28px;
    color: var(--azul);
    transition: var(--transicao);
}

.service-card:hover .service-icon {
    background: var(--azul);
}

.service-card:hover .service-icon i {
    color: var(--branco);
}

.service-title {
    font-size: 25px;
    font-weight: 600;
    color: var(--azul);
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-text {
    font-size: 14px;
    color: var(--cinza);
    line-height: 1.9;
}

/* ===============================
   SOBRE
   =============================== */
.about {
    background: var(--cinza-claro);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--sombra);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--azul);
    z-index: -1;
    border-radius: 4px;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 180px;
    height: 180px;
    border: 3px solid var(--azul);
    z-index: -1;
    border-radius: 4px;
    opacity: 0.5;
}

.about-image-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--azul);
    color: var(--branco);
    padding: 18px 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(33, 56, 90, 0.3);
}

.about-image-badge i {
    font-size: 32px;
}

.about-image-badge span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-content .section-label {
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

.about-content .section-label::before {
    display: none;
}

.about-content .section-label::after {
    right: auto;
    left: 0;
    bottom: -6px;
    top: auto;
    width: 40px;
}

.about-content .section-title {
    text-align: left;
    margin-top: 12px;
    margin-bottom: 16px;
}

.about-subtitle {
    font-size: 25px;
    font-weight: 500;
    color: var(--preto);
    margin-bottom: 24px;
    line-height: 1.4;
}

.about-text {
    font-size: 14px;
    color: var(--cinza);
    line-height: 1.9;
    margin-bottom: 18px;
}

.about-pillars {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pillar {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pillar i {
    font-size: 22px;
    color: var(--azul);
    background: var(--branco);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: var(--sombra);
    flex-shrink: 0;
}

.pillar h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--azul);
    margin-bottom: 6px;
}

.pillar p {
    font-size: 14px;
    color: var(--cinza);
    line-height: 1.8;
}

/* ===============================
   CONTATO
   =============================== */
.contact {
    background: var(--azul);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border: 2px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 20px;
    transition: var(--transicao);
}

.contact-item:hover .contact-icon {
    background: var(--branco);
    color: var(--azul);
}

.contact-item h4 {
    color: var(--branco);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.contact-item p,
.contact-item a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    text-align: left;
}

.contact-item a:hover {
    color: var(--branco);
}

/* Formulário */
.contact-form-wrap {
    background: var(--branco);
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.contact-form-title {
    font-size: 25px;
    font-weight: 600;
    color: var(--azul);
    margin-bottom: 8px;
}

.contact-form-sub {
    font-size: 14px;
    color: var(--cinza);
    margin-bottom: 32px;
    text-align: left;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--azul);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--cinza-borda);
    border-radius: 3px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--preto);
    background: var(--branco);
    transition: var(--transicao);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(33, 56, 90, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Poppins', sans-serif;
}

/* ===============================
   FOOTER
   =============================== */
.footer {
    background: var(--azul-escuro);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1.2fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-brand img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.6);
    text-align: justify;
}

.footer-col h4 {
    color: var(--branco);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--branco);
}

.footer-col ul li {
    font-size: 14px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li i {
    color: var(--branco);
    font-size: 12px;
    width: 16px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--branco);
    padding-left: 4px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 15px;
}

.footer-social a:hover {
    background: var(--branco);
    color: var(--azul);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    text-align: center;
}

/* ===============================
   WHATSAPP FLOAT
   =============================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===============================
   ANIMAÇÕES ON SCROLL
   =============================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   RESPONSIVIDADE
   =============================== */
@media (max-width: 992px) {
    .hero-title { font-size: 38px; }
    .section-title { font-size: 38px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-container { grid-template-columns: 1fr; gap: 60px; }
    .about-image img { height: 450px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
    .hero { background-attachment: scroll; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }

    .nav-menu {
        position: fixed;
        top: 85px;
        left: 0;
        width: 100%;
        background: var(--branco);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        transform: translateY(-120%);
        transition: transform 0.4s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .btn-nav {
        display: inline-block;
        width: auto;
    }

    .nav-toggle { display: flex; }

    .hero-title { font-size: 32px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .hero-stats { gap: 30px; }
    .stat h3 { font-size: 34px; }

    .section-title { font-size: 30px; }
    .section-head { margin-bottom: 50px; }

    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 40px 28px; }
    .service-title { font-size: 22px; }

    .about-subtitle { font-size: 20px; }
    .about-image img { height: 350px; }

    .contact-form-wrap { padding: 32px 24px; }
    .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }

    .footer-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand p { text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-col ul li { justify-content: center; }
    .footer-social { justify-content: center; }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .nav-logo-text { display: none; }
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 28px; }
    .section-title { font-size: 26px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .stat p { text-align: center; }
}
