/*
Theme Name: Maison Theme
Theme URI: https://homepage.studio
Author: HomePage Studio
Description: MAISON — Luxury Real Estate with Sage, Gold & Ivory design language
Version: 1.0
*/

/* ============================================
   MAISON DESIGN SYSTEM v3
   ============================================ */

:root {
  --ivory: #FAF8F5;
  --ivory-warm: #F5F0E8;
  --sage: #2D4A3E;
  --sage-light: #3D6454;
  --sage-surface: #E8EDE6;
  --sage-muted: #8FA99E;
  --gold: #B8A06A;
  --gold-light: #CCBA85;
  --gold-dark: #9A8654;
  --charcoal: #1A1A1A;
  --charcoal-light: #3A3A3A;
  --charcoal-muted: #6B6B6B;
  --white: #FFFFFF;
  --font-display: 'Cinzel', serif;
  --font-body: 'Josefin Sans', sans-serif;
  --section-padding: clamp(100px, 12vw, 160px);
  --container-max: 1440px;
  --gutter: clamp(24px, 4vw, 64px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.8;
  overflow-x: hidden;
  cursor: none;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ============================================
   CUSTOM CURSOR — 21st.dev
   ============================================ */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%; pointer-events: none;
  z-index: 10000; transform: translate(-50%, -50%); mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 40px; height: 40px;
  border: 1px solid var(--sage); border-radius: 50%; pointer-events: none;
  z-index: 9999; transform: translate(-50%, -50%); opacity: 0.5;
  transition: width 0.4s cubic-bezier(0.23,1,0.32,1), height 0.4s cubic-bezier(0.23,1,0.32,1);
}
.cursor-dot.hovering { width: 16px; height: 16px; background: var(--sage); }
.cursor-ring.hovering { width: 64px; height: 64px; border-color: var(--gold); opacity: 0.8; }

@media (max-width: 1024px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   SCROLL PROGRESS BAR — 21st.dev
   ============================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  z-index: 10001; transition: none;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--ivory);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-text {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px);
  color: var(--sage); letter-spacing: 0.3em;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}
.preloader-line {
  width: 120px; height: 1px; background: var(--sage-muted); margin-top: 24px;
  position: relative; overflow: hidden;
}
.preloader-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gold); animation: preloaderSlide 1.5s ease-in-out infinite;
}
@keyframes preloaderPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes preloaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 var(--gutter); height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}
.nav.scrolled {
  background: rgba(250, 248, 245, 0.92); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(45, 74, 62, 0.08); height: 68px;
}
.nav-logo {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.25em; color: var(--sage);
  display: flex; align-items: center; gap: 12px;
}
.nav-logo .monogram {
  width: 36px; height: 36px; border: 1.5px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 400; color: var(--gold);
  transition: background 0.3s ease, color 0.3s ease;
}
.nav-logo .monogram:hover { background: var(--gold); color: var(--white); }
.nav-links { display: flex; gap: clamp(24px, 3vw, 48px); list-style: none; }
.nav-links a {
  font-family: var(--font-body); font-size: 11px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal-muted);
  transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--sage); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: var(--font-body); font-size: 11px; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold); padding: 10px 28px;
  transition: background 0.3s ease, color 0.3s ease; cursor: pointer; background: transparent;
}
.nav-cta:hover { background: var(--gold); color: var(--white); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.nav-hamburger span { display: block; width: 24px; height: 1.5px; background: var(--sage); transition: transform 0.3s ease; }

/* Nav Light Mode — for pages with dark/sage hero backgrounds */
body.nav-light .nav:not(.scrolled) .nav-logo { color: var(--white); }
body.nav-light .nav:not(.scrolled) .nav-logo .monogram { color: var(--gold); border-color: rgba(255,255,255,0.4); }
body.nav-light .nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.6); }
body.nav-light .nav:not(.scrolled) .nav-links a:hover,
body.nav-light .nav:not(.scrolled) .nav-links a.active { color: var(--white); }
body.nav-light .nav:not(.scrolled) .nav-cta { color: var(--gold); border-color: rgba(255,255,255,0.3); }
body.nav-light .nav:not(.scrolled) .nav-cta:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
body.nav-light .nav:not(.scrolled) .nav-hamburger span { background: var(--white); }

/* ============================================
   SECTION TRANSITIONS — Flowing, not blocky
   ============================================ */

/* Progressive Blur — 21st.dev: soft fade between sections */
.section-fade-top, .section-fade-bottom {
  position: absolute; left: 0; right: 0; pointer-events: none; z-index: 2;
}
.section-fade-top {
  top: 0; height: 120px;
  background: linear-gradient(to bottom, var(--ivory), transparent);
}
.section-fade-bottom {
  bottom: 0; height: 120px;
  background: linear-gradient(to top, var(--ivory), transparent);
}

/* Gradient Bleed Transitions — subtle color dissolves */
.bleed {
  height: clamp(24px, 3vw, 40px); position: relative; z-index: 3; pointer-events: none;
}
.bleed-ivory-to-sage {
  background: linear-gradient(to bottom, var(--ivory) 0%, var(--ivory) 10%, var(--sage) 90%, var(--sage) 100%);
}
.bleed-sage-to-ivory {
  background: linear-gradient(to bottom, var(--sage) 0%, var(--sage) 10%, var(--ivory) 90%, var(--ivory) 100%);
}
.bleed-ivory-to-surface {
  background: linear-gradient(to bottom, var(--ivory-warm) 0%, var(--sage-surface) 100%);
}
.bleed-surface-to-dark {
  background: linear-gradient(to bottom, var(--sage-surface) 0%, rgba(26,26,26,0.6) 100%);
}
.bleed-dark-to-sage {
  background: linear-gradient(to bottom, rgba(26,26,26,0.55) 0%, var(--sage) 100%);
}

/* Animated horizontal gold line between sections — 21st.dev adapted */
.section-line {
  display: block; margin: 0 auto; height: 1px; width: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: none;
}
.section-line.visible { animation: lineGrow 1.2s cubic-bezier(0.23,1,0.32,1) forwards; }
@keyframes lineGrow { to { width: min(400px, 60vw); } }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 80px; position: relative; z-index: 2;
}
.hero-eyebrow {
  font-family: var(--font-body); font-size: 11px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 40px; opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease 1.2s forwards;
}
.hero-title {
  font-family: var(--font-display); font-weight: 400; color: var(--sage);
  line-height: 0.95; margin-bottom: 32px;
}
.hero-title .line {
  display: block; font-size: clamp(56px, 7vw, 96px); letter-spacing: 0.22em;
  opacity: 0; transform: translateY(40px); animation: fadeUp 0.8s ease 0.4s forwards;
}
/* Letter-by-letter stagger on hero title — 21st.dev Typing adapted */
.hero-title .char {
  display: inline-block; opacity: 0; transform: translateY(30px) rotate(3deg);
  animation: charReveal 0.5s cubic-bezier(0.23,1,0.32,1) forwards;
}
@keyframes charReveal {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero-gold-line {
  width: 60px; height: 1px; background: var(--gold); margin-bottom: 32px;
  opacity: 0; transform: scaleX(0); transform-origin: left;
  animation: lineReveal 0.6s ease 1.0s forwards;
}
.hero-tagline {
  font-family: var(--font-body); font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 300; font-style: italic; color: var(--charcoal-muted);
  letter-spacing: 0.06em; margin-bottom: 12px; opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease 1.2s forwards;
}
.hero-tagline .shimmer {
  background: linear-gradient(120deg, var(--charcoal-muted) 0%, var(--charcoal-muted) 40%, var(--gold) 50%, var(--charcoal-muted) 60%, var(--charcoal-muted) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: shimmerSweep 4s ease-in-out 2.5s infinite;
}
@keyframes shimmerSweep { 0% { background-position: 100% 0; } 50% { background-position: -100% 0; } 100% { background-position: -100% 0; } }

.hero-subtitle {
  font-family: var(--font-body); font-size: 16px; font-weight: 300;
  color: var(--charcoal-muted); letter-spacing: 0.03em; line-height: 1.85;
  max-width: 420px; margin-bottom: 48px; opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease 1.4s forwards;
}
.hero-cta-wrap { opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s ease 1.6s forwards; }

/* Magnetic Button — 21st.dev */
.magnetic-btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 40px; background: transparent; border: 1px solid var(--gold);
  color: var(--gold); font-family: var(--font-body); font-size: 12px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
  transition: transform 0.2s ease, color 0.3s ease; overflow: hidden;
}
.magnetic-btn::before {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); z-index: -1;
}
.magnetic-btn:hover::before { transform: translateY(0); }
.magnetic-btn:hover { color: var(--white); border-color: var(--gold); }
.magnetic-btn .arrow { transition: transform 0.3s ease; font-size: 14px; }
.magnetic-btn:hover .arrow { transform: translateX(4px); }

.hero-image-wrap { position: relative; overflow: hidden; }
.hero-image-wrap img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.08);
  animation: heroImageReveal 1.8s cubic-bezier(0.4,0,0.2,1) 0.2s forwards;
}
.hero-image-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--ivory) 0%, rgba(250,248,245,0) 20%);
}

/* Progressive blur on hero image bottom — 21st.dev */
.hero-image-wrap::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 200px; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, var(--ivory), transparent);
}

.hero-scroll {
  position: absolute; bottom: 40px; left: var(--gutter);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 10px; font-weight: 400;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--sage-muted);
  opacity: 0; animation: fadeUp 0.8s ease 2.0s forwards; z-index: 2;
}
.scroll-line { width: 40px; height: 1px; background: var(--sage-muted); position: relative; overflow: hidden; }
.scroll-line::after { content:''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--gold); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0% { left:-100%; } 50% { left:100%; } 100% { left:100%; } }

/* ============================================
   ABOUT — with flowing entry
   ============================================ */
.about {
  padding: var(--section-padding) var(--gutter); padding-top: 40px;
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px); align-items: center;
  position: relative;
}
.about-image-wrap { position: relative; overflow: hidden; border-radius: 2px; }
.about-image-wrap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transform: scale(1.05); will-change: transform; }
/* Gold frame overlap */
.about-image-wrap::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 55%; height: 55%; border: 1px solid var(--gold); opacity: 0.2; z-index: 3;
}
.about-content { padding: 20px 0; }
.section-eyebrow {
  font-family: var(--font-body); font-size: 11px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px;
}
.section-heading {
  font-family: var(--font-display); font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400; color: var(--sage); line-height: 1.15;
  letter-spacing: 0.02em; margin-bottom: 28px;
}
.about-text { font-size: 17px; font-weight: 300; color: var(--charcoal-light); line-height: 1.9; margin-bottom: 20px; max-width: 480px; }
.about-signature { font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--sage); margin-top: 32px; letter-spacing: 0.02em; }

/* ============================================
   STATS — with wave entry from above
   ============================================ */
.stats {
  padding: 100px var(--gutter); background: var(--sage);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(184,160,106,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 50%);
  display: flex; justify-content: center; gap: clamp(40px, 6vw, 100px);
  position: relative;
}
.stat-item { text-align: center; position: relative; }
.stat-item + .stat-item::before {
  content: ''; position: absolute; left: calc(-1 * clamp(20px,3vw,50px));
  top: 50%; transform: translateY(-50%); width: 1px; height: 40px;
  background: var(--gold); opacity: 0.3;
}
.stat-number {
  font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px);
  font-weight: 400; color: var(--white); letter-spacing: 0.02em; line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-body); font-size: 12px; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-muted);
}

/* ============================================
   SERVICES — Spotlight Cards
   ============================================ */
.services {
  padding: var(--section-padding) var(--gutter); padding-top: 40px;
  max-width: var(--container-max); margin: 0 auto; position: relative;
}
.services-header { text-align: center; margin-bottom: 80px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.service-card {
  padding: clamp(36px, 3vw, 56px); background: var(--white); position: relative;
  transition: background 0.5s ease; cursor: pointer; overflow: hidden;
}
.service-card .spotlight {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; z-index: 0;
}
.service-card:hover .spotlight { opacity: 1; }
.service-card > *:not(.spotlight) { position: relative; z-index: 1; }
.service-card:hover { background: var(--sage); }
.service-card:hover .service-number, .service-card:hover .service-title, .service-card:hover .service-desc { color: var(--white); }
.service-card:hover .service-number { color: var(--gold); opacity: 1; }
.service-card:hover .service-line { background: var(--gold-light); }
.service-number {
  font-family: var(--font-display); font-size: clamp(36px,3vw,52px); font-weight: 400;
  color: var(--sage-muted); opacity: 0.35; line-height: 1; margin-bottom: 24px;
  transition: color 0.5s ease, opacity 0.5s ease;
}
.service-title {
  font-family: var(--font-display); font-size: clamp(18px,1.6vw,24px); font-weight: 400;
  color: var(--sage); letter-spacing: 0.02em; margin-bottom: 16px; transition: color 0.5s ease;
}
.service-line { width: 32px; height: 1px; background: var(--gold); margin-bottom: 16px; transition: background 0.5s ease; }
.service-desc { font-size: 16px; font-weight: 300; color: var(--charcoal-muted); line-height: 1.85; transition: color 0.5s ease; }

/* ============================================
   CINEMATIC — Scroll Text Reveal
   ============================================ */
.cinematic {
  height: 70vh; min-height: 420px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cinematic-bg {
  position: absolute; inset: -20%;
  background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1600&q=80');
  background-size: cover; background-position: center;
}
.cinematic-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,74,62,0.82) 0%, rgba(26,26,26,0.6) 100%);
}
/* Progressive blur top+bottom on cinematic — 21st.dev */
.cinematic::before, .cinematic::after {
  content: ''; position: absolute; left: 0; right: 0; height: 140px; z-index: 3; pointer-events: none;
}
.cinematic::before { top: 0; background: linear-gradient(to bottom, var(--ivory) 0%, transparent 100%); }
.cinematic::after { bottom: 0; background: linear-gradient(to top, var(--ivory) 0%, transparent 100%); }

.cinematic-content { position: relative; z-index: 4; text-align: center; max-width: 700px; padding: 0 var(--gutter); }
.cinematic-heading {
  font-family: var(--font-display); font-size: clamp(32px,4vw,56px); font-weight: 400;
  color: var(--white); letter-spacing: 0.06em; line-height: 1.2; margin-bottom: 24px;
}
/* Scroll Text Reveal — 21st.dev */
.cinematic-heading .word {
  display: inline-block; opacity: 0.12; transition: opacity 0.5s ease, transform 0.5s ease;
  margin-right: 0.3em; transform: translateY(6px);
}
.cinematic-heading .word.revealed { opacity: 1; transform: translateY(0); }
.cinematic-sub {
  font-family: var(--font-body); font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,0.7); letter-spacing: 0.06em; line-height: 1.85;
}

/* ============================================
   PROPERTIES — 3D Tilt Cards
   ============================================ */
.properties { padding: var(--section-padding) 0; overflow: visible; position: relative; }
.properties-header {
  padding: 0 var(--gutter); max-width: var(--container-max); margin: 0 auto 60px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.properties-track {
  display: flex; gap: 28px; padding: 0 var(--gutter); cursor: grab;
  user-select: none; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; align-items: flex-start;
}
.properties-track::-webkit-scrollbar { display: none; }
.properties-track:active { cursor: grabbing; }
.property-card {
  flex: 0 0 clamp(280px,26vw,380px); scroll-snap-align: start;
  position: relative; overflow: hidden;
  transform-style: preserve-3d; perspective: 1000px; transition: transform 0.3s ease;
}
.property-card:nth-child(odd) { flex: 0 0 clamp(300px,30vw,440px); }
.property-card:nth-child(even) { flex: 0 0 clamp(260px,22vw,340px); margin-top: 60px; }
.property-card-image { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.property-card:nth-child(even) .property-card-image { aspect-ratio: 4/5; }
.property-card:hover .property-card-image { transform: scale(1.04); }

/* Liquid Glass overlay on hover — 21st.dev */
.property-card-glass {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 50%, rgba(184,160,106,0.06) 100%);
  backdrop-filter: blur(1px); pointer-events: none; z-index: 2;
}
.property-card:hover .property-card-glass { opacity: 1; }

.property-card-info { padding: 20px 0; }
.property-card-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 400;
  color: var(--sage); letter-spacing: 0.02em; margin-bottom: 4px;
}
.property-card-location {
  font-family: var(--font-body); font-size: 13px; font-weight: 300;
  color: var(--charcoal-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px;
}
.property-card-price { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--gold); letter-spacing: 0.05em; }

/* ============================================
   MARQUEE — Featured In
   ============================================ */
.marquee-section {
  padding: 60px 0; border-top: 1px solid rgba(45,74,62,0.06);
  overflow: hidden; background: var(--ivory-warm); position: relative;
}
/* Progressive blur edges on marquee — 21st.dev */
.marquee-section::before, .marquee-section::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee-section::before { left: 0; background: linear-gradient(to right, var(--ivory-warm), transparent); }
.marquee-section::after { right: 0; background: linear-gradient(to left, var(--ivory-warm), transparent); }

.marquee-label {
  text-align: center; font-family: var(--font-body); font-size: 10px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--charcoal-muted); margin-bottom: 28px;
}
.marquee-track { display: flex; animation: marqueeScroll 35s linear infinite; width: max-content; }
.marquee-item {
  flex-shrink: 0; padding: 0 clamp(32px,4vw,64px);
  font-family: var(--font-display); font-size: clamp(14px,1.4vw,20px);
  font-weight: 400; color: var(--charcoal-muted); letter-spacing: 0.15em; opacity: 0.5; white-space: nowrap;
}
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: var(--section-padding) var(--gutter); background: var(--sage-surface);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(184,160,106,0.05) 0%, transparent 50%);
  position: relative;
}
.testimonials::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 60px; background: linear-gradient(to bottom, var(--gold), transparent); opacity: 0.3;
}
.testimonials-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.testimonial-quote-mark {
  font-family: var(--font-display); font-size: 88px; color: var(--gold);
  line-height: 0.6; margin-bottom: 16px; opacity: 0.5;
}
.testimonial-text {
  font-family: var(--font-display); font-size: clamp(22px,2.4vw,34px); font-weight: 400;
  font-style: italic; color: var(--sage); line-height: 1.55; letter-spacing: 0.01em; margin-bottom: 36px;
  transition: opacity 0.5s ease;
}
.testimonial-author {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal-muted); margin-bottom: 4px;
  transition: opacity 0.5s ease;
}
.testimonial-role {
  font-family: var(--font-body); font-size: 12px; font-weight: 300;
  color: var(--sage-muted); letter-spacing: 0.1em; transition: opacity 0.5s ease;
}
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.testimonial-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--sage-muted);
  opacity: 0.3; cursor: pointer; transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.testimonial-dot.active { opacity: 1; background: var(--gold); transform: scale(1.3); }

/* ============================================
   CTA
   ============================================ */
.cta {
  height: 70vh; min-height: 500px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cta-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=1600&q=80');
  background-size: cover; background-position: center;
}
.cta-overlay { position: absolute; inset: 0; background: rgba(26,26,26,0.55); }

.cta-content { position: relative; z-index: 4; text-align: center; max-width: 600px; padding: 0 var(--gutter); }
.cta-heading {
  font-family: var(--font-display); font-size: clamp(36px,4.5vw,64px); font-weight: 400;
  color: var(--white); letter-spacing: 0.06em; line-height: 1.15; margin-bottom: 20px;
}
.cta-sub {
  font-family: var(--font-body); font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,0.7); letter-spacing: 0.05em; line-height: 1.85; margin-bottom: 40px;
}
.cta .magnetic-btn { border-color: var(--gold); color: var(--gold); }
.cta .magnetic-btn:hover { color: var(--white); }

/* ============================================
   FOOTER
   ============================================ */
.footer { padding: 80px var(--gutter) 40px; background: var(--sage); }
.footer-inner {
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px,4vw,64px); margin-bottom: 60px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display); font-size: 24px; font-weight: 400;
  color: var(--white); letter-spacing: 0.15em; margin-bottom: 16px;
}
.footer-brand p {
  font-family: var(--font-body); font-size: 14px; font-weight: 300;
  color: var(--sage-muted); line-height: 1.8; max-width: 300px;
}
.footer-col-title {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px;
}
.footer-col a {
  display: block; font-family: var(--font-body); font-size: 14px; font-weight: 300;
  color: var(--sage-muted); margin-bottom: 12px; transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--container-max); margin: 0 auto; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p {
  font-family: var(--font-body); font-size: 12px; font-weight: 300;
  color: var(--sage-muted); letter-spacing: 0.05em;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes lineReveal { to { opacity: 1; transform: scaleX(1); } }
@keyframes heroImageReveal { to { transform: scale(1); } }

/* Scroll Reveal — 21st.dev blur-to-clear with scale */
.reveal {
  opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1), transform 0.9s cubic-bezier(0.23,1,0.32,1), filter 0.9s cubic-bezier(0.23,1,0.32,1);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 120px var(--gutter) 60px; min-height: 60vh; justify-content: flex-end; }
  .hero-image-wrap { height: 50vh; }
  .hero-scroll { display: none; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-title .line { font-size: clamp(42px, 12vw, 64px); }
  .stats { flex-wrap: wrap; gap: 32px; padding: 60px var(--gutter); }
  .stat-item + .stat-item::before { display: none; }
  .property-card, .property-card:nth-child(odd), .property-card:nth-child(even) { flex: 0 0 280px; margin-top: 0; }
  .footer-inner { grid-template-columns: 1fr; }

}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-title .line, .hero-eyebrow, .hero-tagline, .hero-subtitle, .hero-cta-wrap, .hero-gold-line, .hero-scroll { opacity: 1; transform: none; }
  .hero-image-wrap img { transform: none; }
  .marquee-track { animation: none; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--sage);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(24px, 5vw, 40px);
  color: var(--white); letter-spacing: 0.1em; font-weight: 400;
  transition: color 0.3s ease;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-close {
  position: absolute; top: 28px; right: 28px; width: 40px; height: 40px;
  cursor: pointer; background: none; border: none;
}
.mobile-menu-close::before, .mobile-menu-close::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 24px; height: 1.5px;
  background: var(--white);
}
.mobile-menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ============================================
   PAGE HERO — Internal Pages
   ============================================ */
.page-hero {
  position: relative; height: 55vh; min-height: 420px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 1;
}
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
}
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(45,74,62,0.7) 0%, rgba(26,26,26,0.5) 100%);
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, var(--ivory), transparent);
}
.page-hero-content {
  position: relative; z-index: 4;
  width: 100%; padding: 0 var(--gutter) clamp(48px, 6vh, 80px);
}
.page-hero-eyebrow {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.page-hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(42px, 7vw, 88px); letter-spacing: 0.08em;
  color: var(--white); line-height: 1;
}

/* ============================================
   PAGE SECTIONS
   ============================================ */
.page-section {
  padding: var(--section-padding) var(--gutter);
  max-width: var(--container-max); margin: 0 auto;
}
.page-section-full {
  padding: var(--section-padding) var(--gutter);
}
.page-section-full.sage { background: var(--sage); color: var(--white); }
.page-section-full.surface { background: var(--sage-surface); }
.page-section-full.ivory-warm { background: var(--ivory-warm); }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px); align-items: center;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

.three-col {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
@media (max-width: 768px) { .three-col { grid-template-columns: 1fr; } }

.section-body {
  font-family: var(--font-body); font-size: 17px; font-weight: 300;
  color: var(--charcoal-light); line-height: 1.9; max-width: 520px; margin-bottom: 20px;
}
.section-body.light { color: var(--sage-muted); }

/* Process Steps */
.process-step {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px;
  padding: clamp(28px, 3vw, 44px) 0;
  border-bottom: 1px solid rgba(45,74,62,0.08);
}
.process-step:last-child { border-bottom: none; }
.process-step-number {
  font-family: var(--font-display); font-size: clamp(42px, 4vw, 64px);
  color: var(--gold); font-weight: 400; line-height: 1; opacity: 0.4;
}
.process-step-title {
  font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 400; color: var(--sage); margin-bottom: 12px; letter-spacing: 0.02em;
}
.process-step-desc {
  font-family: var(--font-body); font-size: 16px; font-weight: 300;
  line-height: 1.85; color: var(--charcoal-muted);
}
@media (max-width: 600px) {
  .process-step { grid-template-columns: 1fr; gap: 12px; }
}

/* Listing Grid */
.listing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 1024px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .listing-grid { grid-template-columns: 1fr; } }

.listing-card {
  position: relative; overflow: hidden; background: var(--white);
  transition: box-shadow 0.4s ease;
}
.listing-card:hover { box-shadow: 0 12px 40px rgba(45,74,62,0.08); }
.listing-card-image {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
}
.listing-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.listing-card:hover .listing-card-image img { transform: scale(1.05); }
.listing-card-info { padding: 20px; }
.listing-card-address {
  font-family: var(--font-display); font-size: 17px; font-weight: 400;
  color: var(--sage); letter-spacing: 0.02em; margin-bottom: 4px;
}
.listing-card-details {
  font-family: var(--font-body); font-size: 12px; font-weight: 300;
  color: var(--charcoal-muted); letter-spacing: 0.05em; margin-bottom: 8px;
}
.listing-card-price {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--gold); letter-spacing: 0.05em;
}

/* Community Detail Grid */
.community-detail-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  margin-top: 40px;
}
.community-detail-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px;
  transition: transform 0.4s ease;
}
.community-detail-grid img:hover { transform: scale(1.02); }
@media (max-width: 768px) { .community-detail-grid { grid-template-columns: 1fr; } }

/* Community Rows */
.community-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(45,74,62,0.06);
  transition: background 0.4s ease; overflow: hidden;
}
.community-row:last-child { border-bottom: 1px solid rgba(45,74,62,0.06); }
.community-row:hover { background: var(--sage-surface); }
.community-info {
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: center;
}
.community-name {
  font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 400; color: var(--sage); letter-spacing: 0.04em; margin-bottom: 8px;
}
.community-name a { transition: color 0.3s ease; }
.community-name a:hover { color: var(--gold); }
.community-desc {
  font-family: var(--font-body); font-size: 14px; font-weight: 300;
  color: var(--charcoal-muted); letter-spacing: 0.03em; line-height: 1.7;
}
.community-image { height: clamp(180px, 22vh, 280px); overflow: hidden; }
.community-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.community-row:hover .community-image img { transform: scale(1.06); }
@media (max-width: 768px) {
  .community-row { grid-template-columns: 1fr; }
  .community-image { height: 200px; }
}

/* CTA Banner */
.cta-banner {
  padding: var(--section-padding) var(--gutter); text-align: center;
  position: relative; overflow: hidden;
  background: var(--sage);
  background-image:
    radial-gradient(ellipse at 30% 50%, rgba(184,160,106,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
}
.cta-banner-heading {
  font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 400; color: var(--white); letter-spacing: 0.06em; line-height: 1.15;
  margin-bottom: 20px;
}
.cta-banner-text {
  font-family: var(--font-body); font-size: 16px; font-weight: 300;
  color: var(--sage-muted); letter-spacing: 0.05em; line-height: 1.85;
  max-width: 520px; margin: 0 auto 40px;
}
.cta-banner .magnetic-btn { border-color: var(--gold); color: var(--gold); }
.cta-banner .magnetic-btn:hover { color: var(--white); }

/* Contact Section */
.contact-split {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh;
}
.contact-left {
  background: var(--sage); padding: clamp(64px, 8vw, 120px);
  display: flex; flex-direction: column; justify-content: center;
}
.contact-right {
  background: var(--ivory-warm); padding: clamp(64px, 8vw, 120px);
  display: flex; flex-direction: column; justify-content: center;
}
.contact-info-item {
  font-family: var(--font-body); font-size: 14px; font-weight: 300;
  color: var(--sage-muted); margin-bottom: 8px; letter-spacing: 0.05em;
}
.contact-info-item a { color: var(--gold); transition: opacity 0.3s; }
.contact-info-item a:hover { opacity: 0.7; }
@media (max-width: 768px) { .contact-split { grid-template-columns: 1fr; } }

/* Form */
.form-group { margin-bottom: 28px; }
.form-label {
  font-family: var(--font-body); font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--charcoal-muted); display: block; margin-bottom: 10px;
}
.form-input {
  width: 100%; border: none; border-bottom: 1px solid rgba(45,74,62,0.15);
  background: transparent; padding: 12px 0; font-family: var(--font-body);
  font-size: 16px; font-weight: 300; color: var(--charcoal); outline: none;
  transition: border-color 0.3s ease;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: rgba(26,26,26,0.25); }
textarea.form-input { resize: none; height: 100px; }

/* Legal */
.legal-content {
  max-width: 800px; margin: 0 auto;
  padding: var(--section-padding) var(--gutter);
}
.legal-content h2 {
  font-family: var(--font-display); font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400; color: var(--sage); margin: 48px 0 16px; letter-spacing: 0.02em;
}
.legal-content p {
  font-family: var(--font-body); font-size: 16px; font-weight: 300;
  line-height: 1.85; color: var(--charcoal-muted); margin-bottom: 16px;
}
.legal-content ul { list-style: none; padding-left: 24px; margin-bottom: 24px; }
.legal-content ul li {
  font-family: var(--font-body); font-size: 16px; font-weight: 300;
  line-height: 1.85; color: var(--charcoal-muted); padding-left: 16px;
  position: relative; margin-bottom: 8px;
}
.legal-content ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

/* Back to Top */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%;
  background: rgba(250,248,245,0.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background 0.3s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); }
.back-to-top:hover .btt-arrow { border-color: var(--white); }
.btt-arrow {
  width: 8px; height: 8px; border-left: 1.5px solid var(--gold); border-top: 1.5px solid var(--gold);
  transform: rotate(45deg); margin-top: 3px; transition: border-color 0.3s ease;
}
@media (max-width: 768px) { .back-to-top { bottom: 20px; right: 20px; width: 38px; height: 38px; } }

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: ''; display: inline-block; width: 4px; height: 4px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); margin-left: 5px; vertical-align: middle;
  transition: transform 0.3s ease;
}
.nav-dropdown:hover > a::after { transform: rotate(-135deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 150px; padding: 12px 0; margin-top: 8px;
  background: rgba(250,248,245,0.95); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(45,74,62,0.08);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.3s ease;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block; padding: 6px 24px; font-size: 11px !important;
  white-space: nowrap; text-align: center;
}
