/* Brokerage skin (lib/agentSiteBrokerage) — oraclerealty.ca's look.
   Every rule is scoped to [data-skin="brokerage"] or a br-* class, so no other
   site can pick any of it up. Values follow oraclerealty.ca's own CSS:
   accent #1895CF / hover #12678f, 64px hero, 400px tiles, 72px numbers. */

[data-skin="brokerage"] {
  --br-blue: #1895CF;
  --br-blue-hover: #12678f;
  --br-font: var(--font-outfit), "Helvetica Neue", Arial, sans-serif;
  --as-title-font: var(--br-font);
  --as-body-font: var(--br-font);
  font-family: var(--br-font);
}
/* One face throughout, like the old site. !important because the tenant theme
   sets --as-title-font/--as-body-font inline on this same element. */
[data-skin="brokerage"] *:not(svg):not(path) { font-family: var(--br-font) !important; }

.br-wrap { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.br-btn {
  display: inline-block; padding: 15px 35px; border-radius: 5px; background: var(--br-blue, #1895CF);
  color: #fff !important; text-transform: uppercase; letter-spacing: 2px; font-size: 16px; font-weight: 400;
  text-decoration: none; transition: background .2s ease-in;
}
.br-btn:hover { background: var(--br-blue-hover, #12678f); }

/* ── Header ───────────────────────────────────────────────────────────── */
[data-skin="brokerage"] .as-nav { background: #000; border-bottom: 0; position: relative; z-index: 40; }
[data-skin="brokerage"]:has(.br-home) .as-nav {
  position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.35) 70%, rgba(0,0,0,0));
}
.br-topbar {
  position: absolute; left: 0; right: 0; top: 0; height: 76px; padding: 0 15px;
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.br-topbar > * { pointer-events: auto; }
.br-topbar-contact { display: flex; gap: 16px; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }
.br-topbar-contact a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.br-topbar-contact a:hover { color: var(--br-blue, #1895CF); }
.br-social { display: flex; gap: 8px; }
.br-social a {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--br-blue, #1895CF); transition: background .2s ease-in, color .2s ease-in;
}
.br-social a:hover { background: var(--br-blue, #1895CF); color: #fff; }
.br-footer .br-social a { background: var(--br-blue, #1895CF); color: #fff; width: 36px; height: 36px; }
.br-footer .br-social a:hover { background: var(--br-blue-hover, #12678f); }

[data-skin="brokerage"] .as-nav .as-wrap {
  max-width: none; height: auto; flex-direction: column; justify-content: flex-start; gap: 0; padding: 0 15px;
}
[data-skin="brokerage"] .as-nav .as-brand { height: 76px; display: flex; align-items: center; justify-content: center; }
[data-skin="brokerage"] .as-nav .as-nav-links {
  width: 100%; justify-content: center; gap: 0; border-top: 1px solid rgba(255,255,255,.5); padding: 4px 0;
}
[data-skin="brokerage"] .as-nav .as-nav-links > a,
[data-skin="brokerage"] .as-nav .as-nav-links .as-menu-top,
[data-skin="brokerage"] .as-nav .as-nav-links a.as-nav-cta {
  font-family: var(--br-font) !important;
  color: #fff !important; opacity: 1; font-size: 16px; font-weight: 300; text-transform: uppercase; letter-spacing: .02em;
  background: none; border: 0; padding: 10px 16px;
}
[data-skin="brokerage"] .as-nav .as-nav-links > a:hover,
[data-skin="brokerage"] .as-nav .as-nav-links .as-menu:hover .as-menu-top { color: var(--br-blue, #1895CF); }
/* The old site's Contact is a plain menu item, not a button. */
[data-skin="brokerage"] .as-nav .as-nav-links a.as-nav-cta {
  background: none; border: 0; margin: 0; color: #fff; box-shadow: none; padding: 10px 16px;
}
[data-skin="brokerage"] .as-nav .as-nav-links a.as-nav-cta:hover { color: var(--br-blue, #1895CF); }
[data-skin="brokerage"] .as-nav .as-visitor,
[data-skin="brokerage"] .as-nav .as-visitor-link,
[data-skin="brokerage"] .as-nav .as-visitor-hi { display: none; }
[data-skin="brokerage"] .as-nav .as-menu-drop { background: #000; border: 0; }
[data-skin="brokerage"] .as-nav .as-menu-drop a { color: #fff; text-transform: none; font-weight: 300; }
[data-skin="brokerage"] .as-nav .as-menu-drop a:hover { color: var(--br-blue, #1895CF); background: rgba(255,255,255,.06); }
[data-skin="brokerage"] .as-nav .as-nav-toggle { color: #fff; }

@media (max-width: 960px) {
  .br-topbar { display: none; }
  [data-skin="brokerage"] .as-nav .as-wrap { flex-direction: row; justify-content: space-between; height: 68px; }
  [data-skin="brokerage"] .as-nav .as-brand { height: auto; }
  [data-skin="brokerage"] .as-nav .as-nav-links { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.br-hero {
  position: relative; min-height: 90vh; background: #000 center top / cover no-repeat;
  display: flex; align-items: flex-end; justify-content: center; text-align: center;
}
.br-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.15); }
.br-hero-inner { position: relative; padding: 0 20px 14vh; }
.br-hero h1 {
  color: #fff; font-size: 64px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
  line-height: 1.1; margin: 0 0 22px; text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

/* ── Quick search ─────────────────────────────────────────────────────── */
.br-search { background: #000; padding: 26px 0; }
.br-search .as-hero-search-wrap { max-width: none; }
.br-search .as-hero-search input { border-radius: 3px; border: 0; }
.br-search .as-hero-search .as-btn {
  background: var(--br-blue, #1895CF); border-color: var(--br-blue, #1895CF); color: #fff;
  text-transform: uppercase; letter-spacing: 2px; border-radius: 3px;
}
.br-search .as-hero-search .as-btn:hover { background: var(--br-blue-hover, #12678f); }

/* ── Three tiles ──────────────────────────────────────────────────────── */
.br-tiles { display: grid; }
.br-tile {
  position: relative; height: 400px; background: #222 center / cover no-repeat;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.br-tile::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .5; transition: opacity .2s ease-in; }
.br-tile:hover::before { opacity: .8; }
.br-tile span {
  position: relative; color: #fff; font-size: 28px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}

/* ── Working for you ──────────────────────────────────────────────────── */
.br-about { position: relative; background: #000; color: #fff; display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.br-about-img {
  background: center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent);
          mask-image: linear-gradient(to right, #000 55%, transparent);
}
.br-about-text { padding: 80px 15px 80px 30px; max-width: 585px; align-self: center; }
.br-about-text h2 { font-size: 36px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 28px; color: #fff; }
.br-about-text p { font-size: 16px; line-height: 1.6; color: #fff; margin: 0 0 30px; }

/* ── Numbers ──────────────────────────────────────────────────────────── */
.br-stats { position: relative; background: #000 center / cover no-repeat; color: #fff; padding: 120px 0; }
.br-stats::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.br-stats-row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.br-stat { text-align: center; text-transform: uppercase; font-size: 20px; }
.br-stat strong {
  display: block; font-size: 72px; font-weight: 700; line-height: 1.1;
  padding-bottom: 10px; margin: 0 auto 10px; width: 80%; border-bottom: 1px solid var(--br-blue, #1895CF);
}

/* ── Section headings ("MEET OUR AGENTS") ─────────────────────────────── */
.br-h { text-align: center; margin-bottom: 40px; }
.br-h h2 { font-size: 36px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #000; margin: 0; }
.br-h h2 span { color: var(--br-blue, #1895CF); }
.br-h i { display: block; width: 100px; height: 1px; background: var(--br-blue, #1895CF); margin: 18px auto 0; }

/* ── Agent carousel ───────────────────────────────────────────────────── */
.br-agents { background: #f2f2f2 center / cover no-repeat; padding: 80px 0; overflow: hidden; }
.br-rail { position: relative; }
.br-rail-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px 2px 12px; outline: none;
}
.br-rail-track::-webkit-scrollbar { display: none; }
.br-agent {
  flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; background: #fff; text-decoration: none;
  border-radius: 3px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.br-agent-photo { aspect-ratio: 253 / 290; background: #e5e5e5; overflow: hidden; }
.br-agent-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.br-agent-body { padding: 18px 10px 22px; text-align: center; }
.br-agent-body strong { display: block; font-size: 17px; font-weight: 600; text-transform: uppercase; color: #000; }
.br-agent-body span { display: block; font-size: 13px; color: #888; text-transform: uppercase; margin-top: 4px; }
.br-rail-btn {
  position: absolute; top: 40%; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; font-size: 26px; line-height: 1;
}
.br-rail-btn:hover { background: var(--br-blue, #1895CF); }
.br-rail-btn.prev { left: -50px; }
.br-rail-btn.next { right: -50px; }
@media (hover: hover) {
  .br-agent-photo img { filter: grayscale(1); transition: filter .3s ease; }
  .br-agent:hover .br-agent-photo img, .br-agent:focus-visible .br-agent-photo img { filter: none; }
}

/* ── Blog ─────────────────────────────────────────────────────────────── */
.br-blog { background: #f2f2f2; padding: 80px 0; }
.br-empty { text-align: center; font-size: 16px; color: #333; margin: 0; }
.br-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.br-post { background: #fff; text-decoration: none; color: #000; display: flex; flex-direction: column; }
.br-post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.br-post strong { font-size: 18px; padding: 16px 16px 6px; }
.br-post span { font-size: 14px; color: #555; padding: 0 16px 18px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.br-footer { background: #fff; color: #333; font-family: var(--br-font, sans-serif); }
.br-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 60px; padding-bottom: 60px; }
.br-footer h4 { font-size: 15px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 22px; color: #333; }
.br-footer h5 { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; color: #333; }
.br-footer ul { list-style: none; padding: 0; margin: 0; }
.br-footer li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.7; margin-bottom: 10px;
}
.br-footer li svg { color: var(--br-blue, #1895CF); flex: none; margin-top: 4px; }
.br-footer li a { color: #333; text-decoration: none; }
.br-footer li a:hover { color: var(--br-blue, #1895CF); }
.br-footer-logo img { width: 200px; max-width: 100%; height: auto; }
.br-footer-bar { background: #000; color: #fff; padding: 90px 0; }
.br-footer-bar-row { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.br-recip { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; }
.br-recip img { width: 102px; height: auto; background: #fff; border-radius: 3px; flex: none; }
.br-recip p { margin: 0; font-size: 14px; line-height: 1.45; color: #ddd; }
.br-footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 12px; color: #ddd; white-space: nowrap; }
.br-footer-links a { color: #ddd; text-decoration: none; }
.br-footer-links a:hover { color: #fff; }

/* ── Phones / tablets ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .br-hero { min-height: 70vh; }
  .br-hero h1 { font-size: 36px; }
  .br-tiles { grid-template-columns: 1fr !important; }
  .br-tile { height: 220px; }
  .br-about { grid-template-columns: 1fr; }
  .br-about-img { min-height: 260px; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .br-about-text { padding: 30px 20px 60px; }
  .br-stats { padding: 70px 0; }
  .br-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; gap: 16px; }
  .br-stat { font-size: 15px; }
  .br-stat strong { font-size: clamp(26px, 8.5vw, 40px); width: 100%; }
  .br-h h2 { font-size: 26px; }
  .br-agent { flex-basis: 70%; }
  .br-rail-btn { display: none; }
  .br-posts { grid-template-columns: 1fr; }
  .br-footer-cols { grid-template-columns: 1fr 1fr; }
  .br-footer-bar { padding: 50px 0; }
  .br-footer-bar-row { flex-direction: column; }
  .br-footer-links { align-items: flex-start; }
}
@media (max-width: 560px) {
  .br-footer-cols { grid-template-columns: 1fr; }
  .br-recip { flex-direction: column; }
}
