/* ============================================
   SHARED SITE NAVIGATION
   Stepping Stone Studio LLC
   Used on every page — edit here once, it
   updates everywhere the file is linked.
   Relies on the brand color variables already
   defined in each page's :root block:
   --stone --clay --terra --sand --cream --white --text
   ============================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(254, 252, 248, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122, 92, 74, 0.12);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand-img {
  height: 52px;
  width: auto;
}

.nav-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--stone);
  line-height: 1.25;
}

.nav-brand-text em {
  font-style: italic;
  color: var(--terra);
}

.nav-brand-text small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--clay);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clay);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--terra);
}

.nav-cta {
  background: var(--terra) !important;
  color: white !important;
  padding: 0.5rem 1.3rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--stone) !important;
}

/* Dropdown / submenu */

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--clay);
  transition: transform 0.2s, border-top-color 0.2s;
}

.dropdown-toggle:hover::after {
  border-top-color: var(--terra);
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100%);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid rgba(122, 92, 74, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 12px 30px rgba(44, 36, 32, 0.14);
  padding: 0.6rem;
  min-width: 220px;
  list-style: none;
  z-index: 250;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open-dropdown .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.dropdown li a:hover {
  background: var(--cream);
  color: var(--terra);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--stone);
  border-radius: 2px;
  transition: 0.3s;
  display: block;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu — matches the site's existing 900px breakpoint */
@media (max-width: 900px) {
  .site-nav {
    padding: 1rem 1.5rem;
  }
  .has-dropdown.open-dropdown .dropdown-toggle::after {
  transform: rotate(180deg);
}

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.3rem;
    transition: right 0.3s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

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

  .nav-links > li {
    width: 100%;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hamburger {
    display: flex;
  }

  .dropdown {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0.2rem 0 0 1rem;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-dropdown.open-dropdown .dropdown {
    display: block;
    max-height: 400px;
  }

}
