@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* header.css */
.site-header {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 120px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  opacity: 1;
}

.header,
.header-container {
  padding: 10px 70px 10px 10px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: flex-end;
  margin-left: 65px;
  height: 100%;
  padding-bottom: 10px;
}


.logo img {
  width: 160px;
  height: auto;
  object-fit: contain;
}

.nav {
  flex-grow: 1;
  margin-left: 30px;
  display: flex;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links ul,
.nav-links li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  font-size: 16px;
  font-family: 'Public Sans', sans-serif;
  line-height: 20px;
  letter-spacing: 0;
}

.nav-links li a:hover,
.nav-links li a.active {
  background-color: #a5161a;
  color: #fff;
}

.header-btn-cta {
  background-color: #7F1416;
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: background-color 0.3s ease;
  font-family: 'Public Sans', sans-serif;
}

.header-btn-cta:hover {
  background-color: #870f12;
}

.header-btn-cta .header-btn-text {
  font-size: 18px;
  line-height: 1;
}

.header-btn-cta .header-btn-icon {
  background-color: white;
  /* color: #a5161a; */
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.nav-links li a.active {
  background-color: transparent;
  color: inherit;
  font-weight: 600;
  position: relative;
}

.nav-links li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #000;
}

/* Dropdown and Submenu styling */
/* .dropdown-menu, */
.submenu {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  z-index: 1000;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-menu {
  top: 120%;
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  z-index: 1000;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown:hover>.dropdown-menu,
.has-submenu:hover>.submenu {
  display: block;
}

.dropdown-menu li a,
.submenu li a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
}

.dropdown-menu li a:hover,
.submenu li a:hover {
  background-color: #a5161a;
}

/* Remove underline from submenu links */
.dropdown-menu a,
.submenu a {
  text-decoration: none !important;
}

/* Underline only Services when active */
.dropdown.active > a {
  text-decoration: underline;
}


/* Submenu positioning */
.has-submenu {
  position: relative;
}

.has-submenu .submenu {
  top: 0;
  left: 100%;
}


/* Arrow indication for submenu */
.has-submenu>a::after {
  content: "›";
  margin-left: 6px;
  font-size: 0.8rem;
  color: #666;
}

/* Optional: spacing fix for nested menus */
.nav-links li {
  position: relative;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-wrapper {
    display: none;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
  }

  .nav-wrapper.open {
    display: block;
  }

  .nav {
    flex-direction: column;
    padding: 20px;
    margin-left: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .dropdown-menu,
  .submenu {
    position: static;
    border: none;
    box-shadow: none;
    display: none;
  }

  .dropdown.open>.dropdown-menu,
  .has-submenu.open>.submenu {
    display: block;
  }

  .nav-links li a {
    padding: 10px 0;
  }

  .has-submenu>a::after {
    content: "▼";
    float: right;
    margin-left: 8px;
    font-size: 0.7rem;
  }

  /* .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
  } */

  .header,
  .header-container {
    /* flex-wrap: wrap; */
    padding: 10px 5vw;
  }

  .cta-wrapper {
    width: 100%;
    padding: 10px 0;
    display: flex;
    justify-content: center;
  }

  .header-btn-cta {
    width: 90%;
    text-align: center;
    justify-content: center;
  }

  /* .logo {
    flex: 1 1 auto;
  } */

  .logo {
    margin-left: 0;
    padding-bottom: 8px;
  }

  .logo img {
    width: 140px;
    max-width: 40vw;
  }

  .mobile-menu-toggle {
    margin-left: auto;
  }
}
