/* ── BRAND COLORS ─────────────────────────────────────────────────── */
/* Palette mirrored from ROInversion.com team brand                    */
:root {
  --navy:  #24244C;   /* dark navy-purple — hero, header, footer        */
  --gold:  #01ADD3;   /* bright cyan — CTAs, active links, accent        */
  --teal:  #2E3191;   /* primary brand blue — headings, section bg       */
  --white: #FFFFFF;
  --lgray: #F2F2FA;   /* light lavender — alternate section backgrounds  */
  --mgray: #666666;   /* body text, captions                             */
  --dgray: #333333;
}

/* ── RESET AND BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--dgray);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── LAYOUT ───────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── HEADER ───────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo:hover { text-decoration: none; }

/* ROInversion logo in header */
.logo-roi {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* BHHS logo in header — right side */
.bhhs-logo-link {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
  flex-shrink: 0;
}
.logo-bhhs {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.bhhs-logo-link:hover .logo-bhhs { opacity: 1; }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  color: var(--white);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.main-nav a:hover { color: var(--gold); text-decoration: none; }
.main-nav a.active { color: var(--gold); }

/* ── FOOTER ───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--mgray);
  text-align: center;
  padding: 2.5rem 0;
  font-size: 0.82rem;
  line-height: 2.2;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { text-decoration: underline; }

/* ── BUTTONS ──────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 0.8rem 2.2rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-top: 1rem;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: var(--teal);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 0.65rem 1.75rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
}

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 6rem 0 5rem;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  line-height: 1.25;
  max-width: 760px;
  margin: 0 auto;
}
.hero-sub {
  color: var(--gold);
  font-size: 1.15rem;
  margin-top: 1.2rem;
  font-style: italic;
}
.hero-disclaimer {
  color: var(--mgray);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

/* ── SECTIONS ─────────────────────────────────────────────────────── */
.section-white { padding: 5rem 0; background: var(--white); }
.section-light { padding: 5rem 0; background: var(--lgray); }
.section-navy  { padding: 5rem 0; background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-navy p  { color: #B0BAC9; }

/* ── INTRO STATS GRID ─────────────────────────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.intro-grid p { color: var(--mgray); margin-top: 1rem; line-height: 1.8; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid #E8E8E4;
  border-radius: 2px;
  padding: 1.25rem;
  text-align: center;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mgray);
  margin-top: 0.4rem;
}

/* ── WHY US GRID ──────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  padding: 1.75rem 1.5rem;
}
.why-card h3 { color: var(--gold); font-size: 1.05rem; margin-bottom: 0.75rem; }
.why-card p  { color: #B0BAC9; font-size: 0.9rem; line-height: 1.7; }

/* ── PAYMENT SCHEDULE TABLE ───────────────────────────────────────── */
.payment-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}
.payment-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.payment-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #E8E8E4;
}
.payment-table tr:nth-child(even) td { background: var(--lgray); }
.payment-table .amount { font-weight: 700; color: var(--teal); }

/* ── CONTACT FORM ─────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-top: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #CCC;
  border-radius: 2px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  width: 100%;
  color: var(--dgray);
  background: var(--white);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form .form-note {
  font-size: 0.78rem;
  color: var(--mgray);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ── PAGE HERO (inner pages) ──────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2rem; }
.page-hero p  { color: var(--gold);  margin-top: 0.5rem; font-style: italic; }

/* ── ABOUT PAGE ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.agent-card {
  background: var(--lgray);
  border-radius: 2px;
  padding: 2rem;
  text-align: center;
}
.agent-card .agent-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--gold);
  background: var(--navy);
}
.agent-card .agent-initials {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
}
.agent-card h3 { color: var(--navy); margin-bottom: 0.4rem; }
.agent-card .agent-title { color: var(--gold); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; }
.agent-card p { color: var(--mgray); font-size: 0.92rem; margin-top: 1rem; line-height: 1.75; text-align: left; }

/* ── WHATSAPP FLOAT ───────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-decoration: none;
}

/* ── MOBILE NAV TOGGLE ────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── MOBILE ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 0.5rem 0 1rem;
    z-index: 200;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .site-header .container { position: relative; }

  /* Hide BHHS logo on mobile to save space */
  .bhhs-logo-link { display: none; }
  /* Shrink ROI logo slightly on mobile */
  .logo-roi { height: 38px; }

  .hero h1  { font-size: 1.75rem; }
  .intro-grid,
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .why-grid   { grid-template-columns: 1fr; }
  .stat-grid  { grid-template-columns: 1fr 1fr; }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }

  /* rendering gallery */
  .render-grid-3 { grid-template-columns: 1fr !important; }
  /* 2-col grids used in delano page */
  .grid-2col { grid-template-columns: 1fr !important; }
}
