/* ============================================================
   ROINVERSION OFF-MARKET — global.css
   Palette: graphite ink · ROInversion navy · restrained brass

   This site sells discretion to commercial sellers and private capital,
   so the treatment is dark and institutional. Playfair + Inter keep the
   ROInversion family resemblance.
   ============================================================ */

:root {
  --ink:      #14141C;  /* near-black, primary dark surface */
  --navy:     #24244C;  /* ROInversion brand navy */
  --brass:    #B08D57;  /* primary accent */
  --brass-lt: #C9A96E;  /* hover / highlight */
  --lgray:    #F5F5F9;
  --mgray:    #6B6B7B;
  --line:     #E3E3EC;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #2A2A33;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  color: var(--ink);
}

a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--brass-lt); }

img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

/* Section backgrounds */
.section-white { background: #fff;         padding: 5rem 0; }
.section-light { background: var(--lgray); padding: 5rem 0; }
.section-ink   { background: var(--ink);   padding: 5rem 0; color: rgba(255,255,255,0.78); }
.section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }
.section-navy  { background: var(--navy);  padding: 5rem 0; color: rgba(255,255,255,0.78); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }

/* Page hero (inner pages) */
.page-hero { background: var(--ink); padding: 4rem 0 3rem; color: #fff; }
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p  { color: rgba(255,255,255,0.72); max-width: 680px; margin: 0; }

/* Homepage hero */
.hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 100%);
  min-height: 82vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-h1 {
  color: #fff;
  font-size: 3rem;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 0;
}
.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.12rem;
  max-width: 580px;
  margin: 1.25rem 0 2.25rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Eyebrow + intro */
.section-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass);
  margin-bottom: 0.6rem;
  display: block;
  font-weight: 600;
}
.section-intro       { max-width: 680px; color: var(--mgray); margin-bottom: 2.5rem; }
.section-intro-white { max-width: 680px; color: rgba(255,255,255,0.72); margin-bottom: 2.5rem; }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--brass);
  color: #fff;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: var(--brass-lt); color: #fff; }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--brass);
  color: var(--brass);
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--brass); color: #fff; }

.btn-outline-white {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline-white:hover { border-color: var(--brass); color: var(--brass-lt); }

/* Grids */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Agent cards — three across, not two (Carlos, Gasper, Lina) ── */
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.agent-card {
  background: var(--lgray);
  border-radius: 3px;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 3px solid var(--brass);
}
.agent-card .agent-photo {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 1.1rem;
  border: 3px solid var(--brass);
  background: var(--navy);
  display: block;
}
.agent-card h3 { color: var(--ink); margin-bottom: 0.35rem; font-size: 1.25rem; }
.agent-card .agent-title {
  color: var(--brass);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.agent-card .agent-license { font-size: 0.78rem; color: var(--mgray); margin-top: 0.3rem; }
.agent-card p { color: var(--mgray); font-size: 0.88rem; margin-top: 1rem; line-height: 1.7; text-align: left; }

/* Verifiable track record — closings and credentials, not adjectives. */
.agent-highlights {
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(20,20,28,0.09);
  text-align: left;
}
.agent-highlights li {
  font-size: 0.8rem;
  color: var(--ink);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.agent-highlights li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
}
.agent-contact {
  display: flex; flex-direction: column; gap: 0.2rem;
  margin-top: 1rem; padding-top: 0.9rem;
  border-top: 1px solid rgba(20,20,28,0.09);
  text-align: left;
  font-size: 0.82rem;
}
.agent-contact a { color: var(--navy); }
.agent-contact a:hover { color: var(--brass); }

/* ── Tiered inventory cards ──
   .deal-card       — Tier 1 anonymized teaser
   .deal-card-locked— visual treatment for gated fields
   Tier 2 detail lives in the deal room, rendered server-side. */
.deals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.deal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.deal-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(20,20,28,0.1); }
.deal-card-head {
  background: var(--navy);
  padding: 1.1rem 1.25rem;
  color: #fff;
}
.deal-card-asset {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brass-lt); font-weight: 600;
}
.deal-card-head h3 { color: #fff; font-size: 1.1rem; margin: 0.3rem 0 0; }
.deal-card-body { padding: 1.25rem; flex: 1; }
.deal-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; margin-bottom: 1rem; }
.deal-metric-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--mgray); }
.deal-metric-value { font-size: 1rem; font-weight: 600; color: var(--ink); font-family: 'Playfair Display', serif; }
.deal-card-foot { padding: 0 1.25rem 1.25rem; }

/* Locked / redacted field treatment — the visual language of the gate */
.locked {
  display: inline-block;
  background: var(--lgray);
  color: transparent;
  border-radius: 2px;
  user-select: none;
  min-width: 4.5rem;
  position: relative;
}
.locked::after {
  content: "🔒";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  filter: grayscale(1); opacity: 0.45;
}

/* Badges */
.badge {
  display: inline-block;
  background: var(--lgray);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem;
  border-radius: 2px;
}
.badge-brass { background: var(--brass); color: #fff; }
.badge-navy  { background: var(--navy);  color: #fff; }

/* Stats strip */
.stats-strip { background: var(--brass); padding: 2.25rem 0; color: #fff; }
.stats-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats-strip .stat-number { font-size: 2.1rem; font-weight: 700; display: block; font-family: 'Playfair Display', serif; }
.stats-strip .stat-label  { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.9; }

/* Numbered process steps (How It Works) */
.steps-list { display: flex; flex-direction: column; gap: 2rem; }
.step-item  { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num {
  font-size: 1.9rem; font-weight: 700; color: var(--brass);
  font-family: 'Playfair Display', serif; flex-shrink: 0; line-height: 1;
  min-width: 2.5rem;
}
.step-item h3 { margin-bottom: 0.4rem; font-size: 1.08rem; }
.step-item p  { font-size: 0.92rem; margin: 0; color: var(--mgray); }
.section-ink .step-item h3 { color: #fff; }
.section-ink .step-item p  { color: rgba(255,255,255,0.72); }

/* Answer box — AEO pattern carried over from Brickell Key */
.answer-box {
  background: var(--lgray);
  border-left: 4px solid var(--brass);
  border-radius: 0 4px 4px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.answer-box h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.answer-box p  { margin: 0; font-size: 0.95rem; }

/* Callout — used for the fee-agreement-is-not-a-listing-agreement point */
.callout {
  border: 1px solid var(--brass);
  border-radius: 3px;
  padding: 1.5rem 1.75rem;
  background: rgba(176,141,87,0.06);
  margin: 2rem 0;
}
.callout h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--ink); }
.callout p  { margin: 0; font-size: 0.93rem; color: #3A3A45; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.faq-item p  { margin: 0; color: var(--mgray); font-size: 0.94rem; }

/* Forms */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem;
}
.contact-form label {
  display: block;
  font-weight: 500;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: #2A2A33;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #D0D5DD;
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #2A2A33;
  background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176,141,87,0.14);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.78rem; color: var(--mgray); margin-top: 1rem; line-height: 1.6; }
.form-sla {
  background: var(--lgray);
  border-radius: 3px;
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  color: var(--mgray);
  margin-top: 1.5rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}
.main-nav { display: flex; align-items: center; gap: 1.15rem; }
.main-nav a { color: rgba(255,255,255,0.82); font-size: 0.86rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--brass-lt); }
.nav-cta {
  background: var(--brass); color: #fff !important;
  padding: 0.5rem 1.1rem; border-radius: 2px;
  font-size: 0.82rem !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--brass-lt); }

/* Language switcher */
.lang-switcher {
  display: flex; gap: 0.5rem;
  margin-left: 0.5rem;
  border-left: 1px solid rgba(255,255,255,0.16);
  padding-left: 0.75rem;
}
.lang-btn { color: rgba(255,255,255,0.6); font-size: 0.76rem; font-weight: 600; }
.lang-btn.lang-active { color: var(--brass-lt); }

/* Mobile hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 1px; }

/* Logos */
.logo-bhhs-wrap, .logo-roi-wrap { display: flex; align-items: center; flex-shrink: 0; }
/* ROInversion sits on a square canvas and only inks ~65% of the width, so it
   needs a larger height than BHHS to read as the same visual weight. */
.logo-bhhs { height: 46px; width: auto; display: block; }
.logo-roi  { height: 78px; width: auto; display: block; }

.footer-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
  padding-bottom: 2rem; margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-bhhs { height: 88px; width: auto; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-logo-roi  { height: 128px; width: auto; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.68);
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
  line-height: 1.8;
}
.site-footer a { color: rgba(255,255,255,0.68); }
.site-footer a:hover { color: var(--brass-lt); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-heading {
  color: #fff; font-weight: 600; margin-bottom: 0.5rem;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.78rem; }
.footer-disclaimer {
  font-size: 0.7rem; color: rgba(255,255,255,0.4);
  margin-top: 0.75rem; max-width: 860px;
  margin-left: auto; margin-right: auto; line-height: 1.6;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  background: #25D366; border-radius: 50%;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* Sticky bottom bar */
.sticky-bar {
  position: fixed; bottom: 5.5rem; left: 0; right: 0;
  background: var(--ink); border-top: 2px solid var(--brass);
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  z-index: 90; box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
  transform: translateY(100%); transition: transform 0.35s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-label { color: #fff; font-size: 0.85rem; }
.sticky-bar-ctas { display: flex; gap: 0.75rem; flex-shrink: 0; }
.sticky-bar-outline {
  display: inline-block; border: 1px solid rgba(255,255,255,0.5);
  color: #fff; padding: 0.5rem 1.25rem; border-radius: 2px;
  font-size: 0.85rem; font-weight: 500; text-decoration: none;
}
.sticky-bar-outline:hover { border-color: var(--brass); color: var(--brass-lt); }

/* ========================
   MOBILE (max-width: 900px / 768px)
   ======================== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .agents-grid, .deals-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  .grid-2col, .grid-3col, .grid-4col,
  .agents-grid, .deals-grid, .footer-grid { grid-template-columns: 1fr; }

  .hero-h1 { font-size: 2rem; max-width: 100%; }
  .hero { min-height: auto; padding: 4rem 0; }
  .section-white, .section-light, .section-ink, .section-navy { padding: 3rem 0; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .form-row  { grid-template-columns: 1fr; }
  .deal-metrics { grid-template-columns: 1fr 1fr; }

  .logo-bhhs { height: 36px; }
  .logo-roi  { height: 58px; }

  .main-nav {
    display: none; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a { padding: 0.6rem 0; font-size: 1rem; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-cta { margin-top: 0.75rem; text-align: center; border-bottom: none !important; }
  .lang-switcher { border-left: none; padding-left: 0; margin-left: 0; padding-top: 0.75rem; }
  .nav-toggle { display: flex; }

  .whatsapp-float { width: 48px; height: 48px; bottom: 1.25rem; right: 1.25rem; }
  .whatsapp-float svg { width: 24px; height: 24px; }

  .sticky-bar { flex-direction: column; align-items: flex-start; bottom: 4.5rem; padding: 0.75rem 1rem; }
  .sticky-bar-ctas { gap: 0.5rem; }
}

@media (max-width: 480px) {
  .stats-strip-grid, .deal-metrics { grid-template-columns: 1fr; }
}
