/* ============================================================
   @Bethesda Real Estate — Shared Stylesheet
   ============================================================ */

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

:root {
  --red: #b72545;
  --red-dark: #8f1a34;
  --black: #111;
  --white: #fff;
  --gray-light: #f5f5f5;
  --gray-mid: #e0e0e0;
  --gray-text: #555;
  --nav-h: 70px;
  --radius: 4px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; color: var(--black); overflow-x: hidden; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { font-family: 'Montserrat', sans-serif; }
.section-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px; display: block;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: .04em; line-height: 1.1; margin-bottom: 12px;
}
.section-title span { color: var(--red); }
.section-sub { font-size: .9rem; color: var(--gray-text); line-height: 1.65; }
.section-header { margin-bottom: 50px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--red); color: var(--white);
  padding: 13px 28px; border-radius: var(--radius);
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; text-decoration: none; transition: background .2s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--red-dark); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--black);
  padding: 12px 28px; border-radius: var(--radius);
  border: 2px solid #ccc; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; transition: border-color .2s, color .2s;
  cursor: pointer; font-family: inherit;
}
.btn-outline:hover { border-color: var(--black); }
.btn-outline.light { color: var(--white); border-color: #555; }
.btn-outline.light:hover { border-color: var(--white); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  transition: background .3s;
}
nav.scrolled { background: rgba(0,0,0,0.97); }
nav.light-nav { background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-mid); }
nav.light-nav .nav-links a { color: #444; }
nav.light-nav .nav-links a:hover { color: var(--black); }
.nav-logo img { height: 36px; }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a {
  color: #ddd; text-decoration: none; font-size: .75rem;
  font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--red);
}
.nav-cta {
  background: var(--red) !important; color: var(--white) !important;
  padding: 9px 18px; border-radius: var(--radius);
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }
.nav-cta::after { display: none !important; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
  min-width: 200px; padding: 8px 0; list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block; padding: 10px 20px;
  color: var(--black) !important; font-size: .78rem;
  text-transform: none; letter-spacing: .02em; font-weight: 600;
  transition: background .15s, color .15s;
}
.nav-dropdown-menu li a:hover { background: var(--gray-light); color: var(--red) !important; }

/* ── INNER PAGE HERO ── */
.page-hero {
  position: relative; padding-top: var(--nav-h);
  min-height: 340px; display: flex; align-items: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  z-index: 0;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.72) 0%, rgba(183,37,69,.25) 100%);
  z-index: 1;
}
.page-hero-content {
  position: relative; z-index: 2; padding: 60px 40px;
  max-width: var(--max-w); width: 100%; margin: 0 auto;
}
.page-hero-content .section-label { color: rgba(255,255,255,.7); }
.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--white); line-height: 1.05; margin-bottom: 14px;
}
.page-hero-content h1 span { color: var(--red); }
.page-hero-content p {
  font-size: .95rem; color: rgba(255,255,255,.8);
  max-width: 540px; line-height: 1.65;
}
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5); margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ── SECTIONS ── */
section { padding: 80px 40px; }
.inner { max-width: var(--max-w); margin: 0 auto; }

/* ── STAT CHIPS ── */
.stat-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.stat-chip {
  background: rgba(183,37,69,.08); border: 1px solid rgba(183,37,69,.2);
  border-radius: var(--radius); padding: 14px 20px; text-align: center; min-width: 110px;
}
.stat-chip .val { font-size: 1.3rem; font-weight: 800; color: var(--red); display: block; }
.stat-chip .lbl { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-text); }

/* ── FOOTER ── */
footer { background: #0a0a0a; color: #888; padding: 60px 40px 30px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px; margin-bottom: 50px;
}
.footer-brand img { height: 32px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .7; }
.footer-brand p { font-size: .8rem; line-height: 1.7; max-width: 240px; color: #666; }
.footer-col h4 {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .15em; color: #ccc; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: #666; text-decoration: none; font-size: .8rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-social {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: center;
  color: #555; text-decoration: none; transition: border-color .2s, color .2s;
}
.footer-social:hover { border-color: var(--red); color: var(--red); }
.footer-bottom {
  border-top: 1px solid #1a1a1a; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .73rem; color: #555; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #555; text-decoration: none; font-size: .73rem; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ── MOBILE BAR ── */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  background: var(--white); border-top: 1px solid var(--gray-mid);
  padding: 10px 16px;
  grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.mobile-bar a {
  background: var(--gray-light); color: var(--black);
  text-align: center; padding: 10px 4px; border-radius: var(--radius);
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; text-decoration: none; transition: background .2s;
}
.mobile-bar a.primary { background: var(--red); color: var(--white); }

/* ── FORMS ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
label {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; color: #333;
}
label span { color: var(--red); }
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=url], select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--gray-mid); border-radius: var(--radius);
  font-family: inherit; font-size: .87rem; color: var(--black);
  outline: none; transition: border-color .2s; background: var(--white);
}
input:focus, select:focus, textarea:focus { border-color: var(--red); }
textarea { resize: vertical; min-height: 110px; }

/* ── IDX EMBED PLACEHOLDER ── */
.idx-placeholder {
  background: var(--gray-light); border: 2px dashed var(--gray-mid);
  border-radius: var(--radius); padding: 60px 40px; text-align: center;
}
.idx-placeholder .icon { font-size: 2.5rem; margin-bottom: 14px; }
.idx-placeholder h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.idx-placeholder p { font-size: .85rem; color: var(--gray-text); margin-bottom: 20px; }
.idx-placeholder code {
  display: block; background: #e8e8e8; padding: 12px 16px;
  border-radius: var(--radius); font-size: .8rem; text-align: left;
  max-width: 500px; margin: 0 auto; color: #333;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 55px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .page-hero-content { padding: 50px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .mobile-bar { display: grid; }
  footer { padding-bottom: 80px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}
