/* ============================================================
   Kavin Property v2 — navy + gold (friend-site structure)
   ============================================================ */
:root {
  --navy: #0f2038;
  --navy-2: #162a4a;
  --navy-3: #1e3a5f;
  --gold: #c9a227;
  --gold-2: #e0b83a;
  --gold-light: #f5e6b8;
  --ink: #1f2b36;
  --muted: #687581;
  --paper: #f4f5f5;
  --white: #fff;
  --line: #e1e4e5;
  --wa: #25d366;
  --shadow: 0 18px 50px rgba(16, 36, 58, 0.10);
  --radius: 20px;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy);
  padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 700; color: var(--gold);
}
.eyebrow.gold { color: var(--gold-2); }
.section { padding: 92px 0; }
.section-head { max-width: 650px; margin-bottom: 38px; }
.section-head h2 {
  font: 600 clamp(2rem, 4vw, 3rem) / 1.15 Poppins, sans-serif;
  color: var(--navy); margin: 12px 0;
}
.section-head p { margin: 0; color: var(--muted); }

/* ---- Nav ---- */
.nav {
  position: sticky; z-index: 40; top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 36, 58, 0.08);
}
.nav-inner {
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #a8841a);
  display: grid; place-items: center;
  color: var(--navy); font-weight: 800; font-family: Poppins, sans-serif;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font: 700 1.05rem Poppins, sans-serif; color: var(--navy); letter-spacing: 0.02em;
}
.brand-text small { font-size: 0.7rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.88rem; color: #43515d; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: 11px 18px; border-radius: 99px; font-weight: 600; font-size: 0.83rem;
}
.nav-cta:hover { background: var(--navy-3); color: #fff !important; }
.menu-toggle {
  display: none; background: none; border: 0; color: var(--navy);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}

/* ---- Hero ---- */
.hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 105%, rgba(255,255,255,.55) 0 14%, transparent 15%),
    radial-gradient(ellipse at 84% 112%, rgba(201,162,39,.18) 0 17%, transparent 18%),
    linear-gradient(145deg, #0f2038 0%, #162a4a 48%, #1e3a5f 100%);
  padding: 56px 0 72px;
  color: #fff;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 0.86fr; align-items: center; gap: 70px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 0.74rem; font-weight: 700;
}
.hero-kicker::before { content: ""; height: 1px; width: 30px; background: var(--gold); }
.hero h1 {
  font: 600 clamp(2.4rem, 5.2vw, 4.2rem) / 1.08 Poppins, sans-serif;
  letter-spacing: -0.04em; margin: 20px 0; color: #fff;
}
.hero-copy p { max-width: 560px; color: #cbd5e1; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 99px;
  padding: 14px 21px; font-weight: 700; font-size: 0.9rem;
  transition: 0.2s; cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.05); }
.hero-highlights {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-highlights strong { display: block; color: var(--gold); font-size: 0.95rem; }
.hero-highlights span { display: block; color: #94a3b8; font-size: 0.8rem; margin-top: 2px; }

.hero-agent-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-agent-card img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center;
}
.hero-agent-meta { padding: 18px 20px 22px; }
.hero-agent-meta strong { display: block; font-family: Poppins, sans-serif; font-size: 1.15rem; }
.hero-agent-meta span { display: block; color: #94a3b8; font-size: 0.85rem; margin-top: 4px; }

/* ---- About ---- */
.about-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
}
.about-aside { position: relative; }
.about-portrait {
  width: 100%; border-radius: var(--radius); aspect-ratio: 4/5;
  object-fit: cover; object-position: top; box-shadow: var(--shadow);
}
.about-quote {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  background: rgba(15, 32, 56, 0.92); color: #fff;
  border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(8px);
}
.about-quote .quote-mark {
  font: 700 2rem / 1 Poppins, sans-serif; color: var(--gold); line-height: 0.6; margin-bottom: 8px;
}
.about-quote p { margin: 0 0 8px; font-size: 0.92rem; }
.about-quote small { color: #94a3b8; }
.about-copy h2 {
  font: 600 clamp(2rem, 4vw, 2.8rem) / 1.15 Poppins, sans-serif;
  color: var(--navy); margin: 12px 0 18px;
}
.about-copy p { color: var(--muted); }
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px;
}
.about-stats div {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px; box-shadow: 0 4px 14px rgba(15,32,56,0.04);
}
.about-stats strong { display: block; color: var(--gold); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.about-stats span { display: block; margin-top: 6px; font-weight: 700; color: var(--navy); font-family: Poppins, sans-serif; }

/* ---- Listings / filters ---- */
.listings { background: var(--white); }
.filters {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-bottom: 18px;
}
.filters input, .filters select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: var(--paper); color: var(--ink);
}
.filters input:focus, .filters select:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; background: #fff;
}
.results-count { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.listing-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}
.listing-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,32,56,0.05);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.listing-image {
  position: relative; aspect-ratio: 16/11; overflow: hidden; background: #dbe3ec;
}
.listing-image img { width: 100%; height: 100%; object-fit: cover; }
.listing-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 99px;
}
.listing-tag.rent { background: #0f766e; }
.listing-tag.sold { background: #64748b; }
.listing-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.listing-price {
  font: 700 1.35rem / 1.2 Poppins, sans-serif; color: var(--navy);
}
.listing-title { font: 600 1.05rem / 1.3 Poppins, sans-serif; color: var(--navy); margin: 0; }
.listing-location { color: var(--muted); font-size: 0.9rem; }
.listing-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  font-size: 0.85rem; color: #43515d; margin-top: 4px;
}
.listing-meta span { display: inline-flex; align-items: center; gap: 5px; }
.listing-actions {
  display: flex; gap: 10px; margin-top: auto; padding-top: 14px;
}
.listing-actions .btn { flex: 1; padding: 11px 14px; font-size: 0.84rem; }
.btn-outline {
  background: transparent; border-color: var(--navy); color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 48px 20px;
  color: var(--muted); background: var(--paper); border-radius: var(--radius);
}

/* ---- Why ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 8px 24px rgba(15,32,56,0.04);
}
.why-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(201,162,39,0.15); color: var(--navy);
  display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 16px;
}
.why-card h3 { font: 600 1.15rem Poppins, sans-serif; color: var(--navy); margin: 0 0 10px; }
.why-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Testimonials ---- */
.testimonials { background: var(--navy); color: #fff; }
.testimonials .section-head h2 { color: #fff; }
.testimonials .section-head p { color: #94a3b8; }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testimonial {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 28px 24px;
}
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial blockquote {
  margin: 0 0 18px; font-size: 1.05rem; line-height: 1.55; color: #e2e8f0;
}
.testimonial cite { font-style: normal; color: #94a3b8; font-size: 0.88rem; }
.testimonial cite strong { color: #fff; display: block; }

/* ---- Contact ---- */
.contact { background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.contact-copy h2 {
  font: 600 clamp(2rem, 4vw, 2.8rem) / 1.15 Poppins, sans-serif;
  color: var(--navy); margin: 12px 0 16px;
}
.contact-copy > p { color: var(--muted); }
.contact-detail {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 22px;
}
.contact-detail i {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(201,162,39,0.15); color: var(--navy);
  display: grid; place-items: center; flex-shrink: 0; font-style: normal;
}
.contact-detail a { color: var(--navy); font-weight: 600; }
.contact-detail a:hover { color: var(--gold); }
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fff; color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px;
}
.form-note { font-size: 0.8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ---- Footer ---- */
footer {
  background: #0a1628; color: #94a3b8; padding: 36px 0;
  border-top: 2px solid var(--gold);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  align-items: center; justify-content: space-between;
}
.footer-brand {
  font: 700 1.1rem Poppins, sans-serif; color: #fff; letter-spacing: 0.04em;
}
.footer-brand span { color: var(--gold); }
.footer-meta { font-size: 0.82rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--gold); }

/* ---- Floating WhatsApp ---- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 45;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.06); }

/* ---- Modal ---- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 22, 40, 0.65); }
.modal-panel {
  position: relative; z-index: 1; width: min(720px, 100%);
  max-height: min(90vh, 900px); overflow: auto;
  background: #fff; border-radius: 24px; box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(15,32,56,0.85); color: #fff; font-size: 1.4rem;
  cursor: pointer; line-height: 1;
}
.modal-hero { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #dbe3ec; }
.modal-content { padding: 24px 28px 32px; }
.modal-content .listing-tag { position: static; display: inline-block; margin-bottom: 10px; }
.modal-content h2 {
  font: 600 1.6rem / 1.2 Poppins, sans-serif; color: var(--navy); margin: 0 0 8px;
}
.modal-price { font: 700 1.5rem Poppins, sans-serif; color: var(--navy); margin-bottom: 16px; }
.modal-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0;
}
.modal-specs div {
  background: var(--paper); border-radius: 12px; padding: 12px; text-align: center;
}
.modal-specs strong { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.modal-specs span { display: block; margin-top: 4px; font-weight: 700; color: var(--navy); }
.modal-desc { color: var(--muted); }
.modal-highlights { margin: 14px 0 0; padding-left: 1.1rem; color: var(--ink); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-agent-card { max-width: 420px; }
  .listing-grid, .why-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .hero-highlights, .about-stats, .form-row, .modal-specs { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 20px 22px; gap: 4px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; border-radius: 10px; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .about-quote { position: static; margin-top: 14px; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .hero-highlights, .about-stats, .form-row, .modal-specs { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

.modal-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; background: #dbe3ec; }
.modal-gallery .modal-hero { flex: 0 0 100%; scroll-snap-align: start; }
.gallery-hint { font-size: 12px; color: #6b7a8c; text-align: right; padding: 6px 16px 0; }

.rating-summary { display: flex; align-items: center; justify-content: center; gap: 12px; margin: -8px 0 24px; color: #cbd5e1; flex-wrap: wrap; }
.rating-summary .big { font-size: 2.2rem; font-weight: 700; color: #fff; }
.rating-summary .stars { color: #c9a227; font-size: 1.3rem; letter-spacing: 2px; }
.testimonial .stars { color: #c9a227; }
.rate-card { margin: 32px auto 0; max-width: 620px; background: rgba(255,255,255,0.06); border: 1px solid rgba(201,162,39,0.4); border-radius: 16px; padding: 24px; display: grid; gap: 12px; }
.rate-card h3 { color: #fff; margin: 0; }
.rate-sub { color: #94a3b8; margin: 0; font-size: 0.92rem; }
.star-picker { display: flex; gap: 6px; }
.star-picker button { background: none; border: 0; font-size: 2.2rem; line-height: 1; color: #475569; cursor: pointer; padding: 0 2px; }
.star-picker button.on { color: #c9a227; }
.rate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rate-card input, .rate-card select, .rate-card textarea { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #334155; background: #fff; color: #0f2038; font: inherit; box-sizing: border-box; }
.rate-error { color: #fca5a5; margin: 0; font-size: 0.9rem; }
.rate-card .btn-gold { background: #c9a227; color: #0f2038; border: 0; justify-self: start; }
@media (max-width: 640px) { .rate-fields { grid-template-columns: 1fr; } }
