/* ── Reset & Variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0c1b2a;
  --navy-light: #142236;
  --navy-card: #0f2236;
  --gold: #d4a843;
  --gold-light: #e8c06a;
  --gold-dark: #b8902e;
  --white: #ffffff;
  --text-muted: #a0b0c0;
  --text-light: #e0e8f0;
  --border: rgba(212,168,67,0.2);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.5px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--navy); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--gold); color: var(--navy); }

/* ── Navigation ────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(12, 27, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.nav-logo span { color: var(--white); font-weight: 400; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-light); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background: linear-gradient(135deg, #0c1b2a 0%, #0f2236 40%, #162d44 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 650px; }

.hero-badge {
  display: inline-block;
  background: rgba(212,168,67,0.15);
  border: 1px solid rgba(212,168,67,0.4);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}
.hero h1 em { font-style: normal; color: var(--gold); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.stat-item { text-align: left; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold); display: block; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; }

/* ── Section Common ────────────────────────────────────── */
section { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: rgba(212,168,67,0.1);
  color: var(--gold);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 14px; color: var(--white); }
.section-header p { color: var(--text-muted); max-width: 540px; margin: 0 auto; font-size: 1.05rem; }

/* ── Properties ────────────────────────────────────────── */
.properties { background: var(--navy-light); }

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.property-card {
  background: var(--navy-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.property-image {
  height: 210px;
  position: relative;
  overflow: hidden;
}
.property-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.property-badge.featured { background: #e74c3c; color: #fff; }

.property-info { padding: 20px; }
.property-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.property-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.property-location { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.property-location::before { content: '📍'; font-size: 0.85rem; }
.property-meta { display: flex; gap: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.meta-item { color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.meta-item span:first-child { color: var(--gold); font-weight: 600; }

/* ── About ─────────────────────────────────────────────── */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.about-visual {
  height: 480px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1a3a5c 0%, #0f2236 50%, #162d44 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual-inner { text-align: center; }
.about-visual-icon { font-size: 5rem; margin-bottom: 16px; }
.about-visual-text { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--gold); }
.about-visual-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

.about-visual::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,168,67,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.about-content .section-header { text-align: left; margin-bottom: 24px; }

.about-content p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }

.about-features { list-style: none; margin: 24px 0; }
.about-features li { padding: 8px 0; color: var(--text-light); display: flex; align-items: center; gap: 10px; }
.about-features li::before { content: '✦'; color: var(--gold); font-size: 0.7rem; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.about-stat-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.about-stat-card .number { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold); font-weight: 700; }
.about-stat-card .label { color: var(--text-muted); font-size: 0.8rem; }

/* ── Services ──────────────────────────────────────────── */
.services { background: var(--navy-light); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }

.service-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}
.service-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.service-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ── Testimonials ──────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }

.testimonial-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.testimonial-card::before { content: '"'; position: absolute; top: 16px; right: 24px; font-size: 4rem; color: rgba(212,168,67,0.15); font-family: 'Playfair Display', serif; line-height: 1; }

.testimonial-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  color: var(--navy);
  background: var(--gold);
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.95rem; }
.author-detail { color: var(--text-muted); font-size: 0.8rem; }

/* ── Contact ───────────────────────────────────────────── */
.contact { background: var(--navy-light); }
.contact .container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }

.contact-info h2 { font-size: 2rem; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-detail-icon { background: rgba(212,168,67,0.1); border: 1px solid var(--border); width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-detail h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2px; font-family: 'DM Sans', sans-serif; font-weight: 500; }
.contact-detail p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

.contact-form {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 24px; font-family: 'Playfair Display', serif; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--text-light); }
.form-group input,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus { outline: none; border-color: var(--gold); }
.form-group select option { background: var(--navy); color: var(--white); }
.form-group input::placeholder { color: rgba(255,255,255,0.3); }

#form-message { margin-top: 14px; padding: 10px 14px; border-radius: 6px; font-size: 0.9rem; display: none; }
#form-message.success { background: rgba(46,213,115,0.1); border: 1px solid rgba(46,213,115,0.3); color: #2ed573; display: block; }
#form-message.error { background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.3); color: #e74c3c; display: block; }

/* ── Footer ────────────────────────────────────────────── */
footer { background: #080f18; padding: 60px 0 24px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link { width: 38px; height: 38px; background: var(--navy-light); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: background 0.2s, border-color 0.2s; color: var(--text-muted); }
.social-link:hover { background: rgba(212,168,67,0.1); border-color: var(--gold); color: var(--gold); }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--white); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: var(--text-muted); font-size: 0.88rem; }
.footer-contact-item span:first-child { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom a { color: var(--gold); }

/* ── WhatsApp FAB ──────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 998;
  width: 54px; height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  font-size: 1.5rem;
  color: white;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); color: white; }

/* ── Chat Widget ───────────────────────────────────────── */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 58px; height: 58px;
  background: var(--gold);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(212,168,67,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 1.5rem;
  color: var(--navy);
}
.chat-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(212,168,67,0.7); }

.chat-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 999;
  width: 360px;
  max-height: 520px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.chat-window.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.chat-header {
  background: linear-gradient(135deg, var(--navy) 0%, #142236 100%);
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar { width: 40px; height: 40px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.chat-header-text .name { font-weight: 700; font-size: 0.95rem; }
.chat-header-text .status { font-size: 0.78rem; color: #2ed573; display: flex; align-items: center; gap: 4px; }
.chat-header-text .status::before { content: '●'; font-size: 0.6rem; }
.chat-close { margin-left: auto; background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: 4px; }
.chat-close:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: msgIn 0.2s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); align-self: flex-start; color: var(--text-light); border-radius: 4px 12px 12px 12px; }
.msg.user { background: var(--gold); color: var(--navy); align-self: flex-end; font-weight: 500; border-radius: 12px 4px 12px 12px; }

.typing-indicator { display: flex; align-items: center; gap: 4px; padding: 10px 14px; background: rgba(255,255,255,0.06); border-radius: 4px 12px 12px 12px; align-self: flex-start; border: 1px solid rgba(255,255,255,0.08); }
.typing-dot { width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%; animation: typingBounce 1s ease-in-out infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  background: var(--navy);
}
#chat-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
#chat-input:focus { border-color: var(--gold); }
#chat-input::placeholder { color: rgba(255,255,255,0.3); }
#chat-send {
  width: 38px; height: 38px;
  background: var(--gold);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 1rem;
  transition: background 0.2s;
  flex-shrink: 0;
}
#chat-send:hover { background: var(--gold-light); }
#chat-send:disabled { background: rgba(212,168,67,0.3); cursor: not-allowed; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(12,27,42,0.98);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .about .container { grid-template-columns: 1fr; }
  .about-visual { height: 280px; }
  .contact .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero-stats { gap: 24px; }
  .properties-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .chat-window { width: calc(100vw - 24px); right: 12px; bottom: 88px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
