* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}
:root {

  /* CORES PRINCIPAIS */
  --azul-escuro: #0a3f6e;
  --azul-destaque: #34baeb;
  --accent-color: #bae8f7;

  /* BACKGROUNDS */
  --bg-main: #ffffff;
  --bg-dark: #04080f;
  --bg-light: #f7f7f4;
  --bg-section: #001a33;

  /* TEXTOS */
  --text-primary: #000000;
  --text-secondary: #313030;
  --text-light: #ffffff;
  --text-muted: #9d9d9d;

  /* BORDAS */
  --border-light: #dddddd;
  --border-dark: #2b2b2d;

  /* HOVER */
  --hover-primary: #1576b8;
  --hover-light: #f9f9f9;

  /* SOMBRAS */
  --shadow-light: rgba(0,0,0,0.1);
  --shadow-medium: rgba(0,0,0,0.25);

  /*BTN*/
  --btn-color: #002770;

}
#navbar {
  z-index: 10000; /* maior que o overlay */
  position: fixed;
}.blur-overlay {
  z-index: 999; /* menor que a navbar */
}
/* =========================
   NAVBAR
========================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 9999;
    background: transparent;
    overflow: visible;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

/* topo */
#navbar.nav-top {
    background: transparent;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* aparece branca ao subir */
#navbar.nav-scrolled {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* some ao descer */
#navbar.nav-hidden {
    transform: translateY(-100%);
}

/* quando dropdown estiver aberto */
#navbar.dropdown-open {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* =========================
   NAV CONTAINER
========================= */
.nav-align {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible;
}

.nav-img-left img {
    width: 150px;
    display: block;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 36px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: static;
}

.nav-item > a {
    display: inline-block;
    text-decoration: none;
      color: var(--text-secondary) !important;
    font-size: 18px;
   
    padding: 20px 0;
    transition: color 0.25s ease, transform 0.25s ease;
}

#navbar.nav-scrolled .nav-item > a,
#navbar.dropdown-open .nav-item > a {
    color: #111111;
}

.nav-item > a:hover {
    transform: translateY(2px);
}
.next-btn {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid var(--bg-section);
    color: var(--bg-section);
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 16px;
    font-weight: 500;
}
.next-btn:hover {
    background: var(--bg-section);
    color: #fff;
}
.back-btn {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid var(--bg-section);
    color: var(--bg-light);
    background: var(--bg-section);
    border-radius: 999px;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 16px;
    font-weight: 500;
}
.back-btn:hover {
  background-color: #000000;
    color: #fff;
}
/* =========================
   BUTTON
========================= */
.contact-btn {
    padding: 14px 28px;
    border: 1px solid var(--bg-section);
    color: var(--bg-section);
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 16px;
    font-weight: 500;
}
.contact-btn:hover {
    background: var(--bg-section);
    color: #fff;
}
.contact-btn i {
    transition: 0.25s ease;
    font-size: 1px;
}
.contact-btn:hover i{
    background-color: white;
    font-size: 16px;
    padding: 2px 4px;
    margin-right: 10px;
    border-radius: 50px;
    color: var(--azul-destaque);
}
.contact-btn-color {
    padding: 14px 28px;
    border: 1px solid var(--bg-section);
    background-color: var(--bg-section);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 16px;
    font-weight: 500;
}.contact-btn-color:hover {
    background: var(--azul-destaque);
     border: 1px solid var(--azul-destaque);
    color: #fff;
}


.contact-btn-color-blue {
    padding: 12px 28px;
    border: 1px solid var(--azul-destaque);
    background-color: var(--azul-destaque);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 16px;
    font-weight: 500;
}.contact-btn-color-blue:hover {
    background: var(--bg-dark);
     border: 1px solid var(--bg-dark);
    color: #fff;
}
.contact-btn-color-blue i {
    transition: 0.25s ease;
    font-size: 1px;
}
.contact-btn-color-blue:hover i{
    background-color: white;
    font-size: 16px;
    padding: 2px 5px;
    margin-right: 10px;
    border-radius: 50px;
    color: var(--azul-destaque);
}

.contact-btn-color {
    text-decoration: none;
}
#navbar.nav-scrolled .contact-btn,
#navbar.dropdown-open .contact-btn {
    border-color: #111111;
    color: #111111;
}

/* =========================
   MEGA DROPDOWN
========================= */

/* todos os dropdowns com a mesma largura e centralizados */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(1400px, calc(100vw - 48px));
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

/* abre via JS */
.nav-item.active .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-content {
    width: 100%;
    background: #f7f7f4;
    border-radius: 0 0 28px 28px;
    padding: 28px 0 36px 0;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.mega-left {
    padding-left: 60px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mega-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    text-decoration: none;
      color: var(--text-secondary) !important;
    font-size: 24px;
  
    padding: 28px 0;
    border-bottom: 1px solid rgba(12, 23, 59, 0.12);
    transition: 0.25s ease;
}
.mega-link-row span:last-child {

  transition: 0.2s ease-in-out;
}
.mega-link-row:hover {
    padding-left: 10px;
}
.mega-link-row:hover span:last-child {
  transform: rotate(-45deg);
  transition: 0.2s ease-in-out;
}
.mega-link-row span:last-child {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 1px solid rgba(12, 23, 59, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mega-actions {
    margin-top: 28px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mega-btn {
    text-decoration: none;
    padding: 14px 28px;
    cursor: pointer;
    border-radius: 999px;
    font-size: 17px;transition: 0.2s ease;
    font-weight: 500;
    transition: 0.25s ease;
}

.mega-btn.filled {
    background: #001a33;
    color: #ffffff;
    border: 1px solid #0c283b;
}

.mega-btn.outline {
    background: transparent;
    color: #001a33;
    border: 1px solid #0c203b;
}
.mega-btn:hover {
  border: 1px solid var(--azul-destaque);
}

.mega-right {
   padding-right: 60px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  
}

.mega-right img {
    width: 100%;
    max-width: 720px;
    min-height: 520px;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    display: block;
}.mega-right video {
    width: 100%;
    max-width: 720px;
    min-height: 520px;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    display: block;
}
#navbar {
    overflow: visible;
}

.nav-align {
    overflow: visible;
    position: relative;
}

.nav-item {
    position: static;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(1400px, calc(100vw - 48px));
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.nav-item.active .mega-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}.mega-dropdown {
    margin-top: 0;
    padding-top: 0;
}
/* =========================
   BLUR BACKGROUND NAV
========================= */

.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  z-index: 999;
}

/* navbar acima de tudo */
#navbar {
  position: fixed;
  z-index: 10000;
}
/* quando ativo */
.blur-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* garante que navbar fique acima */
#navbar {
  z-index: 9999;
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1400px) {
    .nav-align {
        padding: 16px 60px;
    }

    .mega-dropdown {
        width: min(1280px, calc(100vw - 32px));
    }

    .mega-left {
        padding-left: 40px;
    }

    .mega-right {
        padding-right: 40px;
    }

    .mega-link-row {
        font-size: 20px;
    }
}

@media (max-width: 1100px) {
    .mega-dropdown {
        width: min(1000px, calc(100vw - 24px));
    }

    .mega-content {
        grid-template-columns: 1fr;
    }

    .mega-left,
    .mega-right {
        padding-left: 32px;
        padding-right: 32px;
    }

    .mega-right img {
        min-height: 320px;
    }
}/* =========================
MOBILE NAVBAR
========================= */

.mobile-navbar{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#fff;
    z-index:99999;
    border-bottom:1px solid rgba(0,0,0,0.08);
}

.mobile-nav-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 20px;
}

.mobile-logo img{
    width:130px;
}

.mobile-menu-btn{
    width:52px;
    height:52px;
    border:none;
    background:#001a33;
    border-radius:14px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:6px;
    cursor:pointer;
}

.mobile-menu-btn span{
    width:24px;
    height:2px;
    background:#fff;
    border-radius:50px;
    transition:0.3s ease;
}

/* botão animado */
.mobile-menu-btn.active span:first-child{
    transform:rotate(45deg) translateY(6px);
}

.mobile-menu-btn.active span:last-child{
    transform:rotate(-45deg) translateY(-6px);
}

/* menu */
.mobile-menu{
    position:fixed;
    top:89px;
    left:0;
    width:100%;
    height:calc(100vh - 89px);
    background:#fff;
    overflow-y:auto;
    padding:10px 20px 40px;
    transform:translateX(100%);
    transition:0.35s ease;
}

.mobile-menu.active{
    transform:translateX(0);
}

.mobile-links{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.mobile-dropdown{
    border-bottom:1px solid rgba(0,0,0,0.08);
    padding-bottom:14px;
}

.mobile-dropdown-btn{
    width:100%;
    background:none;
    border:none;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:20px;
    font-weight:500;
    color:#111;
    padding:14px 0;
    cursor:pointer;
}

.mobile-dropdown-btn i{
    transition:0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-btn i{
    transform:rotate(45deg);
}

.mobile-dropdown-content{
    max-height:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    gap:14px;
    transition:0.35s ease;
}

.mobile-dropdown.active .mobile-dropdown-content{
    max-height:500px;
    padding-top:10px;
}

.mobile-dropdown-content a{
    text-decoration:none;
    color:#555;
    font-size:17px;
}

.mobile-nav-bottom{
    margin-top:30px;
}

.mobile-contact-btn{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#001a33;
    color:#fff;
    text-decoration:none;
    padding:18px;
    border-radius:999px;
    font-size:18px;
    font-weight:500;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:992px){


    /* mostra mobile */
    .mobile-navbar{
        display:block;
    }

}
@media (max-width: 1400px) {
    .nav-align {
        display: none;
        padding: 16px 60px;
    }
}