.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 60;
}

.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  color: #444748;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus {
  background: rgba(119, 90, 25, 0.08);
  color: #775a19;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.social-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: #444748;
  font: 700 11px/1 Montserrat, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.social-chip:hover,
.social-chip:focus {
  border-color: #775a19;
  color: #775a19;
  background: rgba(119, 90, 25, 0.06);
}

.social-chip--footer {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
}

.social-chip--footer:hover,
.social-chip--footer:focus {
  border-color: #e9c176;
  color: #ffffff;
  background: rgba(233, 193, 118, 0.12);
}

.social-chip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(17, 17, 17, 0.04);
  color: #111111;
  font: 700 11px/1 Montserrat, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-mobile-toggle:focus-visible {
  outline: 3px solid rgba(119, 90, 25, 0.22);
  outline-offset: 3px;
}

.nav-mobile-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-mobile-panel {
  display: grid;
  gap: 18px;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-mobile-panel[hidden] {
  display: none;
}

.nav-mobile-links,
.nav-mobile-group-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-mobile-group {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.nav-mobile-group > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  color: #111111;
  font: 700 14px/1.2 Inter, sans-serif;
  text-align: left;
}

.nav-mobile-group > button span:last-child {
  font-size: 20px;
  line-height: 1;
  color: #775a19;
  min-width: 12px;
  text-align: center;
}

.nav-mobile-group-body {
  padding: 0 14px 14px;
}

.nav-mobile-group-body[hidden] {
  display: none;
}

.nav-mobile-links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: #444748;
  font-weight: 600;
}

.nav-mobile-links a:hover,
.nav-mobile-links a:focus {
  color: #775a19;
  border-color: rgba(119, 90, 25, 0.28);
  background: rgba(119, 90, 25, 0.06);
}

.nav-mobile-actions {
  display: grid;
  gap: 12px;
}

.nav-mobile-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}

/* Keep the same header structure on every page, independent of Tailwind loading. */
.sedan-header[data-site-header] {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  padding: 0 20px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  background: rgba(255, 255, 255, .96);
  color: #111;
  font-family: Inter, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  backdrop-filter: blur(12px);
}

.sedan-header .sedan-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.sedan-header-row > a:first-child { flex-shrink: 0; }
.sedan-header-row > a:first-child img { display: block; height: 40px; width: auto; }
.sedan-header .social-chip { width: 34px; padding: 0; }
.sedan-header .nav-mobile-toggle { display: inline-flex; flex-shrink: 0; cursor: pointer; }
.sedan-header .nav-mobile-group > button { cursor: pointer; }
.sedan-header .nav-mobile-group-list a { display: flex; align-items: center; min-height: 44px; color: #444748; }
.sedan-header a { text-decoration: none; }
.sedan-header .nav-mobile-actions a { background: #111; color: #fff; font: 700 13px Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.sedan-header .nav-mobile-panel {
  box-sizing: border-box;
  max-height: calc(100vh - 65px);
  max-height: calc(100dvh - 65px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}
.sedan-header [hidden] { display: none !important; }

@media (max-width: 767px) {
  .sedan-header[data-site-header].is-menu-open { z-index: 130; }
  .sedan-header > .hidden,
  .sedan-header-row > .hidden { display: none !important; }
}

@media (min-width: 768px) {
  .sedan-header[data-site-header] { padding-inline: 80px; }
  .sedan-header .nav-mobile-toggle,
  .sedan-header .nav-mobile-panel { display: none; }
  .sedan-header-row > a:first-child img { height: 48px; }
}

@media (max-width: 767px) {
  .nav-mobile-toggle {
    min-height: 44px;
  }

  .nav-mobile-panel {
    width: 100%;
  }

  .nav-mobile-links a {
    font-size: 14px;
  }

  .nav-mobile-group > button {
    font-size: 15px;
  }
}
