header {
  background-color: #f9faf3;
  color: #314233;
  padding: 15px 80px;
  box-sizing: border-box;
  position: fixed;
  width: 100%;
  z-index: 100;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo stays on the left */
.logo img {
  width: 100px;
}

.menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hidden-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.search-wrapper {
  width: 320px;
  position: relative;
}

.search-wrapper input[type="search"] {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: #d1d1d1;
  font-size: 16px;
  color: #314233;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-weight: 200;
  box-shadow: 0 2px 8px rgba(49, 66, 51, 0.08);
  letter-spacing: 0.5px;
}

.search-wrapper input[type="search"]:focus {
  border-color: #e68f1f;
  box-shadow: 0 0 0 2px rgba(230, 143, 31, 0.15);
}

.search-results-dropdown {
  position: absolute;
  background: #f9faf3;
  border: 1px solid #ccc;
  max-height: 250px;
  overflow-y: auto;
  top: 70px;
  width: 320px;
  border-radius: 12px;
  padding: 10px 15px;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.search-results-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
}

.search-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
}

.search-suggestion-item a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 8px 12px;
  text-decoration: none;
  color: #314233;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}

.search-suggestion-item a:hover,
.search-suggestion-item a:focus {
  background-color: #b96900;
  color: #fff;
  outline: none;
}

.btn-qoute {
  background-color: #cf7525;
  color: #f9faf3;
  text-decoration: none;
  padding: 10px 40px;
  font-size: 12px;
  border-radius: 20px 0 20px 0;
  transition: background-color 0.3s ease-in-out;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-qoute:hover,
.btn-qoute:focus {
  background-color: #a85717;
  outline: none;
}

/* Hide checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger on the right */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  width: 30px;
  height: 24px;
  cursor: pointer;
  position: relative;
  z-index: 101;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #314233;
  position: absolute;
  left: 0;
  transition: 0.4s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

/* Hamburger animation to X */
#menu-toggle:checked ~ nav .hamburger span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
  background: #f9faf3;
}
#menu-toggle:checked ~ nav .hamburger span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked ~ nav .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
  background: #f9faf3;
}

/* Green transparent backdrop for menu */
.menu-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(17, 17, 17, 0.80);
  z-index: 99;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

/* Show backdrop when menu is open */
body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn 0.3s ease;
}

/* Sidebar menu inside backdrop */
.menu-backdrop .nav-links {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 460px;
  background-color: #F9FAF3;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  z-index: 100;
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
}

/* Menu links inside sidebar */
.menu-links {
  padding: 42px;
  width: 100%;
}

.link-lists {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
}

.link-lists li {
  list-style: none;
}

.link-lists li a {
  color: #354637;
  text-decoration: none;
  font-size: 40px;
  font-family: "Cormorant Infant", serif;
  transition: color 0.3s ease;
}

.link-lists li a:hover,
.link-lists li a:focus {
  color: #e68f1f;
  outline: none;
}

.menu-links a:hover {
  color: #e68f1f;
}

.nav-logo img {
  width: 150px;
}

.amp {
  font-style: italic;
  font-family: "Cormorant Infant", serif;
}

.show-mobile {
  display: none;
}

/* Show nav when toggled */
body.menu-open .menu-backdrop .nav-links {
  transform: translateX(0);
}

/* Prevent scrolling when menu is open */
body.menu-open,
html.menu-open {
  overflow: hidden;
}

/* Close button inside sidebar */
.close-menu {
  position: absolute;
  top: 42px;
  right: 42px;
  background: none;
  border: none;
  font-size: 40px;
  color: #354637;
  cursor: pointer;
  z-index: 120;
  transition: color 0.3s;
}

.close-menu:hover,
.close-menu:focus {
  color: #CF7525;
  outline: none;
}

/* Optional: hide hamburger when menu is open */
body.menu-open .hamburger {
  display: none;
}

/* Responsive for mobile */
@media (max-width: 728px) {
  header {
    padding: 15px 20px;
  }

  .hidden-mobile {
    display: none;
  }

  .show-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .show-mobile a {
    background-color: #CF7525;
    color: #f9faf3;
    text-decoration: none;
    padding: 10px 30px;
    font-size: 18px;
    border-radius: 12px 0 12px 0;
    transition: background-color 0.3s ease-in-out;
  }

  .show-mobile a:hover,
  .show-mobile a:focus {
    background-color: #a85717;
    outline: none;
  }

  .menu-backdrop .nav-links {
    width: 100%; /* Full width on mobile */
    right: 0;
    padding-top: 80px;
  }

  .link-lists li a {
    font-size: 28px; /* smaller font on mobile */
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
