/* ==========================================================================
   Imperia Sensa Park — Landing page styles
   Palette: navy (imperial) + champagne gold, eco-luxury tone
   ========================================================================== */

:root {
  --navy-900: #081733;
  --navy-800: #0a1f44;
  --navy-700: #0d2a5c;
  --navy-600: #143b78;
  --gold-500: #c9a25a;
  --gold-400: #d8b877;
  --gold-300: #e7d3a8;
  --ink: #1b2434;
  --muted: #5c6779;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-navy-soft: #0c2450;
  --radius: 14px;
  --shadow-sm: 0 6px 20px rgba(8, 23, 51, .08);
  --shadow-md: 0 18px 50px rgba(8, 23, 51, .16);
  --container: 1200px;
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 82px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* --- Typographic helpers --- */
.eyebrow {
  font-size: 13px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-500); font-weight: 600; margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif); font-weight: 700; line-height: 1.15;
  font-size: clamp(28px, 4vw, 44px); color: var(--navy-800); letter-spacing: .3px;
}
.section-lead { color: var(--muted); max-width: 760px; margin-top: 16px; font-size: 17px; }
.section { padding: 90px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #eaf0fb; }
.section--navy .section-title { color: #fff; }
.section--navy .section-lead { color: #b9c6df; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1.5px solid transparent; transition: .25s ease; white-space: nowrap;
}
.btn--gold { background: linear-gradient(120deg, var(--gold-500), var(--gold-400)); color: var(--navy-900); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201,162,90,.4); }
.btn--outline { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn--outline:hover { background: #fff; color: var(--navy-800); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 82px;
  display: flex; align-items: center;
  background: rgba(255,255,255,.0); transition: .3s ease;
}
.header.scrolled { background: rgba(255,255,255,.97); box-shadow: var(--shadow-sm); height: 70px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; transition: .3s; }
.header.scrolled .brand img { height: 40px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: #fff; letter-spacing: .2px; position: relative;
  transition: color .2s;
}
.header.scrolled .nav a { color: var(--navy-800); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold-500); transition: width .25s;
}
.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--gold-500); }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { color: #fff; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.header.scrolled .header__phone { color: var(--navy-800); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; }
.header.scrolled .nav-toggle span { background: var(--navy-800); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; padding-top: 82px;
  background: linear-gradient(180deg, rgba(6,15,34,.55), rgba(6,15,34,.35) 40%, rgba(6,15,34,.85)),
              url("../img/hero.jpg") center/cover no-repeat;
}
.hero__inner { max-width: 720px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(201,162,90,.16); border: 1px solid rgba(201,162,90,.5);
  color: var(--gold-300); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(24px, 6vw, 56px); line-height: 1.1; margin: 22px 0 8px;
  font-weight: 800; text-shadow: 0 4px 30px rgba(0,0,0,.35); white-space: nowrap;
}
.hero__sub { font-size: clamp(17px, 2.4vw, 22px); color: #e9eefb; font-weight: 300; margin-bottom: 10px; }
.hero__desc { color: #cdd7ea; max-width: 560px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  display: flex; gap: 40px; margin-top: 46px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 26px;
}
.hero__stat b { font-family: var(--serif); font-size: 30px; color: var(--gold-400); display: block; line-height: 1; }
.hero__stat span { font-size: 13px; color: #c7d1e6; letter-spacing: .05em; }

/* ==========================================================================
   Generic layout blocks
   ========================================================================== */
.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: 1fr 1fr; align-items: center; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Embedded iframes (bản đồ Metro / 360°) */
.embed-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #0c1c3a; margin-top: 40px; }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.embed-frame--tall { aspect-ratio: 16 / 10; }
@media (max-width: 560px) { .embed-frame, .embed-frame--tall { aspect-ratio: 3 / 4; } }

.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16 / 10; background: #eef1f5; }
.media img { width: 100%; height: 100%; object-fit: cover; }
/* Masterplan drawing: reserve stable space, show full plan (no crop) */
.media--plan { aspect-ratio: 1 / 1; background: #ffffff; }
.media--plan img { object-fit: contain; }

/* Quick facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.fact {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.fact b { display: block; font-family: var(--serif); font-size: 24px; color: var(--navy-800); }
.fact span { color: var(--muted); font-size: 14px; }

/* Feature list */
.flist { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.flist li { position: relative; padding-left: 34px; line-height: 1.6; }
.flist .tick {
  position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-500); color: #fff; display: grid; place-items: center; font-size: 12px;
}

/* --- Travel / connection list --- */
.connect { display: grid; gap: 12px; margin-top: 8px; }
.connect__row {
  display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow-sm);
}
.connect__time {
  flex: none; font-family: var(--serif); font-weight: 700; color: var(--navy-800);
  font-size: 22px; min-width: 74px;
}
.connect__time small { display: block; font-size: 11px; color: var(--gold-500); letter-spacing: .1em; font-family: var(--sans); }
.connect__label { color: var(--ink); font-size: 15px; }

/* Highlight callout */
.callout {
  margin-top: 30px; border-left: 4px solid var(--gold-500); background: rgba(201,162,90,.08);
  padding: 20px 24px; border-radius: 0 12px 12px 0;
}
.callout b { color: var(--navy-800); }

/* --- Infrastructure cards on navy --- */
.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.infra {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 26px; transition: .25s;
}
.infra:hover { background: rgba(201,162,90,.12); border-color: rgba(201,162,90,.4); transform: translateY(-4px); }
.infra h4 { color: var(--gold-400); font-size: 18px; margin-bottom: 8px; font-family: var(--serif); }
.infra p { color: #c3cfe4; font-size: 14.5px; }
.infra .tag { font-size: 12px; color: #92a3c2; letter-spacing: .08em; text-transform: uppercase; }

/* ==========================================================================
   Products table
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: 40px; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
table.data th {
  background: var(--navy-800); color: #fff; text-align: left; padding: 16px 20px; font-weight: 600; font-size: 14px;
  letter-spacing: .03em;
}
table.data td { padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:nth-child(even) td { background: var(--bg-soft); }
table.data .hi { color: var(--navy-800); font-weight: 700; }
tr.is-featured td { background: rgba(201,162,90,.12) !important; }
tr.is-featured .hi { color: var(--gold-500); }
.badge-you { display: inline-block; margin-left: 8px; font-size: 11px; background: var(--gold-500); color: #fff; padding: 2px 8px; border-radius: 999px; letter-spacing: .05em; }

/* Segments (choose by need) */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.segment { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; background: #fff; box-shadow: var(--shadow-sm); text-align: center; transition: .25s; }
.segment:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.segment .num { font-family: var(--serif); font-size: 20px; color: var(--gold-500); }
.segment h4 { font-size: 19px; color: var(--navy-800); margin: 8px 0 10px; }
.segment p { color: var(--muted); font-size: 14.5px; }

/* ==========================================================================
   Amenities gallery
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 190px; gap: 16px; margin-top: 44px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 18px 14px; color: #fff; font-weight: 600; font-size: 15px;
  background: linear-gradient(transparent, rgba(6,15,34,.85));
}
.g-a { grid-column: span 3; grid-row: span 2; }
.g-b { grid-column: span 3; }
.g-c { grid-column: span 2; }
.g-d { grid-column: span 2; }
.g-e { grid-column: span 2; }

.amenity-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; justify-content: center; }
.amenity-tags span {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 14px; color: var(--navy-700);
  background: #fff;
}

/* ==========================================================================
   Masterplan / price
   ========================================================================== */
.price-card {
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: #fff; border-radius: 20px;
  padding: 48px; text-align: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.price-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(201,162,90,.35), transparent 70%);
}
.price-card .amt { font-family: var(--serif); font-size: clamp(56px, 9vw, 92px); line-height: 1; color: var(--gold-400); font-weight: 800; }
.price-card .unit { font-size: 20px; color: #dbe4f5; letter-spacing: .12em; }
.price-card .note { color: #a9b8d4; font-size: 14px; margin-top: 14px; }
.price-note-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.price-note-list li { display: flex; gap: 10px; color: var(--muted); font-size: 15px; }
.price-note-list .tick { color: var(--gold-500); font-weight: 700; }

/* ==========================================================================
   Legal / progress timeline
   ========================================================================== */
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.legal-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; box-shadow: var(--shadow-sm); }
.legal-item .k { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.legal-item .v { font-size: 16px; color: var(--navy-800); font-weight: 600; margin-top: 4px; }
.legal-item .v.pending { color: var(--gold-500); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-900); color: #aebbd4; padding: 60px 0 30px; font-size: 14.5px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer img.flogo { height: 54px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .04em; }
.footer a:hover { color: var(--gold-400); }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer__disclaimer { padding-top: 26px; color: #7e8db0; font-size: 12.5px; line-height: 1.7; }
.footer__bottom { margin-top: 20px; color: #6d7ca0; font-size: 12.5px; }

/* Reveal on scroll */
/* Chỉ ẩn để animate khi JS bật (html.js-reveal). Không JS → nội dung hiện bình thường. */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: .7s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; padding: 10px 20px 20px; box-shadow: var(--shadow-md);
  }
  .nav.open a { color: var(--navy-800); padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3, .grid--4, .facts, .infra-grid, .segments, .legal-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .g-a, .g-b, .g-c, .g-d, .g-e { grid-column: span 1; grid-row: span 1; }
  .g-a { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .facts, .grid--3, .grid--4, .infra-grid, .segments, .legal-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 26px; }
  .price-card { padding: 32px 22px; }
}
