/* Site brand lockup — shared by Blade navbar, SPA AppNavbar, and drawers */

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1;
}

.site-brand__mark,
.site-brand__mark-img {
  flex: 0 0 auto;
  display: block;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.site-brand__name {
  font-family: var(--ds-font-nav, 'Avenir LT Std', sans-serif);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #1a1416;
  white-space: nowrap;
}

.site-brand__tagline {
  font-family: var(--ds-font-nav, 'Avenir LT Std', sans-serif);
  font-size: 0.42rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgba(26, 20, 22, 0.55);
  white-space: nowrap;
}

/* Horizontal nav lockup — monogram + stacked name/tagline */
.site-brand--nav {
  align-items: center;
  gap: 0.42rem;
}

.site-brand--nav .site-brand__mark,
.site-brand--nav .site-brand__mark-img {
  width: 2.15rem;
  height: auto;
  align-self: center;
  flex-shrink: 0;
}

.site-brand--nav .site-brand__text {
  justify-content: center;
  gap: 0.18rem;
  padding-top: 0.05rem;
}

.site-brand--sidebar {
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  text-align: center;
  padding: 0.15rem 0.35rem 0.5rem;
}

.site-brand--sidebar .site-brand__text {
  align-items: center;
}

.site-brand--sidebar .site-brand__mark,
.site-brand--sidebar .site-brand__mark-img {
  width: 3.25rem;
}

.site-brand--sidebar .site-brand__name {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.site-brand--sidebar .site-brand__rule {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: 7.5rem;
  height: 1px;
  min-height: 1px;
  margin: 0.1rem auto 0;
  padding: 0;
  border: none;
  background: linear-gradient(90deg, transparent, #c9a962 20%, #c9a962 80%, transparent);
}

.site-brand--sidebar .site-brand__tagline {
  font-size: 0.46rem;
  letter-spacing: 0.14em;
  color: rgba(26, 20, 22, 0.62);
}

/* Mobile / tablet top bar — monogram only */
@media (max-width: 1199.98px) {
  nav.navbar.navbar--top-float .navbar-topbar__brand.site-brand--nav:not(.site-brand--jffd) {
    gap: 0;
    padding: 0;
  }

  nav.navbar.navbar--top-float .navbar-topbar__brand:not(.site-brand--jffd) .site-brand__text,
  nav.navbar.navbar--top-float .navbar-topbar__brand:not(.site-brand--jffd) .site-brand__name,
  nav.navbar.navbar--top-float .navbar-topbar__brand:not(.site-brand--jffd) .site-brand__tagline {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  nav.navbar.navbar--top-float .navbar-topbar__brand:not(.site-brand--jffd) .site-brand__mark-img {
    width: 2.35rem !important;
    margin: 0 auto;
  }

  nav.navbar.navbar--top-float .navbar-topbar__brand.site-brand--jffd .site-brand__mark-img {
    width: 3rem !important;
    margin: 0-5px 0 0 0;
  }
}

/* Top nav desktop — gold monogram + name + tagline */
@media (min-width: 1200px) {
  nav.navbar.navbar--top-float .navbar-topbar__brand.site-brand--nav:not(.site-brand--jffd) {
    align-items: center;
    gap: 0.42rem;
    max-width: 11.5rem;
  }

  nav.navbar.navbar--top-float .navbar-topbar__brand.site-brand--nav .site-brand__mark-img {
    width: 4.15rem !important;
    height: auto !important;
    margin: -5px 0 0 0;
    align-self: center;
  }

  nav.navbar.navbar--top-float .navbar-topbar__brand.site-brand--nav .site-brand__text {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.18rem;
    min-height: 0;
    padding-top: 0.04rem;
  }

  nav.navbar.navbar--top-float .navbar-topbar__brand.site-brand--nav:not(.site-brand--jffd) .site-brand__name {
    font-family: var(--ds-font-nav, 'Avenir LT Std', sans-serif) !important;
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase;
    line-height: 1.15 !important;
    color: #1a1416 !important;
    -webkit-text-fill-color: #1a1416 !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    white-space: nowrap;
  }

  nav.navbar.navbar--top-float .navbar-topbar__brand.site-brand--nav:not(.site-brand--jffd) .site-brand__tagline {
    display: block !important;
    font-family: var(--ds-font-nav, 'Avenir LT Std', sans-serif) !important;
    font-size: 0.42rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.11em !important;
    line-height: 1.2 !important;
    color: rgba(26, 20, 22, 0.55) !important;
    -webkit-text-fill-color: rgba(26, 20, 22, 0.55) !important;
    background: none !important;
    white-space: nowrap;
  }

  body:has(.hero-split) nav.navbar.navbar--top-float .site-brand--nav .site-brand__name,
  body:has(.hero-split) nav.navbar.navbar--top-float.scrolled .site-brand--nav .site-brand__name,
  nav.navbar.navbar--top-float.scrolled .site-brand--nav .site-brand__name {
    color: #1a1416 !important;
    -webkit-text-fill-color: #1a1416 !important;
    background: none !important;
  }
}

/* JFFD-inspired nav — monogram + wordmark (matches damyantisalon.com) */
.site-brand--nav.site-brand--jffd {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  gap: 0.5rem;
  max-width: none;
  line-height: 1;
}

.site-brand--jffd .site-brand__mark-img,
.top-nav-shell .site-brand--jffd .site-brand__mark-img {
  width: 2.35rem !important;
  height: auto !important;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(14%) sepia(28%) saturate(2800%) hue-rotate(155deg) brightness(0.42) contrast(1.05);
}

.site-brand--jffd .site-brand__text {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
}

.site-brand--jffd .site-brand__name,
.top-nav-shell .site-brand--jffd .site-brand__name,
.top-nav-shell nav.navbar .navbar-topbar__brand.site-brand--jffd .site-brand__name {
  color: var(--top-nav-brand-teal, #003b49) !important;
  -webkit-text-fill-color: var(--top-nav-brand-teal, #003b49) !important;
  font-family: "Avenir LT Std", sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.site-brand--jffd .site-brand__tagline,
.top-nav-shell .site-brand--jffd .site-brand__tagline,
.top-nav-shell nav.navbar .navbar-topbar__brand.site-brand--jffd .site-brand__tagline {
  display: block !important;
  color: rgba(0, 59, 73, 0.62) !important;
  -webkit-text-fill-color: rgba(0, 59, 73, 0.62) !important;
  font-family: "Avenir LT Std", sans-serif !important;
  font-size: 0.42rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.top-nav-shell .navbar-topbar__brand.site-brand--jffd.site-brand--nav {
  max-width: none;
  flex-shrink: 0;
  min-width: auto;
}

@media (min-width: 1200px) {
  .site-brand--jffd.site-brand--nav {
    gap: 0.55rem;
  }

  .top-nav-shell .site-brand--jffd .site-brand__mark-img {
    width: 2.75rem !important;
  }

  .top-nav-shell .site-brand--jffd .site-brand__name {
    font-size: 0.88rem !important;
    letter-spacing: 0.09em !important;
  }

  .top-nav-shell .site-brand--jffd .site-brand__tagline {
    font-size: 0.44rem !important;
    letter-spacing: 0.1em !important;
  }
}

@media (max-width: 1199.98px) {
  .top-nav-shell .navbar-topbar__brand.site-brand--jffd.site-brand--nav {
    gap: 0.4rem;
    max-width: 100%;
  }

  .top-nav-shell .navbar-topbar__brand.site-brand--jffd .site-brand__text,
  .top-nav-shell .navbar-topbar__brand.site-brand--jffd .site-brand__name,
  .top-nav-shell .navbar-topbar__brand.site-brand--jffd .site-brand__tagline {
    display: flex !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .top-nav-shell .navbar-topbar__brand.site-brand--jffd .site-brand__tagline {
    display: block !important;
  }

  .top-nav-shell .site-brand--jffd .site-brand__mark-img {
    width: 2rem !important;
  }

  .top-nav-shell .site-brand--jffd .site-brand__name {
    font-size: 0.68rem !important;
    letter-spacing: 0.07em !important;
    white-space: nowrap;
  }

  .top-nav-shell .site-brand--jffd .site-brand__tagline {
    font-size: 0.4rem !important;
    letter-spacing: 0.08em !important;
  }
}

/* Dark nav — cream + champagne gold lockup (legacy) */
.site-brand--dark .site-brand__name,
.top-nav-shell .site-brand--nav .site-brand__name,
.top-nav-shell .site-brand--dark .site-brand__name {
  color: var(--top-nav-logo-cream, #faf6ef) !important;
  -webkit-text-fill-color: var(--top-nav-logo-cream, #faf6ef) !important;
}

.site-brand--dark .site-brand__tagline,
.top-nav-shell .site-brand--nav .site-brand__tagline,
.top-nav-shell .site-brand--dark .site-brand__tagline {
  color: rgba(232, 213, 168, 0.72) !important;
  -webkit-text-fill-color: rgba(232, 213, 168, 0.72) !important;
}

.site-brand--dark .site-brand__mark-img,
.top-nav-shell .site-brand--dark .site-brand__mark-img,
.top-nav-shell .site-brand--nav.site-brand--dark .site-brand__mark-img {
  filter: brightness(0) saturate(100%) invert(88%) sepia(18%) saturate(520%) hue-rotate(358deg) brightness(104%) contrast(92%);
}

@media (max-width: 1199.98px) {
  .top-nav-shell .navbar-topbar__brand.site-brand--nav:not(.site-brand--jffd) .site-brand__text,
  .top-nav-shell .navbar-topbar__brand.site-brand--nav:not(.site-brand--jffd) .site-brand__name,
  .top-nav-shell .navbar-topbar__brand.site-brand--nav:not(.site-brand--jffd) .site-brand__tagline {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .top-nav-shell .navbar-topbar__brand:not(.site-brand--jffd) .site-brand__mark-img {
    width: 2.35rem !important;
    margin: 0 auto;
  }

  .top-nav-shell .navbar-topbar__brand.site-brand--jffd .site-brand__mark-img {
    margin: 0;
  }
}

@media (min-width: 1200px) {
  .top-nav-shell .navbar-topbar__brand.site-brand--nav {
    align-items: center;
    gap: 0.42rem;
    max-width: none;
  }

  .top-nav-shell .navbar-topbar__brand.site-brand--nav .site-brand__mark-img {
    width: 2.15rem !important;
    height: auto !important;
  }

  .top-nav-shell .navbar-topbar__brand.site-brand--nav .site-brand__text {
    display: flex !important;
  }
}
