/* Mantém apenas estilos do header, navegação, logo, menu, mobile-nav, social-icons. Remove tudo o que for hero, sobre, serviços, etc. */
/* ===== HEADER PREMIUM COERENTE COM HERO ===== */
/* HEADER MAIS ALTO E BRANCO */
.header {
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(253,213,0,0.08), 0 1.5px 6px 0 rgba(253,197,0,0.10);
  border-bottom: 1.5px solid rgba(253,197,0,0.13);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
  padding: 1.2rem 0 1.2rem 0;
}

.header.scrolled {
  background: #fff;
  box-shadow: 0 8px 32px 0 rgba(253,213,0,0.13), 0 2px 8px 0 rgba(253,197,0,0.13);
  border-bottom: 2px solid rgba(253,197,0,0.18);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  padding: 0.8rem 0 0.8rem 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".02" fill="rgba(255,204,0,0.1)"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".03" fill="rgba(255,255,255,0.05)"></path></svg>') repeat-x;
    animation: headerWave 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes headerWave {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-25px); }
}

/* Garantir contraste e harmonia dos links */
.header .nav-link, .header .logo-text, .header .logo-eight {
  color: #003F88;
}
.header .logo-eight {
  color: #FFD500;
  filter: drop-shadow(0 2px 8px #FFD50055);
}

/* ===== LINHA AMARELA VISÍVEL - MAIS PARA BAIXO NA SEPARAÇÃO ===== */
.header::after {
    content: '';
    position: absolute;
    bottom: 0px; /* Mais para baixo, fora do header */
    left: 0;
    height: 2px; /* Fininha mas visível */
    width: 100%;
    background: linear-gradient(
            90deg,
            transparent 0%,
            #ffcc00 15%,
            #ffd700 40%,
            #ffcc00 60%,
            #ffd700 85%,
            transparent 100%
    );
    opacity: 1; /* Sempre visível */
    animation: shimmer 3s ease-in-out infinite; /* Animação mais rápida */
    z-index: 10; /* Garante que fica por cima */
    box-shadow: 0 1px 3px rgba(255, 204, 0, 0.3); /* Sombra para destacar */
}

.header.scrolled::after {
    opacity: 1; /* Mantém visível quando scrolled */
    height: 2px; /* Mantém altura consistente */
    bottom: -2px; /* Mais para baixo também quando scrolled */
    background: linear-gradient(
            90deg,
            transparent 0%,
            #ffcc00 10%,
            #ffd700 30%,
            #ffcc00 50%,
            #ffd700 70%,
            #ffcc00 90%,
            transparent 100%
    );
    box-shadow: 0 1px 4px rgba(255, 204, 0, 0.4); /* Sombra mais forte quando scrolled */
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
        opacity: 0.6;
    }
    50% {
        transform: translateX(0%);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0.6;
    }
}

/* HEADER CONTENT - LAYOUT CORRETO */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 0;
    padding-right: 8rem;
    min-height: 54px;
    position: relative;
}

/* ===== LOGO SECTION - ESQUERDA ===== */
.logo-section {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.05rem;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
    position: relative;
    z-index: 10;
}

.logo:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 16px #FFD50033;
}

.logo span {
    font-size: 2.1rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    transition: color 0.3s;
}

.logo-text {
    color: #1e3a8a;
    position: relative;
    text-shadow: 0 2px 4px rgba(30, 58, 138, 0.1);
    transition: all 0.3s ease;
}

.logo:hover .logo-text {
    color: #1e3a8a;
    text-shadow: 0 4px 8px rgba(30, 58, 138, 0.2);
}

.logo-eight {
    color: #FDC500;
    font-size: 2.1rem;
    font-weight: 900;
    text-shadow: 0 0 8px #FFD50055;
    margin-left: 0.1em;
    display: inline-block;
    transition: filter 0.4s, transform 0.4s;
}

.logo:hover .logo-eight {
    animation: logo8-rotate-once 0.7s cubic-bezier(0.4,0,0.2,1);
    filter: drop-shadow(0 0 16px #FFD50099);
}

.logo-eight.rotate-360 {
    animation: logo8-rotate-once 0.7s cubic-bezier(0.4,0,0.2,1);
}

@keyframes logo8-rotate-once {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* ===== NAVIGATION - CENTRADA ===== */
.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-right: 2.2rem;
    margin-left: 11rem;
    position: relative;
    overflow: visible !important;
    z-index: 20;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.nav-link {
    font-weight: 800;
    color: #00296B;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    position: relative;
    letter-spacing: -0.02em;
    transition: color 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.2s;
    padding: 0.6rem 0.9rem 0.6rem 0.9rem;
    border-radius: 25px;
    white-space: nowrap;
    background: none;
    display: flex;
    align-items: center;
    z-index: 1;
}

.nav-link::after {
    display: none !important;
}

/* ===== UNDERLINE DESLIZANTE MENU PRINCIPAL ===== */
.nav-underline {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #FFD500 0%, #FDC500 100%);
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1), left 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s cubic-bezier(0.4,0,0.2,1);
    z-index: 99;
    pointer-events: none;
    opacity: 0;
}

/* ===== MENU LINKS ===== */
.nav-link.active, .nav-link[aria-current="page"] {
    color: #FDC500;
}

.nav-link.active::after, .nav-link[aria-current="page"]::after,
.nav-link:hover::after {
    width: 60%;
    background: linear-gradient(90deg, #FFD500 0%, #FDC500 100%);
}

.nav-link:hover {
    color: #FFD500;
    /* Remover qualquer transformação para hover mais clean */
    transform: none;
}

.nav-link:not(.active):not([aria-current="page"]) {
    color: #00296B;
}

.nav-link:not(.active):not([aria-current="page"])::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: transparent;
    transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

.nav-link.hover-yellow {
    color: #FFD500 !important;
}

/* ===== SOCIAL ICONS - DIREITA ===== */
.social-icons {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-left: 2.2rem;
}

.social-icons a {
    background: #fff;
    border: 2px solid #FFD500; /* amarelo dourado coerente */
    color: #003F88;
    box-shadow: 0 2px 8px #EDE9E3;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.social-icons a:hover {
    background: #fff; /* Sem preenchimento amarelo ao hover */
    color: #FFD500;   /* Ícone fica amarelo dourado ao hover */
    border-color: #FFD500; /* manter amarelo dourado ao hover */
    box-shadow: 0 8px 25px #FFD50033, 0 2px 8px #EDE9E3;
    transform: scale(1.18);
    filter: drop-shadow(0 0 12px #FFD50033);
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: #FFD500;
    color: #00296B;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.menu-toggle:hover {
    background: #FDC500;
    color: #003F88;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.hamburger {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #3730a3);
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(30, 58, 138, 0.3);
}

.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-7px, 7px);
    background: linear-gradient(90deg, #ffcc00, #f59e0b);
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.4);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
    transform: translateX(-30px) scale(0.8);
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -7px);
    background: linear-gradient(90deg, #ffcc00, #f59e0b);
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.4);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    z-index: 999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 120px;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-content {
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-nav-list {
    list-style: none;
    margin-bottom: 3rem;
}

.mobile-nav-list li {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffcc00, #f59e0b);
    transition: left 0.4s ease;
    z-index: -1;
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    left: 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ffffff;
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.3);
}

.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(30, 58, 138, 0.1);
}

.mobile-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    color: #1e3a8a;
    border: 2px solid rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-social-icons a:hover {
    background: linear-gradient(135deg, #ffcc00, #f59e0b);
    color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
    border-color: transparent;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1200px) {
    .logo-section {
        margin-right: 2rem;
    }

    .nav-links {
        margin: 0 0 0 0.8rem;
    }

    .social-icons {
        margin-left: 1rem;
    }

    .logo span {
        font-size: 1.8rem;
    }

    .logo-eight {
        font-size: 2rem;
    }

    .logo {
        transform: translateY(2px);
    }

    .logo:hover {
        transform: translateY(2px) scale(1.05);
    }

    .nav-list {
        gap: 25px;
    }

    .nav-link {
        font-size: 1rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) {
    .logo-section {
        margin-right: 1rem;
    }

    .nav-links {
        margin: 0 0 0 0.5rem;
    }

    .social-icons {
        margin-left: 0.8rem;
    }

    .logo span {
        font-size: 1.6rem;
    }

    .logo-eight {
        font-size: 1.8rem;
    }

    .logo {
        transform: translateY(2px);
    }

    .logo:hover {
        transform: translateY(2px) scale(1.05);
    }

    .nav-list {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }

    .social-icons {
        gap: 0.8rem;
    }

    .social-icons a {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .header {
        padding: 1rem 0;
    }

    .header.scrolled {
        padding: 0.7rem 0;
    }

    .nav-links,
    .social-icons {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-content {
        padding: 0 15px;
    }

    .header-content a, .header-content .logo-text, .header-content .logo-eight {
        color: #00296B;
    }

    .header-content a.active, .header-content a:hover, .header-content .logo-eight {
        color: #FDC500;
    }

    .logo span {
        font-size: 1.5rem;
    }

    .logo-eight {
        font-size: 1.7rem;
    }

    .logo {
        transform: translateY(1px);
    }

    .logo:hover {
        transform: translateY(1px) scale(1.05);
    }
}