:root {
  --bg: #f4f7fb;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #1f4f7a;
  --brand-2: #2f8fb0;
  --card: #ffffff;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container { width: min(1100px, 92vw); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--border);
}

.weather-widget {
  position: fixed;
  top: 74px;
  right: 12px;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .28rem .55rem;
  font-size: .72rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  text-decoration: none;
}
.weather-widget:visited,
.weather-widget:hover,
.weather-widget:active {
  color: #fff;
  text-decoration: none;
}

.weather-icon {
  font-size: .95rem;
  line-height: 1;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
}

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-link { text-decoration: none; color: inherit; }
.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
}
.brand-kicker {
  margin: 0;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.brand h1 {
  margin: .1rem 0 0;
  font-size: .95rem;
  font-weight: 700;
  font-family: Manrope, Inter, sans-serif;
}

nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .9rem; }
nav a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  font-size: .9rem;
}

.hero {
  background:
    linear-gradient(135deg, rgba(15,42,67,.78), rgba(31,79,122,.68) 50%, rgba(47,143,176,.62)),
    radial-gradient(circle at top right, rgba(219,234,254,.35), transparent 45%),
    url('assets/images/main-banner.jpg') center/cover no-repeat;
  color: #fff;
  padding: 4rem 0 3rem;
}
.eyebrow {
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .08em;
  opacity: .85;
}
.hero h2 {
  margin: .4rem 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 760px;
  font-family: Manrope, Inter, sans-serif;
}
.hero p { max-width: 700px; font-size: 1.05rem; opacity: .95; }

.cta-row { display: flex; gap: .8rem; margin-top: 1.3rem; flex-wrap: wrap; }
.btn {
  background: #fff;
  color: #0f2a43;
  border-radius: 10px;
  padding: .7rem 1rem;
  text-decoration: none;
  font-weight: 600;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
}
.btn-outline-dark {
  background: #fff;
  color: #1f4f7a;
  border: 1px solid #b9d0e2;
}

#for-realtors-btn {
  font-family: inherit;
  font-weight: 700;
  padding: .7rem 1.15rem;
  animation: realtorPulse 2.8s ease-in-out infinite;
}

@keyframes realtorPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
  margin: 1.5rem auto 2.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 6px 18px rgba(15,23,42,.04);
}
.card h3 {
  margin-top: .2rem;
  margin-bottom: .6rem;
  font-family: Manrope, Inter, sans-serif;
}
.section-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: .8rem;
}
.card p, .card li { color: #374151; line-height: 1.55; }

#board li {
  font-size: 0.92rem;
  line-height: 1.45;
}

#board ul {
  padding-left: 1rem;
}

.hint { color: var(--muted); font-size: .9rem; }

.contact-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.contact-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.contact-list p {
  margin: 0;
  padding: .7rem .85rem;
  display: grid;
  gap: .2rem;
}
.contact-list p + p { border-top: 1px solid var(--border); }
.contact-list span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  font-weight: 700;
}
.contact-list a { color: #1d4f7a; text-decoration: none; font-weight: 600; }
.contact-actions { margin-top: .9rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: .9rem;
}

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.modal-card {
  position: relative;
  width: min(520px, 92vw);
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1rem;
  box-shadow: 0 16px 36px rgba(0,0,0,.2);
}
.realtor-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .7rem .8rem;
  font-size: 1rem;
  margin-top: .4rem;
}

.masked-sensitive,
.masked-phone {
  cursor: pointer;
  border-bottom: 1px dashed #94a3b8;
}

.post-banner {
  margin: .8rem 0 1.2rem;
  padding: 1.1rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f4f7a, #2f8fb0);
  color: #fff;
}
.post-banner h3 { margin: 0; color: #fff; }
.post-banner p { margin: .35rem 0 0; color: rgba(255,255,255,.92); }

.hoa-chatbot {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
}
.hoa-chatbot-toggle {
  border: 0;
  border-radius: 999px;
  background: #1f4f7a;
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.hoa-chatbot-panel {
  width: min(300px, 86vw);
  height: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: .6rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15,23,42,.18);
}
.hoa-chatbot-panel header {
  background: #1f4f7a;
  color: #fff;
  padding: .7rem .8rem;
  font-weight: 700;
}
.hoa-chatbot-messages {
  padding: .8rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.hoa-chatbot-messages .bot,
.hoa-chatbot-messages .user {
  max-width: 85%;
  padding: .5rem .65rem;
  border-radius: 10px;
  font-size: .92rem;
}
.hoa-chatbot-messages .bot {
  align-self: flex-start;
  background: #eef4fb;
  color: #1f2937;
}
.hoa-chatbot-messages .user {
  align-self: flex-end;
  background: #1f4f7a;
  color: #fff;
}
.hoa-chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  padding: .7rem;
  border-top: 1px solid var(--border);
}
.hoa-chatbot-form input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .55rem .65rem;
}
.hoa-chatbot-form button {
  border: 0;
  border-radius: 10px;
  background: #2f8fb0;
  color: #fff;
  font-weight: 700;
  padding: .55rem .8rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  nav { gap: .6rem; }
  .brand h1 { font-size: .85rem; }
}

@media (max-width: 768px) {
  .container { width: min(100%, 94vw); }

  .site-header {
    position: static;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    padding: .65rem 0;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: .75rem;
    padding-bottom: .25rem;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    padding: 2.4rem 0 2rem;
  }

  .hero h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .hero p {
    font-size: .98rem;
  }

  .card {
    padding: .95rem .9rem 1rem;
    border-radius: 12px;
  }

  .section-photo {
    height: 170px;
  }

  #board li {
    font-size: 0.9rem;
  }

  .cta-row {
    gap: .55rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hoa-chatbot {
    right: 10px;
    bottom: 10px;
  }

  .hoa-chatbot-panel {
    width: min(280px, 92vw);
    height: 320px;
  }
}

@media (max-width: 480px) {
  .brand-kicker {
    font-size: .64rem;
  }

  .brand h1 {
    font-size: .8rem;
  }

  nav a {
    font-size: .84rem;
  }

  .section-photo {
    height: 155px;
  }

  .hoa-chatbot-panel {
    width: 92vw;
    height: 300px;
  }

  .weather-widget {
    top: 112px;
    right: 8px;
    font-size: .68rem;
    padding: .28rem .5rem;
  }
}
