/* Mobile First - Header Styles */

/* Mobile Header */
.header-wrapper {
  padding-left: var(--site-padding);
  padding-right: var(--site-padding);
}

.site-header {
  background-color: transparent;
  color: #ffffff;
  padding-top: 40px;
  padding-bottom: 32px;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 241, 235, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Mobile Logo */
.site-branding {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo a {
  display: block;
}

.site-logo img {
  width: 81.98px;
  height: 40px;
  display: block;
  object-fit: contain;
}

/* Mobile Controls Row - display: contents allows children to participate in parent flex */
.mobile-controls {
  display: contents;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  z-index: 100;
}

.mobile-menu-toggle img {
  width: 24px;
  height: 24px;
  display: block;
}

/* Mobile Search Toggle */
.mobile-search-toggle {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-search-toggle img {
  width: 20px;
  height: 20px;
}

/* Desktop Header Right - Hidden on Mobile */
.desktop-header-right {
  display: none;
  align-items: center;
  gap: 32px;
}

.desktop-search-btn,
.desktop-menu-btn {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 100%;
}

.desktop-search-btn img,
.desktop-menu-btn img {
  width: 24px;
  height: 24px;
}

.desktop-search-toggle {
  display: none;
  /* Removed old toggle */
}

/* 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: transparent;
  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 {
  -webkit-appearance: none;
  appearance: none;
  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: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  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 {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 24px;
  right: 24px;
  border: none;
  background: none;
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
  /* border-radius: 50%; */
  /* width: 44px;
  height: 44px; */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: background 0.2s, border-color 0.2s;
}

.search-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.search-container {
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.search-container::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23ADEBE7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
}

/* Default WordPress Search Form Styling */
.search-overlay .search-form {
  /* display: flex; */
  width: 100%;
  gap: 12px;
  border: none;
}

.search-overlay .search-form label {
  flex: 1;
  display: block;
  margin-bottom: 12px;
}

.search-overlay .search-field {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #ffffff;
  font-family: "Rethink Sans", "Eudoxus Sans", sans-serif;
  font-size: 18px;
  padding: 18px 24px;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.search-overlay .search-field::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.search-overlay .search-field:focus {
  border-color: rgba(173, 235, 231, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(173, 235, 231, 0.08);
}

.search-overlay .search-submit {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(135deg, #ADEBE7, #7dd3cf);
  border: none;
  color: #1D1D1D;
  font-family: "Rethink Sans", "Eudoxus Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  padding: 18px 32px;
  border-radius: 14px;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}

.search-overlay .search-submit:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.search-overlay .search-form label {
  width: 100%;
}

/* Tablet and up (768px+) */
@media (min-width: 768px) {
  .header-wrapper {
    padding-left: var(--site-padding);
    padding-right: var(--site-padding);
  }

  .site-header {
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid #fff1eb0d;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Hide Mobile Toggles Explicitly on Tablet+ */
  .mobile-menu-toggle,
  .mobile-search-toggle,
  .mobile-nav-header,
  .menu-overlay {
    display: none;
  }

  .site-branding {
    width: auto;
    border: none;
    padding: 0;
    flex-grow: 0;
  }

  .site-logo img {
    height: 45.12px;
    /* Specific height */
    width: auto;
  }

  .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: 32px;
    /* Tab spacing */
    width: auto;
  }

  .main-navigation li {
    border: none;
  }

  .main-navigation a,
  .main-navigation .no-link {
    font-family: "Rethink Sans", sans-serif;
    /* Requested font */
    font-size: 14px;
    /* Requested size */
    letter-spacing: normal;
    padding: 0;
    color: #C3C3C3;
    /* Requested color */
    font-weight: 400;
    /* Assuming regular */
  }

  .main-navigation a:hover {
    color: #ffffff;
    opacity: 1;
  }

  /* Show desktop controls on Tablet too */
  /* Show desktop controls on Tablet too */
  .desktop-header-right {
    display: flex;
    align-items: center;
    gap: 32px;
    /* Tab spacing */
  }

  .desktop-search-btn,
  .desktop-menu-btn {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #C3C3C3;
    /* Requested color */
    font-family: "Rethink Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
  }

  .desktop-search-btn img,
  .desktop-menu-btn img {
    width: 14px;
    /* User requested 14px for icons on tabs */
    height: 14px;
  }

  .desktop-search-toggle {
    display: none;
    /* Ensure text version is used */
  }
}

/* Desktop and up (1024px+) */
@media (min-width: 1024px) {
  .header-wrapper {
    padding-left: var(--site-padding);
    /* Desktop side padding moved here */
    padding-right: var(--site-padding);
  }

  .site-header {
    padding: 30px 0;
    /* Vertical only */
    border-bottom: 1px solid #fff1eb0d;
    margin-top: 0;
  }

  .header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    /* Remove constraint */
    margin: 0;
  }

  /* 1. Logo (Left) */
  .site-branding {
    width: auto;
    border: none;
    padding: 0;
    flex: 0 0 auto;
  }

  .site-left-banner,
  .site-right-banner {
    display: none;
    /* No banners in this design */
  }

  .site-logo img {
    width: auto;
    height: 45.12px;
  }

  .site-logo a {
    font-size: 0;
    /* Hide text if any */
  }

  /* 2. Navigation (Center) */
  .main-navigation {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex: 1 1 auto;
  }

  .main-navigation ul {
    flex-direction: row;
    gap: 30px;
    /* Desktop spacing: 30px */
  }

  .main-navigation li {
    margin: 0;
  }

  .main-navigation a,
  .main-navigation .no-link {
    color: #C3C3C3;
    font-family: "Rethink Sans", sans-serif;
    font-size: 14px;
    padding: 0;
    transition: color 0.2s ease;
  }

  .main-navigation a:hover {
    color: #ffffff;
    opacity: 1;
  }

  /* 3. Right Controls (Right) */
  .desktop-header-right {
    display: flex;
    flex: 0 0 auto;
    gap: 30px;
    /* Desktop spacing: 30px */
  }

  .desktop-search-btn,
  .desktop-menu-btn {
    color: #C3C3C3;
    /* Requested color */
    font-family: "Rethink Sans", sans-serif;
    font-size: 14px;
  }

  /* Hide Mobile Toggles Explicitly */
  .mobile-menu-toggle,
  .mobile-search-toggle,
  .mobile-nav-header {
    display: none;
  }
}