/* ============================================
   59 Roselawn Bay — Premium Experience CSS
   ============================================ */

/* ---------- Base ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background-color: #0a0a0a;
  color: #f5f0eb;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #c9a96e, #d4af6b);
  z-index: 99999;
  transform-origin: left;
  will-change: transform;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.preloader-line {
  width: 0;
  height: 1px;
  background: #c9a96e;
  margin-bottom: 24px;
}

.preloader-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #f5f0eb;
  opacity: 0;
  letter-spacing: 0.08em;
}

.preloader-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: rgba(245, 240, 235, 0.4);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  margin-top: 12px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #c9a96e; }

/* ---------- Selection ---------- */
::selection { background: rgba(201, 169, 110, 0.25); color: #f5f0eb; }

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.65) 45%,
    rgba(10, 10, 10, 0.35) 100%
  );
}

@media (max-width: 1023px) {
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.4) 0%,
      rgba(10, 10, 10, 0.75) 55%,
      rgba(10, 10, 10, 0.95) 100%
    );
  }
}

/* Hero text line reveal */
.hero-line { overflow: hidden; }
.hero-line-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

/* Hero hook */
.hero-hook {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  color: rgba(245, 240, 235, 0.7);
  line-height: 1.6;
  max-width: 480px;
}

/* ---------- Phone Mockup ---------- */
.phone-mockup {
  position: relative;
  width: 260px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  border: 2.5px solid #2a2a2a;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(201, 169, 110, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.6);
  background: #111;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  z-index: 2;
}

.phone-mockup .vertical-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .phone-mockup {
    width: 200px;
    border-radius: 24px;
    margin: 0 auto;
  }
}

/* ---------- Gold Tag ---------- */
.gold-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.35);
  color: #c9a96e;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- CTA Buttons ---------- */
.cta-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: #c9a96e;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  border: 2px solid #c9a96e;
  position: relative;
  overflow: hidden;
}

.cta-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.cta-gold:hover { background: #d4af6b; border-color: #d4af6b; transform: translateY(-1px); }
.cta-gold:hover::before { left: 100%; }

.cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: transparent;
  color: #c9a96e;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border: 1px solid rgba(201, 169, 110, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-outline:hover {
  background: rgba(201, 169, 110, 0.08);
  border-color: #c9a96e;
}

/* ---------- Marquee ---------- */
.marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 16px 0;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track span {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.15);
  padding: 0 32px;
}

.marquee-track span.dot { color: #c9a96e; padding: 0 8px; }

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Key Facts ---------- */
.facts-bar {
  background: #111;
  border-bottom: 1px solid #1a1a1a;
}

.fact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
}

.fact-item i { color: #c9a96e; }

/* ---------- Section Reveal ---------- */
.reveal-text { overflow: hidden; }
.reveal-text > * {
  transform: translateY(100%);
  opacity: 0;
  will-change: transform, opacity;
}

.img-reveal {
  clip-path: inset(100% 0% 0% 0%);
  will-change: clip-path;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

/* ---------- Section Divider ---------- */
.section-divider {
  width: 50px;
  height: 1px;
  background: #c9a96e;
  margin: 0 auto;
}

/* ---------- Feature Grid ---------- */
.feature-grid-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.4);
}

.feature-grid-item:last-child { border-bottom: none; }
.feature-grid-item i { flex-shrink: 0; color: #c9a96e; margin-top: 2px; }

/* ---------- Photo Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  transition: background 0.3s;
}

.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { background: rgba(10, 10, 10, 0.2); }

.gallery-label {
  grid-column: 1 / -1;
  padding: 28px 0 10px;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c9a96e;
  font-weight: 600;
}

.gallery-label:first-child { padding-top: 0; }

/* ---------- Video Section ---------- */
.video-section { background: #0d0d0d; }

.video-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(201, 169, 110, 0.04), 0 40px 100px rgba(0, 0, 0, 0.5);
}

.video-wrapper video { display: block; width: 100%; }

/* ---------- Spotlight ---------- */
.spotlight-section { position: relative; overflow: hidden; }

.spotlight-img-wrapper { overflow: hidden; }

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* ---------- Countdown ---------- */
.countdown-grid { display: flex; justify-content: center; gap: 20px; }

.countdown-unit { text-align: center; min-width: 72px; }

.countdown-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: #c9a96e;
  font-family: 'Playfair Display', serif;
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.4);
  margin-top: 6px;
}

/* ---------- GHL Embeds ---------- */
.ghl-embed {
  background: #131313;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  min-height: 400px;
  overflow: hidden;
}

.ghl-embed iframe { width: 100%; min-height: 500px; border: none; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sticky-cta.visible { transform: translateY(0); }

@media (min-width: 1024px) { .sticky-cta { display: none !important; } }

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #c9a96e, transparent);
  margin: 0 auto 8px;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-hint-text {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 240, 235, 0.35);
}

/* ---------- Agent Card ---------- */
.agent-card {
  background: #131313;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- Map ---------- */
.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e1e1e;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 300px;
  filter: grayscale(0.8) invert(0.92) contrast(0.9);
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid #141414; }

/* ---------- GLightbox Overrides ---------- */
.glightbox-clean .gslide-description { background: #0a0a0a !important; }
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev { background: rgba(10, 10, 10, 0.7) !important; }

/* ---------- Lazy Image Placeholder ---------- */
img[loading="lazy"] { background: #141414; }

/* ---------- Reel Play Button Pulse ---------- */
@keyframes reelPulse {
  0% { box-shadow: 0 0 0 0 rgba(201,169,110,0.5), 0 6px 30px rgba(0,0,0,0.5); transform: scale(1); }
  50% { box-shadow: 0 0 0 14px rgba(201,169,110,0), 0 6px 30px rgba(0,0,0,0.5); transform: scale(1.08); }
  100% { box-shadow: 0 0 0 0 rgba(201,169,110,0), 0 6px 30px rgba(0,0,0,0.5); transform: scale(1); }
}

/* ---------- Smooth Transitions ---------- */
html { scroll-behavior: auto; }
