/* ═══════════════════════════════════════════════════════════════
   SieuVyRealty — Under Construction
   ═══════════════════════════════════════════════════════════════ */

/* ---------- CSS Variables ---------- */
:root {
  --stone: #F2EDE7;
  --sand: #E6DFD5;
  --cream: #FAF7F4;
  --charcoal: #1D1B18;
  --charcoal-soft: #3A3632;
  --muted: #8C857D;
  --muted-light: #B5AFA7;
  --border: #DDD6CC;
  --white: #FFFFFF;
  --accent: #3D6B4F;
  --accent-bg: rgba(61, 107, 79, 0.06);
  --blue: #5B7FA4;
}

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

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'General Sans', 'Messina Sans', -apple-system, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(61, 107, 79, 0.15);
  color: var(--charcoal);
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════ */
/* PAGE LOADER                                   */
/* ═══════════════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #C0392B;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  flex-direction: column;
  gap: 24px;
}

.loader-logo {
  font-family: 'Satoshi', 'General Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(16px);
}

.loader-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  opacity: 0;
}

.loader-line {
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
}

.loader-line-fill {
  width: 0;
  height: 100%;
  background: #fff;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════ */
/* NAV                                           */
/* ═══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 8px 28px;
  z-index: 100;
  border-radius: 100px;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(29, 27, 24, 0.15);
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 400px;
  opacity: 0;
}

nav.visible {
  opacity: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 16px;
  flex-shrink: 0;
  font-family: 'Satoshi', 'General Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-light { color: #fff; }
.logo-dark  { color: var(--charcoal); display: none; }

.nav-cta {
  padding: 11px 24px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: 'General Sans', sans-serif;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: -0.1px;
  background: #fff;
  color: var(--charcoal);
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover { opacity: 0.88; }
.cta-full { display: inline; }
.cta-short { display: none; }

/* ═══════════════════════════════════════════ */
/* MAGNETIC BUTTONS                              */
/* ═══════════════════════════════════════════ */
.mag-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border: none;
  font-family: 'General Sans', sans-serif;
  border-radius: 100px;
  z-index: 1;
  transition: color 0.35s;
}

.mag-btn .btn-fill {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  transform: scaleX(0);
  transform-origin: left;
  z-index: -1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mag-btn:hover .btn-fill {
  transform: scaleX(1);
}

.mag-btn .btn-text {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.btn-hero-main {
  background: #fff;
  color: var(--charcoal);
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.btn-hero-main .btn-fill {
  background: var(--stone);
}

/* ═══════════════════════════════════════════ */
/* HERO                                          */
/* ═══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

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

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
  pointer-events: none;
}

/* Mobile: show poster image, hide video */
.hero-img-fallback {
  display: none;
}

@media (max-width: 768px) {
  .hero-video { display: none; }
  .hero-img-fallback { display: block; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 27, 24, 0.82) 0%, rgba(29, 27, 24, 0.35) 40%, rgba(29, 27, 24, 0.1) 70%, rgba(29, 27, 24, 0.02) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 0 56px 80px;
  max-width: 800px;
}

.hero h1, .hero-h1 {
  font-family: 'Satoshi', 'General Sans', sans-serif;
  font-size: clamp(44px, 5.8vw, 72px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -2.5px;
  color: #fff;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 6px;
}

.hero-word span {
  display: inline-block;
  will-change: transform;
  transform: translateY(110%);
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(10px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(10px);
}

/* Scattered gallery */
.hero-scatter {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(29, 27, 24, 0.1);
  will-change: transform;
  opacity: 0;
}

.hero-scatter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Spinning text */
.hero-spinner {
  position: absolute;
  bottom: 40px;
  right: 56px;
  z-index: 3;
  width: 120px;
  height: 120px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.hero-spinner:hover { opacity: 1; }
.hero-spinner:hover .spin-group { animation-duration: 6s; }

.spin-group {
  transform-origin: 50px 50px;
  animation: heroSpin 12s linear infinite;
}

@keyframes heroSpin {
  to { transform: rotate(360deg); }
}

.spin-text {
  font-size: 5.2px;
  fill: rgba(255, 255, 255, 0.85);
  font-family: 'General Sans', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3.5px;
}

.hero-spinner-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  pointer-events: none;
}

/* ═══════════════════════════════════════════ */
/* COMING SOON                                   */
/* ═══════════════════════════════════════════ */
.coming-soon {
  padding: 64px 24px;
  text-align: center;
  background: var(--cream);
  position: relative;
  z-index: 5;
}

.coming-soon-inner {
  max-width: 480px;
  margin: 0 auto;
}

.cs-divider {
  width: 40px;
  height: 3px;
  background: var(--charcoal);
  border-radius: 2px;
  margin: 0 auto 28px;
}

.cs-title {
  font-family: 'Satoshi', 'General Sans', sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.cs-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

.cs-contact-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cs-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  transition: all 0.3s;
}

.cs-contact-link:hover {
  border-color: var(--muted-light);
  box-shadow: 0 2px 12px rgba(29, 27, 24, 0.04);
}

/* ═══════════════════════════════════════════ */
/* FOOTER                                        */
/* ═══════════════════════════════════════════ */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 56px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
  gap: 16px;
}

/* ═══════════════════════════════════════════ */
/* REDUCED MOTION                                */
/* ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .spin-group { animation: none; }
  .hero-word span { transform: none !important; }
}

/* ═══════════════════════════════════════════ */
/* RESPONSIVE                                   */
/* ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { max-width: 92vw; }
  .hero-content { padding: 0 32px 60px; }
  .hero-spinner { bottom: 24px; right: 24px; width: 90px; height: 90px; }
  .hero-scatter { display: none; }
  nav { max-width: 90vw; padding: 6px 6px 6px 18px; }
  .nav-cta { padding: 9px 18px; font-size: 12px; }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); letter-spacing: -1.5px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(28px, 9vw, 40px); }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-content { padding: 0 20px 48px; }
  .hero-spinner { width: 72px; height: 72px; bottom: 16px; right: 16px; }
  .cta-short { display: inline; }
  .cta-full { display: none; }
  footer { padding: 24px; flex-direction: column; gap: 16px; text-align: center; }
  .cs-contact-row { flex-direction: column; align-items: center; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .hero-content { padding: 0 20px 32px; }
  .coming-soon { padding: 48px 20px; }
  .cs-title { font-size: 20px; }
}
