/* Buildpropex — Premium Real Estate Design System
   Inspired by cstanproperty.com + prophowe.com
   Dark navy + champagne gold + cinematic editorial */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── TOKENS ────────────────────────────────────────── */
:root {
  --navy:       #0B1D33;
  --navy-deep:  #061222;
  --navy-mid:   #112A45;
  --navy-soft:  #1A3550;
  --gold:       #C8A951;
  --gold-light: #E8D49B;
  --gold-dark:  #A68B3A;
  --gold-glow:  rgba(200,169,81,.30);
  --warm-white: #FDFBF8;
  --cream:      #F6F3ED;
  --cream-2:    #EDE8DF;
  --paper:      #FFFFFF;
  --ink:        #121A28;
  --ink-light:  #1E293B;
  --muted:      #64748B;
  --muted-light:#94A3B8;
  --border:     #E2E8F0;
  --border-warm:#DDD8CF;
  --whatsapp:   #15803D;
  --whatsapp-hover: #166534;
}

/* ─── BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--warm-white); line-height: 1.6; }
noscript { display: none !important; }
.site-header { margin: 0; padding: 0; border: none; outline: none; }
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
img { max-width: 100%; height: auto; }
a { transition: all .3s cubic-bezier(.25,.46,.45,.94); }
::selection { background: var(--gold-light); color: var(--navy); }

/* ─── BUTTONS ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  padding: 14px 28px; font-weight: 600; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
  border: none; border-radius: 6px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(11,29,51,.25);
  transition: all .35s cubic-bezier(.25,.46,.45,.94);
}
.btn-primary:hover {
  background: var(--navy-mid);
  box-shadow: 0 8px 28px rgba(11,29,51,.35);
  transform: translateY(-2px);
}

.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, #D4B96A 50%, var(--gold) 100%);
  color: var(--navy-deep); padding: 14px 28px;
  font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  border: none; border-radius: 6px; cursor: pointer;
  box-shadow: 0 4px 20px var(--gold-glow), 0 2px 8px rgba(0,0,0,.12);
  transition: all .35s cubic-bezier(.25,.46,.45,.94);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: #fff;
  box-shadow: 0 8px 32px var(--gold-glow), 0 4px 12px rgba(0,0,0,.18);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  padding: 13px 27px; font-weight: 600; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,.40); border-radius: 6px; cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all .35s cubic-bezier(.25,.46,.45,.94);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.65);
  box-shadow: 0 4px 20px rgba(255,255,255,.08);
}

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy);
  padding: 13px 27px; font-weight: 600; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid var(--navy); border-radius: 6px; cursor: pointer;
  transition: all .35s cubic-bezier(.25,.46,.45,.94);
}
.btn-outline-dark:hover {
  background: var(--navy); color: #fff;
  box-shadow: 0 4px 16px rgba(11,29,51,.2);
}

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--whatsapp); color: #fff;
  padding: 13px 27px; font-weight: 600; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
  border: none; border-radius: 6px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(21,128,61,.25);
  transition: all .35s cubic-bezier(.25,.46,.45,.94);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 8px 28px rgba(21,128,61,.35);
  transform: translateY(-2px);
  color: #fff;
}

/* ─── CARDS ─────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all .4s cubic-bezier(.25,.46,.45,.94);
  box-shadow: 0 1px 3px rgba(11,29,51,.04), 0 4px 12px rgba(11,29,51,.03);
}
.card:hover {
  border-color: var(--border-warm);
  box-shadow: 0 8px 32px rgba(11,29,51,.08), 0 4px 16px rgba(200,169,81,.06);
  transform: translateY(-4px);
}

/* Image zoom */
.zoom { overflow: hidden; }
.zoom img {
  transition: transform .8s cubic-bezier(.25,.46,.45,.94), filter .4s;
}
.zoom:hover img { transform: scale(1.05); }

/* ─── DECORATIVE ────────────────────────────────────── */
.rule-gold {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  box-shadow: 0 2px 8px var(--gold-glow);
}
.hair {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ─── HEADER ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,29,51,.97);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid rgba(200,169,81,.12);
  transition: box-shadow .3s;
}
.site-header.scrolled {
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

/* ─── HERO ──────────────────────────────────────────── */
.hero-section {
  position: relative; overflow: hidden;
  background: var(--navy-deep);
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 75% 20%, rgba(200,169,81,.08), transparent 60%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(11,29,51,.5), transparent 70%);
  z-index: 1;
}

/* ─── PRICING GLOW ──────────────────────────────────── */
.price-glow {
  background: linear-gradient(135deg, var(--gold) 0%, #E8D49B 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 3px rgba(200,169,81,.25));
}

/* ─── SECTION RHYTHM ────────────────────────────────── */
.section-warm { background: var(--cream); }
.section-dark { background: var(--navy); color: #fff; }
.section-paper { background: var(--paper); }

/* ─── GLOW EFFECTS ──────────────────────────────────── */
.glow-gold { box-shadow: 0 0 40px rgba(200,169,81,.12); }
.glow-navy { box-shadow: 0 0 40px rgba(11,29,51,.15); }

/* ─── ANIMATIONS ────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fadeUp { animation: fadeUp .7s cubic-bezier(.25,.46,.45,.94) both; }
.animate-fadeIn { animation: fadeIn .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ─── LINE CLAMP ────────────────────────────────────── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── FLOATING BADGE ────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.badge-gold { background: rgba(200,169,81,.9); color: var(--navy-deep); }
.badge-navy { background: rgba(11,29,51,.85); color: #fff; }
.badge-white { background: rgba(255,255,255,.92); color: var(--navy); }

/* ─── SLIDER ──────────────────────────────────────────── */
.bp-slider-wrap { position: relative; }
.bp-slider {
  display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px;
}
.bp-slider::-webkit-scrollbar { display: none; }
.bp-slider > * { flex: 0 0 calc(25% - 15px); min-width: 0; }
@media (max-width: 1024px) { .bp-slider > * { flex: 0 0 calc(33.333% - 14px); } }
@media (max-width: 768px) { .bp-slider > * { flex: 0 0 100%; } }
.bp-slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--border);
  display: grid; place-items: center; cursor: pointer; z-index: 10;
  box-shadow: 0 4px 16px rgba(11,29,51,.1);
  transition: all .3s;
}
.bp-slider-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 8px 24px rgba(11,29,51,.2); }
.bp-slider-btn.prev { left: -22px; }
.bp-slider-btn.next { right: -22px; }
@media (max-width: 768px) {
  .bp-slider-btn { display: none; }
}
.bp-slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.bp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer; padding: 0;
  transition: all .3s;
}
.bp-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ─── PROJECT HERO SLIDER ───────────────────────────── */
.pj-slider { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 0 24px 24px 0; }
.pj-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; z-index: 0; }
.pj-slide.active { opacity: 1; z-index: 1; }
.pj-slide img { width: 100%; height: 100%; object-fit: cover; }
.pj-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.8); border: none;
  display: grid; place-items: center; cursor: pointer; z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: all .3s; color: var(--navy);
}
.pj-arrow:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.pj-arrow.prev { left: 12px; }
.pj-arrow.next { right: 12px; }
.pj-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 10;
}
.pj-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; cursor: pointer; padding: 0;
  transition: all .3s;
}
.pj-dot.active { background: var(--gold); width: 20px; border-radius: 3px; }
.pj-counter {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.5); color: #fff;
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; z-index: 10;
  backdrop-filter: blur(4px);
}
@media (max-width: 768px) {
  .pj-slider { border-radius: 0; }
  .pj-arrow { width: 28px; height: 28px; }
  .pj-arrow.prev { left: 8px; }
  .pj-arrow.next { right: 8px; }
}
