* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --top-header-height: 50px;
  --bottom-header-height: 3vw;
  --hamburger-height: 40px;
  --primary-color: #a97412;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: background-color 0.7s ease, color 0.7s ease, padding 0.7s ease;
}

.top-header {
  background-color: #fff;
  height: var(--top-header-height);
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  transition: background-color 0.5s ease, color 0.5s ease;
}

header.scrolled .top-header {
  background-color: #000000d4;
}

header.scrolled .top-header a,
header.scrolled .dropbtn,
header.scrolled .brand-name,
header.scrolled .arrow {
  color: #fff !important;
}

header.scrolled .arrow {
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo img {
  height: 40px;
  margin: 7px 10px 0 0;
}

.brand-name {
  position: absolute;
  top: 0;
  left: 60px;
  color: var(--primary-color) !important;
  font-weight: bold;
  font-size: 20px !important;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  width: 100%;
}

.top-header a {
  position: relative;
  display: inline-block;
  padding: 10px 30px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  text-decoration: none;
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.top-header a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 60%;
  height: 2px;
  background-color: var(--primary-color);
  transition: transform 0.3s ease;
}

.top-header a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.top-header a:hover {
  color: var(--primary-color);
}

.top-header .brand-name {
  display: inline-block;
  padding: 10px 30px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  text-decoration: none;
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
}

header.scrolled .top-header a::after {
  background-color: #fff;
}

.hamburger {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  font-size: 30px;
  line-height: var(--hamburger-height);
  height: var(--hamburger-height);
  color: #CF9D3F;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.side-menu {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #e5e5e5;
  opacity: 0.95;
  overflow-x: hidden;
  padding-top: 60px;
  z-index: 1000;
  transition: 0.3s;
}

.side-menu a {
  display: block;
  padding: 12px 30px;
  font-size: 18px;
  font-family: 'Poppins', sans-serif;
  color: #CF9D3F;
  text-decoration: none;
  transition: 0.3s;
}

.side-menu .closebtn {
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 36px;
  color: #CF9D3F;
}

.mobile-header-bar {
  display: none;
  align-items: center;
  padding: 1rem;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  justify-content: flex-start;
  gap: 1rem;
}


.mobile-header-bar .logo img {
  height: 40px;
}

.desktop-nav {
  display: flex;
}

@media (max-width: 768px) {
  .top-header nav {
    display: none !important;
  }

  .top-header {
    height: 60px;
    justify-content: flex-start;
  }

  .hamburger {
    display: block !important;
    font-size: 30px;
    margin-top: 3%;
    margin-bottom: auto;
    margin-left: 3%;
  }

  .side-menu {
    display: block !important;
  }

  .side-menu .dropdown,
  .side-menu .dropdown-content,
  .side-menu .dropdown a {
    display: block;
  }

  .side-menu a,
  .side-menu .dropdown a,
  .side-menu .dropbtn,
  .side-menu .dropdown-content a {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #CF9D3F;
    text-transform: none;
    animation: slideIn 0.4s ease forwards;
  }

  .dropdown-content {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative;
    background-color: transparent;
    transform: none !important;
  }

  .mobile-header-bar {
    display: flex;
  }

  .top-header {
    display: none;
  }

  .logo-container {
    display: none;
  }

  .logo {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 28%;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
