/*Disable scrolling on body when side nav open*/
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
}  

body.noScroll {
  overflow: hidden;
  width: 100%;
  padding-right: var(--scrollbar-compensation, 0px);
}

/*Disable scroll on body when modal is open*/
body.inactive {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Main Nav*/
nav {
  background: #0b1c2c;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 20px 10px;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 25;
}

#navHome{
  color: white;
  font-size: 42px;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.25px;
  text-decoration: none;
  text-transform: uppercase;
}

#navElementsCont{
     display: flex;
     align-items: center;
     justify-content: center;
     width: 100%;
     gap: 5rem;
     font-size: 22px;
     padding-top: 6px;
     border-top: 1px solid #e2e8f0;
}

@media(max-width: 1020px){
    #navElementsCont{
        gap: 3.5rem;
    }
}

@media(max-width: 910px){
    #navElementsCont{
        gap: 2.5rem;
    }
}

@media(max-width: 800px){
    #mainNav{
        overflow: hidden;
        height: 0;
        transition: .5 1s linear;
        display: none;
    }
    .top-banner-wrapper {
        display: none;
    }
}

.navElements {
  position: relative;
  color: white;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}

.navElements::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;              /* distance from text */
  width: 100%;
  height: 2px;
  background-color: white;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.navElements:hover::after {
  opacity: 1;
}

.navElements:hover {
  text-shadow: 0 0 1px white;
}

.subscribe-btn {
  position: relative;
  display: inline-block;
  text-decoration: none;
  background-color: #0b1c2c; /* slate-900 */
  color: #f8fafc;            /* slate-50 */
  padding: 6px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-btn:hover {
  background-color: #1e293b; /* slate-800 */
  border-color: #94a3b8;     /* slate-400 */
  color: #e2e8f0;            /* slate-200 */
}

.subscribe-btn:active {
  transform: scale(0.98);
}

/*New dropdown and flyout*/

/* DROPDOWN STRUCTURE */
.navDropdown {
  position: relative;
}

.navDropdown a{
    text-decoration: none;
}

.dropdownWrapper {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  pointer-events: none; /* disables wrapper hitbox */
}

.navDropdown:hover .dropdownWrapper,
.dropdownWrapper:hover {
  display: flex;
  pointer-events: auto; /* enables dropdown interaction */
}

.dropdownBuffer {
  height: 5px;
  background: transparent;
  pointer-events: auto; /* ensures it keeps hover alive */
}

/* Actual dropdown content */
.dropdownContent {
  background: #eef2f6; /* subtle frosted white */
  color: #111;
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 8px 10px 8px 0;
  min-width: 180px;
  flex-direction: column;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.dropdownItem {
  position: relative;
  color: white;
  white-space: nowrap;
  font-size: 18px;
  transition: background 0.2s ease;
}

.dropdownItem:hover {
  background-color: #243851; /* slight contrast on hover */
}

.dropdownItem span {
  cursor: pointer;
  user-select: none;
  display: block;
  padding: 10px 20px;
  color: #111;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dropdownItem:hover span {
  background-color: #dfe4ea;
  color: #0b1c2c;
}

/* FLYOUT */
.flyoutContent {
  position: absolute;
  top: 0; /* aligns flyout vertically with parent item */
  left: 100%;
  background-color: #2e4b6b;
  min-width: 180px;
  display: none;
  flex-direction: column;
  border-radius: 6px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 40;
}

.dropdownItem:hover .flyoutContent {
  display: flex;
}

.flyoutContent a {
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s ease;
  margin: 0 10px;
}

.flyoutContent a:hover {
  background-color: #dfe4ea;
  color: #0b1c2c;
}

/*End*/

/* Side Nav */
#hamburgerTop{
    position: sticky;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 25;
    top: 0;
    background: #0b1c2c;
    color: white;
    padding: 12px 10px;
    box-shadow: 0 0 5px rgb(48, 54, 61);
    width: 100%;
    min-height: 73px;
    height: 73px;
    box-sizing: border-box;
}

@media(min-width: 801px){
    #hamburgerTop{
        display: none;
    }
}

@media(max-width: 650px){
    #hamburgerTop{
        min-height: 65px;
        height: 65px;
    }
}

#hamburgerTitle{
   font-size: 35px;
   font-weight: 800;
   font-family: 'Playfair Display', serif;
   letter-spacing: -0.25px;
}

@media(max-width:450px) {
    #hamburgerTitle {
        padding-left: 12px;
    }
}

.sideNavBtn{
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translate(0, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sideNavBtn .line {
  fill: #f8f9fb;
  transition:
    transform 0.65s ease,
    opacity 0.3s ease 0s;
  transform-origin: 14px 13.5px; /* center of y=12 bar */
}

/* ✅ Animate middle bar fading out */
.sideNavBtn.open .line.middle {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ✅ Top & bottom bars slide + rotate TO y=12 */
.sideNavBtn.open .line.top {
  transform: translate(-5px,5px) rotate(45deg);
}

.sideNavBtn.open .line.bottom {
  transform: translate(-5px,-5px) rotate(-45deg);
}

#sideNav{
    z-index: 20;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    max-width: 450px;
    margin-top: 0;
   
}

.navWrapBlack{
    background-color: rgb(34, 31, 31);
    transition-delay: .2s;
    display: flex;
    flex-direction: column;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .5s ease-in-out;
}

.navWrapWhite{
    background-color: white;
    width: 90%;
    position: relative;
    flex-grow: 1;
    transform: translateX(-100%);
    transition: transform .5s ease-in-out;
    transition-delay: .1s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Bump everything down to avoid header overlap and make space at the bottom */
    padding: 10px 4px max(env(safe-area-inset-bottom), 100px) 4px;
}

/* If .visible then side navigation will show */
.navWrap.visible{
    transform: translateX(0);
}

/* Base row with link + toggle */
#sideNavElements {
  display: flex;
  flex-direction: column;
  margin: 80px 0 0 0; /* align to top under logo */
}

#sideNavElements a {
  text-decoration: none;
  color: #111;
}

/* Align rows vertically */
.navRow {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0;
}

.navMainLink {
  flex-grow: 1;
  display: block;
  text-decoration: none;
}

/* Indentation */
.level-1 {
  font-size: 20px;    
  border-top: 1px solid #d1d5db;
  padding-left: 20px;
  max-width: 100%;
  min-height: 60px;
  background-color: white;
}

.homeSide {
  font-size: 20px;    
  padding-left: 20px;
  min-height: 60px;
}

.siSide {
    border-bottom: 1px solid #6b7280;
}

.level-2 {
  font-size: 19px;
  margin-left: 10%;
  max-width: 90%;
  min-height: 50px;
  border-top: 1px solid #9ca3af;
  background-color: #f7f7f7;
  padding-left: 10px;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

.level-3 {
  font-size: 18px;
  margin-left: 20%;
  max-width: 80%;
  border-top: 1px solid #6b7280;
  min-height: 40px;
  background-color: #ededed;
  padding-left: 10px;
  border-left: 2px solid #d1d5db;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Subnavs layout */
.subNav {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;

}

.mobileNavItem.open > .subNav {
  max-height: 500px; /* large enough to contain all items */
  opacity: 1;
}

/* Dropdown toggle buttons */
.dropdownToggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #111;
  font-size: 20px;
  cursor: pointer;
}

.dropdownToggle i {
  transition: transform 0.3s ease;
  transform-origin: center;
}

/* Rotate chevron when parent row is open */
.mobileNavItem.open > .navRow .dropdownToggle i {
  transform: rotateX(180deg);
}

/* End */