/* Mobile First - Header Styles */

/* Mobile Header */
.site-header {
  background-color: #181818;
  color: #ffffff;
  /* border-bottom: 1px solid #fff1eb0d; */
  padding: 0;
  position: relative;
  z-index: 1000;
}

.header-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Mobile Logo */
.site-branding {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid #fff1eb0d;
}

.site-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo a {
  display: block;
}

.site-logo img {
  width: 63.116px;
  height: 26.498px;
  display: block;
}

/* Mobile Controls Row */
.mobile-controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 24px;
  border-bottom: 1px solid #fff1eb0d;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  z-index: 100;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Search Toggle */
.mobile-search-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-search-toggle svg {
  width: 20px;
  height: 20px;
}

/* Desktop Search Toggle - Hidden on Mobile */
.desktop-search-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #ffffff;
  margin-left: 20px;
}

.desktop-search-toggle svg {
  width: 20px;
  height: 20px;
}

/* Hide banners on mobile */
.site-left-banner,
.site-right-banner {
  display: none;
}

/* Mobile Navigation - Slide Out */
.main-navigation {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px; /* 85% width */
  max-width: 85%;
  height: 100vh;
  background-color: #181818;
  z-index: 1001;
  transition: left 0.3s ease;
  padding: 24px;
  border-right: 1px solid #fff1eb0d;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.5);
}

.main-navigation.active {
  left: 0;
}

/* Mobile Nav Header (Close) */
.mobile-nav-header {
  display: flex;
  justify-content: flex-start; /* Align X to left */
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none; /* No border below the header part itself */
}

.mobile-menu-close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav-logo {
  display: none; /* Hide logo in open menu as per design */
}

/* Mobile Navigation List */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.main-navigation li {
  margin: 0;
  border-bottom: 1px solid #fff1eb0d;
}

/* The design shows separators between items. The last item usually has one too or not? 
   The screenshot cuts off. Assuming standard list separators. 
   The design shows "Home" has a separator below it. */

.main-navigation a {
  color: #ffffff;
  text-decoration: none;
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 16px;
  letter-spacing: -0.16px;
  display: block;
  font-weight: 400;
  padding: 20px 0;
  text-transform: capitalize;
}

.main-navigation a:hover {
  opacity: 0.7;
}

.main-navigation .no-link {
  color: #ffffff;
  text-decoration: none;
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 16px;
  letter-spacing: -0.16px;
  display: block;
  font-weight: 400;
  padding: 20px 0;
  text-transform: capitalize;
  cursor: default;
  pointer-events: none;
  opacity: 0.5;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #181818;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
}

.search-container {
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}

/* Default WordPress Search Form Styling */
.search-overlay .search-form {
  display: flex;
  border-bottom: 2px solid #ffffff;
}

.search-overlay .search-field {
  flex-grow: 1;
  background: none;
  border: none;
  color: #ffffff;
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 24px;
  padding: 16px 0;
  outline: none;
}

.search-overlay .search-submit {
  background: none;
  border: none;
  color: #ffffff;
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 16px;
  cursor: pointer;
  text-transform: uppercase;
}

/* Tablet and up (768px+) */
@media (min-width: 768px) {
  .site-header {
    padding: 24px 0;
    border-bottom: 1px solid #fff1eb0d;
  }

  .header-content {
    flex-direction: row; /* Reset to row for tablet/desktop */
    justify-content: space-between;
    align-items: center;
  }

  .mobile-controls,
  .mobile-nav-header,
  .menu-overlay {
    display: none;
  }

  .site-branding {
    width: auto; /* Reset width */
    border-bottom: none; /* Remove mobile border */
    padding: 0;
    flex-grow: 0;
  }

  .site-logo img {
    height: auto;
    width: 150px;
  }

  .main-navigation {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    background: transparent;
    border-right: none;
    box-shadow: none;
    display: flex;
    flex-direction: row;
  }

  .main-navigation ul {
    flex-direction: row;
    gap: 28px;
    width: auto;
  }

  .main-navigation li {
    border: none;
  }

  .main-navigation a {
    font-size: 13px;
    letter-spacing: -0.13px;
    padding: 0;
    color: rgba(255, 255, 255, 0.8);
  }

  .main-navigation a:hover {
    color: #ffffff;
    opacity: 1;
  }

  .desktop-search-toggle {
    display: block;
  }
}

/* Desktop and up (1024px+) */
@media (min-width: 1024px) {
  .site-header {
    color: #ffffff;
    border-bottom: 1px solid #fff1eb0d;
    margin-top: 24px;
    padding: 0;
  }

  .site-logo img {
    width: 172px;
    height: 72.212px;
    object-fit: cover;
  }

  .site-branding {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0;
  }

  .site-left-banner,
  .site-right-banner {
    display: block;
    width: 38%;
    border: 0.3px solid #fff1eb0d;
  }

  .header-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .site-logo a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
  }

  .site-logo a:hover {
    opacity: 0.8;
  }

  .main-navigation {
    /* padding-top: 32px;
    padding-bottom: 32px; */
    width: 100%;
    border-top: 1px solid #fff1eb0d;
    align-items: center;
    justify-content: center;
  }

  .main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
  }

  .main-navigation li {
    margin: 0;
  }

  .main-navigation a {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Eudoxus Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 115%;
    letter-spacing: -0.14px;
    display: block;
  }

  .main-navigation a:hover {
    color: #ffffff;
    opacity: 1;
  }
}
