/* Header */
.site-header {
  background-color: #fffef5;
  padding: 2% 5%;
  display: flex;
  flex-direction: column;
}

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

.header-logo {
  width: 60%;
  height: auto;
  display: block;
}

/* Desktop nav list */
.nav-list {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  list-style: none;
  font-size: small;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-header a {
  text-decoration: none;
  color: black;
  font-weight: 600;
}

.site-header a:hover {
  color: #f4be00;
  font-weight: 400;
}

.links {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* CTA as link */
.primary-ctabtn {
  background: #f4be00;
  color: #111;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
}

.primary-ctabtn:hover {
  filter: brightness(0.95);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

/* Button that looks like a link */
.nav-dropbtn {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: black;
  font-weight: 600;
  cursor: pointer;
}

.nav-dropbtn:hover {
  color: #f4be00;
  font-weight: 400;
}

.drop-down-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  list-style: none;
  padding: 8px;
  margin: 0;

  background: white;
  min-width: 220px;

  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  z-index: 1000;
}

.drop-down-menu.open {
  display: block;
}

.drop-down-menu li a {
  display: block;
  padding: 10px 12px;
  color: #000;
  border-radius: 10px;
}

.drop-down-menu li a:hover {
  background: #f2f2f2;
}

/* Mobile: hamburger */
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 90vw);
  background: #fffef5;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 2100;

  transform: translateX(100%);
  transition: transform 0.22s ease;

  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: flex-end;
}

.drawer-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.07);
  font-size: 18px;
}

.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-nav a,
.drawer-nav button {
  width: 100%;
  text-align: left;
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 700;
  color: #000;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.drawer-nav a:hover,
.drawer-nav button:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Drawer submenu accordion (UPDATED: supports both hidden + open) */
.drawer-submenu {
  list-style: none;
  padding: 6px 0 0 10px;
  margin: 0;
  display: none;
}

/* If JS uses hidden attribute */
.drawer-submenu[hidden] {
  display: none !important;
}

/* When open (JS toggles .open and removes hidden) */
.drawer-submenu.open {
  display: block;
}

.drawer-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.6);
}

.drawer-cta {
  margin-top: 6px;
}

/* Stop page scroll when drawer open */
.no-scroll {
  overflow: hidden;
}

/* Breakpoint */
@media (max-width: 1023px) {
  .links {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Make primary-ctabtn usable for both <button> and <a> */
a.primary-ctabtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  padding: 8px 24px;
  border-radius: 100px;
}

.drawer-cta {
  width: 100%;
  margin-top: 8px;
}

.drawer-brand {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 6px 4px 10px;
}

.drawer-logo {
  width: 160px;
  height: auto;
  display: block;
}

/* Make dropdown button look like the other nav links */
.nav-linklike {
  font-family: "Google Sans", sans-serif;
  font-weight: 600;
  font-size: small;
  padding: 0;
  background: transparent;
  border: 0;
  color: black;
}

.nav-linklike:hover {
  color: #f4be00;
  font-weight: 400;
}
