:root {
  --bg: #f5f1ea;
  --ink: #1c1a17;
  --muted: #6b6459;
  --line: rgba(28, 26, 23, 0.12);
  --gold: #b08d57;
  --dark: #201d19;
  --dark-2: #2b2620;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  margin: 0;
}

p { line-height: 1.7; color: var(--muted); }

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; color: #f5f1ea; }
.loader-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 24px;
}
.loader-bar {
  width: 220px;
  height: 1px;
  background: rgba(245, 241, 234, 0.25);
  margin: 0 auto 14px;
}
.loader-fill { height: 100%; width: 0%; background: var(--gold); transition: width 0.15s linear; }
.loader-pct { font-size: 0.75rem; letter-spacing: 0.1em; color: rgba(245, 241, 234, 0.6); }

/* ---------- Nav ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  mix-blend-mode: difference;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  color: #f5f1ea;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0; padding: 0;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #f5f1ea;
}
.nav-links a:hover { color: var(--gold); }
.enquire-btn {
  font-family: 'Inter', sans-serif;
  background: transparent;
  border: 1px solid rgba(245, 241, 234, 0.5);
  color: #f5f1ea;
  padding: 10px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}
.enquire-btn:hover { background: #f5f1ea; color: var(--ink); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 1px; background: #f5f1ea; }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 20px 40px 28px;
  background: var(--dark);
}
.nav-mobile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.nav-mobile a { color: #f5f1ea; font-size: 0.95rem; }
.nav-mobile.open { display: flex; }

/* ---------- Fly-through hero ---------- */
.fly-track { position: relative; height: 500vh; background: var(--dark); }
.fly-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
#flyCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.fly-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.fly-copy {
  position: absolute;
  left: 0; right: 0; bottom: 14%;
  padding: 0 60px;
  pointer-events: none;
}
.fly-label {
  position: absolute;
  left: 60px; right: 60px; bottom: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fly-label.active { opacity: 1; transform: translateY(0); }
.fly-label .fly-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.fly-label h1 {
  color: #f5f1ea;
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 10px;
}
.fly-label p {
  color: rgba(245, 241, 234, 0.7);
  font-size: 1rem;
  max-width: 460px;
}
.fly-progress {
  position: absolute;
  left: 60px; right: 60px; bottom: 60px;
  height: 1px;
  background: rgba(245, 241, 234, 0.2);
}
.fly-progress-fill { height: 100%; width: 0%; background: var(--gold); }
.scroll-cue {
  position: absolute;
  right: 60px; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  display: flex; align-items: center; gap: 10px;
  color: rgba(245, 241, 234, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue-line { width: 40px; height: 1px; background: rgba(245, 241, 234, 0.3); position: relative; }
.scroll-cue-dot { position: absolute; left: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: cueMove 1.8s ease-in-out infinite; }
@keyframes cueMove { 0%,100% { left: 0; } 50% { left: 35px; } }

.btn-skip-scroll {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(245, 241, 234, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 241, 234, 0.15);
  border-radius: 30px;
  color: rgba(245, 241, 234, 0.80);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
}
.btn-skip-scroll:hover {
  background: rgba(245, 241, 234, 0.1);
  border-color: var(--gold);
  color: #f5f1ea;
  transform: translate(-50%, -2px);
  box-shadow: 0 4px 15px rgba(176, 141, 87, 0.15);
}
.btn-skip-scroll svg {
  color: var(--gold);
  transition: transform 0.3s ease;
}
.btn-skip-scroll:hover svg {
  transform: translateY(2px);
}

/* ---------- Generic text section ---------- */
.section { padding: 140px 60px; max-width: 1240px; margin: 0 auto; }
.text-section h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.text-section p { max-width: 640px; font-size: 1.05rem; }

/* ---------- Spec ---------- */
.spec-section { text-align: center; }
.spec-section h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 60px; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.spec-item {
  display: flex; flex-direction: column; gap: 10px;
  padding: 30px 10px;
  border-top: 1px solid var(--line);
}
.spec-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--ink);
}
.spec-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Rooms gallery ---------- */
.rooms-section h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 50px; }
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.room-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
}
.room-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.room-item:hover img { transform: scale(1.06); }
.room-name {
  position: absolute; left: 16px; bottom: 14px;
  color: #f5f1ea;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.room-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}

/* ---------- Contact ---------- */
.contact-section { text-align: left; }
.contact-section h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.contact-lede { max-width: 520px; margin-bottom: 40px; }
.enquire-form { max-width: 560px; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.enquire-form input, .enquire-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 16px;
  resize: vertical;
}
.enquire-form input:focus, .enquire-form textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.enquire-submit {
  background: var(--ink);
  color: #f5f1ea;
  border: none;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s ease;
}
.enquire-submit:hover { background: var(--gold); }
.form-success {
  margin-top: 18px;
  color: var(--gold);
  font-size: 0.9rem;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease;
}
.form-success.show { opacity: 1; height: auto; }

/* ---------- Footer ---------- */
footer { background: var(--dark); padding: 60px; }
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer .nav-logo { color: #f5f1ea; font-size: 1rem; }
footer p { color: rgba(245, 241, 234, 0.5); font-size: 0.82rem; margin: 0; }

/* ---------- Reveal helpers ---------- */
.text-section .eyebrow, .text-section h2, .text-section p,
.spec-section .eyebrow, .spec-section h2,
.rooms-section .eyebrow, .rooms-section h2,
.products-section .eyebrow, .products-section h2,
.benefits-section .eyebrow, .benefits-section h2,
.process-section .eyebrow, .process-section h2,
.contact-section .eyebrow, .contact-section h2, .contact-lede {
  will-change: transform, opacity;
}

/* ---------- Products Section ---------- */
.products-section {
  background: var(--bg);
}
.products-section h2 {
  margin-bottom: 40px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(28, 26, 23, 0.03);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(28, 26, 23, 0.08);
}
.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eae6df;
}
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.product-card:hover .product-img-wrapper img {
  transform: scale(1.06);
}
.badge-official {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.badge-official svg {
  stroke: #fff; /* white check */
}
.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0c2b5c;
  margin-bottom: 2px;
}
.product-installment {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}
.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.product-location {
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  margin-top: auto;
}
.product-location svg {
  color: var(--gold);
  flex-shrink: 0;
}
.product-actions {
  display: flex;
  gap: 10px;
}
.btn-share {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.btn-share:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-whatsapp {
  flex-grow: 1;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #25d366;
  background: transparent;
  color: #128c7e;
  font-weight: 500;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp svg {
  flex-shrink: 0;
}
.products-action-wrapper {
  text-align: center;
  margin-top: 48px;
}
.btn-view-all {
  display: inline-block;
  padding: 12px 36px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  transition: all 0.25s ease;
}
.btn-view-all:hover {
  background: var(--ink);
  color: #f5f1ea;
}

/* ---------- Benefits Section ---------- */
.benefits-section {
  background: var(--dark);
  color: #f5f1ea;
  border-top: 1px solid rgba(245, 241, 234, 0.05);
}
.benefits-section h2 {
  color: #f5f1ea;
  margin-bottom: 48px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.benefit-card {
  padding: 32px;
  border: 1px solid rgba(245, 241, 234, 0.06);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.3s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--gold);
}
.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(176, 141, 87, 0.08);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.benefit-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 500;
  color: #f5f1ea;
}
.benefit-card p {
  color: rgba(245, 241, 234, 0.55);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Process Section ---------- */
.process-section {
  background: var(--bg);
}
.process-section h2 {
  margin-bottom: 48px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.step-card {
  position: relative;
  padding: 32px 20px;
  border-top: 1px solid var(--line);
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--gold);
  opacity: 0.25;
  margin-bottom: 16px;
  line-height: 1;
}
.step-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.step-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .enquire-btn { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 90px 28px; }
  .fly-copy, .fly-label, .fly-progress { left: 28px; right: 28px; padding: 0; }
  .scroll-cue { right: 28px; }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .benefits-grid, .process-steps { grid-template-columns: 1fr; gap: 20px; }
  .step-card { padding: 24px 0; }
  .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 560px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid, .products-grid { grid-template-columns: 1fr; }
}
