/* ==========================================================
   Real Team 6 - Theme B "Fresh" (white + green, warm neutrals)
   Shared by every page. Loaded AFTER each page's inline
   <style>, so these rules override the old dark theme.
   ========================================================== */
:root {
  --rb-green: #1E8A4C;
  --rb-green-d: #15693A;
  --rb-mint: #E8F5EC;
  --rb-ink: #0F1A14;
  --rb-muted: #5B6B62;
  --rb-line: #ECE6DC;
  --rb-soft: #F8F5EF;
  --rb-red: #C8322E;
}

/* ---------- Base ---------- */
body { font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #fff; color: var(--rb-ink); line-height: 1.6; }
h1, h2, h3 { font-family: "Plus Jakarta Sans", sans-serif; letter-spacing: -.02em; }
.background-logo { display: none; }
.container { max-width: 1200px; }

/* ---------- Header (shared markup: .rb-header) ---------- */
.rb-header { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rb-line); }
.rb-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 72px; display: flex; align-items: center; gap: 28px; }
.rb-left { display: flex; align-items: center; gap: 16px; margin-right: auto; }
.rb-brand { display: flex; align-items: center; gap: 10px; color: var(--rb-ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.rb-brand img { height: 42px; width: auto; }
.rb-sep { width: 1px; height: 32px; background: var(--rb-line); }
.rb-broker { height: 34px; width: auto; }
.rb-nav { display: flex; gap: 26px; }
.rb-nav a { color: var(--rb-muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.rb-nav a:hover { color: var(--rb-green); }
.rb-nav a.active { color: var(--rb-ink); border-bottom-color: var(--rb-green); }
.rb-call { background: var(--rb-green); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 10px; white-space: nowrap; }
.rb-call:hover { background: var(--rb-green-d); }
.rb-menu { display: none; background: none; border: 1px solid var(--rb-line); color: var(--rb-ink); font-size: 20px; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }
@media (max-width: 980px) {
  .rb-header-inner { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .rb-menu { display: block; }
  .rb-call { padding: 9px 14px; }
  .rb-nav { display: none; order: 5; width: 100%; flex-direction: column; gap: 0; padding: 4px 0 8px; }
  .rb-nav a { padding: 12px 4px; border-bottom: 1px solid var(--rb-line); }
  .rb-nav a.active { border-bottom-color: var(--rb-line); color: var(--rb-green); }
  .rb-header.open .rb-nav { display: flex; }
}
@media (max-width: 560px) {
  .rb-left { gap: 10px; }
  .rb-brand { font-size: 16px; gap: 8px; }
  .rb-brand img { height: 34px; }
  .rb-sep { height: 26px; }
  .rb-broker { height: 28px; }
  .rb-header-inner { gap: 10px; }
}
@media (max-width: 400px) {
  /* small phones: keep both logos, let the Real Team 6 logo carry the name */
  .rb-brand span { display: none; }
}
@media (max-width: 350px) {
  .rb-header-inner { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .rb-broker { height: 24px; }
  .rb-call { padding: 8px 10px; font-size: 13px; }
}

/* ---------- Buttons ---------- */
.btn-cta, .btn-hero, .view-all-link a, .rb-btn {
  display: inline-block; background: var(--rb-green); color: #fff; border: 2px solid var(--rb-green);
  padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background .2s, transform .2s;
}
.btn-cta:hover, .btn-hero:hover, .view-all-link a:hover, .rb-btn:hover { background: var(--rb-green-d); border-color: var(--rb-green-d); color: #fff; transform: translateY(-2px); box-shadow: none; }
.btn-secondary, .rb-btn.ghost { background: #fff; color: var(--rb-green-d); border: 2px solid var(--rb-line); }
.btn-secondary:hover, .rb-btn.ghost:hover { background: var(--rb-mint); color: var(--rb-green-d); border-color: var(--rb-green); }

/* ---------- Photo title bands (subpages) ---------- */
.page-header, .page-title, .about-hero {
  background: linear-gradient(180deg, rgba(12,22,16,.62), rgba(12,22,16,.50)), url("brand/hero-1.jpg") center / cover;
  color: #fff; border-bottom: 0;
}
.page-header h1, .page-title h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; }
.page-header p, .page-title p { color: rgba(255,255,255,.9); opacity: 1; }

/* ---------- White content panels (MLS widgets need white) ---------- */
.search-section, .listings-section, .map-section, .details-section, .results-section { background: #fff; }
.search-section:nth-of-type(even), .map-section { background: var(--rb-soft); }
.search-container, .listings-container, .map-container, .details-container, .results-container,
.talladega-container, .area-listings-container, .rentals-mls-container {
  background: #fff; border-radius: 18px; box-shadow: none; border: 1px solid var(--rb-line);
}
.search-title, .listings-title, .map-title, .talladega-header h2, .area-listings-header h2, .rentals-mls-header h3 { color: var(--rb-ink); font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; }

/* ---------- About page ---------- */
.about-hero-text h1 { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; letter-spacing: -.01em; }
.about-hero-text .subtitle { font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; font-weight: 600; color: #9BE7B9; letter-spacing: .06em; text-transform: uppercase; opacity: 1; }
.morgan-photo { border: 4px solid rgba(255,255,255,.9); }
.photo-accent { border-color: rgba(155,231,185,.45); }
.bio-section { background: #fff; color: var(--rb-ink); }
.bio-content p { color: #3D4A42; }
.bio-content p:first-of-type::first-letter { color: var(--rb-green); font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; }
.services-section { background: var(--rb-soft); }
.service-card { background: #fff; border: 1px solid var(--rb-line); }
.service-card:hover { border-color: var(--rb-green); box-shadow: 0 16px 36px rgba(15,26,20,.08); }
.service-card h2 { color: var(--rb-ink); font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; border-bottom-color: var(--rb-line); }
.service-list li { color: #3D4A42; border-bottom-color: var(--rb-line); }
.service-list .text strong { color: var(--rb-ink); }
.service-list .text span { color: var(--rb-muted); }
.service-list .icon { background: var(--rb-mint); color: var(--rb-green); }
.service-list .check { background: var(--rb-green); color: #fff; }
.contact-bar { background: #fff; border: 1px solid var(--rb-line); }
.contact-bar .contact-item, .contact-bar .contact-item a { color: var(--rb-ink); }

/* ---------- Contact page ---------- */
.contact-section { background: var(--rb-soft); }
.info-card { border-radius: 18px; border: 1px solid var(--rb-line); box-shadow: none; }
.info-card h2 { color: var(--rb-ink); border-bottom-color: var(--rb-green); font-weight: 800; }
.contact-icon { background: var(--rb-mint); }
.contact-methods .contact-item a:hover { color: var(--rb-green); }
.agent-headshot-contact { border-color: var(--rb-green); }
.broker-info-box { border-left-color: var(--rb-green); background: var(--rb-soft); }
.broker-logo { background: transparent; padding: 0; height: 64px; }
.legal-section { background: #fff; border-top: 1px solid var(--rb-line); }
.legal-title { color: var(--rb-ink); font-weight: 800; }
.legal-item { background: var(--rb-soft); border-color: var(--rb-line); }
.legal-item h3 { color: var(--rb-ink); }
.legal-item p { color: var(--rb-muted); }
.legal-icon { background: var(--rb-mint); }
.equal-housing-badge { background: #fff; border: 1px solid var(--rb-line); }
.eho-text { color: var(--rb-ink); }

/* ---------- CTA band ---------- */
.cta-section { background: var(--rb-green); border: 0; color: #fff; }
.cta-section h2 { color: #fff; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; }
.cta-section p { color: rgba(255,255,255,.88); }
.cta-section .btn-cta { background: #fff; color: var(--rb-green-d); border-color: #fff; }
.cta-section .btn-cta:hover { background: var(--rb-mint); color: var(--rb-green-d); }
.cta-section .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-section .btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }
.cta-section .contact-bar { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.cta-section .contact-bar .contact-item, .cta-section .contact-bar .contact-item a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--rb-soft); border-top: 1px solid var(--rb-line); color: var(--rb-muted); }
.footer-section h3 { color: var(--rb-ink); letter-spacing: .06em; }
.footer-section a { color: #3D4A42; }
.footer-section a:hover { color: var(--rb-green); }
.footer-legal, .mls-disclaimer { border-top-color: var(--rb-line) !important; }
.footer-eho span, .footer-broker, .footer-webmaster, .footer-copyright { color: var(--rb-muted) !important; }
.footer-eho-icon { border: 1px solid #ccc; }
.footer-webmaster a { color: #3D4A42 !important; }
.flogos { display: flex; gap: 16px; align-items: center; margin: 2px 0 12px; }
.flogos img { height: 48px; width: auto; }
