/* =========================================================
   Palm Resort · C1 Tower — Landing Page
   Design tokens: deep teal (from the actual sofa upholstery
   in the unit photos) + brass/gold (from the tap & handle
   fittings) + warm travertine ivory (from the floor tiles).
   ========================================================= */

:root{
  --ivory:        #F3EFE3;
  --ivory-deep:   #EAE3D2;
  --paper:        #FDFCF8;
  --teal:         #0E4B44;
  --teal-deep:    #082F2A;
  --teal-soft:    #E4EDE9;
  --gold:         #B48A4D;
  --gold-light:   #D9BE8C;
  --espresso:     #241C15;
  --ink:          #211C17;
  --ink-soft:     #5B554B;
  --line:         #D9D0BB;

  --font-display: 'Fraunces', serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius: 2px;
  --shadow-card: 0 20px 50px -25px rgba(20, 30, 25, 0.35);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection{ background: var(--gold-light); color: var(--teal-deep); }

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

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

.container-narrow{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--espresso);
  margin: 0;
  letter-spacing: -0.01em;
}

em{ font-style: italic; color: var(--gold); }

.eyebrow{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before{
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section{ padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-title{
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.15;
  max-width: 720px;
}
.section-lede{
  color: var(--ink-soft);
  max-width: 640px;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-top: 1.1rem;
}
.section-head{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* ---------- Buttons ---------- */
.btn-gold, .btn-ghost, .btn-teal{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold{ background: var(--gold); color: var(--paper); }
.btn-gold:hover{ background: var(--teal); color: var(--paper); transform: translateY(-2px); }
.btn-ghost{ background: transparent; color: var(--paper); border-color: rgba(253,252,248,0.45); }
.btn-ghost:hover{ background: rgba(253,252,248,0.12); border-color: var(--paper); color: var(--paper); }
.btn-teal{ background: var(--teal); color: var(--paper); }
.btn-teal:hover{ background: var(--gold); transform: translateY(-2px); }
.btn-outline-dark{
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 0.86rem;
  padding: 0.9rem 1.8rem; border-radius: var(--radius);
  display:inline-flex; align-items:center; gap:.5rem;
}
.btn-outline-dark:hover{ background: var(--ink); color: var(--paper); }

/* ---------- Navbar ---------- */
.navbar-palm{
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.15rem 0;
  transition: all .35s ease;
  background: transparent;
}
.navbar-palm.scrolled{
  background: rgba(8, 47, 42, 0.94);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,.4);
}
.navbar-palm .nav-inner{
  max-width: 1260px; margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-palm .brand{
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--paper);
  display: flex; align-items: baseline; gap: .4rem;
}
.navbar-palm .brand .accent{ color: var(--gold-light); font-style: italic; }
.navbar-palm .nav-links{
  display: flex; align-items: center; gap: 2.1rem;
  list-style: none; margin: 0; padding: 0;
}
.navbar-palm .nav-links a{
  color: rgba(253,252,248,0.85);
  font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}
.navbar-palm .nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:0;
  background: var(--gold-light); transition: width .25s ease;
}
.navbar-palm .nav-links a:hover::after{ width: 100%; }
.navbar-palm .nav-links a:hover{ color: var(--paper); }

.nav-toggler{
  display:none; background: transparent; border: 1px solid rgba(253,252,248,.5);
  border-radius: var(--radius); width: 42px; height: 38px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggler span, .nav-toggler span::before, .nav-toggler span::after{
  content:""; display:block; width: 18px; height: 1.5px; background: var(--paper); position: relative;
}
.nav-toggler span::before{ position:absolute; top:-6px; }
.nav-toggler span::after{ position:absolute; top:6px; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--paper);
  padding-top: 6rem;
}
.hero-bg{
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(8,20,18,0.35) 0%, rgba(8,20,18,0.55) 55%, rgba(6,15,13,0.94) 100%), url('../images/living-room-2.jpg');
  background-size: cover;
  background-position: center 30%;
}
.hero-content{
  position: relative; z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-loc{
  display:flex; align-items:center; gap:.5rem;
  font-family: var(--font-mono); font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1.4rem;
}
.hero h1{
  color: var(--paper);
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.04;
  max-width: 900px;
  font-weight: 500;
}
.hero-sub{
  margin-top: 1.4rem;
  font-size: 1.05rem;
  color: rgba(253,252,248,0.82);
  max-width: 520px;
  line-height: 1.6;
}
.hero-price-chip{
  display:inline-flex; align-items:baseline; gap:.5rem;
  background: rgba(253,252,248,0.08);
  border: 1px solid rgba(253,252,248,0.25);
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  margin-top: 1.6rem;
  font-family: var(--font-mono);
}
.hero-price-chip .amount{ font-size: 1.3rem; color: var(--gold-light); font-weight: 700; }
.hero-price-chip .label{ font-size: .72rem; color: rgba(253,252,248,.7); text-transform: uppercase; letter-spacing: .08em; }

.hero-ctas{ display:flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  padding-top: 1.8rem;
  border-top: 1px solid rgba(253,252,248,0.2);
  max-width: 640px;
}
.hero-stat .tick{ width: 20px; height: 1px; background: var(--gold-light); margin-bottom: .7rem; }
.hero-stat .num{
  font-family: var(--font-mono); font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--paper); font-weight: 700; line-height: 1;
}
.hero-stat .cap{
  font-size: .74rem; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(253,252,248,.6); margin-top: .4rem;
}

.scroll-cue{
  position: absolute; right: clamp(1.25rem,4vw,2.5rem); bottom: 2rem; z-index: 2;
  writing-mode: vertical-rl; color: rgba(253,252,248,.55);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .15em;
  display: flex; align-items: center; gap: .6rem;
}
.scroll-cue .line{ width: 1px; height: 46px; background: rgba(253,252,248,.35); position: relative; overflow: hidden; }
.scroll-cue .line::after{
  content:""; position:absolute; top:-46px; left:0; width:100%; height: 46px; background: var(--gold-light);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine{ 0%{ top: -46px; } 100%{ top: 46px; } }

/* ---------- About / Feature cards ---------- */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.feature-card{
  background: var(--paper);
  padding: 2.2rem 1.9rem;
  transition: background .25s ease;
}
.feature-card:hover{ background: var(--teal-soft); }
.feature-card .ic{
  width: 44px; height: 44px;
  color: var(--teal);
  margin-bottom: 1.3rem;
}
.feature-card h3{
  font-size: 1.08rem; font-weight: 600; font-family: var(--font-body);
  color: var(--espresso); margin-bottom: .6rem;
}
.feature-card p{ font-size: .9rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ---------- Floor plans ---------- */
.plan-tabs{
  display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 2.6rem;
}
.plan-tab{
  padding: .85rem 1.7rem;
  font-family: var(--font-body); font-weight: 700; font-size: .85rem;
  background: var(--paper); color: var(--ink-soft);
  cursor: pointer; border: none; border-right: 1px solid var(--line);
  transition: all .2s ease;
}
.plan-tab:last-child{ border-right: none; }
.plan-tab.active{ background: var(--teal); color: var(--paper); }

.plan-card{ display: none; }
.plan-card.active{ display: block; animation: fadeUp .5s ease; }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(14px);} to{opacity:1; transform:none;} }

.plan-grid{
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
}
.plan-frame{
  border: 1px solid var(--line);
  padding: 1.4rem;
  background: var(--paper);
  position: relative;
}
.plan-frame::before{
  content: attr(data-tag);
  position: absolute; top: -1px; left: -1px;
  background: var(--espresso); color: var(--gold-light);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  padding: .3rem .7rem;
}
.plan-frame img{ width: 100%; }

.spec-sheet{
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column;
}
.spec-sheet h3{ font-size: 1.5rem; }
.spec-sheet .config{
  font-family: var(--font-mono); font-size: .78rem; color: var(--gold);
  letter-spacing: .1em; text-transform: uppercase; margin-top: .4rem;
}
.spec-rows{ margin-top: 1.6rem; flex-grow: 1; }
.spec-row{
  display: flex; align-items: baseline; gap: .6rem;
  padding: .68rem 0;
  border-bottom: 1px dotted var(--line);
}
.spec-row .k{ font-size: .86rem; color: var(--ink-soft); white-space: nowrap; }
.spec-row .fill{ flex-grow: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.spec-row .v{ font-family: var(--font-mono); font-size: .88rem; font-weight: 700; color: var(--espresso); white-space: nowrap; }

.spec-price{
  margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.spec-price .price-label{ font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.spec-price .price-val{ font-family: var(--font-display); font-size: 1.9rem; color: var(--teal); }
.spec-price .price-note{ font-size: .72rem; color: var(--ink-soft); }

/* ---------- Cluster plan ---------- */
.cluster-frame{
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--paper);
  margin-top: 2.5rem;
}
.cluster-caption{
  display:flex; justify-content: space-between; margin-top: 1.1rem;
  font-size: .82rem; color: var(--ink-soft); flex-wrap: wrap; gap: .5rem;
}

/* ---------- Gallery ---------- */
.gallery-grid{
  columns: 3 260px;
  column-gap: 14px;
  margin-top: 2.6rem;
}
.gallery-item{
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
}
.gallery-item img{
  width: 100%;
  display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item .tag{
  position: absolute; left: .7rem; bottom: .7rem;
  background: rgba(8,20,18,0.72); color: var(--paper);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem; opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover .tag{ opacity: 1; }

/* Lightbox */
.lightbox{
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,15,13,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
  padding: 2rem;
}
.lightbox.open{ opacity: 1; pointer-events: all; }
.lightbox img{ max-height: 88vh; max-width: 90vw; border: 1px solid rgba(253,252,248,.15); }
.lightbox-close{
  position: absolute; top: 1.6rem; right: clamp(1.25rem,4vw,2.5rem);
  color: var(--paper); font-size: 1.6rem; cursor: pointer; line-height: 1;
  background: transparent; border: none;
}
.lightbox-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(253,252,248,0.1); border: 1px solid rgba(253,252,248,.3);
  color: var(--paper); width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 1.1rem;
}
.lightbox-nav.prev{ left: clamp(1rem, 3vw, 2rem); }
.lightbox-nav.next{ right: clamp(1rem, 3vw, 2rem); }

/* ---------- Specifications ---------- */
.spec-list{
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.spec-list-item{
  display: flex; gap: 1.3rem; align-items: flex-start;
  padding: 1.8rem 1.5rem 1.8rem 0;
  border-bottom: 1px solid var(--line);
}
.spec-list-item:nth-child(odd){ border-right: 1px solid var(--line); padding-left: 0; padding-right: 1.5rem; }
.spec-list-item:nth-child(even){ padding-left: 1.5rem; }
.spec-list-item .ic{ width: 34px; height: 34px; color: var(--gold); flex-shrink: 0; margin-top: .2rem; }
.spec-list-item h3{ font-size: 1.02rem; font-weight: 700; font-family: var(--font-body); margin-bottom: .35rem; }
.spec-list-item p{ font-size: .88rem; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ---------- Payment ---------- */
.payment-wrap{
  background: var(--teal); color: var(--paper);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  border-radius: var(--radius);
  margin-top: 2.6rem;
}
.ratio-visual{ display: flex; align-items: center; gap: 1.4rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.ratio-bar{
  flex-grow: 1; min-width: 240px;
  display: flex; height: 14px; border-radius: 20px; overflow: hidden;
  background: rgba(253,252,248,.15);
}
.ratio-bar .seg-20{ width: 20%; background: var(--gold-light); }
.ratio-bar .seg-80{ width: 80%; background: rgba(253,252,248,.3); }
.ratio-label{ font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.ratio-note{ font-size: .92rem; color: rgba(253,252,248,.85); }

.pay-table{ width: 100%; border-collapse: collapse; font-size: .92rem; }
.pay-table th, .pay-table td{ padding: .95rem .8rem; text-align: left; border-bottom: 1px solid rgba(253,252,248,.18); }
.pay-table th{ font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); font-weight: 600; }
.pay-table td{ font-weight: 600; }
.pay-table tr:last-child td{ border-bottom: none; }
.pay-note{ margin-top: 1.4rem; font-size: .78rem; color: rgba(253,252,248,.6); }

/* ---------- Contact ---------- */
.contact-grid{
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem,4vw,4rem);
  margin-top: 3rem;
}
.consultant-card{
  background: var(--espresso); color: var(--paper);
  padding: clamp(2rem, 3vw, 2.6rem);
  height: fit-content;
}
.consultant-avatar{
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; color: var(--espresso); font-weight: 600;
  margin-bottom: 1.4rem;
}
.consultant-card .role{ font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.consultant-card h3{ color: var(--paper); font-size: 1.3rem; margin-top: .3rem; }
.consultant-info{ margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }
.consultant-info .row{ display: flex; gap: .9rem; align-items: flex-start; }
.consultant-info .ic{ width: 20px; height: 20px; color: var(--gold-light); margin-top: .15rem; flex-shrink: 0; }
.consultant-info .lbl{ font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(253,252,248,.5); }
.consultant-info .val{ font-size: .95rem; font-weight: 600; }
.consultant-ctas{ display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }

.enquiry-form{
  background: var(--paper); border: 1px solid var(--line);
  padding: clamp(1.8rem, 3vw, 2.6rem);
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group{ margin-bottom: 1.2rem; }
.form-group label{
  display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-soft); margin-bottom: .5rem; font-weight: 700;
}
.form-control-palm, .form-select-palm{
  width: 100%; border: none; border-bottom: 1px solid var(--line);
  background: transparent; padding: .6rem .1rem;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  border-radius: 0;
}
.form-control-palm:focus, .form-select-palm:focus{
  outline: none; border-color: var(--teal); box-shadow: none;
}
.form-note{ font-size: .75rem; color: var(--ink-soft); margin-top: .3rem; }
.form-success{
  display: none; align-items: center; gap: .6rem; margin-top: 1.2rem;
  background: var(--teal-soft); color: var(--teal-deep); padding: .8rem 1rem; font-size: .88rem;
  border-left: 3px solid var(--teal);
}
.form-success.show{ display: flex; }

/* ---------- Footer ---------- */
.footer{
  background: var(--teal-deep); color: rgba(253,252,248,.75);
  padding: 3.4rem 0 1.6rem;
}
.footer-top{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.6rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(253,252,248,.12); }
.footer-brand{ font-family: var(--font-display); font-size: 1.6rem; color: var(--paper); }
.footer-brand .accent{ color: var(--gold-light); font-style: italic; }
.footer-tag{ font-size: .86rem; margin-top: .4rem; color: rgba(253,252,248,.55); }
.footer-contact{ display: flex; gap: 2.2rem; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom{
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  padding-top: 1.6rem; font-size: .76rem; color: rgba(253,252,248,.45);
}

/* Floating WhatsApp */
.float-wa{
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease;
}
.float-wa:hover{ transform: scale(1.08); background: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 991px){
  .nav-toggler{ display: flex; }
  .navbar-palm .nav-links{
    position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px,80vw);
    background: var(--teal-deep); flex-direction: column; align-items: flex-start;
    padding: 6rem 2rem 2rem; gap: 1.6rem; transition: right .35s ease;
  }
  .navbar-palm .nav-links.open{ right: 0; }
  .feature-grid{ grid-template-columns: repeat(2,1fr); }
  .plan-grid{ grid-template-columns: 1fr; }
  .spec-list{ grid-template-columns: 1fr; }
  .spec-list-item:nth-child(odd){ border-right: none; padding-right: 0; }
  .spec-list-item:nth-child(even){ padding-left: 0; }
  .contact-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ columns: 2 220px; }
}
@media (max-width: 576px){
  .feature-grid{ grid-template-columns: 1fr; }
  .hero-stats{ grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .form-row{ grid-template-columns: 1fr; }
  .gallery-grid{ columns: 1; }
  .footer-contact{ flex-direction: column; gap: .8rem; }
}
