/* ==========================================================
   BBV Realty — main stylesheet
   Palette: charcoal / copper / warm off-white
   (variable names kept as --navy/--gold for compatibility)
   ========================================================== */
:root {
  --navy: #2b2b33;
  --navy-2: #35353f;
  --gold: #b8663d;
  --gold-light: #d99a6c;
  --ink: #26262c;
  --muted: #6b6b75;
  --bg: #ffffff;
  --bg-soft: #f6f5f3;
  --line: #e4e1dc;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(43, 43, 51, 0.08);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
h1, h2, h3, h4 { font-family: "Merriweather", Georgia, serif; color: var(--navy); line-height: 1.25; }
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand .mark {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 900; font-size: 1.5rem; color: #fff; letter-spacing: .5px;
}
.brand .mark span { color: var(--gold); }
.brand .tag { font-size: .72rem; color: #a2a2ac; letter-spacing: .18em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  color: #d6d6dd; text-decoration: none; font-size: .95rem; font-weight: 600;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; border-color: var(--gold); }
.nav-links .btn-nav {
  background: var(--gold); color: #fff; border-radius: 6px; padding: 10px 18px; border: none;
}
.nav-links .btn-nav:hover { background: var(--gold-light); border: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* dropdown */
.has-dropdown { position: relative; }
.has-dropdown::after {
  content: ""; position: absolute; top: 100%; left: -12px; right: -12px; height: 16px;
}
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 260px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); list-style: none;
  padding: 10px 0; border: 1px solid var(--line);
  visibility: hidden; opacity: 0;
  transition: opacity .15s ease, visibility 0s linear .3s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown,
.dropdown:hover {
  visibility: visible; opacity: 1; transition-delay: 0s;
}
.dropdown a { display: block; padding: 10px 18px; color: var(--ink); border: none; font-weight: 500; }
.dropdown a:hover { background: var(--bg-soft); color: var(--navy); border: none; }
.nav-links .dropdown a.active { color: var(--navy); background: var(--bg-soft); border: none; font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #232329 0%, var(--navy) 60%, #3f3f4b 100%);
  color: #fff; padding: 96px 0 88px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px;
  border: 60px solid rgba(184,102,61,.14); border-radius: 50%;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); max-width: 760px; margin-bottom: 20px; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p.lead { font-size: 1.2rem; color: #cfcfd6; max-width: 640px; margin-bottom: 34px; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.eyebrow {
  display: inline-block; letter-spacing: .2em; text-transform: uppercase; font-size: .78rem;
  color: var(--gold-light); font-weight: 700; margin-bottom: 16px;
}

/* page hero (interior pages) */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.page-hero p { color: #cfcfd6; max-width: 700px; margin-top: 12px; font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-navy { background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(43,43,51,.13); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card .card-link { margin-top: 16px; font-weight: 700; text-decoration: none; color: var(--navy-2); }
.card .card-link::after { content: " →"; color: var(--gold); }
.card.featured { border-top: 4px solid var(--gold); }

/* ---------- Lists / checks ---------- */
.check-list { list-style: none; }
.check-list li { padding: 8px 0 8px 34px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px;
  background: var(--gold); color: #fff; font-weight: 800; font-size: .8rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step .num {
  counter-increment: step; flex: 0 0 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; font-family: "Merriweather", serif;
}
.step .num::before { content: counter(step); }
.step h4 { margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- Stats band ---------- */
.stat-band { background: var(--navy); color: #fff; padding: 52px 0; }
.stat-band .grid { text-align: center; }
.stat-band .stat b { display: block; font-size: 2.2rem; color: var(--gold-light); font-family: "Merriweather", serif; }
.stat-band .stat span { color: #a8a8b2; font-size: .95rem; }

/* ---------- Two-column feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 16px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.panel {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow);
}
.panel h3 { color: var(--gold-light); margin-bottom: 14px; }
.panel ul { list-style: none; }
.panel li { padding: 9px 0 9px 28px; position: relative; color: #dcdce2; border-bottom: 1px solid rgba(255,255,255,.08); }
.panel li:last-child { border-bottom: none; }
.panel li::before { content: "▸"; position: absolute; left: 4px; color: var(--gold); }

/* ---------- Pricing tables ---------- */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th { background: var(--navy); color: #fff; text-align: left; padding: 14px 18px; font-size: .95rem; }
.price-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .97rem; }
.price-table tr:nth-child(even) td { background: var(--bg-soft); }
.price-table td:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-2), var(--navy));
  color: #fff; text-align: center; padding: 72px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { color: #cfcfd6; max-width: 620px; margin: 0 auto 30px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: .9rem; color: var(--navy); display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfccc5; border-radius: 8px;
  font: inherit; font-size: .97rem; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,102,61,.15);
}
textarea { min-height: 130px; resize: vertical; }

/* ---------- Contact info ---------- */
.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.info-tile { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-tile b { color: var(--navy); display: block; margin-bottom: 4px; }
.info-tile a { text-decoration: none; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #1e1e24; color: #9c9ca6; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #9c9ca6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand .mark { font-family: "Merriweather", serif; font-weight: 900; font-size: 1.3rem; color: #fff; }
.footer-brand .mark span { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* ---------- Badges ---------- */
.badge-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.badge {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #e8edf5;
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: flex-start;
    padding: 18px 24px 24px; gap: 14px; box-shadow: 0 12px 20px rgba(0,0,0,.25);
  }
  .nav-links.open { display: flex; }
  .dropdown { position: static; visibility: visible; opacity: 1; transition: none; background: transparent; border: none; box-shadow: none; padding: 4px 0 0 14px; }
  .has-dropdown::after { display: none; }
  .dropdown a { color: #b9c3d6; padding: 6px 0; }
  .hero { padding: 64px 0; }
}
