/* ============================= */
/* HEADER & CONTAINER */
/* ============================= */
header {
  background-color: #fcf8ed;
  box-shadow: 0 2px 12px rgba(168, 182, 161, 0.08);
  border-bottom: 3px solid var(--buttery-yellow);
  padding: 2.2rem 0 1.5rem 0;
  width: 100%;
  z-index: 1000;
  position: relative;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

/* ============================= */
/* LOGO */
/* ============================= */
.site-logo {
  height: 120px;
  width: auto;
}

/* ============================= */
/* NAV LINKS - DESKTOP */
/* ============================= */
nav.nav-links {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  align-items: center;
}

nav a {
  font-family: 'Begum Medium';
  font-size: 1.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 18px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover,
nav a:focus {
  background-color: var(--buttery-yellow);
  color: var(--olive-dark);
  outline: none;
}

/* ============================= */
/* DROPDOWN - DESKTOP */
/* ============================= */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  font-family: 'Begum Medium';
  font-size: 1.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f9f9f9;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  flex-direction: column;
  z-index: 1000;
}

.dropdown-content a {
  padding: 14px 18px;
  display: block;
  font-size: 1.1rem;
  color: black;
}

.dropdown-content a:hover {
  background: #f1f1f1;
}

/* Show dropdown on hover desktop */
@media (min-width: 901px) {
  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    display: flex;
  }
}

/* ============================= */
/* HAMBURGER BUTTON */
/* ============================= */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--olive-dark);
  border-radius: 3px;
  transition: 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ============================= */
/* MOBILE NAVIGATION */
/* ============================= */
@media (max-width: 900px) {

  .site-logo {
    height: 60px;
  }

  .container {
    padding: 0 1rem;
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
  }

  /* Nav panel */
  nav.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 80%;
    max-width: 360px;
    background: #fcf8ed;
    flex-direction: column;
    align-items: flex-start; /* all links aligned left */
    padding: 6rem 1.5rem 2rem;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
  }

  nav.nav-links.open {
    right: 0;
  }

  /* Top-level links */
  nav a,
  .dropdown-toggle {
    font-size: 1.25rem;
    width: 100%;
    padding: 1rem 0;
    text-align: left;
    border-radius: 0;
    display: block;
  }

  /* Remove arrow from services */
  .dropdown-toggle .arrow {
    display: none;
  }

  /* Dropdown content in-flow */
  .dropdown-content {
    display: none;
    flex-direction: column;
    padding-left: 1.5rem;
    gap: 0.5rem;
    width: 100%;
  }

  .dropdown.active .dropdown-content {
    display: flex;
  }

  .dropdown-content a {
    font-size: 1.1rem;
    padding: 0.75rem 0;
  }
}
