/* BUYREAL site-wide UX polish — 2026-10-21 */
:root {
  --br-ink: #292a25;
  --br-olive: #2d302a;
  --br-paper: #f6f3ed;
  --br-gold: #ad8747;
  --br-line: #d8cdbb;
}

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

::selection {
  color: #fffefa;
  background: var(--br-olive);
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--br-gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  color: #fffefa;
  background: var(--br-olive);
  font: 700 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  transition: box-shadow .25s ease, background-color .25s ease;
}

.site-header.is-scrolled {
  background: rgba(246, 243, 237, .97);
  box-shadow: 0 12px 34px rgba(34, 36, 31, .08);
}

.ux-reveal {
  opacity: .001;
  transform: translateY(22px);
  transition: opacity .72s cubic-bezier(.22, 1, .36, 1), transform .72s cubic-bezier(.22, 1, .36, 1);
}

.ux-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* The legacy search landing pages now share the same branded navigation. */
.br-legacy-header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 74px;
  padding: 0 clamp(22px, 6vw, 82px);
  color: var(--br-ink);
  background: rgba(246, 243, 237, .96);
  border-bottom: 1px solid rgba(45, 48, 42, .14);
  backdrop-filter: blur(14px);
}

.br-legacy-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.br-legacy-brand img {
  width: 39px;
  height: 37px;
  object-fit: contain;
}

.br-legacy-brand span {
  display: grid;
  gap: 1px;
}

.br-legacy-brand strong {
  font: 800 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .13em;
}

.br-legacy-brand small {
  color: #68665f;
  font: 500 9px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .04em;
}

.br-legacy-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 38px);
  padding: 0 24px;
}

.br-legacy-nav a,
.br-legacy-cta {
  color: inherit;
  font: 700 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
}

.br-legacy-nav a {
  padding: 27px 0;
  border-bottom: 1px solid transparent;
}

.br-legacy-nav a:hover,
.br-legacy-nav a:focus-visible {
  border-color: var(--br-gold);
}

.br-legacy-cta {
  padding: 11px 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid var(--br-olive);
}

.br-legacy-cta:hover {
  color: #fffefa;
  background: var(--br-olive);
}

.br-legacy-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 34px;
  margin-top: 80px;
  padding: 34px clamp(22px, 6vw, 82px);
  color: #d6d4cc;
  background: #20221e;
  font: 500 11px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
}

.br-legacy-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.br-legacy-footer a {
  color: inherit;
  text-decoration: none;
}

.br-legacy-footer a:hover,
.br-legacy-footer a:focus-visible {
  color: #fffefa;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    gap: 25px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    border-top: 1px solid rgba(45, 48, 42, .1);
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    flex: none;
    padding: 13px 0;
    white-space: nowrap;
    font-size: 11px;
  }

  .site-header nav a::after {
    bottom: 7px;
  }

  .br-legacy-header {
    grid-template-columns: 1fr auto;
  }

  .br-legacy-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: 100%;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid rgba(45, 48, 42, .1);
  }

  .br-legacy-nav::-webkit-scrollbar {
    display: none;
  }

  .br-legacy-nav a {
    flex: none;
    padding: 13px 0;
    white-space: nowrap;
  }
}

@media (max-width: 800px) {
  .site-header nav {
    width: calc(100% + 40px);
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .hero {
    min-height: calc(100svh - 112px);
  }

  .br-legacy-header {
    padding-inline: 20px;
  }

  .br-legacy-nav {
    width: calc(100% + 40px);
    margin-inline: -20px;
    padding-inline: 20px;
  }
}

@media (max-width: 520px) {
  .br-legacy-brand small {
    display: none;
  }

  .br-legacy-cta {
    padding: 9px 11px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ux-reveal,
  .skip-link,
  .site-header {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
