/* ============================================================
   SCHWEITZER MOUNTAIN LUXURY REAL ESTATE
   Component CSS — works alongside Tailwind v3 (Play CDN)
   Version: v7 (orphan cleanup — removed 16 unused class
                definitions, 5 unused @keyframes, and 2
                CV-leftover responsive overrides v6 missed)

   Tailwind covers utilities (colors, fonts, spacing, etc. — see
   the inline tailwind.config in header.php). This file holds
   design tokens, base styles, and component classes that are
   too composed to express purely as utility chains.
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Outfit:wght@100;200;300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- Design Tokens (still used by component classes & for any var() refs) --- */
:root {
  --midnight:       #0a0f1a;
  --deep-forest:    #0d1b16;
  --charcoal:       #1a1f2e;
  --slate:          #2a3142;
  --pewter:         #6b7280;
  --silver:         #9ca3af;
  --mist:           #d1d5db;
  --snow:           #f8f9fa;
  --ivory:          #faf9f6;
  --pure-white:     #ffffff;

  --gold:           #F6AB1A;
  --gold-light:     #F8C45C;
  --gold-dark:      #D08E0E;
  --alpine-blue:    #4a7c9b;
  --frost:          #b8d4e3;
  --ember:          #c45d3e;
  --pine:           #2d5a3d;
  --sage:           #7a9e7e;

  --font-display:   'Playfair Display', Georgia, serif;
  --font-heading:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'Outfit', -apple-system, sans-serif;

  --ease-luxury:  cubic-bezier(0.23, 1, 0.32, 1);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:    0.2s;
  --duration-normal:  0.4s;
  --duration-slow:    0.8s;
  --duration-glacial: 1.4s;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-subtle:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-medium:   0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.08);
  --shadow-heavy:    0 10px 25px rgba(0,0,0,0.08), 0 20px 48px rgba(0,0,0,0.12);
  --shadow-dramatic: 0 25px 50px rgba(0,0,0,0.15), 0 12px 24px rgba(0,0,0,0.1);
  --shadow-gold:     0 4px 20px rgba(246,171,26,0.3);
}

/* --- Base resets / globals --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Match the preloader so the browser's between-pages "blank canvas"
     paints midnight instead of white. With body's ivory bg covering this
     during normal viewing, this only ever shows during the brief navigation
     gap — making the gap invisible against the dark preloader on either side. */
  background-color: var(--midnight);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background-color: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
  /* Hidden during preload; main.js clears overflow once preloader finishes. */
  overflow-y: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease-smooth);
}

button {
  font-family: inherit;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* --- Typography sizing helpers (clamp-based, Tailwind can't express cleanly) --- */
.text-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.text-subtitle {
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 300;
  line-height: 1.4;
}
.text-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}
.text-body-lg {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
}
.text-caption {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* --- Containers (clamp padding, harder in pure utilities) --- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}
.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}
.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 3rem);
  padding-right: clamp(1rem, 3vw, 3rem);
}

/* --- Section padding (clamp-based) --- */
.section-padding {
  padding-top: clamp(4rem, 8vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 10rem);
}
.section-padding-sm {
  padding-top: clamp(2rem, 4vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 5rem);
}

/* --- Dark sections: bg + light text together --- */
.bg-midnight  { background-color: var(--midnight); color: var(--pure-white); }
.bg-charcoal  { background-color: var(--charcoal); color: var(--pure-white); }

/* --- Scroll progress bar (was inline) --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 10001;
  transition: width 0.1s linear;
}

/* --- Navigation --- */
.nav-main {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--duration-slow) var(--ease-luxury);
}
.nav-main.scrolled {
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  position: relative;
  padding: 0.25rem 0.5rem;
  transition: color var(--duration-fast) var(--ease-smooth);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--duration-normal) var(--ease-luxury);
}
.nav-links a:hover { color: var(--pure-white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.15em !important;
  transition: all var(--duration-normal) var(--ease-luxury) !important;
}
.nav-cta:hover { background: var(--gold); color: var(--midnight) !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--pure-white);
  transition: all var(--duration-normal) var(--ease-luxury);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Mobile menu overlay --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--midnight);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-luxury);
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--pure-white);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-luxury);
}
.mobile-menu.active a { opacity: 1; transform: translateY(0); }
.mobile-menu.active a:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active a:nth-child(7) { transition-delay: 0.40s; }

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img,
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10, 15, 26, 0.85) 0%,
    rgba(10, 15, 26, 0.4)  35%,
    rgba(10, 15, 26, 0.15) 60%,
    rgba(10, 15, 26, 0.25) 100%
  );
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 200px rgba(0,0,0,0.3);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.hero-tag      { display: inline-flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.hero-tag-line { width: 48px; height: 1px; background: var(--gold); }
.hero-tag-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--pure-white);
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; font-weight: 400; }
.hero-title.hero-title-md { font-size: clamp(2.5rem, 6vw, 5rem); }
.hero-title.hero-title-lg { font-size: clamp(2.5rem, 6vw, 5.5rem); }

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s infinite ease-in-out;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-luxury);
  position: relative;
  overflow: hidden;
}
.btn-primary { background: var(--gold); color: var(--midnight); }
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-primary.is-success {
  background: var(--pine);
  color: var(--pure-white);
}
.btn-outline {
  background: transparent;
  color: var(--pure-white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn-outline-dark:hover {
  background: var(--charcoal);
  color: var(--pure-white);
  transform: translateY(-2px);
}
.btn-text {
  background: transparent;
  padding: 0;
  color: var(--gold);
  letter-spacing: 0.1em;
  gap: 0.5rem;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: gap var(--duration-normal) var(--ease-luxury);
}
.btn-text:hover { gap: 1rem; }
.btn-text svg {
  width: 16px; height: 16px;
  transition: transform var(--duration-normal) var(--ease-luxury);
}
.btn-text:hover svg { transform: translateX(4px); }
.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* --- Section header components --- */
.section-header   { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-tag      { display: inline-flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.section-tag-line { width: 40px; height: 1px; background: var(--gold); }
.section-tag-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
.section-title em { font-style: italic; }
.section-desc {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--pewter);
  max-width: 600px;
  margin-top: 1.25rem;
}

/* --- Cards --- */
.card {
  position: relative;
  overflow: hidden;
  background: var(--pure-white);
  transition: all var(--duration-slow) var(--ease-luxury);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-dramatic); }
.card-img { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-glacial) var(--ease-luxury);
}
.card:hover .card-img img { transform: scale(1.08); }
.card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,26,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}
.card:hover .card-img-overlay { opacity: 1; }
.card-body { padding: 1.5rem; }
.card-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.card-text {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--pewter);
  line-height: 1.6;
}

/* --- Property cards --- */
.property-card { background: var(--pure-white); overflow: hidden; }
.property-card .card-img { aspect-ratio: 16/10; }
.property-card .card-body { padding: 1.25rem 1.5rem 1.5rem; }
.property-price {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}
.property-location { font-size: 0.875rem; color: var(--pewter); margin-bottom: 0.75rem; }
.property-details {
  display: flex;
  gap: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.property-detail {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--pewter);
}
.property-detail svg { width: 14px; height: 14px; opacity: 0.5; }

/* --- Filter bar buttons (was inline-styled) --- */
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pewter);
  border: 1px solid var(--mist);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
}
.filter-btn:hover { color: var(--gold); border-color: var(--gold); }
.filter-btn.active { color: var(--gold); border-color: var(--gold); }
.filter-btn.on-dark            { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.15); }
.filter-btn.on-dark:hover      { color: var(--gold); border-color: var(--gold); }
.filter-btn.on-dark.active     { color: var(--gold); border-color: var(--gold); }

/* --- Parallax sections --- */
.parallax-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-bg { position: absolute; inset: -10%; z-index: 0; }
.parallax-bg img { width: 100%; height: 100%; object-fit: cover; }
.parallax-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(10, 15, 26, 0.55); }
.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--pure-white);
  max-width: 800px;
  padding: 0 2rem;
}

/* --- Gallery items (grid layout itself uses Tailwind columns utilities in markup) --- */
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-glacial) var(--ease-luxury);
}
.gallery-item:hover img { transform: scale(1.06); }

/* --- Stats bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 50%;
  background: rgba(246,171,26,0.3);
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pewter);
}

/* --- Communities horizontal scroll --- */
.communities-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.communities-scroll::-webkit-scrollbar { display: none; }
.community-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.community-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-glacial) var(--ease-luxury);
}
.community-card:hover img { transform: scale(1.08); }
.community-card-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10,15,26,0.85) 0%,
    rgba(10,15,26,0.2) 40%,
    transparent 70%
  );
}
.community-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  z-index: 2;
  transform: translateY(10px);
  transition: transform var(--duration-normal) var(--ease-luxury);
}
.community-card:hover .community-card-content { transform: translateY(0); }
.community-card-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--pure-white);
  margin-bottom: 0.25rem;
}
.community-card-location {
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}
.community-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-luxury);
}
.community-card:hover .community-card-link { opacity: 1; transform: translateY(0); }

/* --- Lifestyle three-column --- */
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.lifestyle-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.lifestyle-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-glacial) var(--ease-luxury);
}
.lifestyle-item:hover img { transform: scale(1.08); }
.lifestyle-overlay {
  position: absolute; inset: 0;
  background: rgba(10,15,26,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-normal) var(--ease-smooth);
}
.lifestyle-item:hover .lifestyle-overlay { background: rgba(10,15,26,0.55); }
.lifestyle-label {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 500;
  color: var(--pure-white);
  position: relative;
}
.lifestyle-label::after {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--gold);
  margin: 0.75rem auto 0;
  transition: width var(--duration-normal) var(--ease-luxury);
}
.lifestyle-item:hover .lifestyle-label::after { width: 60px; }

/* --- Testimonials --- */
.testimonial-section {
  position: relative;
  background: var(--midnight);
  overflow: hidden;
  color: var(--pure-white);
}
.testimonial-bg-pattern {
  position: absolute; inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(0deg,  transparent, transparent 50px, rgba(246,171,26,1) 50px, rgba(246,171,26,1) 51px),
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(246,171,26,1) 50px, rgba(246,171,26,1) 51px);
}
.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-slide { transition: opacity 0.5s ease; }
.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}
.testimonial-quote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.testimonial-author {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* --- Footer --- */
.footer {
  background: var(--midnight);
  color: rgba(255,255,255,0.6);
  padding-top: 5rem;
  padding-bottom: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { max-width: 320px; }
.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  color: rgba(255,255,255,0.5);
}
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
}
.footer-links a {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast) var(--ease-smooth);
}
.footer-links a:hover { color: var(--pure-white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.35); transition: color var(--duration-fast) var(--ease-smooth); }
.footer-bottom a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  transition: all var(--duration-normal) var(--ease-luxury);
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-social a svg { width: 14px; height: 14px; }

/* --- Map / location --- */
.map-pin {
  width: 16px; height: 16px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow:
    0 0 0 8px  rgba(246,171,26,0.2),
    0 0 0 16px rgba(246,171,26,0.1);
  animation: float 3s ease-in-out infinite;
}

/* --- Feature split sections --- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.feature-split-img { position: relative; overflow: hidden; }
.feature-split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-glacial) var(--ease-luxury);
}
.feature-split:hover .feature-split-img img { transform: scale(1.04); }
.feature-split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem);
}
.feature-split.reverse        { direction: rtl; }
.feature-split.reverse > *    { direction: ltr; }

/* --- Scroll-reveal animation hooks --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all var(--duration-slow) var(--ease-luxury);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all var(--duration-slow) var(--ease-luxury);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all var(--duration-slow) var(--ease-luxury);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }

/* --- Decorative gold divider --- */
.gold-divider { width: 60px; height: 1px; background: var(--gold); margin: 2rem 0; }

/* --- Image hover-zoom container --- */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform var(--duration-glacial) var(--ease-luxury); }
.img-zoom:hover img { transform: scale(1.06); }

/* --- Form styles --- */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pewter);
  margin-bottom: 0.5rem;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--mist);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-smooth);
}
.form-input:focus,
.form-textarea:focus { border-bottom-color: var(--gold); }
.form-textarea { resize: vertical; min-height: 120px; }

/* --- Preloader ---
   State class is `.is-dismissed`, NOT `.hidden`. Tailwind ships a .hidden
   utility (display:none) that would win the cascade and make these panels
   vanish instantly instead of sliding. */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
}
.preloader-panel {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  background: var(--midnight);
  transform: translateY(0);
  transition: transform 1.0s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.preloader-panel-top    { top: 0; }
.preloader-panel-bottom { bottom: 0; }
.preloader.is-dismissed .preloader-panel-top    { transform: translateY(-100%); }
.preloader.is-dismissed .preloader-panel-bottom { transform: translateY(100%); }

/* Exit veil: a quick midnight wash before navigation. Rendered as a ::after
   pseudo-element so no markup changes are needed — sits above the panels
   and content (z-index: 2) and fades from transparent to opaque over 250ms.
   Just enough to dim the outgoing page and color-match the next page's
   preloader, no full curtain re-animation. */
.preloader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--midnight);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.25s ease;
}
.preloader.is-fading-out {
  pointer-events: auto;
}
.preloader.is-fading-out::after {
  opacity: 1;
}

.preloader-content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.35s ease;
}
.preloader.is-dismissed .preloader-content { opacity: 0; }

/* keep your existing .preloader-logo, .preloader-bar, @keyframes rules as-is */
.preloader-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--pure-white);
  margin-bottom: 2rem;
  opacity: 0;
  animation: preloaderFadeIn 0.8s ease 0.2s forwards;
}
.preloader-bar {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.preloader-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--gold);
  animation: preloaderProgress 1.8s ease 0.5s forwards;
}
@keyframes preloaderFadeIn  { to { opacity: 1; } }
@keyframes preloaderProgress { to { width: 100%; } }

/* --- Page Content Fade-Up (paired with preloader curtain split) ---
   Nav, sections, main, footer start invisible + nudged down. When main.js
   adds .loaded to <body> (at the same moment the preloader gets .hidden),
   they crossfade up into place. The two motions overlap with the curtain
   panels parting, so the dark→light handoff reads as a single coordinated
   reveal instead of a jump-cut. */
.nav-main,
body > section,
body > main,
body > footer {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.05s;
}
body.loaded .nav-main,
body.loaded > section,
body.loaded > main,
body.loaded > footer {
  opacity: 1;
  transform: translateY(0);
}
/* Respect reduced motion — skip the lift, keep the fade brief. */
@media (prefers-reduced-motion: reduce) {
  .nav-main,
  body > section,
  body > main,
  body > footer {
    transform: none;
    transition: opacity 0.25s ease;
  }
}

/* Custom cursor disabled */
.custom-cursor { display: none !important; }

/* --- Grain overlay --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* --- Responsive breakpoints --- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse { direction: ltr; }
  .feature-split-img { aspect-ratio: 16/9; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }

  .lifestyle-grid { grid-template-columns: 1fr; }
  .lifestyle-item { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .hero { min-height: 600px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .stats-bar { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .stat-item::after { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .community-card { flex: 0 0 300px; }
}

@media (max-width: 480px) {
  .community-card { flex: 0 0 260px; }
}

/* --- Utility animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
