/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255,255,255,0.04);
  --bg-glass: rgba(255,255,255,0.06);
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #9a7b2f;
  --white: #ffffff;
  --white-soft: rgba(255,255,255,0.85);
  --white-muted: rgba(255,255,255,0.55);
  --border: rgba(255,255,255,0.08);
  --border-gold: rgba(201,168,76,0.3);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --font: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--white-soft);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px; font-weight: 600;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 16px;
}
.section-subtitle { color: var(--white-muted); font-size: 0.95rem; max-width: 560px; line-height: 1.7; }
.gold-text { color: var(--gold); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary); font-weight: 600; font-size: 0.9rem;
  border-radius: 50px; transition: var(--transition); letter-spacing: 0.5px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: transparent;
  border: 1px solid var(--border-gold); color: var(--gold);
  font-weight: 600; font-size: 0.9rem; border-radius: 50px; transition: var(--transition);
}
.btn-secondary:hover { background: rgba(201,168,76,0.1); transform: translateY(-2px); }

/* ===== LOADING SCREEN ===== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary); display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--gold);
  margin-bottom: 24px; letter-spacing: 2px;
}
.loader-bar { width: 120px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; margin: 0 auto; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--gold); animation: load 1.5s ease forwards; }
@keyframes load { to { width: 100%; } }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 16px 0; transition: var(--transition);
}
.navbar.scrolled { background: rgba(10,10,15,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--white); letter-spacing: 1px; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.85rem; color: var(--white-muted); transition: var(--transition); letter-spacing: 0.5px; font-weight: 500; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn-primary { padding: 10px 24px; font-size: 0.8rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(10,10,15,0.97); backdrop-filter: blur(20px);
  z-index: 999; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-nav.active { opacity: 1; visibility: visible; }
.mobile-nav a { font-size: 1.2rem; color: var(--white-soft); font-weight: 500; letter-spacing: 1px; }
.mobile-nav a:hover { color: var(--gold); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('images/hero-bg.png') center/cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.5) 0%, rgba(10,10,15,0.7) 50%, rgba(10,10,15,0.95) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 120px 20px 60px; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; background: var(--bg-glass); border: 1px solid var(--border-gold);
  border-radius: 50px; font-size: 0.75rem; color: var(--gold); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 24px; backdrop-filter: blur(8px);
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 16px;
}
.hero p { color: var(--white-muted); font-size: clamp(0.9rem, 2vw, 1.05rem); margin-bottom: 32px; line-height: 1.7; max-width: 540px; margin-inline: auto; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.stat-card {
  padding: 16px 24px; background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); backdrop-filter: blur(12px); text-align: center; min-width: 140px;
}
.stat-card .stat-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.stat-card .stat-text { font-size: 0.72rem; color: var(--white-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-indicator span { font-size: 0.65rem; color: var(--white-muted); letter-spacing: 2px; text-transform: uppercase; }
.scroll-line { width: 1px; height: 40px; background: var(--border); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 50%; background: var(--gold); animation: scrollDown 1.8s ease infinite; }
@keyframes scrollDown { 0% { top: -50%; } 100% { top: 100%; } }

/* ===== ABOUT ===== */
.about { background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid var(--border-gold); border-radius: var(--radius); pointer-events: none;
}
.about-text .highlight { color: var(--gold); font-weight: 600; }
.about-text p { margin-bottom: 16px; color: var(--white-muted); font-size: 0.92rem; }
.trust-badges { display: flex; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.badge {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--white-soft);
}
.badge-icon { font-size: 1.3rem; }

/* ===== PROPERTIES ===== */
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.property-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.property-card:hover { transform: translateY(-6px); border-color: var(--border-gold); box-shadow: var(--shadow-gold); }
.property-img { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.property-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.property-card:hover .property-img img { transform: scale(1.05); }
.property-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 14px; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary); font-size: 0.7rem; font-weight: 700;
  border-radius: 50px; text-transform: uppercase; letter-spacing: 1px;
}
.property-info { padding: 20px; }
.property-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.property-name { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.property-loc { font-size: 0.8rem; color: var(--white-muted); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.property-details { display: flex; gap: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.property-details span { font-size: 0.75rem; color: var(--white-muted); display: flex; align-items: center; gap: 4px; }

/* ===== WHY CHOOSE ===== */
.why-choose { background: var(--bg-secondary); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.why-card {
  padding: 32px 24px; background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition); text-align: center;
}
.why-card:hover { border-color: var(--border-gold); transform: translateY(-4px); }
.why-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.why-card h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.why-card p { font-size: 0.82rem; color: var(--white-muted); line-height: 1.6; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,15,0.6) 100%);
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg-secondary); }
.testimonials-track { display: flex; gap: 20px; margin-top: 40px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 16px; scrollbar-width: none; }
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  min-width: 320px; max-width: 360px; flex-shrink: 0;
  padding: 28px; background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(8px); scroll-snap-align: start;
}
.testimonial-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { font-size: 0.88rem; color: var(--white-muted); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--bg-primary); font-size: 0.85rem; }
.testimonial-name { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.testimonial-role { font-size: 0.72rem; color: var(--white-muted); }

/* ===== LOCATION ===== */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; align-items: start; }
.location-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.loc-card {
  padding: 20px; background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: var(--transition);
}
.loc-card:hover { border-color: var(--border-gold); }
.loc-icon { font-size: 1.5rem; margin-bottom: 10px; }
.loc-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.loc-card p { font-size: 0.78rem; color: var(--white-muted); }
.location-map {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 4/3; background: var(--bg-card);
}
.location-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.8) contrast(1.1); }

/* ===== CONTACT ===== */
.contact { background: var(--bg-secondary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { width: 44px; height: 44px; border-radius: var(--radius-xs); background: var(--bg-glass); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-item h4 { font-size: 0.85rem; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.contact-item p { font-size: 0.82rem; color: var(--white-muted); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 14px 18px; background: var(--bg-glass);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--white); font-family: var(--font); font-size: 0.88rem;
  transition: var(--transition); outline: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--white-muted); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form select { appearance: none; cursor: pointer; }
.contact-form select option { background: var(--bg-primary); color: var(--white); }
.contact-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: #25d366; color: #fff;
  font-weight: 600; font-size: 0.9rem; border-radius: 50px; transition: var(--transition);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer { padding: 40px 0 100px; border-top: 1px solid var(--border); text-align: center; }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 8px; }
.footer-logo span { color: var(--gold); }
.footer-text { font-size: 0.8rem; color: var(--white-muted); margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg-glass);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--white-muted); transition: var(--transition);
}
.footer-socials a:hover { color: var(--gold); border-color: var(--border-gold); }
.footer-copy { font-size: 0.7rem; color: var(--white-muted); }

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed; bottom: 90px; right: 20px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: var(--transition);
  font-size: 1.5rem; color: #fff;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== MOBILE BOTTOM BAR ===== */
.mobile-bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; width: 100%;
  z-index: 950; padding: 10px 16px;
  background: rgba(10,10,15,0.95); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.mobile-bottom-bar .bar-inner { display: flex; gap: 10px; }
.mobile-bottom-bar a {
  flex: 1; padding: 12px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 600; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.bar-call { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--bg-primary); }
.bar-wa { background: #25d366; color: #fff; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .properties-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .mobile-bottom-bar { display: block; }
  .footer { padding-bottom: 80px; }
  .whatsapp-float { bottom: 80px; right: 16px; width: 50px; height: 50px; font-size: 1.3rem; }

  .hero-content { padding: 100px 16px 50px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; align-items: center; }
  .stat-card { min-width: 200px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-img { aspect-ratio: 16/10; max-height: 300px; }

  .properties-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-item:nth-child(1) { grid-column: span 2; }

  .testimonial-card { min-width: 280px; }

  .location-grid { grid-template-columns: 1fr; }
  .location-map { aspect-ratio: 16/10; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.85rem; }
  .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 0.82rem; }
  .why-grid { grid-template-columns: 1fr; }
  .trust-badges { flex-direction: column; }
  .hero-stats { gap: 10px; }
  .stat-card { min-width: 100%; padding: 14px 20px; }
  .stat-card .stat-num { font-size: 1.3rem; }
  .location-highlights { grid-template-columns: 1fr; }
}

/* ===== REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
