:root{
  --kw-red:#b5122b;
  --kw-red-dark:#8f0f22;

  --bg:#ffffff;
  --text:#111827;
  --muted:#4b5563;
  --border:#e5e7eb;

  --panel:#ffffff;
  --panel-alt:#fafafa;

  --shadow: 0 12px 30px rgba(17,24,39,.10);
  --radius: 18px;
  --radius2: 22px;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}

.container{
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Links */
a{ color: inherit; }
.link{
  color: var(--kw-red);
  font-weight: 900;
  text-decoration: none;
}
.link:hover{
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sep{ color:#9ca3af; padding:0 6px; }

.small{ font-size: 12px; }
.muted{ color: var(--muted); }

/* Header */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.logo{
  height: 34px;
  width: auto;
  display:block;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.brand-name{ font-weight: 950; letter-spacing:.2px; }
.brand-sub{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 14px;
  flex: 0 0 auto;
}
.nav-links a{
  text-decoration:none;
  color: var(--muted);
  font-weight: 850;
}
.nav-links a:hover{ color: var(--text); }

.nav-social{
  color: var(--kw-red) !important;
  font-weight: 950 !important;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 950;
  border: 1px solid transparent;
  text-decoration:none;
  cursor:pointer;
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-solid{
  background: var(--kw-red);
  color: white;
}
.btn-solid:hover{ background: var(--kw-red-dark); }

.btn-outline{
  background: rgba(255,255,255,.90);
  color: #ffffff;
  border-color: rgba(255,255,255,.40);
}
.btn-outline:hover{
  border-color: rgba(255,255,255,.70);
  background: rgba(255,255,255,.18);
}

.btn-small{ padding: 10px 14px; }
.btn-full{ width:100%; }

/* HERO IMAGE SECTION */
.hero-image{
  position: relative;
  min-height: 520px;
  display:flex;
  align-items:center;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
}

.hero-inner{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items:center;
  padding: 40px 0;
}

.hero-copy{ color: #fff; }

.hero-kicker{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(181,18,43,.92);
  font-weight: 950;
  letter-spacing:.3px;
  margin-bottom: 14px;
}

.hero-copy h1{
  margin: 0 0 12px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.8px;
}

.hero-lead{
  margin: 0 0 18px;
  font-size: 18px;
  max-width: 560px;
  color: rgba(255,255,255,.90);
  line-height: 1.6;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-contact{
  margin-top: 6px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  max-width: 520px;
}

.hero-contact-row{
  display:flex;
  gap: 10px;
  align-items:center;
}

.hero-label{
  width: 74px;
  font-weight: 900;
  color: rgba(255,255,255,.82);
}

.hero-link{
  color: #fff;
  font-weight: 950;
  text-decoration: none;
}
.hero-link:hover{
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-socials{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.hero-social{
  display:inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 950;
  text-decoration:none;
}
.hero-social:hover{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.55);
}

/* Hero Form Card */
.hero-form{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius2);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  padding: 18px;
}

.form-head{ margin-bottom: 12px; }
.form-title{ font-weight: 950; font-size: 18px; }
.form-sub{
  color: var(--muted);
  margin-top: 4px;
  font-weight: 700;
  font-size: 13px;
}

.form{ display:flex; flex-direction:column; gap: 12px; margin-top: 12px; }

label{
  display:flex;
  flex-direction:column;
  gap: 6px;
  font-weight: 900;
  color: var(--text);
  font-size: 13px;
}

input, textarea{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus{
  border-color: rgba(181,18,43,.55);
  box-shadow: 0 0 0 4px rgba(181,18,43,.10);
}

/* Profile Strip */
.profile-strip{
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.profile-strip-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.strip-avatar{
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(181,18,43,.20);
}

.strip-text{
  display:flex;
  flex-direction:column;
  gap: 4px;
  min-width: 260px;
}

.strip-name{ font-weight: 950; }
.strip-title{ color: var(--muted); font-weight: 800; }
.strip-details{ color: var(--muted); font-weight: 750; }

.strip-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

/* Sections */
.section{ padding: 34px 0; background:#fff; }
.section-alt{
  background: #fbfbfb;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head h2{
  margin: 0 0 6px;
  font-size: 28px;
}
.section-head p{ margin: 0; }

.subsection-head{ margin-top: 26px; }
.subsection-head h3{
  margin: 0 0 6px;
  font-size: 22px;
}
.subsection-head p{ margin: 0; }

.cards-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card h3{ margin: 0 0 8px; }
.card p{ margin: 0; color: var(--muted); line-height: 1.55; }

/* Areas pills */
.pills{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 12px; }

.pill-outline{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(181,18,43,.22);
  background: white;
  color: var(--kw-red);
  font-weight: 900;
}

/* Listings grid */
.listing-gallery{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.listing-tile{
  position: relative;
  display:block;
  overflow:hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration:none;
  background: #fff;
  transition: transform .10s ease, box-shadow .15s ease;
}
.listing-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(17,24,39,.14);
}

.listing-tile-img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  display:block;
}

.listing-tile-overlay{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(229,231,235,.8);
  backdrop-filter: blur(8px);
}

.listing-tile-title{
  font-weight: 950;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.listing-tile-badge{
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(181,18,43,.10);
  border: 1px solid rgba(181,18,43,.18);
  color: var(--kw-red);
  font-weight: 950;
  font-size: 12px;
  white-space: nowrap;
}

.listing-tile-center{
  grid-column: 1 / -1;
  max-width: 760px;
  justify-self: center;
}

/* Recent Closings gallery */
.gallery{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  display:block;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Listings + Facebook Sidebar */
.two-col{
  display:grid;
  grid-template-columns: 1.55fr .75fr;
  gap: 18px;
  align-items:start;
}

.main-col{ min-width: 0; }

.side-col{
  position: sticky;
  top: 92px;
}

.side-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.side-head{
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}

.side-title{
  font-weight: 950;
  font-size: 16px;
}

.side-sub{
  font-size: 12px;
  font-weight: 750;
  margin-top: 4px;
}

/* ✅ Cleaner, tighter embed frame */
.fb-embed{
  padding: 12px 14px 14px;
  background: #fff;
}

.fb-embed iframe{
  width: 100%;
  max-width: 100%;
  display:block;
  border-radius: 16px;
  border: 1px solid rgba(229,231,235,.95);
  overflow:hidden;
  background: #fff;
}

/* Footer of sidebar */
.side-footer{
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
}

/* Contact */
.contact-card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px;
  display:flex;
  justify-content:space-between;
  gap: 16px;
  align-items:center;
  margin-top: 14px;
}

.contact-left{
  display:flex;
  gap: 14px;
  align-items:flex-start;
}

.avatar-lg{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(181,18,43,.18);
}

.contact-title{
  font-weight: 950;
  margin-bottom: 4px;
}

.contact-line{
  color: var(--muted);
  font-weight: 750;
  margin-top: 6px;
}

.contact-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: #fff;
}

.footer-inner{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  text-align:center;
}

.small-logo{ height: 24px; }

/* PalmWeb credit strip */
.palmweb-strip{
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 10px 0;
}

.palmweb-inner{
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  flex-wrap:wrap;
  text-align:center;
}

.palmweb-strip .palmweb-logo{
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
  display: inline-block !important;
  opacity: 0.9;
  border-radius: 8px;
}

.palmweb-text{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  flex-wrap:wrap;
  font-size: 12px;
  line-height: 1.2;
  color: #6b7280;
  font-weight: 700;
}

.palmweb-link{
  color: #374151;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.palmweb-link:hover{ color: #111827; }

.palmweb-dot{
  color:#9ca3af;
  padding: 0 2px;
}

/* Contrast improvements for hero buttons */
.hero-actions .btn-outline.hero-outline{
  background: rgba(255,255,255,.92);
  color: #111827;
  border-color: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(0,0,0,.20);
}
.hero-actions .btn-outline.hero-outline:hover{
  background: rgba(255,255,255,1);
  border-color: rgba(255,255,255,1);
}
.hero-social{
  background: rgba(255,255,255,.92);
  color: #111827;
  border-color: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(0,0,0,.20);
}
.hero-social:hover{
  background: rgba(255,255,255,1);
  border-color: rgba(255,255,255,1);
}
.hero-form .muted{ color: #374151; }

/* Fix header Call button sizing + contrast */
.topbar .nav-links .btn-solid.btn-small{
  min-width: 88px;
  padding: 10px 18px;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
  flex: 0 0 auto;
  border-radius: 999px;
  line-height: 1;
}
.topbar .nav-links .btn.btn-solid{
  color: #ffffff !important;
  font-weight: 950 !important;
}
.topbar .nav-links .btn.btn-solid:hover{
  color: #ffffff !important;
}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-copy h1{ font-size: 42px; }
  .cards-3{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr; }
  .gallery-img{ height: auto; }

  .listing-gallery{ grid-template-columns: 1fr; }
  .listing-tile-center{
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
  .listing-tile-img{ height: auto; }

  .two-col{ grid-template-columns: 1fr; }
  .side-col{ position: static; }
  .nav-links{ display:none; }
}
