/* ========== SITE NAVIGATION ========== */
.site-header {
  position: relative;
  z-index: 100;
}
.site-header--solid {
  background: #fff;
  border-bottom: 1px solid #e8eaee;
}
.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 0;
}
.site-header--overlay .header-bar {
  background: transparent;
}
.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1rem 0;
  min-height: 88px;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1a2b3c;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop nav */
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-width: 0;
}
.desktop-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .15rem 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.desktop-nav__list > li { position: relative; list-style: none; }
.desktop-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .4rem 0;
  font-size: .86rem;
  font-weight: 500;
  color: #1a2b3c;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  white-space: nowrap;
}
.desktop-nav__link:hover { color: #c4a574; }
.desktop-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: #1a2b3c;
}
.desktop-nav__caret {
  font-style: normal;
  font-size: .55rem;
  opacity: .7;
}
.desktop-nav__menu {
  display: none;
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  margin: 0;
  padding: .4rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(26, 43, 60, .12);
  z-index: 120;
}
.desktop-nav__menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.desktop-nav__item--drop:hover > .desktop-nav__menu,
.desktop-nav__item--drop:focus-within > .desktop-nav__menu {
  display: block;
}
.desktop-nav__menu a {
  display: block;
  padding: .6rem 1rem;
  font-size: .82rem;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-nav__menu a:hover {
  background: #f7f8fa;
  color: #1a2b3c;
}

.nav-search {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1a2b3c;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav-search:hover { background: rgba(26, 43, 60, .06); }
.nav-search svg { width: 18px; height: 18px; }

.motto {
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  color: #1a2b3c;
  white-space: nowrap;
  line-height: 1.1;
  transform: rotate(-3deg);
  text-align: right;
  justify-self: end;
}
.motto span { color: #d64545; }

/* Mobile panel + backdrop — always in DOM, off-canvas until open */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(16, 24, 34, .5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 2001;
  width: min(300px, 86vw);
  background: #fff;
  box-shadow: 8px 0 40px rgba(16, 24, 34, .18);
  transform: translateX(-105%);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
}
.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 1rem 0 2rem;
}
.mobile-nav__list > li {
  border-bottom: 1px solid #eef0f3;
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.05rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: #1a2b3c;
  text-decoration: none;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.mobile-nav__link.is-active {
  color: #c4a574;
  font-weight: 600;
  background: #faf8f4;
}
.mobile-nav__drop i {
  font-style: normal;
  font-size: .75rem;
  opacity: .7;
  transition: transform .2s ease;
}
.mobile-nav__item--drop.is-open > .mobile-nav__drop i {
  transform: rotate(180deg);
}
.mobile-nav__submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f6f7f9;
}
.mobile-nav__item--drop.is-open > .mobile-nav__submenu {
  display: block;
}
.mobile-nav__submenu a {
  display: block;
  padding: .85rem 1.25rem .85rem 1.85rem;
  font-size: .94rem;
  color: #445;
  text-decoration: none;
  border-top: 1px solid #e8eaee;
}
.mobile-nav__submenu a:hover,
.mobile-nav__submenu a:active {
  background: #eceff3;
  color: #1a2b3c;
}

body.nav-open {
  overflow: hidden;
}
body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.nav-open .mobile-nav {
  transform: translateX(0);
  visibility: visible;
}
body.nav-open .site-header {
  z-index: 2002;
}

@media (max-width: 1100px) {
  .desktop-nav__list { gap: .1rem .7rem; }
  .desktop-nav__link { font-size: .78rem; }
  .motto { font-size: 1.1rem; }
  .logo-name { font-size: 2.1rem; }
}

/* Tablet / phone: hamburger + left drawer */
@media (max-width: 980px) {
  .motto { display: none !important; }
  .header-bar {
    grid-template-columns: auto 1fr auto;
    min-height: 64px;
    padding: .65rem 0;
    gap: .5rem .75rem;
  }
  .nav-toggle { display: flex; }
  .desktop-nav__list { display: none !important; }
  .site-header--overlay .header-bar {
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(6px);
    margin: .4rem 0 0;
    padding: .55rem .85rem;
    border-radius: 14px;
  }
  .logo-name { font-size: 1.8rem; }
  .logo-word { letter-spacing: .36em; font-size: .64rem; }
  .logo-tag { font-size: .42rem; letter-spacing: .12em; }
}

@media (max-width: 480px) {
  .logo-name { font-size: 1.55rem; }
  .logo-tag { display: none; }
  .logo-plane { width: 28px; height: 20px; }
  .logo-top { padding-right: 30px; }
  .mobile-nav { width: min(290px, 88vw); }
  .site-header--overlay .header-bar {
    margin: .35rem 0 0;
    padding: .5rem .7rem;
  }
}
