/* ============================================
   The RVA Group Realty — Main Stylesheet
   Mobile-first responsive design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1e3a5f;
  --gold: #8dc63f;
  --bg: #fafaf8;
  --text: #2d2d2d;
  --light: #f0ede8;
  --green: #2d6a4f;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.12);
  --radius: 8px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2rem; margin-bottom: .5em; }
h2 { font-size: 1.6rem; margin-bottom: .5em; }
h3 { font-size: 1.25rem; margin-bottom: .4em; }

p { margin-bottom: 1em; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--light); }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: #162d4a; color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: #7ab234; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--light); color: var(--navy); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #245a42; color: var(--white); }
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}
.nav-logo {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-logo span { color: var(--gold); }
.nav-logo:hover { color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
.nav-portals { display: flex; gap: .5rem; }
.nav-portals .btn { padding: .45rem 1rem; font-size: .8rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5077 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: 2.2rem; max-width: 700px; margin: 0 auto .5em; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.5em; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.trust-bar {
  background: rgba(0,0,0,.15);
  padding: 1rem 0;
  margin-top: 2.5rem;
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .9rem;
  color: rgba(255,255,255,.9);
}
.trust-item { display: flex; align-items: center; gap: .4rem; }
.trust-item svg { width: 18px; height: 18px; fill: var(--gold); flex-shrink: 0; }

/* --- Cards --- */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid-2 { grid-template-columns: 1fr; }
.card-grid-3 { grid-template-columns: 1fr; }
.card-grid-4 { grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; fill: var(--navy); }

/* --- Vacancy Cards --- */
.vacancy-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.vacancy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.vacancy-img {
  height: 200px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: .85rem;
}
.vacancy-img img { width: 100%; height: 100%; object-fit: cover; }
.vacancy-info { padding: 1.25rem; }
.vacancy-info h3 { font-size: 1rem; margin-bottom: .4rem; }
.vacancy-meta { display: flex; gap: 1rem; font-size: .85rem; color: #777; margin-bottom: .75rem; flex-wrap: wrap; }
.vacancy-rent { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: .75rem; }

/* --- Reviews / Testimonials --- */
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.review-stars { color: var(--gold); margin-bottom: .5rem; font-size: 1.1rem; }
.review-text { font-style: italic; color: #555; margin-bottom: .75rem; font-size: .95rem; }
.review-author { font-weight: 600; color: var(--navy); font-size: .9rem; }
.review-date { font-size: .8rem; color: #999; }

/* --- Team --- */
.team-card { text-align: center; }
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.team-card h3 { font-size: 1.05rem; }
.team-card .title { color: var(--gold); font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  font-size: .9rem;
  color: var(--navy);
}
.form-group label .required { color: #c0392b; }
.form-control {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid #d0ccc4;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,47,78,.1); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { appearance: auto; }

.form-row { display: grid; gap: 1rem; }
.form-row-2 { grid-template-columns: 1fr; }
.form-row-3 { grid-template-columns: 1fr; }
.form-row-4 { grid-template-columns: 1fr 1fr; }

.form-success {
  display: none;
  background: #eaf5ef;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
}
.form-success.show { display: block; }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid #e0dcd6;
  padding: 1.25rem 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  gap: 1rem;
}
.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: #555;
  font-size: .95rem;
  line-height: 1.6;
}
.faq-item.open .faq-answer { max-height: 300px; padding-top: .75rem; }

/* --- Steps --- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.step-num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: Georgia, serif;
  flex-shrink: 0;
}
.step-num::before { content: counter(step); }

/* --- Blog Cards --- */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.blog-card:hover { transform: translateY(-3px); }
.blog-thumb {
  height: 160px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: .85rem;
}
.blog-body { padding: 1.25rem; }
.blog-tag {
  display: inline-block;
  background: var(--light);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.blog-body h3 { font-size: 1rem; margin-bottom: .4rem; }
.blog-body p { font-size: .9rem; color: #666; }

/* --- Listing Filters --- */
.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filters select, .filters input {
  padding: .6rem .8rem;
  border: 1px solid #d0ccc4;
  border-radius: var(--radius);
  font-size: .9rem;
  flex: 1;
  min-width: 150px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: .75rem 0;
  font-size: .85rem;
  color: #888;
}
.breadcrumbs a { color: var(--navy); }
.breadcrumbs span { margin: 0 .4rem; }

/* --- Map --- */
.map-placeholder {
  background: var(--light);
  height: 300px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: .75rem;
  font-family: Georgia, serif;
}
.footer-grid a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-contact p { font-size: .9rem; margin-bottom: .4rem; }
.footer-logo {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: .75rem;
}
.footer-logo span { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
  text-align: center;
  font-size: .8rem;
}
.eho-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.eho-icon {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
}

/* --- Neighborhood pages --- */
.neighborhood-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5077 100%);
  color: var(--white);
  padding: 3rem 0;
}
.neighborhood-hero h1 { color: var(--white); }
.neighborhood-hero p { color: rgba(255,255,255,.85); }

/* --- Blog Post Header --- */
.blog-post-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5077 100%);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}
.blog-post-hero .blog-tag {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.blog-post-hero h1 {
  color: var(--white);
  max-width: 760px;
}
.blog-post-hero .post-meta {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-bottom: 0;
}

.neighborhood-content { max-width: 800px; }
.neighborhood-content h2 { margin-top: 1.5rem; }

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 600px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row-2 { grid-template-columns: repeat(2, 1fr); }
  .form-row-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.4rem; }
}

@media (min-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .form-row-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 2.8rem; }
  h1 { font-size: 2.6rem; }
}

@media (max-width: 899px) {
  .nav-links, .nav-portals { display: none; }
  .hamburger { display: flex; }
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 5rem 2rem 2rem;
    flex-direction: column;
    gap: 1rem;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-size: 1.2rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--light);
    color: var(--navy);
    font-weight: 500;
  }
  .mobile-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--navy);
  }
}

@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* --- Loading state --- */
.skeleton {
  background: linear-gradient(90deg, var(--light) 25%, #e8e4dd 50%, var(--light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
