/* X-Press Insurance | Main Stylesheet*/

body{
  font-family: 'Lato', serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', serif;
    font-weight: 700;
}


header {
    position: sticky;
    top: 0;
    z-index: 1030;
}
.hero {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    padding: 100px 0;
}


/* Drill-down visibility + simple slide animation */
.menu-level { display: none; }
.menu-level.active { display: block; }

/* optional transition classes (used briefly by JS) */
.menu-level.slide-in { animation: slideIn 260ms ease forwards; }
.menu-level.slide-out { animation: slideOut 260ms ease forwards; }

@keyframes slideIn {
  from { transform: translateX(20%); opacity: 0 }
  to   { transform: translateX(0); opacity: 1 }
}
@keyframes slideOut {
  from { transform: translateX(0); opacity: 1 }
  to   { transform: translateX(-20%); opacity: 0 }
}

/* Tweak offcanvas padding so menu items feel spacious */
.offcanvas-body { padding-top: 0.5rem; padding-bottom: 1.25rem; }

/* Menu link visual */
.menu-link { font-size: 1.05rem; text-align: left; width: 100%; }
.button-link { background: none; border: none; }

.mobile-button-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.0rem;
    font-weight: 600;
}

.mobile-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-weight: 1000;
  padding: 0;
  justify-content: flex-start;
  opacity: 75%;
  
}
.mobile-back-btn::before {
    content: "❮";
    font-size: 1.2rem;
    padding-right: 8px;
}

/* ===== Multi-level dropdown support ===== */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

/* Optional hover open on desktop */
@media (min-width: 768px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}


.dropdown-item .arrow {
    float: right;
    padding-left: 10px; 
}

.dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px; /* adds small breathing space between text and arrow */
}
.dropdown-menu {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  display: block;
  visibility: hidden;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* For nested submenus */
.dropdown-submenu .dropdown-menu {
  opacity: 0;
  transform: translateX(-10px);
  visibility: hidden;
  transition: all 0.25s ease;
}

/* When nested submenu is visible */
.dropdown-submenu:hover > .dropdown-menu {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.text-center {
    text-align: center;
}

.has-submenu::after {
    content: "❯";
}

