/* ============================================
   CLOSE HITCHCOCK LLC - HEADER LAYOUT STYLES
   Navy topbar + centered logo + horizontal nav
   ============================================ */

/* 2.1 TOPBAR - Navy bar at top with contact info */
.topbar {
  background: #163967;
  padding: 0 130px;
}

@media (max-width: 991px) {
  .topbar {
    padding: 0 15px;
  }
}

@media (max-width: 767px) {
  .topbar {
    padding: 0 10px;
  }
}

.topbar .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.topbar .row {
  flex-wrap: nowrap;
  align-items: center;
}

.topbar .col,
.topbar [class*="col-"] {
  flex-shrink: 1;
  min-width: 0;
}

.topbar .col-md-5 {
  flex: 0 1 auto;
}

.topbar .col-md-7 {
  flex: 1 1 auto;
  text-align: right;
}

.topbar {
  font-size: 16px;
  color: #e5e3e3;
  margin: 0;
}

.topbar ul {
  overflow: hidden;
  list-style: none;
  float: left;
  margin-bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

@media (max-width: 991px) {
  .topbar ul {
    float: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
  }
}

.topbar ul li {
  font-size: 16px;
  float: left;
  padding: 15px 10px;
  color: #e5e3e3;
  line-height: 1em;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .topbar ul li {
    padding: 15px 10px;
  }
}

.topbar .contact-info li {
  position: relative;
}

.topbar .contact-info li:nth-child(1):before, 
.topbar .contact-info li:nth-child(2):before {
  position: absolute;
  right: 0;
  top: 10px;
  width: 1px;
  height: 25px;
  background: rgba(255, 255, 255, 0.2);
  content: "";
}

@media (max-width: 767px) {
  .topbar .contact-info li:nth-child(1):before, 
  .topbar .contact-info li:nth-child(2):before {
    display: none;
  }
}

.topbar .contact-info ul li a {
  color: #e4e4e4;
}

.topbar .contact-info ul li a:hover {
  color: #e3b576;
}

.topbar ul li:first-child {
  padding-left: 0;
}

.topbar .contact-intro ul {
  float: right;
  margin-bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

@media (max-width: 991px) {
  .topbar .contact-intro ul {
    float: none;
    justify-content: flex-end;
  }
  
  .topbar ul li {
    font-size: 13px;
    padding: 15px 8px;
  }

  .topbar {
    padding: 10px 15px;
  }
}

@media (max-width: 767px) {
  .topbar ul li {
    font-size: 12px;
    padding: 12px 6px;
  }
  
  .topbar {
    padding: 8px 10px;
  }
  
  .topbar .contact-intro ul li {
    padding-left: 8px;
    padding-right: 4px;
  }
}

@media (max-width: 576px) {
  .topbar ul li {
    font-size: 11px;
    padding: 10px 4px;
  }
  
  .topbar {
    padding: 6px 8px;
  }
}

@media (max-width: 1200px) {
  .topbar ul li {
    font-size: 13px;
    padding: 15px 8px;
  }
}

.topbar ul .fi {
  position: relative;
  top: 1px;
  display: inline-block;
  padding-right: 3px;
}

.topbar ul .fi:before {
  font-size: 15px;
  color: #fff;
}

/* 2.2 NAVIGATION - White bar with logo and menu */
.wpo-site-header {
  background-color: #fff;
}

.wpo-site-header .navigation {
  background-color: #fff;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

@media (min-width: 991px) {
  .wpo-site-header {
    padding: 0 130px;
  }
}

.wpo-site-header .row {
  width: 100%;
}

@media (max-width: 991px) {
  .wpo-site-header .navigation {
    padding: 20px 0;
  }
}

.wpo-site-header #navbar {
  transition: all 0.5s;
}

.wpo-site-header #navbar > ul li a:hover,
.wpo-site-header #navbar > ul li a:focus {
  text-decoration: none;
  color: #e3b576;
}

/* Desktop navigation styles */
@media screen and (min-width: 992px) {
  .wpo-site-header #navbar {
    justify-content: center;
  }

  .wpo-site-header #navbar li {
    position: relative;
  }

  .wpo-site-header #navbar > ul > li > a:before {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: #e3b576;
    content: "";
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border-radius: 3px;
  }

  .wpo-site-header #navbar > ul > li > a:hover:before,
  .wpo-site-header #navbar > ul > li > a.active:before {
    opacity: 1;
    visibility: visible;
  }

  .wpo-site-header #navbar > ul > li:hover > .sub-menu {
    top: 100%;
    visibility: visible;
    opacity: 1;
  }

  .wpo-site-header #navbar .sub-menu > li:hover > .sub-menu {
    left: 100%;
    visibility: visible;
    opacity: 1;
  }
}

/* Navigation list styling */
.wpo-site-header .navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wpo-site-header .navbar-nav > li {
  position: relative;
  padding: 20px 0;
}

.wpo-site-header .navbar-nav > li > a {
  display: block;
  padding: 8px 20px;
  color: #070143;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.wpo-site-header .navbar-nav > li > a:hover {
  color: #e3b576;
}

/* Dropdown menu styling */
.wpo-site-header .sub-menu {
  position: absolute;
  left: 0;
  top: 120%;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  z-index: 999;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  list-style: none;
  margin: 0;
}

@media screen and (min-width: 992px) {
  .wpo-site-header .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
  }
}

.wpo-site-header .sub-menu li {
  padding: 0;
}

.wpo-site-header .sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: #687693;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s;
}

.wpo-site-header .sub-menu li a:hover {
  background: #f8f9fa;
  color: #e3b576;
  padding-left: 25px;
}

/* Logo styling */
.wpo-site-header .navbar-brand {
  padding: 10px 0;
}

.wpo-site-header .navbar-brand img {
  max-height: 50px;
  width: auto;
}

/* Contact button styling */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.theme-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #e3b576;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.theme-btn:hover {
  background: #d19f5f;
  color: #fff;
  text-decoration: none;
}

/* Mobile menu styles */
@media (max-width: 991px) {
  .mobail-menu {
    display: block;
  }

  .navbar-toggler {
    background: transparent;
    border: none;
    padding: 10px;
  }

  .navbar-toggler .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #070143;
    margin: 4px 0;
    transition: all 0.3s;
  }

  .wpo-site-header .navigation-holder {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: all 0.3s;
    overflow-y: auto;
    padding: 20px;
  }

  .wpo-site-header .navigation-holder.show {
    left: 0;
  }

  .wpo-site-header .navbar-nav {
    flex-direction: column;
  }

  .wpo-site-header .navbar-nav > li {
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .wpo-site-header .navbar-nav > li > a {
    padding: 15px 10px;
  }

  .wpo-site-header .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0 0 0 20px;
    display: none;
  }

  .wpo-site-header .menu-item-has-children.active > .sub-menu {
    display: block;
  }

  .menu-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #070143;
    cursor: pointer;
  }

  .header-right {
    margin-top: 20px;
  }
}

@media (min-width: 992px) {
  .mobail-menu {
    display: none;
  }

  .menu-close {
    display: none;
  }
}

/* Sticky header */
.sticky-header {
  width: 100%;
  position: fixed;
  left: 0;
  top: -400px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 1s;
  box-shadow: 0 -5px 15px rgba(8, 106, 216, 0.29);
}

.sticky-on {
  opacity: 1;
  top: 0;
  visibility: visible;
}
