/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Navbar Layout */
.navbar {
  width: 100%;
  background: linear-gradient(120deg, #fff1d6 0%, #ffe3b3 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Container */
.navbar-container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Segoe UI', sans-serif;
}

/* Logo */
.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #8b5400;
  text-shadow: 1px 1px 0 #f3e1bd;
}

/* Hamburger (Mobile) */
.hamburger {
  font-size: 2rem;
  color: #8b5400;
  display: none;
  cursor: pointer;
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: #4a3b2d;
  font-size: 1.15rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

/* Hover Effect */
.nav-links li a:hover {
  background: rgba(255, 239, 205, 0.7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #d18000;
  transform: translateY(-2px);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  background: #fffef0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  list-style: none;
  font-size: 1rem;
  min-width: 200px;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}



/* When hovering dropdown or submenu, show submenu */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  display: block; /* Make sure it's visible */
}


.dropdown-menu li a {
  display: block;
  padding: 0.5rem 0.2rem;
  color: #5a4a36;
  transition: color 0.2s ease;
}

.dropdown-menu li a:hover {
  color: #d18000;
}



@media (max-width: 768px) {
  /* Show hamburger */
  .hamburger {
    display: block;
    font-size: 2rem;
    color: #8b5400;
    cursor: pointer;
  }

  /* Hide nav links by default on mobile */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fffef0;
    flex-direction: column;
    align-items: stretch;
    display: none;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  /* Show nav links when active */
  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0.75rem 1rem;
    width: auto;
    text-align: left;
    position: relative;
  }

  /* Dropdown submenu hidden by default */
  .dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.5rem;
    width: 100%;
    background: transparent;
    box-shadow: none;
    position: relative;
  }

  /* Show submenu when parent has active class */
  .dropdown.active .dropdown-menu {
    display: flex;
  }

  /* Submenu links styling */
  .dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: #4a3b2d;
    width: 100%;
    text-align: left;
    background: rgba(255, 224, 160, 0.1);
    border-radius: 6px;
    transition: background-color 0.3s ease;
  }

  .dropdown-menu li a:hover {
    color: #d18000;
    background: rgba(255, 224, 160, 0.3);
  }

  /* Make "Services" link full width and clickable */
  .dropdown > a.mobile-toggle {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    cursor: pointer;
  }
}
