/* ==========================================================================
   Pure Property — Premium Real Estate Theme
   Custom CSS layered on top of Tailwind CDN.
   ========================================================================== */

:root {
  --color-bg: #0b1220;
  --color-surface: #111a2e;
  --color-surface-2: #1a2440;
  --color-line: rgba(255, 255, 255, 0.08);
  --color-text: #e9edf5;
  --color-muted: #9aa3b2;
  --color-cream: #f5f1ea;
  --color-gold: #c9a961;
  --color-gold-2: #e6c987;
  --gradient-gold: linear-gradient(135deg, #c9a961 0%, #e6c987 50%, #c9a961 100%);
  --gradient-dark: linear-gradient(180deg, rgba(11,18,32,0.0) 0%, rgba(11,18,32,0.85) 70%, rgba(11,18,32,1) 100%);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-strong: 0 30px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

/* Base typography & smoothing */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.font-display { font-family: 'Playfair Display', 'Times New Roman', serif; letter-spacing: -0.01em; }
.text-gold { color: var(--color-gold); }
.bg-gold { background: var(--gradient-gold); }
.text-cream { color: var(--color-cream); }
.text-muted { color: var(--color-muted); }
.border-line { border-color: var(--color-line); }

/* Selection */
::selection { background: var(--color-gold); color: #1a1a1a; }

/* Subtle gold underline accent */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gradient-gold);
}

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; padding: 14px 26px; border-radius: 999px; transition: all .35s ease; letter-spacing: .02em; font-size: 14px; }
.btn-primary { background: var(--gradient-gold); color: #1b1407; box-shadow: 0 14px 30px -10px rgba(201,169,97,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(201,169,97,.75); }
.btn-ghost { color: var(--color-cream); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: var(--color-gold); color: var(--color-gold); }
.btn-dark { background: #0b1220; color: var(--color-cream); border: 1px solid var(--color-line); }
.btn-dark:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.glass-dark {
  background: rgba(11, 18, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(140%);
}

/* Navbar */
.navbar { transition: all .4s ease; }
.navbar.scrolled { background: rgba(11,18,32,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--color-line); }
.nav-link { position: relative; padding: 8px 0; color: rgba(255,255,255,0.78); font-size: 14px; letter-spacing: .02em; transition: color .3s; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gradient-gold); transition: width .35s ease; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hero */
.hero { position: relative; min-height: 100vh; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: heroZoom 14s ease-in-out infinite alternate; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,.55) 0%, rgba(11,18,32,.7) 50%, rgba(11,18,32,1) 100%); z-index: -1; }
@keyframes heroZoom { from { transform: scale(1.0); } to { transform: scale(1.12); } }

/* Floating shapes / orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none; }
.orb-gold { background: radial-gradient(circle, #c9a961 0%, transparent 70%); }
.orb-blue { background: radial-gradient(circle, #2a4a8c 0%, transparent 70%); }

/* Project cards */
.project-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); transition: transform .5s ease; background: var(--color-surface); border: 1px solid var(--color-line); }
.project-card:hover { transform: translateY(-6px); }
.project-card .pc-image { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.project-card .pc-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.project-card:hover .pc-image img { transform: scale(1.10); }
.project-card .pc-image::after { content: ''; position: absolute; inset: 0; background: var(--gradient-dark); opacity: .85; }
.project-card .pc-tag { position: absolute; top: 16px; left: 16px; padding: 6px 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; z-index: 2; }
.tag-residential { background: rgba(201,169,97,.18); color: var(--color-gold); border: 1px solid rgba(201,169,97,.35); }
.tag-commercial { background: rgba(120,180,255,.15); color: #9ec5ff; border: 1px solid rgba(120,180,255,.3); }
.tag-mixed { background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.project-card .pc-meta { position: absolute; bottom: 16px; left: 16px; right: 16px; z-index: 2; color: #fff; }

/* Feature cards */
.feature-card { position: relative; padding: 36px 28px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); border: 1px solid var(--color-line); transition: all .4s ease; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; inset: 0; opacity: 0; background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(201,169,97,.10), transparent 40%); transition: opacity .4s; pointer-events: none; }
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { border-color: rgba(201,169,97,.4); transform: translateY(-4px); }
.feature-card .icon-wrap { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgba(201,169,97,.18), rgba(201,169,97,.04)); border: 1px solid rgba(201,169,97,.28); color: var(--color-gold); margin-bottom: 22px; }

/* Stats */
.stat-num { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Testimonials */
.t-card { padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); border: 1px solid var(--color-line); }

/* Inputs */
.input { width: 100%; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--color-line); color: var(--color-cream); transition: all .3s; font-size: 14px; }
.input:focus { outline: none; border-color: var(--color-gold); background: rgba(201,169,97,.06); box-shadow: 0 0 0 4px rgba(201,169,97,.10); }
.input::placeholder { color: rgba(255,255,255,.35); }
.input.error { border-color: #e26d6d; background: rgba(226,109,109,.08); }

/* Section spacing */
.section { padding: 110px 0; }
@media (max-width: 768px) { .section { padding: 72px 0; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }

/* Marquee for awards / partners */
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 64px; animation: marquee 30s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Footer */
.footer-link { color: rgba(255,255,255,.6); transition: color .3s; }
.footer-link:hover { color: var(--color-gold); }

/* Mobile menu */
.mobile-menu { transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.mobile-menu.open { transform: translateX(0); }

/* Gallery */
.gallery-item { overflow: hidden; border-radius: var(--radius-lg); cursor: pointer; }
.gallery-item img { transition: transform 1.1s cubic-bezier(.2,.8,.2,1); width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover img { transform: scale(1.08); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5,9,17,.92); display: none; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(8px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: var(--shadow-strong); }

/* Map placeholder */
.map-frame { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-line); background: linear-gradient(135deg, #0e1830, #1a2440); position: relative; display: grid; place-items: center; color: var(--color-muted); }

/* Utility: divider */
.divider-gold { width: 80px; height: 2px; background: var(--gradient-gold); border-radius: 2px; }

/* Number badge */
.num-badge { font-family: 'Playfair Display', serif; font-style: italic; color: rgba(201,169,97,.45); font-size: 56px; line-height: 1; }

/* Accordion */
.accordion-item { border-bottom: 1px solid var(--color-line); }
.accordion-trigger { width: 100%; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; text-align: left; color: var(--color-cream); font-size: 18px; }
.accordion-trigger .plus { width: 24px; height: 24px; display: grid; place-items: center; transition: transform .35s; }
.accordion-item.open .accordion-trigger .plus { transform: rotate(45deg); color: var(--color-gold); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .45s ease; color: var(--color-muted); }
.accordion-item.open .accordion-content { max-height: 500px; padding-bottom: 22px; }

/* Hero stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--color-line); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; }
.stat-strip > div { padding: 24px; background: rgba(11,18,32,.6); }
@media (max-width: 768px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b1220; }
::-webkit-scrollbar-thumb { background: #1a2440; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2a3658; }

/* Loader */
#preloader { position: fixed; inset: 0; background: #0b1220; display: grid; place-items: center; z-index: 200; transition: opacity .6s ease, visibility .6s; }
#preloader .ring { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(201,169,97,.18); border-top-color: var(--color-gold); animation: spin 1s linear infinite; }
#preloader.hidden { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }
