/* IOI Resort City — sales referral microsite
   Shell: warm charcoal + champagne gold. Each project keeps its own accent. */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #17151a;
  --surface: #1e1a21;
  --surface-2: #262029;
  --ink: #f4efe6;
  --muted: #b6ab9d;
  --gold: #d9b568;
  --gold-ink: #241d10;
  --line: rgba(217, 181, 104, 0.16);
  --radius: 2px;

  --conezion: #a3157e;
  --conezion-ink: #f2c9e6;
  --gems: #2a3a8f;
  --gems-ink: #cdd4f5;
  --par3: #4f7a3a;
  --par3-ink: #d3e8c4;

  --maxw: 1200px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  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, h4 {
  font-family: "Bebas Neue", "Inter", sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.08;
  margin: 0;
  font-weight: 400;
}
p { margin: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.kicker {
  display: inline-block;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  border: none;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 21, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.brand .mark {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: linear-gradient(155deg, #e8c988, var(--gold) 55%, #c19a4f);
  color: var(--gold-ink);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-family: "Inter", sans-serif;
  border: 1px solid rgba(36, 29, 16, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.brand .sub {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); }
.btn-wa { background: #25d366; color: #06210f; }
.btn-sm { padding: 9px 18px; font-size: 0.72rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 72px;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: var(--pos, center);
  transform: scale(1);
  transition: transform 0.8s ease;
}
.hero:hover::before {
  transform: scale(1.08);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(23,21,26,.35) 0%, rgba(23,21,26,.55) 45%, rgba(23,21,26,.96) 100%),
    radial-gradient(ellipse at 20% 0%, rgba(217,181,104,0.12), transparent 55%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 14px 0 20px;
}
.hero p.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Zoom-on-hover for all photo media ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .pc-media::before, .gtile::before { transition: none !important; }
}

/* ---------- Section scaffolding ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 14px; }
.eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 44px; }
.eyebrow-row .hairline { flex: 1; }

/* ---------- Project cards with accordion detail ---------- */
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 28px;
  overflow: hidden;
  scroll-margin-top: 90px;
}
.pc-top { display: grid; grid-template-columns: 280px 1fr; }
.pc-media {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
}
.pc-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: var(--pos, center);
  transform: scale(1);
  transition: transform 0.6s ease;
}
.pc-media:hover::before {
  transform: scale(1.08);
}
.pc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay, linear-gradient(180deg, transparent 45%, rgba(0,0,0,.85) 100%));
}
.pc-media .pb-tag {
  position: relative;
  z-index: 2;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.pc-info { padding: 30px; }
.pc-info .kicker { margin-bottom: 10px; display: block; }
.pc-info h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.pc-info .price {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
  margin: 12px 0 18px;
}
.pc-info .price span { color: var(--muted); font-weight: 500; font-size: 0.85rem; margin-left: 6px; }
.pc-points { margin: 0 0 22px; }
.pc-points li {
  padding-left: 20px;
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.pc-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}
.pc-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Accordion (native <details>, no JS required) */
.acc { border-top: 1px solid var(--line); }
.acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  user-select: none;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .chev { transition: transform 0.25s ease; font-size: 0.9rem; }
.acc[open] > summary .chev { transform: rotate(180deg); }
.acc-body { padding: 6px 30px 34px; }
.acc-body h5 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 28px 0 14px;
}
.acc-body h5:first-child { margin-top: 0; }

/* Building & facilities image placeholders */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gtile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gtile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: var(--pos, center);
  transform: scale(1);
  transition: transform 0.6s ease;
}
.gtile:hover::before {
  transform: scale(1.08);
}
.gtile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.75) 100%);
}
.gtile span {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.92);
}

/* ---------- Compare table (home) ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare th, .compare td {
  border-bottom: 1px solid var(--line);
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
}
.compare th { color: var(--muted); font-weight: 500; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; }
.compare td.hl { color: var(--gold); font-weight: 700; }
.compare-scroll { overflow-x: auto; }

/* ---------- Advertiser byline (About section) ---------- */
.advertiser-byline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}
.advertiser-photo {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.advertiser-title {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .chev { transition: transform 0.25s ease; color: var(--gold); flex-shrink: 0; }
.faq-item[open] > summary .chev { transform: rotate(180deg); }
.faq-body { padding: 0 4px 26px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.faq-body p:not(:first-child) { margin-top: 12px; }
.faq-body ul { margin-top: 10px; }
.faq-body li { padding-left: 18px; position: relative; margin-bottom: 8px; }
.faq-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Master plan ---------- */
.masterplan-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 16 / 9;
}
.masterplan-image img { width: 100%; height: 100%; display: block; object-fit: cover; }

.location-map-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}
.location-map-image img { width: 100%; height: auto; display: block; }

/* ---------- Cards / facilities ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h4 { font-family: "Inter", sans-serif; font-weight: 700; font-size: 0.98rem; margin-bottom: 10px; }
.card p, .card li { color: var(--muted); font-size: 0.9rem; }
.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact-strip div {
  flex: 1;
  min-width: 150px;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
}
.fact-strip div:last-child { border-right: none; }
.fact-strip b { display: block; font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; margin-bottom: 4px; overflow-wrap: break-word; }
.fact-strip b.price-hl { font-size: clamp(1.1rem, 4vw, 1.5rem); }
.fact-strip b.range, .pb-facts b.range {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}
.fact-strip b.range { font-size: 1.15rem; }
.pb-facts b.range { font-size: 1rem; }
.fact-strip span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Floor plan table ---------- */
.plan-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.plan-table th, .plan-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
}
.plan-table th { color: var(--muted); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; }
.plan-table td:first-child { font-family: "Bebas Neue", sans-serif; font-size: 1.05rem; }

/* ---------- Location list ---------- */
.loc-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.loc-list li span:last-child { color: var(--gold); font-weight: 700; white-space: nowrap; margin-left: 20px; }

/* ---------- Register / CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 30px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Register form ---------- */
.register-form {
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.register-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.register-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.register-form input,
.register-form select,
.register-form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: normal;
}
.register-form textarea { resize: vertical; min-height: 80px; }
.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.register-form .btn { width: 100%; justify-content: center; }
.consent-row {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 0.82rem !important;
  color: var(--muted);
}
.consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--gold);
}
.consent-row a { color: var(--gold); }
.consent-row a:hover { text-decoration: underline; }
.form-note { font-size: 0.76rem; color: var(--muted); margin-top: 14px; }

@media (max-width: 560px) {
  .register-form .form-row { grid-template-columns: 1fr; }
}

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Licensed / Agency columns ---------- */
.licensed-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.lic-col h5 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.lic-col .lic-name { color: var(--ink); font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.lic-col .lic-name span { color: var(--muted); font-weight: 500; }
.lic-col p { color: var(--muted); font-size: 0.88rem; margin-bottom: 6px; }
.lic-col a { color: var(--gold); font-size: 0.88rem; display: inline-block; margin-top: 4px; }
.lic-col a:hover { text-decoration: underline; }
.legal-links { display: flex; gap: 18px; }
.legal-links a { color: var(--muted); font-size: 0.78rem; }
.legal-links a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h5 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 0.88rem; display: block; margin-bottom: 8px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  text-align: center;
}
.footer-bottom .fb-brand {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: var(--ink);
}
.footer-bottom .fb-line {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.footer-bottom .fb-line span:not(:last-child)::after {
  content: "·";
  color: var(--line);
  margin: 0 10px;
}

/* ---------- Sticky WhatsApp ---------- */
.sticky-wa {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  background: #25d366;
  color: #06210f;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.sticky-wa svg { width: 28px; height: 28px; }

/* ---------- Page entrance animation (pure CSS, fires on load, no JS dependency) ---------- */
@keyframes enterFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-header { animation: enterFade 0.6s ease both; }
.hero-content > .kicker { animation: enterFade 0.6s ease both 0.15s; }
.hero-content > h1      { animation: enterFade 0.6s ease both 0.28s; }
.hero-content > .lede   { animation: enterFade 0.6s ease both 0.4s; }
.hero-content > .hero-cta { animation: enterFade 0.6s ease both 0.52s; }

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .hero-content > .kicker,
  .hero-content > h1,
  .hero-content > .lede,
  .hero-content > .hero-cta {
    animation: none;
  }
}

/* ---------- Reveal (progressive enhancement only, never hides content) ---------- */
.reveal { transition: transform 0.5s ease; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 18px;
  }
  .nav-toggle { display: block; }
  .pc-top { grid-template-columns: 1fr; }
  .pc-media { min-height: 180px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .licensed-block { grid-template-columns: 1fr; gap: 28px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .fact-strip div { min-width: 45%; }
}
