header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, #e9c788, #d9b176);
  backdrop-filter: blur(4px);
  border-bottom: 2px solid rgba(120, 72, 40, 0.2);
  z-index: 40;
  transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

header.hide {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  max-width: 100%;
  padding: 0 16px;  
  margin: 0 auto;
}

.brand { 
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 280px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  background: #fff;
  margin-top: 10%;
  margin-bottom: 10%;

}

.logo img {
  width: 100%;
  height: 90%;
  object-fit: cover;
  display: block;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  color: #4a2f1a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #2b1a0f;
  transform: scale(1.1);
}

li {
  transition: transform 0.3s ease;
}
li:hover {
  transform: scale(1.15);
}

.cta {
  background: #8b5e34;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(139,94,52,0.25);
  transition: all 0.3s ease;
}

.cta:hover {
  background: #a7744c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139,94,52,0.35);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: transparent;
  flex-direction: row;
  border: 0;
  font-size: 1.5rem;
  color: #4a2f1a;
}

@media (max-width: 768px) {
  
  .logo {
    width: 160px;
    height: auto;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  nav ul {
    width: 100%;
    text-align: center;
  }
}


@media(max-width: 820px) {
  nav ul {
    display: none;
    position: absolute;
    right: 20px;
    top: 80px;
    background: #f5e6c8;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
    flex-direction: row;
    gap: 12px;
  }

  nav ul.open {
    display: flex;
    flex-direction: row;
    max-width: fit-content;
    gap: 20px;
    align-items: center ;
    justify-content: center;

  }

  .menu-toggle {
    display: inline-block;
  }
}
