/* =========================================================
   SUTOMO TOWER
   Biru diambil dari papan digital di lobby. Ubah warna di :root.
   ========================================================= */
:root {
  --blue: #0073b7;
  --blue-dark: #005a91;
  --blue-light: #6fc0ee;
  --tint: #eef5fa;
  --navy: #05234a; /* latar menu atas, bagian pembuka, ajakan, dan footer */
  --black: #0a0d14;
  --ink: #18202b;
  --gray: #536070;
  --line: #d5dfe8;
  --white: #fff;
  --r: 10px;
  --nav: 68px;
  --gap: clamp(72px, 9vw, 124px);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--black); line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, min(5vw, 9vh), 4.5rem); font-weight: 600; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.9rem); font-weight: 600; letter-spacing: -.028em; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }

.wrap { width: min(100% - 48px, 1240px); margin-inline: auto; }
.sec { padding-block: var(--gap); }
.sec--tint { background: var(--tint); }
.sec--blue { background: var(--blue); color: var(--white); }
.sec--blue h2 { color: var(--white); }
.head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }
.head p { margin-top: 14px; }
.lead { font-size: 1.15rem; }
.note { font-size: .9rem; color: var(--gray); }
.link { font-weight: 600; color: var(--blue); text-underline-offset: 5px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: var(--r); font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer; background: none; transition: background-color .18s, color .18s, border-color .18s;
}
.btn[hidden] { display: none; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--blue-dark); }
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: var(--blue-light); }
.btn--line { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--line:hover { background: var(--white); color: var(--black); }
.btn--outline { border-color: var(--line); color: var(--blue); background: var(--white); }
.btn--outline:hover { border-color: var(--blue); }

/* ---------- Menu ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.nav__in { height: var(--nav); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.brand img { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); font-size: .95rem; }
.nav__links a:not(.btn) { text-decoration: none; white-space: nowrap; padding-block: 10px; color: rgba(255,255,255,.82); }
.nav__links a:not(.btn):hover, .nav__links a[aria-current] { color: var(--white); }
.nav__links a[aria-current] { box-shadow: inset 0 -2px var(--blue-light); }
.nav__toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; }
.nav__toggle span { position: absolute; left: 10px; width: 24px; height: 2px; background: currentColor; transition: transform .2s, top .2s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Pembuka ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(calc(100vh - var(--nav)), 820px); min-height: min(calc(100svh - var(--nav)), 820px);
  background: var(--navy); color: rgba(255,255,255,.82);
}
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(36px, 6vh, 72px) clamp(32px, 4vw, 72px) clamp(36px, 6vh, 72px) max(24px, calc((100vw - 1240px) / 2));
}
.hero h1 { color: var(--white); }
.hero__text > p { margin-top: 22px; font-size: 1.125rem; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 36px); }
.hero__frame { position: relative; overflow: hidden; animation: open 1.1s cubic-bezier(.2, .7, .1, 1) backwards; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; animation: settle 1.6s cubic-bezier(.2, .7, .1, 1) backwards; }
@keyframes open { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.1); } to { transform: none; } }
.facts { display: flex; flex-wrap: wrap; gap: 16px clamp(24px, 3vw, 48px); margin-top: clamp(32px, 6vh, 64px); }
.facts dt { font-size: .9rem; color: rgba(255,255,255,.65); }
.facts dd { font-size: 1.6rem; font-weight: 600; color: var(--white); line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.facts small { font-size: .85rem; font-weight: 400; color: rgba(255,255,255,.65); }

/* ---------- Tentang ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 7vw, 104px); align-items: center; }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; border-radius: var(--r); }
.about p { margin-top: 22px; max-width: 36em; }
.about .link { display: inline-block; margin-top: 26px; }

/* ---------- Pemilih lantai ---------- */
.key { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; white-space: nowrap; }
.cell { display: block; flex: 0 1 18px; min-width: 6px; height: 18px; border-radius: 2px; background: #bac6d2; }
.key .cell { flex: none; width: 14px; height: 14px; }
.cell--ok { background: var(--blue); }
.cell--full { flex: 1; }

.picker { scroll-margin-top: 24px; display: grid; grid-template-columns: minmax(300px, 5fr) 8fr; gap: 28px; align-items: start; margin-bottom: 16px; }
@media (min-width: 961px) and (min-height: 840px) { .picker__side { position: sticky; top: calc(var(--nav) + 20px); } }
/* Sisi kanan gedung dibuat miring, mengikuti bentuk denahnya */
.tower { display: grid; gap: 4px; padding: 12px; background: var(--black); border-radius: var(--r) 72px 0 0; }
.floor {
  display: grid; grid-template-columns: 24px 1fr 84px; align-items: center; gap: 14px; min-height: 62px; padding: 0 16px;
  text-align: left; border: 0; border-radius: 6px; background: #1b2330; color: var(--white); cursor: pointer; transition: background-color .18s, color .18s;
}
.floor:first-child { border-top-right-radius: 60px; }
.floor b { font-size: 1.2rem; font-weight: 600; }
.floor small { font-size: .85rem; text-align: right; color: rgba(255,255,255,.72); }
.floor__cells { display: flex; gap: 4px; min-width: 0; }
.floor .cell { background: #4d5969; }
.floor .cell--ok { background: var(--blue-light); }
.floor:hover { background: #2a3546; }
.floor[aria-pressed="true"] { background: var(--white); color: var(--black); }
.floor[aria-pressed="true"] small { color: var(--gray); }
.floor[aria-pressed="true"] .cell { background: #bac6d2; }
.floor[aria-pressed="true"] .cell--ok { background: var(--blue); }
.floor .cell--ok { transition: background-color .5s var(--d, 0ms); }
.tower.is-dark .floor .cell--ok { background: #4d5969; }
.tower.is-dark .floor[aria-pressed="true"] .cell--ok { background: #bac6d2; }
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 0 0 var(--r) var(--r); overflow: hidden; background: var(--blue-dark); }
.views button { min-height: 50px; padding: 0 8px; border: 0; background: var(--blue); color: var(--white); font-weight: 600; cursor: pointer; transition: background-color .18s; }
.views button:hover, .views button[aria-pressed="true"] { background: var(--blue-dark); }
.views button[aria-pressed="true"] { box-shadow: inset 0 -3px var(--white); }
.views button:focus-visible, .floor:focus-visible { outline-offset: -3px; }
.plan {
  display: grid; grid-template-columns: 148px 1fr; align-items: center; gap: 22px; width: 100%; margin-top: 16px; padding: 12px;
  text-align: left; border: 0; border-radius: var(--r); background: var(--white); cursor: zoom-in; color: var(--gray);
}
.plan[hidden] { display: none; }
.plan img { width: 148px; height: 190px; object-fit: cover; object-position: 50% 45%; }
.plan b { display: block; font-size: 1.1rem; font-weight: 600; color: var(--black); }
.plan:hover b { color: var(--blue); }

.panel { scroll-margin-top: 16px; background: var(--white); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); min-height: 520px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.panel__head h3 { font-size: 1.6rem; }
.panel__head p { margin-top: 4px; color: var(--gray); }
.panel__tools { display: flex; flex-wrap: wrap; gap: 8px; }
#planBtn { display: none; }
.share-note { min-height: 1.65em; margin-block: 8px; font-size: .9rem; color: var(--blue-dark); overflow-wrap: anywhere; }
.row {
  display: grid; grid-template-columns: minmax(110px, 1fr) minmax(200px, 2fr) 124px; align-items: center; gap: 16px;
  min-height: 80px; padding-block: 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.row__name b { display: block; font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.row__price b { display: block; font-weight: 600; }
.row small { font-weight: 400; font-size: .85rem; color: var(--gray); }
.row span { font-size: .88rem; color: var(--gray); }
.row--rented b { color: var(--gray); font-weight: 500; }
.rented { display: grid; place-items: center; min-height: 44px; border-radius: var(--r); background: #edf1f5; font-weight: 600; cursor: default; }
.rows__empty { padding-block: 28px; border-top: 1px solid var(--line); color: var(--gray); }

/* ---------- Harga ---------- */
.pricing { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(36px, 6vw, 88px); margin-top: clamp(56px, 7vw, 88px); }
.pricing h3 { font-size: 1.6rem; }
.pricing table { width: 100%; margin-top: 18px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pricing th, .pricing td { padding: 14px 12px 14px 0; text-align: left; border-bottom: 1px solid var(--line); }
.pricing thead th { font-size: .88rem; font-weight: 500; color: var(--gray); vertical-align: bottom; }
.pricing tbody th { font-weight: 600; white-space: nowrap; }
.pricing__side dl { display: grid; gap: 18px; margin-top: 20px; }
.pricing__side dt { font-weight: 600; }
.pricing__side dd { color: var(--gray); }

/* ---------- Fasilitas & galeri ---------- */
.wide img { width: 100%; aspect-ratio: 21 / 9; border-radius: var(--r); object-fit: cover; object-position: 50% 72%; }
.wide figcaption { margin-top: 10px; font-size: .9rem; color: var(--gray); }
.fac { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(32px, 4vw, 56px); }
.fac h3 { font-size: 1.35rem; color: var(--blue); margin-bottom: 12px; }
.fac li { padding-block: 11px; border-top: 1px solid var(--line); }
.fac b { font-weight: 600; }
.strip__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(56px, 7vw, 96px); }
.strip__head h3 { font-size: 1.6rem; }
.strip__nav { display: flex; gap: 8px; }
.strip__nav button { width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--blue); font-size: 1.2rem; cursor: pointer; }
.strip__nav button:hover:enabled { border-color: var(--blue); }
.strip__nav button:disabled { opacity: .4; cursor: default; }
.strip {
  --edge: max(24px, calc((100vw - 1240px) / 2));
  display: flex; gap: 14px; margin-top: 24px; padding: 4px var(--edge); overflow-x: auto;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--edge); scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: none; scroll-snap-align: start; }
.strip button { display: block; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--tint); cursor: zoom-in; }
.strip img { width: auto; max-width: none; height: clamp(300px, 36vw, 480px); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.strip button:hover img { transform: scale(1.03); }

/* ---------- Tenant ---------- */
.directory { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 20px; }
.directory picture { display: block; min-height: 0; }
.directory__photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.board { display: grid; border-radius: var(--r); overflow: hidden; background: var(--white); color: var(--ink); }
.board__row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 24px; padding: 22px clamp(20px, 3vw, 36px); }
.board__row + .board__row { border-top: 1px solid var(--line); }
.board__row h3 { color: var(--blue); }
.board ul { display: flex; flex-wrap: wrap; align-items: center; gap: 18px clamp(24px, 3vw, 44px); }
.board img { width: auto; height: auto; max-width: 124px; max-height: 56px; }

/* ---------- Cara sewa ---------- */
.steps { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 7vw, 104px); align-items: start; }
.steps ol { counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; padding-block: 24px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: 1 / 3; font-size: 2rem; font-weight: 600; line-height: 1; color: var(--blue); }
.steps p { margin-top: 8px; color: var(--gray); }

/* ---------- Lokasi ---------- */
.loc { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 7vw, 104px); align-items: center; }
.loc address { font-style: normal; font-size: 1.1rem; margin-block: 24px 28px; }
.loc iframe { width: 100%; height: clamp(320px, 36vw, 460px); border: 0; border-radius: var(--r); background: var(--line); }

/* ---------- Tanya jawab ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 7vw, 104px); align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 68px; padding-block: 12px;
  font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 24px; max-width: 36em; color: var(--gray); }

/* ---------- Ajakan & footer ---------- */
.cta, .foot { background: var(--navy); color: rgba(255,255,255,.75); }
.cta { padding-block: var(--gap) clamp(48px, 6vw, 80px); }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta h2 { color: var(--white); }
.cta__in > div { display: flex; flex-wrap: wrap; gap: 12px; }
.foot { margin-top: -1px; padding-bottom: 40px; font-size: .92rem; }
.foot__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.16); padding-top: 32px; }
.foot img { width: 112px; }
.foot a { text-underline-offset: 4px; }
.quick { display: none; }

/* ---------- Popup ---------- */
.zoom { width: min(94vw, 900px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--white); }
.zoom[open] { display: flex; flex-direction: column; }
.zoom::backdrop { background: rgba(10,13,20,.82); }
.zoom__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 8px 8px 20px; font-weight: 600; }
.zoom__bar button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--tint); font-weight: 600; cursor: pointer; }
.zoom__body { overflow: auto; min-height: 0; }
.zoom__body img { width: 100%; }
.zoom--photo { width: min(94vw, 1200px); }
.zoom--photo .zoom__body { background: var(--black); }
.zoom--photo img { height: min(76vh, 820px); object-fit: contain; }
.zoom__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px; font-variant-numeric: tabular-nums; }
.zoom__nav[hidden] { display: none; }
.zoom__nav button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--tint); font-weight: 600; cursor: pointer; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; inset: var(--nav) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px; background: var(--navy); visibility: hidden; opacity: 0; transition: opacity .18s, visibility .18s;
  }
  .nav__links a:not(.btn) { padding-block: 14px; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 1.05rem; }
  .nav__links .btn { margin-top: 20px; }
  .is-open .nav__links { visibility: visible; opacity: 1; }

  .picker, .pricing, .steps, .loc, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__text { padding: 56px 24px; }
  .directory { grid-template-columns: minmax(0, 1fr); }
  .directory__photo { height: auto; aspect-ratio: 4 / 3; object-position: 50% 13%; }
  .hero__frame { aspect-ratio: 16 / 10; }
  .hero__photo { object-position: 62% 100%; }
  .plan { display: none; }
  #planBtn:not([hidden]) { display: inline-flex; }
  .is-open .nav__links { border-bottom: 1px solid rgba(255,255,255,.3); }
  .panel { min-height: 0; }
}

/* ---------- HP ---------- */
@media (max-width: 720px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 40px); }
  .hero__text { padding: 40px 20px 36px; }
  .hero__frame { aspect-ratio: 5 / 4; }
  .hero__cta .btn { flex: 1 1 100%; }
  .facts { justify-content: space-between; gap: 14px; margin-top: 32px; }
  .facts dt { font-size: .82rem; }
  .facts dd { font-size: 1.25rem; }
  .facts small { font-size: .75rem; }

  .about, .fac { grid-template-columns: minmax(0, 1fr); }
  .about img { aspect-ratio: 1; }
  .legend { display: block; margin-top: 8px; }
  .key { margin: 0 16px 0 0; }

  .tower { border-top-right-radius: 48px; padding: 8px; }
  .floor { grid-template-columns: 18px minmax(0, 1fr) 78px; min-height: 52px; padding: 0 12px; gap: 10px; }
  .floor:first-child { border-top-right-radius: 40px; }
  .floor__cells { gap: 3px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .row__name { display: flex; align-items: baseline; gap: 10px; grid-column: 1; }
  .row__price { grid-column: 1; grid-row: 2; }
  .row__price span { font-size: .8rem; }
  .row > .btn, .rented { grid-column: 2; grid-row: 1 / 3; padding-inline: 14px; }

  .pricing th, .pricing td { padding-right: 8px; font-size: .9rem; }
  .pricing thead th { font-size: .8rem; }
  .wide img { aspect-ratio: 4 / 3; }
  .strip { --edge: 20px; gap: 10px; }
  .strip img { height: 340px; max-width: 86vw; object-fit: cover; }
  .panel__tools { width: 100%; }
  .panel__tools .btn { flex: 1; }
  .zoom--photo img { height: 62vh; }

  .board__row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 24px; }
  .board ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; justify-items: center; }
  .board img { max-width: 100%; max-height: 52px; }
  .steps li { grid-template-columns: 44px 1fr; }
  .cta__in > div, .cta__in .btn { width: 100%; }

  .quick {
    position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
