/* ==========================================================================
   FOREST & HILLS — THE FARMHOUSE SOCIETY
   Design System & Complete Stylesheet
   ========================================================================== */

/* Design Tokens */
:root {
  /* Color Palette */
  --color-bg-dark: #0b1513;        /* Deep Forest Green-Black */
  --color-bg-light: #f9f8f6;       /* Warm Alabaster / Ivory */
  --color-primary: #c5a880;        /* Champagne Gold */
  --color-primary-rgb: 197, 168, 128;
  
  --color-text-light: #ffffff;
  --color-text-dark: #1a2624;
  --color-text-muted-light: #a1b3b0; /* Muted Sage Gray */
  --color-text-muted-dark: #505e5b;  /* Dark Sage Gray */
  
  --border-light: rgba(197, 168, 128, 0.2);
  --border-dark: rgba(26, 38, 36, 0.15);
  
  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  scroll-behavior: auto; /* Handled by Lenis */
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden; /* prevent horizontal scroll on all browsers */
}

html::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Cursor */
.custom-cursor {
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-cursor.expand {
  width: 80px;
  height: 80px;
  background-color: rgba(11, 21, 19, 0.85);
  border: 1px solid var(--color-primary);
  mix-blend-mode: normal;
}

.custom-cursor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.custom-cursor.expand::after {
  content: attr(data-text);
  opacity: 1;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-bg-dark);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loader-logo-container {
  width: 130px;
  height: 130px;
  position: relative;
  margin-bottom: 30px;
}

.loader-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.9);
}

.loader-bar {
  width: 200px;
  height: 1px;
  background-color: rgba(197, 168, 128, 0.15);
  position: relative;
  overflow: hidden;
}

.loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  transform: translateX(-100%);
}

/* Typography Rules */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

h4 {
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

p {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.serif-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.25;
  font-style: italic;
  font-weight: 300;
}

.tagline {
  font-family: var(--font-sans);
  color: var(--color-primary);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 500;
  display: block;
  margin-bottom: 1.5rem;
}

/* Page Dividers & Hairlines */
.hairline {
  width: 100%;
  height: 1px;
  background-color: var(--border-light);
  margin: 3rem 0;
}

.hairline.dark {
  background-color: var(--border-dark);
}

/* Section Frameworks */
.section {
  position: relative;
  padding: 8rem 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Only the hero gets full-viewport height */
#hero.section {
  min-height: 100vh;
}

.section.dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section.light {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

.grid-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

.grid-two-col.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

/* Navigation & Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.75rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,21,19,0.92) 0%, rgba(11,21,19,0.55) 55%, rgba(11,21,19,0) 100%);
  transition: var(--transition-medium);
}

header * {
  pointer-events: auto;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.logo-img-header {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(197, 168, 128, 0.55);
  object-fit: cover;
  object-position: center 36%;
  background-color: #0b1513;
  box-shadow: 0 0 0 5px rgba(11, 21, 19, 0.55), 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: var(--transition-medium);
}

.logo-wrap:hover .logo-img-header {
  border-color: var(--color-primary);
}

.logo-text-header {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--color-text-light);
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  line-height: 1.15;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-light);
  opacity: 0.75;
  transition: var(--transition-fast);
}

.nav-link:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* CTA Buttons */
.btn-cta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-bg-dark);
  background-color: var(--color-primary);
  padding: 0.8rem 2.2rem;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-medium);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-cta:hover {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-cta.light-bg {
  color: var(--color-bg-light);
  background-color: var(--color-text-dark);
  border-color: var(--color-text-dark);
}

.btn-cta.light-bg:hover {
  background-color: transparent;
  color: var(--color-text-dark);
  border-color: var(--color-text-dark);
}

/* Hero Section Layout */
#hero {
  min-height: 100vh;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 11rem 8% 6rem 8%;
}

.hero-content {
  max-width: 640px;
  margin: 0;
  z-index: 10;
}

/* ==========================================================================
   Hero — Left-Anchored Editorial Composition
   Real site photography, golden-hour grade, legibility scrim on the text side.
   Swap .hero-media-img for final video/photography later with no layout change.
   ========================================================================== */

#hero.hero-cinematic {
  position: relative;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: -6%;
  will-change: transform;
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 38%;
  /* Warm, golden-hour cinematic grade applied to the real photograph — no synthetic content, only colour/light treatment */
  filter: saturate(1.02) brightness(0.62) contrast(1.16) sepia(0.24) hue-rotate(-8deg);
  transform: scale(1.08);
}

.hero-visual::after {
  /* Base colour wash — keeps the forest-green brand mood consistent under variable source lighting */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11,21,19,0.5) 0%, rgba(11,21,19,0.22) 40%, rgba(11,21,19,0.8) 100%);
}

.hero-glow {
  /* Soft golden bloom, pushed toward the open (right) side of the frame — away from the type, like low sun over the hills */
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 52% 48% at 80% 20%, rgba(230,190,125,0.42) 0%, rgba(230,190,125,0) 68%);
  animation: glowBreathe 11s ease-in-out infinite alternate;
}

@keyframes glowBreathe {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0.92; transform: scale(1.05); }
}

.hero-mist {
  position: absolute;
  inset: -12% -22%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: screen;
  will-change: transform;
}

.hero-mist-1 {
  background:
    radial-gradient(ellipse 55% 34% at 30% 82%, rgba(210,200,180,0.22) 0%, rgba(210,200,180,0) 70%),
    radial-gradient(ellipse 50% 35% at 85% 55%, rgba(224,184,120,0.14) 0%, rgba(224,184,120,0) 70%);
  animation: mistDriftA 30s ease-in-out infinite alternate;
}

.hero-mist-2 {
  background: radial-gradient(ellipse 60% 32% at 65% 92%, rgba(249,248,246,0.09) 0%, rgba(249,248,246,0) 70%);
  animation: mistDriftB 38s ease-in-out infinite alternate;
}

/* Original gold contour line-art — an editorial graphic accent, not photography.
   Two hand-drawn-style ridgelines that echo the real hills without claiming to depict them literally. */
.hero-contours {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

.hero-contours svg {
  width: 100%;
  height: 100%;
}

.contour-line {
  stroke: var(--color-primary);
  stroke-width: 1.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.contour-back {
  opacity: 0.35;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
}

.contour-front {
  opacity: 0.55;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
}

/* Subtle film grain — cheap, static SVG noise for a filmic, editorial finish */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
}

@keyframes mistDriftA {
  0%   { transform: translate(-3%, 0%); }
  100% { transform: translate(3%, -2.5%); }
}

@keyframes mistDriftB {
  0%   { transform: translate(2%, 0%); }
  100% { transform: translate(-4%, 2%); }
}

.hero-scrim {
  /* Dedicated legibility scrim: dark and solid behind the type on the left, dissolving to clear over the forest on the right */
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(9,16,15,0.92) 0%,
    rgba(9,16,15,0.72) 28%,
    rgba(9,16,15,0.36) 52%,
    rgba(9,16,15,0.06) 72%,
    rgba(9,16,15,0) 88%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(11,21,19,0) 55%, rgba(11,21,19,0.55) 100%);
}

/* Brand lockup — the main visual focus of the Hero */
.hero-brand {
  margin-bottom: 2rem;
}

.hero-brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 7.4vw, 6.4rem);
  line-height: 1.0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-light);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.hero-brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.8rem, 1.4vw, 1.05rem);
  letter-spacing: 5.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 0.85rem;
}

.hero-divider {
  width: 64px;
  height: 1px;
  background: linear-gradient(to right, var(--color-primary), transparent);
  margin: 0 0 2rem 0;
  opacity: 0.75;
  transform-origin: left center;
}

/* Supporting detail block */
.hero-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 2.8rem;
}

.hero-detail-strong {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
}

.hero-detail-line {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1.2vw, 0.96rem);
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--color-text-muted-light);
}

.hero-detail-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.hero-detail-triplet {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 0.7rem;
}

/* Dual CTA group */
.hero-btn-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-cta-outline {
  background-color: transparent;
  color: var(--color-text-light);
  border: 1px solid rgba(197, 168, 128, 0.55);
}

.btn-cta-outline:hover {
  background-color: rgba(197, 168, 128, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Masked line reveal (used by the brand lockup) */
.line-mask {
  display: block;
  overflow: hidden;
}

.line-inner {
  display: block;
  transform: translateY(112%);
  will-change: transform;
}

/* Scroll cue — aligned under the text column rather than dead-centre, so it doesn't compete with the composition */
.hero-scroll-cue {
  position: absolute;
  bottom: 2.75rem;
  left: 8%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
}

.scroll-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted-light);
}

@media (max-width: 900px) {
  .hero-media { inset: -8% -14%; }
  .hero-media-img { object-position: 60% 40%; }
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(9,16,15,0.55) 0%,
      rgba(9,16,15,0.82) 55%,
      rgba(9,16,15,0.94) 100%);
  }
  .hero-glow { background: radial-gradient(ellipse 70% 40% at 50% 12%, rgba(224,184,120,0.32) 0%, rgba(224,184,120,0) 70%); }
  #hero { padding: 8.5rem 6% 4rem 6%; align-items: flex-end; }
  .hero-content { max-width: 100%; }
  .hero-scroll-cue { left: 6%; bottom: 2rem; }
}

@media (max-width: 600px) {
  .hero-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .hero-brand-sub { letter-spacing: 4px; }
  .hero-detail-triplet { letter-spacing: 2px; }
}

/* Respect reduced-motion: show final composed state instantly, no drift/parallax */
@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-mist,
  .hero-glow {
    animation: none !important;
    transform: none !important;
  }
  .line-inner {
    transform: none !important;
  }
  .hero-glow {
    opacity: 0.6 !important;
  }
  .hero-scroll-cue {
    opacity: 0.8 !important;
  }
  .hero-contours {
    opacity: 1 !important;
  }
  .contour-line {
    stroke-dashoffset: 0 !important;
  }
}



/* Image Frame Block */
.image-frame {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: #0d1a17;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-frame:hover img {
  transform: scale(1.05);
}

.section.light .image-frame {
  border-color: var(--border-dark);
}

/* Amenities Section Layout */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.amenity-card {
  border: 1px solid var(--border-light);
  padding: 3rem 2rem;
  border-radius: 4px;
  background-color: rgba(13, 26, 23, 0.3);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.amenity-card:hover {
  border-color: var(--color-primary);
  background-color: rgba(197, 168, 128, 0.05);
  transform: translateY(-5px);
}

.amenity-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.amenity-number {
  font-family: var(--font-sans);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

/* Editorial Site Gallery */
.gallery-container {
  margin-top: 4rem;
  width: 100%;
  position: relative;
}

.gallery-wrapper {
  display: flex;
  gap: 2.5rem;
  overflow-x: auto;
  padding: 2rem 0;
  cursor: grab;
  scrollbar-width: none;
}

.gallery-wrapper::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 520px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 380px;
  background-color: #0e1e1a;
  transition: var(--transition-medium);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-slide:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(11,21,19,0.9) 0%, rgba(11,21,19,0) 100%);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 1px;
}

/* Inquiry Form */
.inquiry-form {
  max-width: 650px;
  margin: 4rem auto 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-dark);
  padding: 0.8rem 0;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-bottom-color: var(--color-text-dark);
}

.form-label {
  position: absolute;
  top: 0.8rem;
  left: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text-muted-dark);
  pointer-events: none;
  transition: var(--transition-fast);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -1.2rem;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-dark);
}

/* ==========================================================================
   Interactive Masterplan CSS
   ========================================================================== */

.masterplan-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: stretch;
  margin-top: 3rem;
  position: relative;
}

.masterplan-map-wrapper {
  position: relative;
  background-color: #f1efeb;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.masterplan-svg {
  width: 100%;
  max-width: 550px;
  height: auto;
  display: block;
}

/* SVG Vector Styles */
.plot-path {
  fill: rgba(11, 21, 19, 0.05);
  stroke: rgba(26, 38, 36, 0.3);
  stroke-width: 1.5;
  transition: fill 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              stroke 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              stroke-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.plot-path.clubhouse-parcel {
  fill: rgba(197, 168, 128, 0.08);
  stroke: rgba(197, 168, 128, 0.5);
}

.plot-path:hover,
.plot-path.active {
  fill: rgba(197, 168, 128, 0.45);
  stroke: var(--color-primary);
  stroke-width: 2.5;
  cursor: pointer;
}

.plot-path.clubhouse-parcel:hover,
.plot-path.clubhouse-parcel.active {
  fill: rgba(197, 168, 128, 0.6);
  stroke: var(--color-primary);
}

.plot-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  fill: var(--color-text-dark);
  opacity: 0.5;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  transition: opacity 0.3s, fill 0.3s;
}

.plot-path:hover + .plot-text,
.plot-path.active + .plot-text {
  opacity: 1;
  font-weight: 700;
}

.road-spine {
  fill: rgba(26, 38, 36, 0.03);
  stroke: rgba(26, 38, 36, 0.08);
  stroke-width: 1;
}

/* Masterplan Info Panel (Desktop Right Side) */
.masterplan-info-panel {
  border-left: 1px solid var(--border-dark);
  padding-left: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: sticky;
  top: 120px;
  height: fit-content;
}

.masterplan-detail-card {
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.masterplan-detail-card.fade-out {
  opacity: 0;
}

.plot-large-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--color-text-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.plot-type-label {
  font-family: var(--font-sans);
  color: var(--color-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-bottom: 2rem;
}

.spec-list {
  list-style: none;
  margin-bottom: 3rem;
  border-top: 1px solid var(--border-dark);
}

.spec-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-value {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text-dark);
}

/* Mobile Swiper (Mobile Bottom Side) */
.masterplan-mobile-carousel {
  display: none;
  width: 100%;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 2rem 5% 1rem 5%;
  margin-top: 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.masterplan-mobile-carousel::-webkit-scrollbar {
  display: none;
}

.mobile-plot-card {
  flex: 0 0 280px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 2rem;
  scroll-snap-align: center;
  transition: var(--transition-medium);
}

.mobile-plot-card.active {
  border-color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 10px 25px rgba(11,21,19,0.05);
}

/* Masterplan Legend */
.masterplan-legend {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted-dark);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.estate {
  background-color: rgba(11, 21, 19, 0.05);
  border: 1px solid rgba(26, 38, 36, 0.3);
}

.legend-dot.retreat {
  background-color: rgba(11, 21, 19, 0.05);
  border: 1px solid rgba(26, 38, 36, 0.3);
}

.legend-dot.clubhouse {
  background-color: rgba(197, 168, 128, 0.15);
  border: 1px solid var(--color-primary);
}

@media (max-width: 900px) {
  .masterplan-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .masterplan-info-panel {
    display: none; /* Hidden in mobile layout, replaced by carousel swipe selection */
  }
  
  .masterplan-mobile-carousel {
    display: flex; /* Shown on mobile */
  }
  
  .masterplan-map-wrapper {
    padding: 1rem;
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .section {
    padding: 5rem 6%;
  }
  
  .grid-two-col, 
  .grid-two-col.reverse {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .image-frame {
    height: 400px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  header {
    padding: 1rem 5%;
  }
  
  .logo-img-header {
    width: 46px;
    height: 46px;
  }
  
  .logo-text-header {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
  }
  
  .nav-actions {
    gap: 1rem;
  }

  /* Hide all nav links + CTA on mobile — hamburger handles navigation */
  .nav-link,
  .nav-brochure,
  .nav-cta-desktop {
    display: none !important;
  }

  /* Show hamburger */
  .nav-hamburger {
    display: flex !important;
  }

  .gallery-slide {
    flex: 0 0 82vw;
    height: 260px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 5rem 5%;
  }
  
  /* Hide big cards on mobile — replaced by compact table */
  .amenities-grid {
    display: none;
  }

  /* Mobile amenities compact table */
  .amenities-mobile-table {
    display: block;
    margin-top: 2.5rem;
  }

  .amenities-mobile-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
  }

  .amenities-mobile-table thead tr {
    border-bottom: 1px solid rgba(197, 168, 128, 0.3);
  }

  .amenities-mobile-table th {
    text-align: left;
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    padding: 0 1rem 0.75rem;
    font-weight: 500;
  }

  .amenities-mobile-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(197, 168, 128, 0.07);
    font-size: 0.92rem;
    color: var(--color-text-light);
    font-weight: 300;
    letter-spacing: 0.3px;
  }

  .amenities-mobile-table td:first-child {
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    width: 3.2rem;
    font-family: var(--font-sans);
  }

  .amenities-mobile-table tbody tr:last-child td {
    border-bottom: none;
  }
  
  .image-frame {
    height: 280px;
  }

  /* Hero: stack all three CTA buttons full-width */
  .hero-btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    gap: 0.85rem;
  }

  .hero-btn-group .btn-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.9rem 1.5rem;
  }

  /* Gallery: near full-width slides on small screens */
  .gallery-slide {
    flex: 0 0 88vw;
    height: 240px;
  }

  /* Footer: single column on mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   HERO VIDEO
   ========================================================================== */

.hero-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   AMENITIES MOBILE TABLE (hidden on desktop, shown on mobile)
   ========================================================================== */

.amenities-mobile-table {
  display: none;
}

/* ==========================================================================
   HAMBURGER BUTTON
   ========================================================================== */

.nav-hamburger {
  display: none; /* shown only on mobile via media query */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(197, 168, 128, 0.4);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   MOBILE NAV OVERLAY
   ========================================================================== */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg-dark);
  z-index: 9998;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-inner {
  width: 100%;
  max-width: 480px;
  padding: 2rem 1.75rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
  overflow-y: auto;
}

.mobile-nav-close {
  align-self: flex-end;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--color-text-light);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mobile-nav-close:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(197, 168, 128, 0.4);
}

.mobile-nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-link {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(197, 168, 128, 0.1);
  opacity: 0.8;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover {
  opacity: 1;
  color: var(--color-primary);
  padding-left: 0.5rem;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-socials {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.mobile-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-muted-light);
  text-decoration: none;
  transition: color 0.25s ease;
}

.mobile-social-link:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   INVENTORY BADGE
   ========================================================================== */

.hero-inventory-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f0c060;
  background: rgba(240, 192, 96, 0.1);
  border: 1px solid rgba(240, 192, 96, 0.3);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  margin-bottom: 0.75rem;
}

.inventory-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0c060;
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* ==========================================================================
   FOOTER SOCIAL ROW
   ========================================================================== */

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(197, 168, 128, 0.1);
  flex-wrap: wrap;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-text-muted-light);
  text-decoration: none;
  transition: color 0.25s ease;
  letter-spacing: 0.5px;
}

.footer-social-link:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   BROCHURE NAV LINK
   ========================================================================== */

.nav-brochure {
  color: var(--color-primary) !important;
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 2px;
  padding: 0.35rem 0.9rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 1.5px;
  transition: var(--transition-fast);
}

.nav-brochure:hover {
  background: rgba(197, 168, 128, 0.12);
  border-color: var(--color-primary);
}

.btn-brochure-hero {
  border-color: rgba(197, 168, 128, 0.5) !important;
  color: var(--color-primary) !important;
}

.btn-brochure-hero:hover {
  background: rgba(197, 168, 128, 0.12) !important;
  border-color: var(--color-primary) !important;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.2rem 0.75rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.whatsapp-float-label {
  white-space: nowrap;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 1.2rem;
    right: 1.2rem;
    padding: 0.75rem;
    border-radius: 50%;
  }
  .whatsapp-float-label {
    display: none;
  }
}

/* ==========================================================================
   CONTACT US SECTION
   ========================================================================== */

.contact-section {
  background-color: var(--color-bg-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-medium);
  cursor: pointer;
}

.contact-card:hover {
  background: rgba(197, 168, 128, 0.06);
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card-whatsapp .contact-card-icon {
  color: #25d366;
}

.contact-card-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.contact-card-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.contact-card-cta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-text-muted-light);
  letter-spacing: 0.5px;
  margin-top: auto;
  transition: color 0.25s ease;
}

.contact-card:hover .contact-card-cta {
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .contact-card {
    padding: 2rem 1.5rem;
  }
}
