/* ============================================================
   The Queenswoodz @ Bukit Jalil — Independent agent marketing site
   Design tokens: stone / wine / gold, Fraunces + Manrope
   ============================================================ */

:root {
  --stone: #f5ebde;
  --stone-2: #ead9c3;
  --stone-3: #dcc0a0;
  --espresso: #2e2520;
  --espresso-deep: #19140f;
  --gold: #b8865a;
  --gold-soft: #d9b98f;
  --ink: #2a1f1a;
  --white-warm: #fbf6f0;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 2px;
  --shadow-soft: 0 20px 60px -30px rgba(20, 16, 12, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; font-weight: 500; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 9vw, 108px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-heading {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  max-width: 18ch;
}
.section-lede {
  max-width: 62ch;
  font-size: 1.05rem;
  color: #4a443b;
}
.section-head { margin-bottom: clamp(32px, 5vw, 52px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--white-warm); }
.btn-gold:hover { background: #96663d; }
.btn-outline { background: transparent; border-color: currentColor; }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--espresso); color: var(--white-warm); }
.btn-dark:hover { background: var(--espresso-deep); }
.btn-whatsapp { background: #ffffff; color: var(--espresso); border-color: var(--stone-3); }
.btn-whatsapp:hover { background: var(--stone-2); }
.btn-block { width: 100%; justify-content: center; }
.btn svg { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(30, 24, 19, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.4);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white-warm);
  letter-spacing: 0.01em;
}
.brand small { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; margin-top: 2px; }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: var(--white-warm);
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

.site-nav {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--espresso-deep);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}
.site-nav.is-open { transform: translateX(0); }
.site-nav ul { display: flex; flex-direction: column; padding: 24px 20px; gap: 4px; }
.site-nav a:not(.btn) {
  display: block;
  padding: 14px 6px;
  color: var(--stone-2);
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-nav a:not(.btn):hover { color: var(--gold-soft); }
.site-nav li:has(> .btn) { padding: 6px 0; }
.nav-cta { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; inset: auto; background: none; transform: none; overflow: visible; }
  .site-nav ul { flex-direction: row; padding: 0; gap: 28px; align-items: center; }
  .site-nav a:not(.btn) { padding: 0; font-size: 0.88rem; border-bottom: none; color: var(--stone-2); }
  .site-nav a:not(.btn):hover { color: var(--gold-soft); }
  .nav-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  margin-top: -76px;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white-warm);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,20,16,0.5) 0%, rgba(26,20,16,0.62) 55%, rgba(16,12,9,0.96) 100%),
    url("images/queenswoodz-dropoff-sunset.jpg") center 30% / cover no-repeat,
    radial-gradient(120% 90% at 15% 10%, #4a3c30 0%, #2e2520 45%, #19140f 100%);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(212,180,131,0.09) 0px, rgba(212,180,131,0.09) 1px, transparent 1px, transparent 64px);
  mask-image: linear-gradient(180deg, transparent 0%, black 45%, black 100%);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212,180,131,0.16), transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(112px, 16vw, 156px) 0 clamp(40px, 6vw, 64px);
  width: 100%;
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  max-width: 16ch;
  margin-bottom: 18px;
}
.hero-sub {
  max-width: 56ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--stone-2);
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 22px 34px; border-top: 1px solid rgba(251,248,242,0.2); padding-top: 22px; }
.hero-facts div { font-size: 0.8rem; color: var(--stone-2); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-facts strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--white-warm); text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ---------- Signature divider: curve dissolving into vertical lines ---------- */
.signature-divider { display: block; width: 100%; height: auto; }
.signature-divider--light path,
.signature-divider--light line { stroke: var(--gold); }
.signature-divider--dark { background: var(--espresso); }
.signature-divider--dark path,
.signature-divider--dark line { stroke: var(--gold-soft); }

/* ---------- About ---------- */
.about { background: var(--stone); }
.about-grid { display: grid; gap: 40px; }
.about-copy p { font-size: 1.02rem; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.about-facts .fact {
  background: var(--white-warm);
  border: 1px solid var(--stone-3);
  padding: 16px 18px;
}
.about-facts .fact span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.about-facts .fact strong { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

/* ---------- Location ---------- */
.location { background: var(--stone-2); color: var(--ink); }
.location .section-lede { color: #4a443b; }
.landmark-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--stone-3);
  margin-top: 8px;
}
@media (min-width: 620px) {
  .landmark-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .landmark-grid { grid-template-columns: repeat(3, 1fr); }
}
.landmark-grid .landmark {
  background: var(--white-warm);
  padding: 26px 24px;
}
.landmark h3 { font-size: 1rem; color: var(--ink); margin-bottom: 8px; font-weight: 500; }
.landmark p { font-size: 0.9rem; color: #4a443b; margin: 0; }
.landmark svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 14px; }

/* ---------- Units ---------- */
.units { background: var(--stone-2); }
.unit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .unit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .unit-grid { grid-template-columns: repeat(3, 1fr); }
}
.unit-card {
  background: var(--white-warm);
  border: 1px solid var(--stone-3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.unit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.unit-card-art {
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
  background: var(--stone-3);
}
.unit-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.unit-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.unit-card-type { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.unit-card-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.unit-card-specs { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.86rem; color: #4a443b; margin-bottom: 12px; }
.unit-card-specs strong { color: var(--ink); }
.unit-card-note { font-size: 0.82rem; color: #635b4e; margin-bottom: 18px; flex: 1; }
.unit-card .btn { margin-top: auto; }

/* ---------- Virtual tour ---------- */
.tour { background: var(--stone); }
.tour-panel {
  display: grid;
  gap: 28px;
}
.tour-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--espresso-deep);
  overflow: hidden;
  border: 1px solid var(--stone-3);
}
.tour-embed iframe { width: 100%; height: 100%; border: 0; }
.tour-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background:
    linear-gradient(180deg, rgba(26,20,16,0.2), rgba(26,20,16,0.85)),
    radial-gradient(90% 90% at 80% 20%, #4a3c30, #19140f 70%);
  color: var(--white-warm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}
.tour-poster .play-ring {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.25s var(--ease);
}
.tour-poster:hover .play-ring { background: rgba(212,180,131,0.15); }
.tour-poster svg { width: 20px; height: 20px; color: var(--gold-soft); margin-left: 3px; }

/* ---------- Gallery ---------- */
.gallery { background: var(--stone-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone-3);
}
.gallery-item:nth-child(3n+1) { aspect-ratio: 3 / 4; }
.gallery-item picture { display: block; width: 100%; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* Placeholder art patterns (used until real photography is added) */
.ph-art { position: relative; width: 100%; height: 100%; }
.ph-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(100deg, rgba(180,137,79,0.16) 0 1px, transparent 1px 34px);
}
.ph-art::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 30% 20%, rgba(255,255,255,0.5), transparent 60%);
  mix-blend-mode: soft-light;
}
.ph-art-1 { background: linear-gradient(160deg, #dcc0a0, #b8865a); }
.ph-art-2 { background: linear-gradient(160deg, #ead9c3, #c98f95); }
.ph-art-3 { background: linear-gradient(160deg, #d9b98f, #6b5644); }
.ph-art-4 { background: linear-gradient(160deg, #f5ebde, #b8865a); }
.ph-art-5 { background: linear-gradient(160deg, #c9a47e, #2e2520); }

/* ---------- Lead form ---------- */
.enquire { background: var(--stone); color: var(--ink); }
.enquire .section-lede { color: #4a443b; }
.enquire-grid {
  display: grid;
  gap: 40px;
}
.enquire-side p { color: #4a443b; font-size: 0.95rem; }
.enquire-side .btn { margin-top: 8px; }
.lead-form {
  background: var(--white-warm);
  color: var(--ink);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--stone-3);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 7px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--stone-3);
  background: var(--stone);
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--gold); }
.form-row-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: #4a443b; }
.form-row-check input { width: auto; margin-top: 3px; }
.form-note { font-size: 0.78rem; color: #6b6152; margin-top: 14px; text-align: center; }
.form-note a { color: var(--gold); text-decoration: underline; }

@media (min-width: 880px) {
  .enquire-grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso-deep); color: var(--stone-2); padding: 56px 0 28px; font-size: 0.88rem; }
.footer-top { display: grid; gap: 32px; margin-bottom: 36px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-agent { color: var(--gold-soft); font-weight: 700; }
.footer-links h4, .footer-contact h4 { color: var(--white-warm); font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-links ul li, .footer-contact ul li { margin-bottom: 9px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-soft); }
.footer-disclaimer {
  border-top: 1px solid rgba(251,248,242,0.14);
  padding-top: 24px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #b9b2a2;
}
.disclaimer-grid { display: grid; gap: 24px; margin-bottom: 18px; }
.disclaimer-col p { margin: 0 0 10px; }
.disclaimer-col strong { color: #d6cfc0; }
.disclaimer-note { margin: 0; font-style: italic; }

@media (min-width: 760px) {
  .disclaimer-grid { grid-template-columns: 1.3fr 0.85fr 1fr; }
}
.footer-bottom {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(251,248,242,0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #8f8977;
}
.footer-bottom a:hover { color: var(--gold-soft); }

@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.3fr 0.8fr 1fr; }
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.45);
  animation: wa-pulse 2.8s infinite;
}
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 30px -10px rgba(0,0,0,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 12px 30px -10px rgba(0,0,0,0.45), 0 0 0 10px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Visually hidden (skip link, sr text) ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--espresso); color: var(--white-warm);
  padding: 10px 16px; z-index: 100; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }
