:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3f8;
  --text: #17202a;
  --muted: #5f6b7a;
  --primary: #0f4c81;
  --primary-dark: #0b365c;
  --accent: #c9a96a;
  --border: #dde5ee;
  --shadow: 0 10px 30px rgba(16, 35, 54, 0.08);
  --shadow-lg: 0 18px 50px rgba(16, 35, 54, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

.hero {
  position: relative;
  min-height: 82vh;
  background: linear-gradient(135deg, #1a3a52 0%, #2d5a7b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem 1rem;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero .logo {
  width: 124px;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  margin: 0 auto 2rem;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
}

.navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(221, 229, 238, 0.9);
}

.navigation ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 1rem;
  max-width: var(--maxw);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.navigation a {
  display: block;
  padding: 1rem 0.95rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.navigation a:hover {
  color: var(--primary);
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}

.section > p {
  max-width: 820px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--muted);
}

.section.alt {
  background: linear-gradient(180deg, #f1f5f9 0%, #eef3f8 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-flex {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}

.about-photo {
  width: 100%;
  max-width: 280px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.cards,
.communities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card,
.community-card,
.testimonial-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.community-card {
  padding: 1.5rem;
}

.card h3,
.community-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.card p,
.community-card p,
.community-card li {
  color: var(--muted);
}

.btn-primary,
.btn-secondary,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn-primary,
.contact-form button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.28);
}

.btn-primary:hover,
.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 76, 129, 0.32);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(15, 76, 129, 0.18);
}

.btn-secondary:hover {
  background: #f7fbff;
  transform: translateY(-1px);
}

.search-actions,
.community-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.community-cta {
  justify-content: flex-start;
}

.community-highlights,
.sales-list,
.community-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.community-highlights li,
.sales-list li,
.community-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}

.community-highlights li::before,
.sales-list li::before,
.community-list li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.market-snapshot {
  font-size: 0.95rem;
  margin: 1rem 0;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  border-radius: 12px;
}

.community-faq details {
  margin-top: 0.7rem;
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
}

.community-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
}

.testimonial-slider {
  max-width: 900px;
  margin: 2rem auto 0;
  position: relative;
}

.testimonial-slider .testimonial-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  padding: 1.75rem;
}

.testimonial-slider .testimonial-item.active {
  opacity: 1;
  position: relative;
}

.testimonial-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  align-items: center;
}

.testimonial-item img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #edf2f7;
}

.testimonial-avatar {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
  border: 3px solid #edf2f7;
  flex-shrink: 0;
}

.testimonial-item p {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.testimonial-item cite {
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
}

.contact-form {
  max-width: 760px;
  margin: 2rem auto 0;
  display: grid;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-form label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #ccd7e3;
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(15, 76, 129, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.08);
}

.footer {
  background: #101923;
  color: #d7e0ea;
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.footer a {
  color: #b7d5ff;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin: 0.5rem auto 0;
}

.compliance-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.compliance-icon {
  width: 42px;
  height: auto;
}

.realtor-logo,
.mls-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.1;
}

/* STATS SECTION */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* RESOURCES & LEAD MAGNETS */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.resource-card {
  background: var(--surface);
  border: 2px solid #f0e8d8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.resource-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(201, 169, 106, 0.14);
}

.resource-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.resource-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.resource-card .btn-primary {
  width: 100%;
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  gap: 0.85rem;
}

.newsletter-form input {
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(15, 76, 129, 0.25);
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.08);
}

.newsletter-form button {
  width: 100%;
}

.ntreis-disclaimer {
  max-width: 980px;
  margin: 1.25rem auto 0;
  font-size: 0.76rem;
  color: #a8b3bf;
  line-height: 1.55;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  margin: 0 0.45rem;
}

@media (max-width: 1080px) {
  .cards,
  .communities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid,
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-flex {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 72vh;
  }

  .navigation ul {
    justify-content: flex-start;
  }

  .navigation a {
    padding: 0.85rem 0.75rem;
    font-size: 0.92rem;
  }

  .cards,
  .communities-grid,
  .testimonial-item,
  .stats-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-item {
    text-align: center;
  }

  .testimonial-item img,
  .testimonial-avatar {
    margin: 0 auto;
  }

  .search-actions,
  .community-cta {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .contact-form button {
    width: 100%;
  }

  .section {
    padding: 4rem 1rem;
  }
}