/* ============================================================
   Emily Tan · EH Dream Property — premium minimalist landing
   ============================================================ */

:root{
  --ink:      #1c1815;
  --ink-soft: #3b342d;
  --stone:    #857b6c;
  --paper:    #f5efe4;
  --paper-2:  #faf6ee;
  --card:     #ffffff;
  --gold:     #b4894a;
  --gold-lt:  #d8b778;
  --gold-dk:  #97702f;
  --line:     rgba(28,24,21,.12);
  --line-lt:  rgba(28,24,21,.07);
  --wa:       #25a35a;
  --wa-dk:    #1c8548;

  --serif: "Fraunces", "Noto Serif SC", Georgia, serif;
  --sans:  "Inter", "Noto Sans SC", system-ui, sans-serif;

  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

/* language-dependent font tuning */
html[lang="zh"] .section-title,
html[lang="zh"] .hero__tag,
html[lang="zh"] .finalcta__title{ letter-spacing:.01em; }

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  line-height:1.65;
  font-weight:400;
  overflow-x:hidden;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ margin:0; font-weight:400; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--pad); }

/* ---------- shared type ---------- */
.eyebrow{
  font-size:.72rem; font-weight:600; letter-spacing:.22em; text-transform:uppercase;
  color:var(--stone); margin:0 0 1rem;
  display:inline-flex; align-items:center; gap:.7em;
}
.eyebrow::before{
  content:""; width:26px; height:1px; background:var(--gold); display:inline-block;
}
.eyebrow--gold{ color:var(--gold-dk); }
.eyebrow--gold::before{ background:var(--gold); }

.section-title{
  font-family:var(--serif);
  font-size:clamp(1.9rem, 4.2vw, 3rem);
  line-height:1.1;
  font-weight:400;
  letter-spacing:-.01em;
}
.lead{ color:var(--ink-soft); font-size:clamp(1rem,1.6vw,1.15rem); font-weight:300; }
html[lang="zh"] .lead{ font-weight:400; }

.section-head{ max-width:640px; margin-bottom:clamp(2.5rem,5vw,4rem); }
.section-head .lead{ margin:.8rem 0 0; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.6em; justify-content:center;
  font-family:var(--sans); font-size:1rem; font-weight:500; letter-spacing:.01em;
  padding:.95em 1.7em; border-radius:100px; cursor:pointer;
  border:1px solid transparent; transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn--wa{ background:var(--wa); color:#fff; box-shadow:0 10px 26px -12px rgba(37,163,90,.7); }
.btn--wa:hover{ background:var(--wa-dk); transform:translateY(-2px); box-shadow:0 16px 32px -12px rgba(37,163,90,.8); }
.btn--ghost{ border-color:var(--ink); color:var(--ink); background:transparent; }
.btn--ghost:hover{ background:var(--ink); color:var(--paper-2); transform:translateY(-2px); }
.btn--fb{ background:#1877F2; color:#fff; box-shadow:0 10px 26px -12px rgba(24,119,242,.65); }
.btn--fb:hover{ background:#1461c9; transform:translateY(-2px); box-shadow:0 16px 32px -12px rgba(24,119,242,.75); }
.btn--big{ font-size:1.12rem; padding:1.15em 2.4em; }
.wa-ico{ width:1.25em; height:1.25em; fill:currentColor; flex:none; }

.cta-row{ display:flex; flex-wrap:wrap; gap:.9rem; margin-top:2rem; }
.cta-row--center{ justify-content:center; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(245,239,228,.82); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line-lt);
  transition:box-shadow .3s ease;
}
.topbar.is-stuck{ box-shadow:0 6px 24px -18px rgba(28,24,21,.55); }
.topbar__inner{ display:flex; align-items:center; justify-content:space-between; height:70px; }

.brand{ display:flex; align-items:center; gap:.7rem; }
.brand__mark{
  font-family:var(--serif); font-weight:600; font-size:1.15rem; letter-spacing:.02em;
  color:var(--ink); border:1.5px solid var(--gold);
  width:42px; height:42px; border-radius:50%;
  display:grid; place-items:center; flex:none;
}
.brand__name{ display:flex; flex-direction:column; line-height:1.15; }
.brand__line1{ font-size:.68rem; letter-spacing:.18em; text-transform:uppercase; color:var(--stone); }
.brand__line2{ font-family:var(--serif); font-size:1.05rem; color:var(--ink); }

.langswitch{ display:flex; gap:.15rem; background:rgba(28,24,21,.05); padding:.25rem; border-radius:100px; }
.lang{
  border:none; background:transparent; cursor:pointer;
  font-family:var(--sans); font-size:.82rem; font-weight:600; color:var(--stone);
  padding:.4em .85em; border-radius:100px; transition:all .2s ease; letter-spacing:.02em;
}
.lang:hover{ color:var(--ink); }
.lang.is-active{ background:var(--ink); color:var(--paper-2); }

/* ============================================================
   HERO
   ============================================================ */
.hero{ position:relative; padding:clamp(3rem,7vw,6rem) 0 clamp(3.5rem,7vw,6.5rem); overflow:hidden; }
.hero::after{
  content:""; position:absolute; top:-20%; right:-10%; width:60vw; height:60vw; max-width:760px; max-height:760px;
  background:radial-gradient(circle, rgba(216,183,120,.22), transparent 62%);
  pointer-events:none; z-index:0;
}
.hero__inner{ position:relative; z-index:1; display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(2rem,5vw,5rem); align-items:center; }
.hero__title{ display:flex; flex-direction:column; gap:.4rem; margin:1.4rem 0 0; }
.hero__name{ font-family:var(--serif); font-size:clamp(2.8rem,6.5vw,4.7rem); line-height:.98; letter-spacing:-.02em; }
.hero__tag{ font-family:var(--serif); font-style:italic; font-weight:300; font-size:clamp(1.15rem,2.3vw,1.6rem); color:var(--gold-dk); }
html[lang="zh"] .hero__tag{ font-style:normal; }
.hero__sub{ margin:1.6rem 0 0; max-width:34ch; }

.hero__portrait{ position:relative; justify-self:center; }
.portrait-frame{
  position:relative; width:min(400px,80vw); aspect-ratio:5/5.4;
  border-radius:230px 230px 22px 22px; overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 40px 80px -50px rgba(28,24,21,.6);
}
.portrait-frame::after{
  content:""; position:absolute; inset:10px; border-radius:220px 220px 14px 14px;
  border:1px solid rgba(216,183,120,.6); pointer-events:none;
}
.portrait-frame img{ width:100%; height:100%; object-fit:cover; object-position:top center; }
.portrait-badge{
  position:absolute; bottom:18px; left:50%; transform:translateX(-50%);
  background:var(--ink); color:var(--paper-2);
  font-size:.78rem; letter-spacing:.08em; font-weight:500;
  padding:.6em 1.3em; border-radius:100px; white-space:nowrap;
  box-shadow:0 12px 30px -14px rgba(28,24,21,.8);
}

/* ============================================================
   EXCELLENCE
   ============================================================ */
.excellence{ background:var(--ink); color:var(--paper); padding:clamp(3.5rem,7vw,6rem) 0; }
.excellence .eyebrow{ color:var(--gold-lt); }
.excellence .eyebrow::before{ background:var(--gold-lt); }
.excellence .lead{ color:rgba(245,239,228,.75); }
.excellence__head{ display:flex; gap:clamp(1.4rem,3vw,2.6rem); align-items:center; max-width:820px; }
.big-figure{
  font-family:var(--serif); font-weight:300; font-size:clamp(5rem,14vw,9rem); line-height:.8;
  color:transparent; -webkit-text-stroke:1.4px var(--gold-lt); flex:none;
}
.excellence .section-title{ color:var(--paper); }
.trust-points{
  list-style:none; margin:clamp(2.5rem,5vw,3.5rem) 0 0; padding:0;
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:rgba(245,239,228,.14); border:1px solid rgba(245,239,228,.14); border-radius:14px; overflow:hidden;
}
.trust-points li{ background:var(--ink); padding:clamp(1.5rem,3vw,2.2rem); }
.trust-points h3{ font-family:var(--serif); font-size:1.3rem; color:var(--gold-lt); margin-bottom:.5rem; }
.trust-points p{ margin:0; color:rgba(245,239,228,.72); font-size:.95rem; font-weight:300; }
html[lang="zh"] .trust-points p{ font-weight:400; }

/* ============================================================
   AWARDS
   ============================================================ */
.awards{ padding:clamp(3.5rem,7vw,6rem) 0 clamp(1rem,2vw,2rem); }
.awards__grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.awards__item{
  margin:0; border-radius:16px; overflow:hidden; cursor:zoom-in;
  background:var(--paper-2); border:1px solid var(--line-lt);
  box-shadow:0 24px 50px -44px rgba(28,24,21,.5);
}
.awards__item img{ width:100%; height:100%; object-fit:cover; aspect-ratio:4/3; transition:transform .6s ease; }
.awards__item:hover img{ transform:scale(1.04); }
.awards__item--wide{ grid-column:1 / -1; }
.awards__item--wide img{ aspect-ratio:16/6; }
@media (max-width:640px){
  .awards__grid{ grid-template-columns:1fr; }
  .awards__item img,
  .awards__item--wide img{ aspect-ratio:4/3; }
}

/* ============================================================
   NEW LAUNCH
   ============================================================ */
.launch{ padding:clamp(3.5rem,7vw,6.5rem) 0; }
.properties{ display:flex; flex-direction:column; gap:clamp(3rem,6vw,5.5rem); }

.property{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(1.5rem,4vw,3.5rem); align-items:center; }
.property:nth-child(even) .property__media{ order:2; }
.property__body{ max-width:44ch; }
.property__loc{
  font-size:.74rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--gold-dk);
  margin:0 0 .8rem; display:flex; align-items:center; gap:.6em;
}
.property__loc::before{ content:""; width:18px; height:1px; background:var(--gold); }
.property__title{ font-family:var(--serif); font-size:clamp(1.6rem,3vw,2.3rem); line-height:1.08; letter-spacing:-.01em; }
.property__hook{ color:var(--ink-soft); font-weight:300; margin:.9rem 0 1.7rem; font-size:1.05rem; }
html[lang="zh"] .property__hook{ font-weight:400; }

/* carousel */
.carousel{ position:relative; }
.carousel__track{
  display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory;
  scroll-behavior:smooth; border-radius:16px;
  scrollbar-width:none; -ms-overflow-style:none;
}
.carousel__track::-webkit-scrollbar{ display:none; }
.carousel__slide{
  flex:0 0 100%; scroll-snap-align:center; aspect-ratio:16/11;
  border-radius:16px; overflow:hidden; background:var(--paper-2); cursor:zoom-in;
}
.carousel__slide img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.carousel__slide:hover img{ transform:scale(1.04); }

.carousel__btn{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:44px; height:44px; border-radius:50%; border:none; cursor:pointer;
  background:rgba(255,255,255,.9); color:var(--ink); font-size:1.4rem; line-height:1;
  display:grid; place-items:center; box-shadow:0 8px 22px -10px rgba(28,24,21,.55);
  transition:background .2s ease, transform .2s ease;
}
.carousel__btn:hover{ background:#fff; }
.carousel__prev{ left:12px; }
.carousel__next{ right:12px; }
.carousel__dots{ display:flex; gap:6px; justify-content:center; margin-top:14px; }
.carousel__dot{ width:7px; height:7px; border-radius:50%; background:var(--line); border:none; padding:0; cursor:pointer; transition:all .25s ease; }
.carousel__dot.is-active{ background:var(--gold); width:22px; border-radius:100px; }

/* ============================================================
   SUBSALE
   ============================================================ */
.subsale{ background:var(--paper-2); border-block:1px solid var(--line-lt); padding:clamp(3.5rem,7vw,5.5rem) 0; }
.subsale__inner{ max-width:640px; margin-inline:auto; text-align:center; }
.subsale .eyebrow{ justify-content:center; }
.subsale .lead{ margin:1rem auto 2rem; }
.subsale .btn{ }

/* ============================================================
   OTHER SERVICES
   ============================================================ */
.services{ padding:clamp(3rem,6vw,5rem) 0; }
.services__inner{
  max-width:840px; margin-inline:auto; text-align:center;
  background:var(--card); border:1px solid var(--line-lt); border-radius:24px;
  padding:clamp(2rem,5vw,3.6rem);
  box-shadow:0 50px 90px -60px rgba(28,24,21,.55);
}
.services .eyebrow{ justify-content:center; }
.services .lead{ margin:1rem auto 1.8rem; max-width:60ch; }
.services__tags{ list-style:none; display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center; padding:0; margin:0 0 2.2rem; }
.services__tags li{
  font-size:.85rem; font-weight:500; letter-spacing:.03em; color:var(--ink-soft);
  background:var(--paper); border:1px solid var(--line); border-radius:100px; padding:.55em 1.15em;
}
.services__stats{ display:flex; justify-content:center; gap:clamp(1.6rem,6vw,4rem); flex-wrap:wrap; margin-bottom:2.4rem; }
.services__stats > div{ display:flex; flex-direction:column; align-items:center; }
.stat-num{ font-family:var(--serif); font-weight:400; font-size:clamp(2rem,5vw,2.9rem); color:var(--gold-dk); line-height:1; }
.services__stats span:last-child{ font-size:.78rem; letter-spacing:.08em; color:var(--stone); margin-top:.5rem; text-transform:uppercase; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi{ padding:clamp(3.5rem,7vw,6rem) 0; overflow:hidden; }
.testi__track{
  --testi-w: clamp(240px,72vw,320px);
  display:flex; gap:18px; overflow-x:auto; scroll-snap-type:x proximity;
  padding:0 calc((100% - var(--testi-w)) / 2) 8px; margin-top:.5rem;
  scrollbar-width:none;
}
.testi__track::-webkit-scrollbar{ display:none; }
.testi__card{
  flex:0 0 var(--testi-w); scroll-snap-align:center;
  border-radius:16px; overflow:hidden; background:var(--card);
  border:1px solid var(--line-lt); box-shadow:0 24px 50px -40px rgba(28,24,21,.5);
}
.testi__card img{ width:100%; height:auto; display:block; object-fit:contain; object-position:center; cursor:zoom-in; }
.testi__cap{ padding:1rem 1.2rem; display:flex; align-items:center; gap:.6em; font-size:.9rem; color:var(--ink-soft); }
.testi__cap svg{ width:1.05em; height:1.05em; fill:var(--gold); flex:none; }
.testi__note{ text-align:center; color:var(--stone); font-size:.82rem; margin-top:1.6rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about{ background:var(--ink); color:var(--paper); padding:clamp(3.5rem,7vw,6rem) 0; }
.about__inner{ display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(2rem,5vw,4.5rem); align-items:center; }
.about__img{ position:relative; }
.about__img img{
  width:100%; border-radius:16px 16px 120px 16px; object-fit:cover;
  border:1px solid rgba(216,183,120,.4);
}
.about .eyebrow{ color:var(--gold-lt); }
.about .eyebrow::before{ background:var(--gold-lt); }
.about .section-title{ color:var(--paper); }
.about__body{ color:rgba(245,239,228,.82); font-weight:300; margin:1.4rem 0 2rem; font-size:1.08rem; line-height:1.8; }
html[lang="zh"] .about__body{ font-weight:400; }
.about__sign{ display:flex; flex-direction:column; border-top:1px solid rgba(245,239,228,.18); padding-top:1.3rem; }
.about__signname{ font-family:var(--serif); font-size:1.7rem; color:var(--gold-lt); }
.about__signrole{ font-size:.82rem; letter-spacing:.1em; text-transform:uppercase; color:rgba(245,239,228,.6); margin-top:.2rem; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.finalcta{
  padding:clamp(4rem,9vw,7rem) 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(216,183,120,.28), transparent 55%),
    var(--paper);
  text-align:center;
}
.finalcta__inner{ max-width:720px; margin-inline:auto; }
.finalcta .eyebrow{ justify-content:center; }
.finalcta__title{ font-family:var(--serif); font-size:clamp(2.2rem,5.5vw,4rem); line-height:1.05; letter-spacing:-.015em; }
.finalcta__sub{ color:var(--ink-soft); font-size:1.15rem; font-weight:300; margin:1rem auto 2.4rem; }
html[lang="zh"] .finalcta__sub{ font-weight:400; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ background:var(--ink); color:rgba(245,239,228,.75); padding:clamp(2.5rem,5vw,3.5rem) 0; }
.footer__inner{ display:flex; flex-wrap:wrap; gap:1.5rem 2.5rem; align-items:center; justify-content:space-between; }
.footer__brand{ display:flex; align-items:center; gap:.9rem; }
.footer .brand__mark{ color:var(--gold-lt); border-color:var(--gold-lt); }
.footer__name{ font-family:var(--serif); font-size:1.25rem; color:var(--paper); margin:0; }
.footer__role{ font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; color:var(--stone); margin:.15rem 0 0; }
.footer__contact{ display:flex; flex-direction:column; gap:.4rem; font-size:.95rem; }
.footer__contact > a{ color:var(--gold-lt); font-weight:500; }
.footer__fb{ display:inline-flex; align-items:center; gap:.5em; width:fit-content; }
.footer__fb svg{ width:1.15em; height:1.15em; fill:currentColor; }
.footer__fb:hover{ color:var(--paper); }
.footer__copy{ font-size:.8rem; color:var(--stone); margin:0; width:100%; border-top:1px solid rgba(245,239,228,.12); padding-top:1.4rem; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.fab{
  position:fixed; right:clamp(16px,4vw,28px); bottom:clamp(16px,4vw,28px); z-index:60;
  width:58px; height:58px; border-radius:50%; background:var(--wa);
  display:grid; place-items:center;
  box-shadow:0 14px 34px -10px rgba(37,163,90,.75);
  transition:transform .25s ease;
  animation:fab-in .5s ease both;
}
.fab:hover{ transform:scale(1.08); }
.fab svg{ width:32px; height:32px; fill:#fff; }
@keyframes fab-in{ from{ transform:scale(0); } to{ transform:scale(1); } }
.fab::after{
  content:""; position:absolute; inset:0; border-radius:50%;
  box-shadow:0 0 0 0 rgba(37,163,90,.5); animation:pulse 2.6s infinite;
}
@keyframes pulse{ 70%{ box-shadow:0 0 0 16px rgba(37,163,90,0); } 100%{ box-shadow:0 0 0 0 rgba(37,163,90,0); } }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox{
  position:fixed; inset:0; z-index:100; background:rgba(20,17,14,.94);
  display:none; align-items:center; justify-content:center;
  opacity:0; transition:opacity .25s ease;
}
.lightbox.is-open{ display:flex; opacity:1; }
.lb__img{ max-width:92vw; max-height:86vh; border-radius:8px; box-shadow:0 30px 80px -20px rgba(0,0,0,.8); }
.lb__close,.lb__nav{
  position:absolute; background:rgba(255,255,255,.12); border:none; color:#fff; cursor:pointer;
  border-radius:50%; display:grid; place-items:center; transition:background .2s ease;
}
.lb__close:hover,.lb__nav:hover{ background:rgba(255,255,255,.28); }
.lb__close{ top:22px; right:22px; width:46px; height:46px; font-size:1.8rem; line-height:1; }
.lb__nav{ top:50%; transform:translateY(-50%); width:54px; height:54px; font-size:2rem; line-height:1; }
.lb__prev{ left:2vw; }
.lb__next{ right:2vw; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-in{ opacity:1; transform:none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:860px){
  .hero__inner{ grid-template-columns:1fr; text-align:center; }
  .hero__inner .eyebrow{ justify-content:center; }
  .hero__sub{ margin-inline:auto; }
  .cta-row{ justify-content:center; }
  .hero__portrait{ order:-1; }
  .hero__title{ align-items:center; }

  .excellence__head{ flex-direction:column; text-align:center; align-items:center; }
  .trust-points{ grid-template-columns:1fr; }

  .property{ grid-template-columns:1fr; }
  .property:nth-child(even) .property__media{ order:0; }
  .property__body{ max-width:none; }
  .property__loc{ justify-content:flex-start; }

  .about__inner{ grid-template-columns:1fr; }
  .about__img{ max-width:360px; margin-inline:auto; }

  .footer__inner{ flex-direction:column; align-items:flex-start; }
}

@media (max-width:520px){
  .btn{ width:100%; }
  .cta-row{ flex-direction:column; }
  .carousel__slide{ aspect-ratio:4/3; }
}

/* ---------- accessibility ---------- */
:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; border-radius:2px; }
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  .reveal{ opacity:1; transform:none; }
}
