/* ===================================================
   RNI — Custom Homepage Styles
   Integrated with QuickHomes CMS classic-theme
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --rni-red: #E03830;
  --rni-red-light: #FDEAEA;
  --rni-dark: #0F0F0F;
  --rni-card: #f7f6f4;
  --rni-border: #e8e6e2;
  --rni-muted: #888580;
  --rni-green: #1a7a4a;
  --rni-green-light: #e6f4ec;
  --rni-blue: #1a4d8a;
  --rni-blue-light: #e6eef8;
  --rni-gold: #b07e20;
}

/* ── OVERRIDE QuickHomes header for RNI branding ── */
#header-container { background: #fff !important; border-bottom: 1px solid var(--rni-border) !important; box-shadow: none !important; }
#header-container.transparent { background: #fff !important; }
#logo a img { max-height: 38px; }
#header { font-family: 'DM Sans', sans-serif; }

/* ── RNI HERO ── */
.rni-hero {
  background: var(--rni-dark);
  color: #fff;
  padding: 72px 40px 56px;
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}
.rni-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(224,56,48,.18) 0%, transparent 70%);
  pointer-events: none;
}
.rni-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(224,56,48,.1) 0%, transparent 70%);
  pointer-events: none;
}
.rni-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin-bottom: 24px;
  font-family: 'DM Sans', sans-serif;
}
.rni-hero h1 {
  font-family: 'Syne', sans-serif !important;
  font-size: 52px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -2px !important;
  max-width: 700px;
  margin-bottom: 18px !important;
  color: #fff !important;
}
.rni-hero h1 em { color: var(--rni-red); font-style: normal; }
.rni-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.6);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
  font-weight: 300;
  font-family: 'DM Sans', sans-serif;
}

/* ── RNI SEARCH BAR ── */
.rni-search {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 700px;
  margin-bottom: 28px;
}
.rni-search select {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 6px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  color: #fff !important;
  flex: 1;
  min-width: 130px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}
.rni-search select option { background: #1c1c1c; color: #fff; }
.rni-search-btn {
  background: var(--rni-red) !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.rni-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.rni-btn-white {
  background: #fff; color: var(--rni-dark);
  border: none; padding: 12px 24px;
  border-radius: 6px; font-size: 14px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.rni-btn-white:hover { background: #f0ede8; color: var(--rni-dark); text-decoration: none; }
.rni-btn-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: 12px 24px; border-radius: 6px;
  font-size: 14px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.rni-btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }

/* ── STATS BAR ── */
.rni-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--rni-border);
  font-family: 'DM Sans', sans-serif;
}
.rni-stat {
  text-align: center;
  padding: 22px 16px;
  border-right: 1px solid var(--rni-border);
}
.rni-stat:last-child { border-right: none; }
.rni-stat-n {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--rni-dark);
}
.rni-stat-l { font-size: 12px; color: var(--rni-muted); margin-top: 2px; }

/* ── SECTIONS ── */
.rni-section { padding: 64px 40px; font-family: 'DM Sans', sans-serif; }
.rni-section-alt { background: var(--rni-card); }
.rni-sec-head { margin-bottom: 32px; }
.rni-sec-head h2 {
  font-family: 'Syne', sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
  color: var(--rni-dark) !important;
  margin-bottom: 8px !important;
}
.rni-sec-head p { font-size: 14px; color: var(--rni-muted); max-width: 520px; }
.rni-sec-head.center { text-align: center; }
.rni-sec-head.center p { margin: 0 auto; }

/* ── ROLE CARDS ── */
.rni-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rni-role-card {
  background: #fff;
  border: 1px solid var(--rni-border);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none !important;
}
.rni-role-card:hover {
  border-color: var(--rni-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,56,48,.1);
}
.rni-role-ico {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
}
.rni-role-card h3 {
  font-family: 'Syne', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--rni-dark) !important;
  margin-bottom: 4px !important;
}
.rni-role-card p { font-size: 11px; color: var(--rni-muted); line-height: 1.4; margin: 0; }

/* ── PROPERTY LISTING CARDS ── */
.rni-listing-shell {
  background: #fff;
  border: 1px solid var(--rni-border);
  border-radius: 12px;
  overflow: hidden;
}
.rni-l-filters {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rni-border);
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.rni-fb {
  background: var(--rni-card);
  border: 1px solid var(--rni-border);
  color: var(--rni-muted);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  font-family: 'DM Sans', sans-serif;
}
.rni-fb:hover, .rni-fb.rni-act {
  background: var(--rni-red);
  color: #fff;
  border-color: var(--rni-red);
}
.rni-prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.rni-prop-card {
  border-right: 1px solid var(--rni-border);
  border-bottom: 1px solid var(--rni-border);
  padding: 16px;
}
.rni-prop-card:nth-child(3n) { border-right: none; }
.rni-prop-img {
  background: linear-gradient(135deg, #f0ede8, #e8e4de);
  border-radius: 8px;
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  position: relative;
  font-size: 32px;
  overflow: hidden;
}
.rni-prop-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; top: 0; left: 0;
}
.rni-p-tag {
  position: absolute; top: 7px; left: 7px;
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  color: #fff; font-family: 'Syne', sans-serif;
  letter-spacing: .3px; z-index: 2;
}
.rni-p-price {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--rni-dark);
}
.rni-p-title { font-size: 12px; color: var(--rni-muted); margin: 3px 0 6px; }
.rni-p-loc { font-size: 11px; color: var(--rni-muted); display: flex; align-items: center; gap: 3px; }
.rni-p-meta { display: flex; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rni-border); }
.rni-p-meta span { font-size: 10px; color: var(--rni-muted); display: flex; align-items: center; gap: 3px; }
.rni-p-wa {
  width: 100%; margin-top: 10px;
  background: var(--rni-green-light);
  color: var(--rni-green);
  border: 1px solid #b8dfc8;
  padding: 7px; border-radius: 6px;
  font-size: 11px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.rni-p-wa:hover { background: #c8efd8; }

/* ── CRM SECTION ── */
.rni-crm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rni-crm-card {
  background: #fff;
  border: 1px solid var(--rni-border);
  border-radius: 10px;
  padding: 16px;
}
.rni-crm-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 600;
  color: var(--rni-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}
.rni-lead-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--rni-border);
}
.rni-lead-item:last-child { border: none; }
.rni-l-av {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
  font-family: 'Syne', sans-serif;
}
.rni-l-name { font-size: 13px; color: var(--rni-dark); font-weight: 500; }
.rni-l-sub { font-size: 10px; color: var(--rni-muted); margin-top: 1px; }
.rni-l-status {
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 10px;
  letter-spacing: .3px; font-family: 'Syne', sans-serif;
  white-space: nowrap;
}
.rni-pipe-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rni-pipe-lbl { font-size: 11px; color: var(--rni-muted); width: 80px; flex-shrink: 0; }
.rni-pipe-track { flex: 1; background: var(--rni-card); border-radius: 3px; height: 6px; overflow: hidden; }
.rni-pipe-fill { height: 100%; border-radius: 3px; }
.rni-pipe-cnt { font-size: 11px; color: var(--rni-muted); width: 28px; text-align: right; }

/* ── CONSTRUCTION PHASES ── */
.rni-phases { display: flex; overflow: hidden; border-radius: 10px; border: 1px solid var(--rni-border); }
.rni-phase {
  flex: 1; padding: 14px 10px;
  background: #fff;
  border-right: 1px solid var(--rni-border);
  text-align: center;
}
.rni-phase:last-child { border-right: none; }
.rni-phase.done { background: var(--rni-green-light); }
.rni-phase.active { background: var(--rni-red-light); border-top: 3px solid var(--rni-red); }
.rni-phase-num { font-size: 10px; font-weight: 700; color: var(--rni-muted); font-family: 'Syne', sans-serif; margin-bottom: 4px; }
.rni-phase-name { font-size: 11px; font-weight: 700; color: var(--rni-dark); font-family: 'Syne', sans-serif; }
.rni-phase-pct { font-size: 10px; color: var(--rni-muted); margin-top: 2px; }
.rni-phase-bar { background: #ddd; border-radius: 2px; height: 3px; margin-top: 5px; overflow: hidden; }
.rni-phase-fill { height: 100%; border-radius: 2px; }

/* ── FEATURE CARDS ── */
.rni-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.rni-feat-card {
  background: #fff;
  border: 1px solid var(--rni-border);
  border-radius: 10px;
  padding: 18px;
  transition: all .2s;
}
.rni-feat-card:hover { border-color: var(--rni-red); box-shadow: 0 4px 16px rgba(224,56,48,.08); }
.rni-feat-ico { font-size: 22px; margin-bottom: 10px; display: block; }
.rni-feat-card h3 {
  font-family: 'Syne', sans-serif !important;
  font-size: 13px !important; font-weight: 600 !important;
  color: var(--rni-dark) !important; margin-bottom: 6px !important;
}
.rni-feat-card p { font-size: 11px; color: var(--rni-muted); line-height: 1.6; margin: 0; }

/* ── MODULE TABS ── */
.rni-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; }
.rni-tab {
  padding: 6px 16px; border-radius: 20px; font-size: 12px;
  cursor: pointer; border: 1px solid var(--rni-border);
  background: #fff; color: var(--rni-muted);
  transition: all .2s; font-family: 'DM Sans', sans-serif;
}
.rni-tab.rni-on { background: var(--rni-red); color: #fff; border-color: var(--rni-red); }

/* ── WHATSAPP SECTION ── */
.rni-wa-demo {
  background: var(--rni-card);
  border-radius: 12px; padding: 16px;
  max-width: 290px;
}
.rni-wa-hd { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--rni-border); margin-bottom: 10px; }
.rni-wa-av { width: 34px; height: 34px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.rni-wa-nm { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: var(--rni-dark); }
.rni-wa-st { font-size: 10px; color: #25D366; }
.rni-wa-msg { margin: 5px 0; display: flex; }
.rni-wa-msg.out { justify-content: flex-end; }
.rni-wa-bbl { max-width: 210px; padding: 7px 10px; border-radius: 12px; font-size: 11px; line-height: 1.5; font-family: 'DM Sans', sans-serif; }
.rni-wa-bbl.in { background: #fff; color: var(--rni-dark); border-bottom-left-radius: 3px; }
.rni-wa-bbl.out { background: #DCF8C6; color: #1a3a1a; border-bottom-right-radius: 3px; }
.rni-wa-feat { background: #fff; border: 1px solid var(--rni-border); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.rni-wa-ft { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600; color: var(--rni-dark); margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.rni-wa-fd { font-size: 11px; color: var(--rni-muted); }

/* ── REFERRAL ── */
.rni-ref-box { background: #fff; border: 1px solid var(--rni-border); border-radius: 12px; padding: 24px; max-width: 460px; margin: 0 auto; }
.rni-ref-link { background: var(--rni-card); border: 1px solid var(--rni-border); border-radius: 6px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; margin: 14px 0; font-size: 12px; color: var(--rni-muted); }
.rni-ref-link strong { font-family: 'Syne', sans-serif; color: var(--rni-dark); }
.rni-copy-btn { background: var(--rni-red); color: #fff; border: none; padding: 5px 12px; border-radius: 4px; font-size: 11px; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.rni-ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.rni-r-stat { background: var(--rni-card); border-radius: 8px; padding: 12px; text-align: center; }
.rni-r-stat-n { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; color: var(--rni-dark); }
.rni-r-stat-l { font-size: 10px; color: var(--rni-muted); }

/* ── PRICING ── */
.rni-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.rni-price-card { background: #fff; border: 1px solid var(--rni-border); border-radius: 12px; padding: 22px; position: relative; }
.rni-price-card.featured { border: 2px solid var(--rni-red); }
.rni-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--rni-red); color: #fff; font-size: 10px; padding: 3px 12px; border-radius: 10px; white-space: nowrap; font-family: 'Syne', sans-serif; font-weight: 700; }
.rni-plan { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; color: var(--rni-muted); text-transform: uppercase; letter-spacing: .8px; }
.rni-price-amt { font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800; color: var(--rni-dark); margin: 8px 0 2px; letter-spacing: -1px; }
.rni-price-per { font-size: 12px; color: var(--rni-muted); }
.rni-price-feats { list-style: none; margin-top: 16px; font-size: 12px; color: var(--rni-muted); line-height: 2.2; padding: 0; }
.rni-price-feats li { display: flex; align-items: center; gap: 6px; }
.rni-check { color: #1a7a4a; font-weight: 700; }
.rni-cross { color: #ccc; }
.rni-btn-plan { width: 100%; margin-top: 18px; padding: 10px; border-radius: 6px; font-size: 13px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 500; transition: all .2s; }
.rni-btn-plan-out { background: transparent; border: 1px solid var(--rni-border); color: var(--rni-dark); }
.rni-btn-plan-out:hover { background: var(--rni-card); }
.rni-btn-plan-fill { background: var(--rni-red); color: #fff; border: none; }

/* ── CONSTRUCTION KPI CARDS ── */
.rni-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 16px; }
.rni-kpi { background: #fff; border: 1px solid var(--rni-border); border-radius: 8px; padding: 14px; }
.rni-kpi-lbl { font-size: 11px; color: var(--rni-muted); margin-bottom: 4px; }
.rni-kpi-val { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; color: var(--rni-dark); }
.rni-kpi-sub { font-size: 10px; color: var(--rni-muted); margin-top: 2px; }

/* ── RESPONSIVE ── */
@media(max-width: 900px) {
  .rni-hero { padding: 48px 20px 36px; }
  .rni-hero h1 { font-size: 36px !important; letter-spacing: -1px !important; }
  .rni-stats { grid-template-columns: repeat(2, 1fr); }
  .rni-section { padding: 40px 20px; }
  .rni-crm-grid { grid-template-columns: 1fr; }
  .rni-prop-grid { grid-template-columns: 1fr 1fr; }
  .rni-phases { flex-wrap: wrap; }
}
@media(max-width: 600px) {
  .rni-hero h1 { font-size: 28px !important; }
  .rni-prop-grid { grid-template-columns: 1fr; }
  .rni-price-grid { grid-template-columns: 1fr; }
}
