:root{
  --topbar-h: 66px;
  --blue: #15314f;
  --orange: #f4a84b;
  --dark-text: #0b2a3d;
}

/* =========================
   Desktop: esconder wrapper
   ========================= */
@media (min-width: 769px) {
  .custom-mobile-menu-wrapper,
  .custom-menu-btn,
  .custom-sidebar,
  .custom-overlay,
  .custom-mobile-topbar { display: none !important; }
}

/* =========================
   Topbar (fixed)
   ========================= */
   
   .mornaitec-text{
       font-family: 'Montserrat', sans-serif;
       display:flex;
      justify-content:center;
      text-align:center;
      align-items:center;
      font-size:18pt;
      padding-top:12px;
      color:#f4a84b; 
       
   }

.custom-mobile-topbar{ 
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 99999;
  box-shadow: -2px 7px 16px -4px rgba(0,0,0,0.5);
}

/* logo area */
.custom-logo img, .custom-logo a {
  height: 36px;
  display:block;
}

/* =========================
   Hamburger (linhas)
   ========================= */
.custom-menu-btn{
  background: transparent;
  border: none;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--orange);
  z-index: 100001;
}

/* hamburger lines base */
.hamburger-lines{
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
  transition: background .22s ease;
}
.hamburger-lines::before,
.hamburger-lines::after{
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--orange);
  transition: transform .28s cubic-bezier(.2,.9,.2,1), top .22s ease, bottom .22s ease, opacity .18s ease;
}
.hamburger-lines::before{ top: -8px; }
.hamburger-lines::after{ bottom: -8px; }

/* when open -> transform to X */
.custom-menu-btn.open .hamburger-lines{
  background: transparent;
}
.custom-menu-btn.open .hamburger-lines::before{
  transform: rotate(45deg);
  top: 0;
}
.custom-menu-btn.open .hamburger-lines::after{
  transform: rotate(-45deg);
  bottom: 0;
}

/* =========================
   Sidebar (drop-down) - hidden by default above topbar
   ========================= */
/* mobile only */
@media (max-width: 768px) {

  .custom-sidebar{
    position: fixed;
    top: var(--topbar-h);                /* starts immediately below topbar */
    left: 0;
    right: 0;
    height: calc(100vh - var(--topbar-h));
    background: var(--blue);
    padding: 20px 28px 28px;
    transform: translateY(-12px) translateY(-100%); /* hidden above view */
    opacity: 0;
    transition: transform .36s cubic-bezier(.2,.9,.2,1), opacity .2s ease;
    z-index: 99998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* visible */
  .custom-sidebar.active{
    transform: translateY(0);
    opacity: 1;
  }

  /* top row inside sidebar (logo small + close) */
  .custom-sidebar-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom: 12px;
  }
  .custom-logo-small img { height: 36px; display:block; }

  .custom-close-btn{
    background: transparent;
    border: none;
    color: var(--orange);
    font-size: 26px;
    cursor: pointer;
  }

  /* menu links vertical */
  .custom-menu-links{
    list-style: none;
    padding: 8px 0 0 0;
    margin: 0;
  }
  .custom-menu-links li{ margin-bottom: 12px; }
  .custom-menu-links a{
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: 0;
    transition: background .18s ease, transform .18s ease;
  }

  /* item active: full-width orange band */
  .custom-menu-links .current-menu-item > a,
  .custom-menu-links a:hover {
    background: var(--orange);
    color: var(--dark-text);
  }

  /* spacing between menu and contact button */
  .custom-call{
    margin-top: 28px;
    display:flex;
    justify-content:center;
  }

  /* pill contact */
  .btn-contact{
      
    font-family: 'Montserrat', sans-serif;
    display:inline-flex;
    align-items:center;
    gap:10px;
    background: var(--orange);
    color: var(--dark-text);
    padding: 5px 22px;
    border-radius: 28px;
    color:#fff;
    font-size:12pt;
    font-weight:800;
    text-decoration:none;
    box-shadow: 0 6px 0 rgba(0,0,0,0.06);
  }
  .btn-contact img { font-size:16px; }

  /* socials */
  .custom-social{
    margin-top: 30px;
    display:flex;
    justify-content:center;
    gap:14px;
  }
  .custom-social a{
    width:40px;
    height:40px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:transparent;
    color:#ffffff;
    border:2px solid rgba(255,255,255,0.12);
    text-decoration:none;
    transition: border-color .18s ease, background .18s ease;
    font-size:16px;
  }
   
  .custom-social .span1{
    border-left: 1px solid #ccc; 
    height:15px;
    align-items:center;
    justify-content:center;
    margin-top:15px; 
    opacity: 0.1;
  }

  .custom-social .span2{
    border-left: 1px solid #ccc; 
    height:15px;
    align-items:center;
    justify-content:center;
    margin-top:15px;
     opacity: 0.1;
  }
  
  
  .custom-social a:hover{
    border-color: var(--orange);
    background: rgba(255,255,255,0.03);
  }



  /* overlay */
  .custom-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
    z-index: 99997;
  }
  .custom-overlay.active{
    opacity: 1;
    visibility: visible;
  }

  /* ensure no horizontal scroll */
  body { overflow-x: hidden; }
}
