/* ==========================================================================
   Marina Inn Bima - stylesheet
   Warna, jarak, dan tipografi diatur lewat variabel di :root
   ========================================================================== */

:root {
  --navy:        #0a2e3d;
  --navy-deep:   #06212c;
  --teal:        #167b86;
  --teal-light:  #2ba0ad;
  --gold:        #c2903a;
  --gold-light:  #e0b062;
  --sand:        #f6f1e9;
  --sand-dark:   #ebe2d4;
  --ink:         #16232a;
  --muted:       #5c6b73;
  --line:        #e2e0d9;
  --white:       #ffffff;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(10, 46, 61, .06), 0 12px 32px rgba(10, 46, 61, .07);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--sand); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .9em;
}
.section--navy .eyebrow { color: var(--gold-light); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: rgba(246, 241, 233, .8); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.7em; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .93rem; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--gold); color: #1c1204; }
.btn--primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn--outline { border-color: currentColor; color: inherit; background: transparent; }
.btn--outline:hover { background: rgba(255, 255, 255, .12); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--teal); }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.header--over {
  position: fixed; inset: 0 0 auto; background: transparent;
  border-color: rgba(255, 255, 255, .16); color: var(--white);
}
.header--over.is-stuck {
  background: rgba(255, 255, 255, .96); color: var(--ink);
  border-color: var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-size: 1.22rem; font-weight: 600; }
.brand__sub { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .62; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .9rem; font-weight: 500; position: relative; padding-block: 4px; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--gold); transition: width .28s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.header__tools { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; border: 1px solid currentColor; border-radius: var(--radius);
  overflow: hidden; opacity: .75; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
}
.lang button {
  background: none; border: 0; color: inherit; font: inherit;
  padding: .45em .75em; cursor: pointer; transition: background .2s, color .2s;
}
.lang button.is-active { background: var(--gold); color: #1c1204; }
.header__call { font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: .5em; }
.header__call svg { width: 15px; height: 15px; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.burger span { display: block; width: 22px; height: 1.8px; background: currentColor; margin: 4px 0; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: var(--white); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 33, 44, .9) 0%, rgba(6, 33, 44, .45) 45%, rgba(6, 33, 44, .35) 100%);
}
.hero__body { position: relative; padding-block: clamp(52px, 9vw, 104px); max-width: 700px; }
.hero__body h1 { color: var(--white); text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.hero__body p { font-size: 1.1rem; color: rgba(255, 255, 255, .88); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 18px;
  padding: .4em 1em; border: 1px solid rgba(255, 255, 255, .34); border-radius: 100px;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}

/* page banner (halaman dalam) */
.banner { position: relative; min-height: 46vh; display: flex; align-items: flex-end; color: var(--white); }
.banner__media { position: absolute; inset: 0; overflow: hidden; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 33, 44, .88), rgba(6, 33, 44, .42)); }
.banner__body { position: relative; padding-block: clamp(40px, 6vw, 72px); }
.banner__body h1 { color: var(--white); margin-bottom: .25em; }
.banner__body p { color: rgba(255, 255, 255, .85); margin: 0; }

/* ---------- quick facts bar ---------- */
.facts { background: var(--navy); color: var(--sand); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__item { padding: 26px 20px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .1); }
.facts__item:last-child { border-right: 0; }
.facts__num { font-family: var(--font-head); font-size: 1.85rem; color: var(--gold-light); line-height: 1.1; }
.facts__lbl { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split--rev .split__media { order: 2; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-size: .78rem; color: var(--teal); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; margin-bottom: .5em; }
.card__body p { color: var(--muted); font-size: .93rem; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 14px; }
.chip {
  font-size: .74rem; padding: .36em .8em; border-radius: 100px;
  background: var(--sand); color: var(--navy); border: 1px solid var(--sand-dark);
}

/* ---------- facility grid ---------- */
.fac { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fac__item { background: var(--white); padding: 30px 26px; }
.fac__icon { width: 30px; height: 30px; color: var(--teal); margin-bottom: 14px; }
.fac__item h3 { font-size: 1.08rem; margin-bottom: .35em; }
.fac__item p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- venue table ---------- */
.venue { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.venue__media { aspect-ratio: 16 / 9; overflow: hidden; }
.venue__media img { width: 100%; height: 100%; object-fit: cover; }
.venue__body { padding: 24px; }
.venue__caps { display: flex; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.venue__cap { flex: 1; padding: 14px 8px; text-align: center; border-right: 1px solid var(--line); }
.venue__cap:last-child { border-right: 0; }
.venue__cap b { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); }
.venue__cap span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- list with ticks ---------- */
.ticks li { position: relative; padding-left: 30px; margin-bottom: .7em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 15px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gal button {
  display: grid; padding: 0; border: 0; background: var(--sand); cursor: zoom-in;
  overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3;
}
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.gal button:hover img { transform: scale(1.05); filter: brightness(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(6, 33, 44, .93); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 84vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: .9rem; }
.lightbox__btn {
  position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.info-row { display: flex; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.info-row:first-child { padding-top: 0; }
.info-row svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 4px; }
.info-row h3 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .25em; }
.info-row p, .info-row a { margin: 0; font-size: 1.02rem; }
.info-row a:hover { color: var(--teal); }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); filter: grayscale(.25); }

/* ---------- cta band ---------- */
.cta-band { background: var(--teal); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, .86); max-width: 52ch; margin-inline: auto; }
.cta-band .btn--primary { background: var(--white); color: var(--navy); }
.cta-band .btn--primary:hover { background: var(--sand); }

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: rgba(246, 241, 233, .72); font-size: .91rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(48px, 6vw, 72px); }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2em; }
.footer a:hover { color: var(--gold-light); }
.footer li { margin-bottom: .6em; }
.footer__brand .brand__name { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; display: grid; place-items: center; transition: all .25s var(--ease); }
.social a:hover { background: var(--gold); border-color: var(--gold); color: #1c1204; }
.social svg { width: 16px; height: 16px; }

/* ---------- floating call button (mobile) ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 70; display: none;
  align-items: center; gap: .5em; padding: .9em 1.4em; border-radius: 100px;
  background: var(--gold); color: #1c1204; font-weight: 700; font-size: .92rem;
  box-shadow: 0 6px 22px rgba(6, 33, 44, .28);
}
.fab svg { width: 17px; height: 17px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid--3, .fac, .gal { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .facts__item:nth-child(2) { border-right: 0; }
  .facts__item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .1); }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .header__call { display: none; }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--white); color: var(--ink); padding: 8px 20px 26px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .split, .contact { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .fab { display: inline-flex; }
  body { padding-bottom: 0; }
}

@media (max-width: 560px) {
  .grid--3, .grid--2, .fac, .gal { grid-template-columns: 1fr; }
  .gal { gap: 10px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .venue__caps { flex-wrap: wrap; }
  .venue__cap { flex: 1 1 33%; }
}

/* ---------- print ---------- */
@media print {
  .header, .footer, .fab, .cta-band, .lightbox { display: none !important; }
  body { color: #000; }
}
