/* Luxury pill navbar — shared across site */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&display=swap");

:root {
  --lux-gold: #c9a962;
  --lux-gold-hi: #e4d09a;
  --lux-gold-deep: #a8873f;
  --lux-ink: #0a0b0e;
  --lux-panel: rgba(12, 14, 18, 0.88);
  --lux-border: rgba(201, 169, 98, 0.55);
}

.tmb-lux-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 14px 18px 0;
  pointer-events: none;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: clip;
}

.tmb-lux-header * {
  pointer-events: auto;
}

.tmb-lux-bar {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  min-width: 0;
  box-sizing: border-box;
  background: var(--lux-panel);
  border: 1.5px solid var(--lux-border);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.12),
    0 0 24px rgba(201, 169, 98, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* Must stay visible so Property Solutions dropdown is not clipped */
  overflow: visible;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tmb-lux-header.is-scrolled .tmb-lux-bar {
  background: rgba(8, 9, 12, 0.94);
  border-color: rgba(201, 169, 98, 0.7);
  box-shadow:
    0 0 0 1px rgba(201, 169, 98, 0.18),
    0 0 28px rgba(201, 169, 98, 0.22),
    0 18px 44px rgba(0, 0, 0, 0.45);
}

.tmb-lux-brand {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 14px 6px 16px;
  text-decoration: none !important;
  flex: 0 0 auto;
  min-width: 0;
}

.tmb-lux-logo,
.tmb-lux-brand .site_logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: min(200px, 42vw);
  max-height: 54px;
  aspect-ratio: 778 / 611;
  object-fit: contain;
  object-position: left center;
  padding: 0 !important;
  filter: drop-shadow(0 2px 10px rgba(201, 169, 98, 0.22));
}

/* Legacy text brand leftovers (if any page still has them) */
.tmb-lux-m {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, var(--lux-gold-hi), var(--lux-gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
}

.tmb-lux-brand-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.55);
  flex: 0 0 1px;
}

.tmb-lux-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tmb-lux-brand-text strong {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  white-space: nowrap;
}

.tmb-lux-brand-text small {
  color: var(--lux-gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.tmb-lux-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex: 1 1 auto;
  padding: 0 0.35rem;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 5;
}

/* Desktop: true 3-column header (logo | centered links | CTA) */
@media (min-width: 1100px) {
  .tmb-lux-bar {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
    align-items: center;
    justify-content: unset;
    column-gap: 1.25rem;
    padding: 0 1.15rem 0 0.85rem;
  }

  .tmb-lux-brand {
    grid-column: 1;
    justify-self: start;
    z-index: 2;
  }

  .tmb-lux-nav {
    grid-column: 2;
    justify-self: center;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0;
    gap: 2.5rem; /* ~gap-10 — comfortably spaced center links */
  }

  .tmb-lux-actions {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    padding-right: 0.15rem;
    margin-right: 0;
    z-index: 2;
  }

  /* Keep right edge clean for the primary CTA */
  .tmb-lux-media {
    display: none !important;
  }
}

.tmb-lux-nav > a,
.tmb-lux-drop > button {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  padding: 0.35rem 0;
  cursor: pointer;
  white-space: nowrap;
}

.tmb-lux-nav > a:hover,
.tmb-lux-drop > button:hover,
.tmb-lux-nav > a.is-active,
.tmb-lux-drop.is-open > button {
  color: var(--lux-gold-hi);
}

.tmb-lux-nav > a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 70%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--lux-gold), transparent);
  border-radius: 2px;
}

.tmb-lux-drop {
  position: relative;
  z-index: 10;
}

.tmb-lux-drop > button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--lux-gold-hi);
}

.tmb-lux-drop > button svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.tmb-lux-drop.is-open > button svg,
.tmb-lux-drop:hover > button svg {
  transform: rotate(180deg);
}

.tmb-lux-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  padding: 0.55rem 0;
  background: rgba(10, 11, 14, 0.98);
  border: 1px solid var(--lux-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(201, 169, 98, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1300;
}

.tmb-lux-drop-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(10, 11, 14, 0.98);
  border-left: 1px solid var(--lux-border);
  border-top: 1px solid var(--lux-border);
}

/* Open via click (.is-open) or desktop hover */
.tmb-lux-drop.is-open .tmb-lux-drop-menu,
.tmb-lux-drop:hover .tmb-lux-drop-menu,
.tmb-lux-drop:focus-within .tmb-lux-drop-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.tmb-lux-drop-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.05rem;
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 500;
  pointer-events: auto;
  transition: color 0.15s ease, background 0.15s ease;
}

.tmb-lux-drop-menu a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tmb-lux-drop-menu a:hover,
.tmb-lux-drop-menu a:focus {
  color: var(--lux-gold-hi) !important;
  background: rgba(201, 169, 98, 0.12);
  outline: none;
}

.tmb-lux-drop-menu svg {
  width: 18px;
  height: 18px;
  fill: var(--lux-gold);
  flex: 0 0 18px;
}

.tmb-lux-actions {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding-right: 0.25rem;
  flex: 0 0 auto;
}

.tmb-lux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 34px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, var(--lux-gold-hi), var(--lux-gold-deep));
  color: #1a150c !important;
  box-shadow: 0 8px 18px rgba(168, 135, 63, 0.28);
}

.tmb-lux-btn:hover {
  color: #1a150c !important;
  filter: brightness(1.05);
}

.tmb-lux-btn--ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(201, 169, 98, 0.55);
  box-shadow: none;
}

.tmb-lux-btn--ghost:hover {
  color: var(--lux-gold-hi) !important;
  background: rgba(201, 169, 98, 0.1);
}

.tmb-lux-media {
  position: relative;
  display: none;
  width: 120px;
  flex: 0 0 120px;
  margin-left: 0.25rem;
  overflow: hidden;
  border-radius: 0 999px 999px 0;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(120deg, rgba(10, 11, 14, 0.15), rgba(10, 11, 14, 0.05)),
    url("https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=600&q=80") center/cover no-repeat;
}

.tmb-lux-search {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--lux-border);
  background: rgba(10, 11, 14, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none !important;
}

.tmb-lux-search svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tmb-lux-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: auto 12px auto auto;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.tmb-lux-burger span,
.tmb-lux-burger span::before,
.tmb-lux-burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tmb-lux-burger span::before,
.tmb-lux-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.tmb-lux-burger span::before { top: -6px; }
.tmb-lux-burger span::after { top: 6px; }

.tmb-lux-header.is-open .tmb-lux-burger span {
  background: transparent;
}
.tmb-lux-header.is-open .tmb-lux-burger span::before {
  top: 0;
  transform: rotate(45deg);
}
.tmb-lux-header.is-open .tmb-lux-burger span::after {
  top: 0;
  transform: rotate(-45deg);
}

.tmb-lux-drawer {
  display: none;
  max-width: 1240px;
  width: calc(100% - 2rem);
  margin: 10px auto 0;
  padding: 1rem;
  background: rgba(10, 11, 14, 0.96);
  border: 1px solid var(--lux-border);
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  max-height: calc(100dvh - 5.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

.tmb-lux-header.is-open .tmb-lux-drawer {
  display: grid;
  gap: 0.35rem;
}

.tmb-lux-drawer a,
.tmb-lux-drawer button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 0.7rem;
  border-radius: 12px;
  cursor: pointer;
}

.tmb-lux-drawer a:hover,
.tmb-lux-drawer button:hover {
  background: rgba(201, 169, 98, 0.1);
  color: var(--lux-gold-hi) !important;
}

.tmb-lux-drawer .tmb-lux-drawer-sub {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.15rem;
}

.tmb-lux-drawer .tmb-lux-drawer-ctas {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tmb-lux-drawer .tmb-lux-btn {
  width: 100%;
  min-height: 44px;
}

/* Fixed header clearance — banners already pad; home hero needs explicit offset */
body.tmb-eco-home .tmb-eco-hero {
  padding-top: 8.5rem;
}

body.theme-mono .banner-section.two,
body.theme-mono .banner-section.inner,
body.theme-mono .banner-section.two.inner {
  padding-top: 118px !important;
}

/* Quiet the old decorative floats so inner heroes match the home aesthetic */
body.theme-mono .banner-section.two.inner [class*="banner-element"] {
  display: none !important;
}

/* Hide legacy header remnants if any remain */
body.theme-mono .header-section.two:not(.tmb-lux-header),
body.theme-mono header.header-section.two:not(.tmb-lux-header) {
  display: none !important;
}

@media (min-width: 1100px) {
  .tmb-lux-nav,
  .tmb-lux-actions {
    display: flex;
  }

  .tmb-lux-burger {
    display: none;
  }
}

@media (min-width: 1280px) {
  .tmb-lux-bar {
    padding: 0 1.35rem 0 1rem;
    column-gap: 1.5rem;
  }

  .tmb-lux-btn {
    min-height: 36px;
    padding: 0 1.05rem;
    font-size: 0.72rem;
  }

  .tmb-lux-nav {
    gap: 2.75rem; /* wider center spacing on large desktops */
  }

  .tmb-lux-actions {
    padding-right: 0.25rem;
  }
}

@media (max-width: 1099px) {
  .tmb-lux-bar {
    border-radius: 22px;
    min-height: 64px;
    justify-content: space-between;
    align-items: center;
  }

  .tmb-lux-brand {
    min-width: 0;
    max-width: calc(100% - 64px);
    flex: 1 1 auto;
    align-items: center;
    padding: 0 0.75rem 0 1rem;
    overflow: visible;
  }

  .tmb-lux-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    overflow: hidden;
  }

  .tmb-lux-brand-text strong {
    font-size: 0.7rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tmb-lux-brand-text small {
    display: block;
    font-size: 0.52rem;
    letter-spacing: 0.12em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tmb-lux-burger {
    flex: 0 0 auto;
    margin: 0 0.75rem 0 0.35rem;
    width: 42px;
    height: 42px;
  }

  .tmb-lux-drawer {
    width: calc(100% - 2rem);
  }
}

@media (max-width: 640px) {
  .tmb-lux-header {
    padding: 10px 0 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    left: 0;
    right: 0;
  }

  .tmb-lux-bar {
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
    min-height: 58px;
    border-radius: 18px;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0.15rem 0.15rem 0;
  }

  .tmb-lux-brand {
    gap: 0;
    padding: 4px 0.45rem 4px 0.75rem;
    min-width: 0;
    max-width: calc(100% - 56px);
    align-items: center;
    overflow: visible;
  }

  .tmb-lux-logo,
  .tmb-lux-brand .site_logo {
    height: 44px;
    max-height: 44px;
    max-width: min(168px, 52vw);
  }

  .tmb-lux-brand-divider {
    height: 28px;
  }

  .tmb-lux-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    overflow: visible;
  }

  .tmb-lux-brand-text strong {
    font-size: 0.68rem; /* ~11px */
    letter-spacing: 0.06em;
    line-height: 1.1;
  }

  .tmb-lux-brand-text small {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 0.5rem; /* ~8px */
    letter-spacing: 0.14em;
    line-height: 1.15;
    white-space: nowrap;
  }

  .tmb-lux-m {
    font-size: 1.55rem;
    flex: 0 0 auto;
    line-height: 1;
  }

  .tmb-lux-burger {
    margin: 0 0.55rem 0 0.25rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .tmb-lux-brand {
    gap: 0;
    padding: 2px 0.35rem 2px 0.55rem;
  }

  .tmb-lux-logo,
  .tmb-lux-brand .site_logo {
    height: 38px;
    max-height: 38px;
    max-width: min(148px, 58vw);
  }

  .tmb-lux-m {
    font-size: 1.4rem;
  }

  .tmb-lux-brand-divider {
    height: 26px;
  }

  .tmb-lux-brand-text strong {
    font-size: 0.625rem; /* 10px */
    letter-spacing: 0.05em;
  }

  .tmb-lux-brand-text small {
    display: block !important;
    font-size: 0.4375rem; /* 7px */
    letter-spacing: 0.12em;
  }
}
