/* ═══════════════════════════════════════════════════════════
   NuAr — Stylesheet Principal
   ═══════════════════════════════════════════════════════════ */

/* ── Variáveis de cor e espaçamento ── */
:root {
    --blue-deep:    #0d1b3e;
    --blue-mid:     #1a3a8f;
    --blue-bright:  #2563eb;
    --blue-light:   #60a5fa;
    --blue-glow:    rgba(96, 165, 250, 0.35);
    --white:        #ffffff;
    --off-white:    #f0f4ff;
    --text-dark:    #0f172a;
    --text-muted:   #475569;
    --radius-lg:    20px;
    --radius-pill:  50px;
    --shadow-card:  0 8px 30px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 16px 40px rgba(37, 99, 235, 0.18);
    --transition:   all 0.3s ease;
}

/* ════════════════════════════════════════════════════════
   FORÇA BRUTA - HAMBURGER ESCURO QUANDO ATIVO
   ════════════════════════════════════════════════════════ */
/* HOME, navbar transparente, menu fechado: hamburger branco */
.page-home .navbar:not(.scrolled) .hamburger:not(.active) span {
  background: var(--white);
}

/* HOME, navbar transparente, menu aberto: hamburger escuro */
.page-home .navbar:not(.scrolled) .hamburger.active span {
  background: var(--ink);
}

/* HOME, navbar com scroll, menu fechado: hamburger escuro */
.page-home .navbar.scrolled .hamburger:not(.active) span {
  background: var(--ink);
}

/* HOME, navbar com scroll, menu aberto: hamburger escuro (mantém) */
.page-home .navbar.scrolled .hamburger.active span {
  background: var(--ink);
}


/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */

/* ── Navbar BASE (branca por defeito) ── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(26,111,196,.10);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    padding: 0.85rem 2rem;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    flex-shrink: 0;
    z-index: 10001;
}

.logo img {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

/* ── Lista de links ── */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
    margin: 0 auto;
}

.nav-item { 
    position: relative; 
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--slate);
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.9rem;
    width: 0;
    height: 2px;
    background: var(--blue-bright);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

.nav-link:hover::after { 
    width: calc(100% - 1.8rem); 
}

.nav-item-active .nav-link {
    color: var(--blue-bright);
    background: rgba(37, 99, 235, 0.07);
    font-weight: 600;
}

/* ── Dropdown ── */
.dropdown { 
    position: relative;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 6px;
    background: transparent;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--white);
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

.dropdown:hover .dropdown-content { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 0.7rem 1.4rem;
    color: #13171c !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background: #f0f4f8;
    color: #2196f3 !important;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.arrow-down {
    font-size: 0.7rem;
    margin-left: 0.2rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow-down,
.dropdown.active .arrow-down { 
    transform: rotate(180deg); 
}

/* ── Seletor de língua (desktop) ── */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.language-switcher svg {
    color: var(--slate);
    transition: color .2s;
}

.lang-link {
    font-size: .9rem;
    font-weight: 600;
    color: var(--slate);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all .2s;
}

.lang-link:hover {
    background: var(--sky);
    color: var(--blue);
}

.lang-link.active {
    color: var(--blue);
    font-weight: 700;
}

.lang-divider {
    color: rgba(74,92,112,.3);
    font-weight: 300;
}

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 10001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all .3s;
}

.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(5px, -5px); 
}

/* Esconde versão mobile do seletor em desktop */
.language-switcher-mobile {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR TRANSPARENTE (APENAS NA HOME)
   ═══════════════════════════════════════════════════════════ */

.page-home .navbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

.page-home .navbar .nav-link {
    color: var(--white);
}

.page-home .navbar .nav-item-active .nav-link {
    color: var(--white);
    background: rgba(255,255,255,.15);
}

/* Topo da home (sem scroll): hamburger branco */
.page-home .navbar:not(.scrolled) .hamburger:not(.active) span {
  background: white; 
}
.page-home .navbar .hamburger.active span {
    background: black !important;
}

.page-home .navbar .lang-link {
    color: var(--white);
}

.page-home .navbar .lang-link.active {
    color: var(--white);
}

.page-home .navbar .lang-divider {
    color: rgba(255,255,255,.3);
}

.page-home .navbar .language-switcher svg {
    color: var(--white);
}

.page-home .navbar:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
}

/* Quando faz scroll na HOME */
.page-home .navbar.scrolled {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(26,111,196,.10);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.page-home .navbar.scrolled .nav-link {
    color: var(--slate);
}

.page-home .navbar.scrolled .nav-item-active .nav-link {
    color: var(--blue-bright);
    background: rgba(37, 99, 235, 0.07);
}

/* DEPOIS: */
.page-home .navbar.scrolled .hamburger:not(.active) span {
    background: black;
}
.page-home .navbar.scrolled .hamburger.active span {
    background: var(--ink) !important;
}

.page-home .navbar.scrolled .lang-link {
    color: var(--slate);
}

.page-home .navbar.scrolled .lang-link.active {
    color: var(--blue);
}

.page-home .navbar.scrolled .lang-divider {
    color: rgba(74,92,112,.3);
}

.page-home .navbar.scrolled .language-switcher svg {
    color: var(--slate);
}

.page-home .navbar.scrolled .logo img {
    filter: none;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .hamburger { 
        display: flex; 
    }
    
    .nav-container {
        justify-content: space-between;
    }

    /* Esconde versão desktop do seletor */
    .language-switcher-desktop {
        display: none !important;
    }
    
    /* Menu mobile */
    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-bottom: 1px solid rgba(26,111,196,.1);
        gap: 2px;
        margin: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,.12);
        
        /* ESCONDE o menu por defeito */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-100%);
        transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }
    
    /* Menu aberto */
    .nav-menu.active { 
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    /* FORÇA hamburger escuro quando ativo */
    .hamburger.active span {
        background: var(--ink) !important;
    }
    
    .page-home .navbar .hamburger.active span {
        background: var(--ink) !important;
    }
    
    .page-home .navbar:not(.scrolled) .hamburger.active span {
        background: var(--ink) !important;
    }
    
    .page-home .navbar.scrolled .hamburger.active span {
        background: var(--ink) !important;
    }

    /* FORÇA links escuros no menu */
    .nav-menu .nav-link {
        color: var(--slate) !important;
    }
    
    .page-home .navbar .nav-menu .nav-link {
        color: var(--slate) !important;
    }

    .nav-menu .nav-item-active .nav-link {
        color: var(--blue-bright) !important;
        background: rgba(37, 99, 235, 0.07);
    }
    
    .page-home .navbar .nav-menu .nav-item-active .nav-link {
        color: var(--blue-bright) !important;
    }
    
    /* Remove underline em mobile */
    .nav-menu .nav-link::after {
        display: none;
    }
    
    /* Seletor de língua mobile (dentro do menu) */
    .nav-menu .language-switcher-mobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 16px 0 8px 0;
        margin-top: 12px;
        border-top: 1px solid rgba(26,111,196,.15);
    }

    .nav-menu .language-switcher-mobile svg {
        color: var(--slate) !important;
    }
    
    .nav-menu .lang-link {
        color: var(--slate) !important;
        font-size: 0.95rem;
    }
    
    .nav-menu .lang-link.active {
        color: var(--blue-bright) !important;
    }
    
    .nav-menu .lang-divider {
        color: rgba(74,92,112,.3) !important;
    }
    
    /* Dropdown mobile */
    .dropdown-content { 
        position: static; 
        opacity: 1; 
        visibility: hidden; 
        transform: none; 
        box-shadow: none; 
        border: none; 
        padding-left: 16px; 
        max-height: 0; 
        overflow: hidden; 
        transition: max-height .3s ease, visibility .3s ease; 
    }
    
    .dropdown.active .dropdown-content { 
        visibility: visible; 
        max-height: 300px; 
    }

    /* Força hamburger escuro quando menu está aberto EM MOBILE */
    .hamburger.active span {
        background: var(--ink) !important;
    }
    
    .page-home .navbar .hamburger.active span {
        background: var(--ink) !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    background: #080f22;
    color: var(--white);
    padding: 64px 0 24px;
}

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 48px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand { max-width: 360px; }

.footer-logo {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 18px;
}
.footer-logo img { height: 52px; width: auto; }

.footer-description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}
.footer-social-link { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-social-link:hover { color: var(--blue-light); transform: translateY(-2px); }
.footer-social svg { stroke-width: 1.6; }

.footer-links h3,
.footer-contact h3 {
    color: var(--blue-light);
    margin-bottom: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-links ul li a:hover { color: var(--blue-light); }

.contact-info p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
}
.contact-info a {
    color: var(--blue-light);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-info a:hover { color: #93c5fd; }

.footer-bottom { text-align: center; }
.footer-divider {
    width: 100%; height: 1px;
    background: rgba(255,255,255,0.08);
    margin-bottom: 20px;
}
.copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}

/* Responsive: footer */
@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand { grid-column: 1 / -1; max-width: 100%; text-align: center; }
    .footer-logo { justify-content: center; }
    .footer-social { justify-content: center; }
}
@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-container { padding: 0 20px; }
}


/* ═══════════════════════════════════════════════════════════
   HERO PEQUENO — Páginas internas
   ═══════════════════════════════════════════════════════════ */
.about-hero {
    min-height: 220px;
    background: linear-gradient(155deg, #060f2a 0%, #0e2262 52%, #1a3a9f 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 150px 24px 60px;
    color: var(--white);
}
.about-hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 12px;
}
.about-hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.88);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════
   UTILITÁRIOS GLOBAIS
   ═══════════════════════════════════════════════════════════ */

/* Toast de confirmação de cópia */
#copy-toast {
    position: fixed;
    top: 88px;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: var(--white);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999999;
}
#copy-toast.show { opacity: 1; }

/* =====================================================
    SHARED UTILITIES
===================================================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -.5px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Fade-in animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s ease both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }
.fade-up-d4 { animation-delay: .4s; }