@charset "UTF-8";

/* =============================================
   Responsive Navigation
   Replaces Adobe Spry MenuBar
   ============================================= */

/* --- Base Reset --- */
#MenuBar1,
#MenuBar1 ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Horizontal Nav Bar (Desktop) --- */
#MenuBar1 {
  display: flex;
  flex-wrap: wrap;
  padding-left: 17px;
  background-color: #5C6E82;
}

#MenuBar1 > li {
  position: relative;
}

/* --- Link Styles --- */
#MenuBar1 a {
  display: block;
  padding: 0.5em 0.75em;
  color: #FFFFCC;
  text-decoration: none;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid #95A5BC;
  background-color: #5C6E82;
  cursor: pointer;
  white-space: nowrap;
}

/* --- Dropdown Arrow Indicators --- */
#MenuBar1 > li > a.MenuBarItemSubmenu {
  padding-right: 20px;
}
#MenuBar1 > li > a.MenuBarItemSubmenu::after {
  content: " \25BE";
  font-size: 8px;
}
#MenuBar1 ul a.MenuBarItemSubmenu {
  padding-right: 20px;
}
#MenuBar1 ul a.MenuBarItemSubmenu::after {
  content: " \25B8";
  font-size: 8px;
}

/* --- Active Section Highlighting --- */
.home #home a,
.photos #photos a,
.travels #travels a,
.house #house a,
.sailing #sailing a,
.us #us a {
  background-color: #414F5F;
  color: #FFFFCC;
}

/* --- Hover / Focus States --- */
#MenuBar1 a:hover,
#MenuBar1 a:focus {
  background-color: #3C5679;
  color: #FFF;
}

.home #home a:hover, .home #home a:focus,
.photos #photos a:hover, .photos #photos a:focus,
.travels #travels a:hover, .travels #travels a:focus,
.house #house a:hover, .house #house a:focus,
.sailing #sailing a:hover, .sailing #sailing a:focus,
.us #us a:hover, .us #us a:focus {
  background-color: #3C5679;
  color: #FFF;
}

/* --- Dropdown Menus (Desktop) --- */
#MenuBar1 ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1020;
  min-width: 10em;
  background-color: #5C6E82;
}

#MenuBar1 li:hover > ul {
  display: block;
}

#MenuBar1 ul li {
  position: relative;
  margin: 0;
}

/* Sub-submenus fly out to the right */
#MenuBar1 ul ul {
  top: 0;
  left: 100%;
}

/* --- Hamburger Button (hidden on desktop) --- */
.nav-toggle {
  display: none;
  background: #5C6E82;
  border: none;
  border-bottom: 1px solid #95A5BC;
  cursor: pointer;
  padding: 12px 17px;
  width: 100%;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #FFFFCC;
  margin: 4px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* Clearfix from original layout - neutralize */
#header br.clear {
  height: 0;
  line-height: 0;
  font-size: 0;
}

/* =============================================
   MOBILE STYLES (screens < 768px)
   ============================================= */
@media (max-width: 767px) {
  /* Show hamburger */
  .nav-toggle {
    display: block;
  }

  /* Vertical menu, hidden by default */
  #MenuBar1 {
    display: none;
    flex-direction: column;
    padding-left: 0;
    width: 100%;
  }

  #MenuBar1.nav-open {
    display: flex;
  }

  /* Full-width items, no side margins */
  #MenuBar1 > li {
    margin: 0;
    width: 100%;
  }

  #MenuBar1 a {
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 0.75em 1em;
    white-space: normal;
  }

  /* Override desktop hover - only show via JS toggle on mobile */
  #MenuBar1 li:hover > ul {
    display: none;
  }

  /* Submenus: static position, hidden until toggled */
  #MenuBar1 ul {
    position: static;
    min-width: 100%;
  }

  /* Show submenu when toggled open */
  #MenuBar1 li.submenu-open > ul {
    display: block;
  }

  /* Indent submenu items */
  #MenuBar1 ul a {
    padding-left: 2em;
  }
  #MenuBar1 ul ul a {
    padding-left: 3em;
  }

  /* Rotate arrow when submenu is open */
  #MenuBar1 li.submenu-open > a.MenuBarItemSubmenu::after {
    content: " \25B4";
  }
}
