/* ============================================
   NEDELCU REAL ESTATE — MIDNIGHT NAVY THEME
   Static HTML Site
   ============================================ */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  background: #0a1628;
  color: #c5d3e0;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #4a90c4; text-decoration: none; transition: color 0.2s; }
a:hover { color: #6bb0e0; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', ui-serif, Georgia, serif;
  color: #e0e8ef;
  font-weight: 400;
  line-height: 1.1;
}
h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h1 em, h2 em, h3 em { font-style: italic; }

.body-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #8fa3b8;
}
.label-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #4a90c4;
}
.accent-line {
  width: 50px;
  height: 2px;
  background: #4a90c4;
  margin-bottom: 20px;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== TOP BAR ========== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 48px;
  background: #0d1b2a;
  border-bottom: 1px solid #1b2d44;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b8aaa;
}
.topbar a { color: #6b8aaa; text-decoration: none; }
.topbar a:hover { color: #4a90c4; }
.topbar-left { display: flex; gap: 24px; align-items: center; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right a { display: flex; align-items: center; }
.topbar-right svg { width: 14px; height: 14px; fill: #6b8aaa; transition: fill 0.2s; }
.topbar-right a:hover svg { fill: #4a90c4; }

/* ========== NAVIGATION ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  background: #0f1f33;
  border-bottom: 1px solid #1b2d44;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-area { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-n { height: 44px; width: auto; }
.logo-balloon { width: 40px; height: auto; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #e0e8ef;
  line-height: 1.1;
}
.logo-sub {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b8aaa;
  font-weight: 400;
  margin-top: 2px;
}
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: #8fa3b8;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #4a90c4; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #8fa3b8; margin: 5px 0; transition: all 0.3s; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.92) 0%, rgba(15,31,51,0.85) 40%, rgba(15,31,51,0.6) 70%, rgba(15,31,51,0.3) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 80px;
  max-width: 650px;
}
.hero-title {
  font-size: 3.5rem;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.05;
}
.hero-desc {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  line-height: 1.75;
  color: #b0c4d8;
  margin-bottom: 36px;
  max-width: 480px;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 100px 48px 80px;
  background: #0f1f33;
  text-align: center;
}
.page-hero h1 { color: #ffffff; margin-bottom: 16px; }
.page-hero p {
  font-family: 'Source Serif 4', serif;
  font-size: 1.125rem;
  color: #8fa3b8;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: #4a90c4; color: #fff; }
.btn-primary:hover { background: #5da0d4; color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #4a90c4; color: #4a90c4; }
.btn-dark { background: #162a42; color: #c5d3e0; border: 1px solid #1b2d44; }
.btn-dark:hover { background: #1b2d44; color: #e0e8ef; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========== STATS BAR ========== */
.stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 36px 48px;
  background: #162a42;
  border-top: 1px solid #1b2d44;
  border-bottom: 1px solid #1b2d44;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: #4a90c4;
}
.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b8aaa;
  margin-top: 4px;
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 48px;
}
.section-dark { background: #0d1b2a; }
.section-medium { background: #0f1f33; }
.section-accent { background: #162a42; }

/* ========== CARDS ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.card {
  border-radius: 8px;
  overflow: hidden;
  background: #162a42;
  border: 1px solid #1b2d44;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.card-body { padding: 20px; }
.card-body h4 { color: #e0e8ef; margin-bottom: 6px; }
.card-body p { font-size: 13px; color: #6b8aaa; }

/* ========== ABOUT PREVIEW ========== */
.about-preview {
  display: flex;
  gap: 60px;
  align-items: center;
}
.about-preview-image {
  flex: 0 0 380px;
  height: 480px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}
.about-preview-text { flex: 1; }
.about-preview-text p {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  line-height: 1.8;
  color: #8fa3b8;
  margin-bottom: 16px;
}

/* ========== BLOG-STYLE CONTENT (Neighborhood Detail) ========== */
.article-content {
  max-width: 780px;
  margin: 0 auto;
}
.article-content p {
  font-family: 'Source Serif 4', serif;
  font-size: 1.125rem;
  line-height: 1.85;
  color: #b0c4d8;
  margin-bottom: 1.5rem;
}
.article-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-content img {
  width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
}
.article-content figcaption {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 0.875rem;
  color: #6b8aaa;
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}
.article-content blockquote {
  border-left: 3px solid #4a90c4;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.375rem;
  font-style: italic;
  color: #8fa3b8;
}
.article-content .drop-cap::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin-right: 0.5rem;
  margin-top: 0.15rem;
  color: #e0e8ef;
}

/* Neighborhood stats sidebar */
.neighborhood-stats {
  background: #162a42;
  border: 1px solid #1b2d44;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 2rem;
}
.neighborhood-stats h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a90c4;
  margin-bottom: 16px;
  font-weight: 600;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #1b2d44;
  font-size: 14px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row .stat-key { color: #6b8aaa; }
.stat-row .stat-val { color: #e0e8ef; font-weight: 500; }

/* ========== FORM STYLES ========== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b8aaa;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: #162a42;
  border: 1px solid #1b2d44;
  border-radius: 4px;
  color: #e0e8ef;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #4a90c4;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74,144,196,0.15);
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* ========== FOOTER ========== */
.footer {
  background: #091420;
  padding: 60px 48px 30px;
  border-top: 1px solid #1b2d44;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e0e8ef;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col p, .footer-col a {
  font-size: 13px;
  color: #5a7a96;
  line-height: 2;
  display: block;
  text-decoration: none;
}
.footer-col a:hover { color: #4a90c4; }
.footer-logo-area { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-n-logo { height: 48px; width: auto; }
.footer-brand-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #e0e8ef;
  line-height: 1.1;
}
.footer-brand-sub {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #5a7a96;
  margin-top: 2px;
}
.footer-tagline {
  font-size: 13px;
  color: #5a7a96;
  line-height: 1.7;
  margin-top: 8px;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5a7a96;
  line-height: 2;
}
.footer-contact-item a { color: #5a7a96; }
.footer-contact-item a:hover { color: #4a90c4; }
.footer-social-bar {
  border-top: 1px solid #1b2d44;
  padding: 24px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.footer-social-bar a {
  color: #3d5a75;
  transition: color 0.2s;
}
.footer-social-bar a:hover { color: #4a90c4; }
.footer-social-bar svg { display: block; }
.footer-legal {
  border-top: 1px solid #1b2d44;
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-remax-logo {
  height: 48px;
  width: auto;
  opacity: 0.85;
}
.footer-disclaimer {
  max-width: 900px;
  text-align: center;
  font-size: 11px;
  color: #3d5a75;
  line-height: 1.7;
}
.footer-disclaimer a { color: #5a7a96; text-decoration: underline; }
.footer-disclaimer a:hover { color: #4a90c4; }
.footer-copyright {
  font-size: 11px;
  color: #2a4560;
  margin-top: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-preview { flex-direction: column; }
  .about-preview-image { flex: none; width: 100%; height: 350px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-content { padding: 60px 24px; }
  .topbar { display: none; }
  .navbar { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f1f33;
    padding: 16px 24px;
    border-bottom: 1px solid #1b2d44;
  }
  .cards-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 24px; }
  .container { padding: 0 24px; }
  .footer { padding: 40px 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; gap: 24px; padding: 24px; }
  .stat-item { flex: 0 0 45%; }
  .page-hero { padding: 60px 24px 50px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  .hero-title { font-size: 2rem; }
  .btn { padding: 12px 24px; font-size: 10px; }
  .btn-group { flex-direction: column; }
}

/* ---- All Neighborhoods Grid (Homepage SEO) ---- */
.neighborhood-full-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.neighborhood-grid-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.neighborhood-grid-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: #c9a55a;
  transform: translateY(-2px);
}
.neighborhood-grid-img {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: #1a2a40;
}
.neighborhood-grid-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e0e8ef;
  margin-bottom: 2px;
  line-height: 1.3;
}
.neighborhood-grid-info p {
  font-size: 0.7rem;
  color: #8a9bb0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .neighborhood-full-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .neighborhood-full-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .neighborhood-full-grid { grid-template-columns: 1fr; }
}
