/* =========================================================
   IDH Indonesia Learning Day 2026 — idh-2026
   Modern minimalist · mobile-first · responsive
   Breakpoints: 640px (large phone) · 900px (tablet) · 1100px (desktop)
   ========================================================= */

:root {
  /* Palette — diambil dari key visual */
  --green-900: #0b3a34;
  --green-800: #0f4a42;
  --green-700: #155e54;
  --green-100: #e6efe9;
  --green-50:  #f2f6f3;
  --orange:    #f2702a;
  --orange-600:#dc5f1c;
  --orange-100:#fdeadf;
  --cream:     #fbf8f3;
  --ink:       #14201d;
  --muted:     #5e6b67;
  --line:      #e3e7e3;
  --white:     #ffffff;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow:    0 1px 2px rgba(15, 74, 66, .05), 0 8px 24px -12px rgba(15, 74, 66, .18);
  --shadow-lg: 0 24px 60px -24px rgba(11, 58, 52, .35);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
  /* KV: rasio gambar & jarak tepi kiri teks KV (dipakai tombol RSVP dan nav supaya sejajar) */
  --kv-ratio: 1080 / 608;
  --kv-inset: .037;
  /* Porsi tinggi KV yang wajib terlihat. <1 = bagian atas KV (area putih kosong)
     boleh terpotong supaya KV tetap full lebar di layar yang pendek */
  --kv-fit: 1;
  --kv-w: min(100%, calc((100svh - var(--nav-h)) * (var(--kv-ratio)) / var(--kv-fit)));
  --gutter: 20px;
  --section-y: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 1px); /* section menempel tepat di bawah nav, tanpa celah */ -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-y) 0; }
.section--tint { background: var(--green-50); }
/* Hijau gradasi: terang di kiri atas → gelap di kanan bawah,
   ditambah cahaya lembut teal (kiri atas) dan oren (kanan bawah) */
.section--dark {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(70% 55% at 0% 0%, rgba(80, 190, 150, .55), transparent 75%),
    radial-gradient(55% 45% at 100% 10%, rgba(46, 140, 118, .45), transparent 75%),
    radial-gradient(60% 45% at 100% 100%, rgba(242, 112, 42, .38), transparent 75%),
    radial-gradient(50% 40% at 0% 100%, rgba(30, 110, 92, .5), transparent 75%),
    linear-gradient(165deg, #1b7462 0%, #0f4a42 45%, #062a24 100%);
}

/* Semua judul section rata kiri, satu kolom (pola sama dengan About) */
.section__head { text-align: left; margin: 0 0 32px; }
.section__head h2 { font-size: clamp(1.9rem, 5.5vw, 2.75rem); font-weight: 700; color: var(--green-800); }
.section__head .muted { margin-top: 10px; }
/* Mobile: ukuran ikut lebar layar supaya judul terpanjang
   ("IDH Indonesia Learning Day") tetap 1 baris & semua judul seragam */
@media (max-width: 639px) {
  .section__head h2 { font-size: clamp(1.25rem, 7vw, 1.9rem); }
}
.section--dark .section__head h2 { color: var(--white); }
.section--dark .section__head .muted { color: rgba(255, 255, 255, .78); }

.muted { color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--ink); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 8px 20px -8px rgba(242, 112, 42, .7); }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-1px); }
.btn--outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn--outline:hover { background: var(--green-800); color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: .875rem; }
.btn--block { width: 100%; }

.link { color: var(--orange-600); font-weight: 600; font-size: .9rem; text-decoration: none; }
.link:hover { text-decoration: underline; }

.card { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid rgba(15, 74, 66, .06); }

.icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--green-100); color: var(--green-800);
}
.icon--lg { width: 48px; height: 48px; border-radius: 14px; }
.icon--lg svg { width: 22px; height: 22px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(251, 248, 243, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .25); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* Nav selebar KV: logo sejajar tepi kiri tombol "Click here for RSVP",
   menu kanan dengan jarak yang sama dari tepi kanan KV.
   --kv-w = lebar KV yang tampil (sama dengan rumus lebar .hero__kv) */
.nav .nav__inner {
  max-width: none;
  padding-inline: calc((100% - var(--kv-w)) / 2 + var(--kv-w) * var(--kv-inset));
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__logo { height: 34px; width: auto; }
.nav__title {
  padding-left: 12px; border-left: 1px solid var(--line);
  font-weight: 700; font-size: .9rem; color: var(--green-800); white-space: nowrap; line-height: 1.2;
}

/* mobile menu (default) */
.nav__toggle {
  display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent;
}
.nav__toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--green-800); transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.nav__menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; display: flex; flex-direction: column; gap: 4px;
  padding: 12px var(--gutter) 24px; background: var(--cream); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .2);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__menu a:not(.btn) {
  padding: 12px 4px; text-decoration: none; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line);
}
.nav__menu a:not(.btn).is-active { color: var(--orange-600); }
.nav__menu a:not(.btn):last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding: 0 0 8px; }
/* KV full image: selalu tampil utuh dalam 1 layar (tidak terpotong),
   sisa ruang kiri-kanan diisi versi blur dari KV yang sama */
.hero__visual {
  position: relative; margin: 0; overflow: hidden; line-height: 0;
  display: flex; justify-content: center; background: var(--white);
}
.hero__visual::before {
  content: ""; position: absolute; inset: -60px;
  background: url("../img/kv-idh-mobile-without-logo.jpg") center / cover no-repeat;
  filter: blur(48px) saturate(1.15); opacity: .55;
}
.hero__kv {
  position: relative; aspect-ratio: var(--kv-ratio); container-type: inline-size;
  width: var(--kv-w); flex-shrink: 0;
}
.hero__kv picture { display: contents; }
.hero__kv img { display: block; width: 100%; height: 100%; }

/* Tombol RSVP di pojok kiri bawah KV, sejajar tepi kiri teks KV.
   Ukuran ikut lebar gambar (cqw) supaya posisinya konsisten. */
.hero__rsvp {
  position: absolute; left: calc(var(--kv-inset) * 100%); bottom: 4%;
  font-size: clamp(.6875rem, 1.6cqw, 1rem); padding: .7em 1.2em; gap: .6em;
}
.hero__rsvp svg { width: 1.15em; height: 1.15em; }

.hero__bar {
  position: relative; margin: 20px 0 0; padding: 20px; z-index: 2;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero__meta { display: grid; gap: 14px; }
.hero__meta li { display: flex; align-items: center; gap: 12px; }
.hero__meta small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.hero__meta strong { display: block; font-size: .95rem; font-weight: 600; color: var(--green-900); line-height: 1.3; }

/* ---------- About ---------- */
.about__body p { color: #3c4845; }

/* ---------- Event info ---------- */
.info { display: grid; gap: 16px; }
/* 1 card berisi Date, Time, Venue — tiap baris dipisah garis tipis */
.info__card { padding: 4px 20px; }
.info__row { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; }
.info__row + .info__row { border-top: 1px solid var(--line); }
.info__row > div { min-width: 0; }
.info__row .icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; }
.info__row .icon svg { width: 20px; height: 20px; }

/* Mobile: ikon kecil sebaris dengan label, judul di bawahnya selebar card
   supaya Date/Time/Venue muat 1 baris */
@media (max-width: 639px) {
  .info__row { display: grid; grid-template-columns: 32px 1fr; align-items: center; column-gap: 10px; row-gap: 6px; }
  .info__row > div { display: contents; }
  .info__row .icon { width: 32px; height: 32px; border-radius: 10px; }
  .info__row .icon svg { width: 17px; height: 17px; }
  .info__card small { margin: 0; }
  .info__card h3, .info__card p, .info__card .btn { grid-column: 1 / -1; }
  .info__card h3 { white-space: nowrap; font-size: clamp(.8rem, 3.5vw, 1rem); }
  .info__card .btn { justify-self: start; }
}
.info__card small { display: block; margin-bottom: 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.info__card h3 { font-size: 1rem; font-weight: 700; color: var(--green-900); line-height: 1.35; }
.info__card p { font-size: .84rem; line-height: 1.6; margin: 4px 0 0; }
.info__card .btn { margin-top: 14px; }
.info__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--green-100); }
.info__map iframe { display: block; width: 100%; height: 280px; border: 0; filter: grayscale(.25) contrast(1.02); }

/* ---------- Rundown (timeline) ---------- */
.timeline { position: relative; }
.tl-item {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 0 0 26px 28px;
}
.tl-item::before { /* line */
  content: ""; position: absolute; left: 6px; top: 8px; bottom: -8px; width: 2px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-item::after { /* dot */
  content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--orange);
}

.tl-time { font-size: .82rem; font-weight: 700; color: var(--green-700); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tl-body { padding: 16px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }

.tl-tag {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--orange-100); color: var(--orange-600);
}

.tl-title { font-size: .92rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.tl-sub { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.tl-list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tl-list li { padding: 5px 11px; border-radius: 8px; background: var(--green-50); font-size: .82rem; font-weight: 500; color: var(--green-900); }
.tl-mod { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.tl-mod strong { color: var(--ink); font-weight: 600; }

/* ---------- Speakers ---------- */
.speakers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.speaker { text-align: center; }
.speaker__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #cfcfcf; margin-bottom: 12px;
}
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.speaker:hover .speaker__photo img { transform: scale(1.04); }
.speaker__name { font-size: .98rem; font-weight: 700; color: var(--green-900); }
.speaker__role { font-size: .84rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.section--dark .speaker__name { color: var(--white); }
.section--dark .speaker__role { color: rgba(255, 255, 255, .72); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery__item {
  position: relative; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--green-100);
  animation: fadeIn .45s var(--ease) both;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 58, 52, .35), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }

.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.pager__btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); transition: all .2s;
}
.pager__btn:hover:not(:disabled) { border-color: var(--green-800); background: var(--green-800); color: var(--white); }
.pager__btn:disabled { opacity: .35; cursor: not-allowed; }
.pager__count { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 48px; text-align: center; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Registration ---------- */
.register { position: relative; }

/* Contact Person: di dalam form, tepat di atas Consent (gaya kotak sama dengan Consent) */
.contact { padding: 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--green-50); }
.contact h3 { font-size: .88rem; font-weight: 600; color: var(--green-900); line-height: 1.4; margin-bottom: 8px; letter-spacing: 0; }
.contact p { font-size: .82rem; color: var(--muted); line-height: 1.6; }
/* Mobile: label di atas nilai, supaya email muat 1 baris */
.contact dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 12px 0 0; font-size: .88rem; }
.contact dt { color: var(--muted); font-size: .75rem; }
.contact dd { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.contact dd:last-child { margin-bottom: 0; }
.contact dd a { white-space: nowrap; }
.contact a { color: var(--orange-600); }

.form { padding: 24px 20px; color: var(--ink); display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; align-items: start; }
.field { display: grid; gap: 6px; }
.field label, .consent legend { font-size: .88rem; font-weight: 600; color: var(--green-900); }
.req { color: var(--orange); }

.field input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--white); font: inherit; font-size: 16px; line-height: 1.4; /* 16px = no zoom on iOS */
  color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #a7b0ad; }
.field input:hover { border-color: #cbd3cf; }
.field input:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(21, 94, 84, .12); }
.field.has-error input { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .1); }

.hint { font-size: .8rem; color: var(--muted); font-style: italic; }
.error { font-size: .8rem; color: #c43a3a; font-weight: 500; min-height: 0; }
.error:empty { display: none; }

.consent { margin: 0; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--green-50); }
.consent legend { float: left; width: 100%; padding: 0; margin: 0; line-height: 1.4; }
.consent legend + * { clear: both; }
.consent p { clear: both; font-size: .82rem; color: var(--muted); line-height: 1.6; margin: 0; padding: 8px 0 14px; text-align: justify; hyphens: auto; }
/* Pilihan consent: radio polos tanpa kotak/card */
.choices { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.choice { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.choice input { appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b9c3bf; display: grid; place-items: center; flex-shrink: 0; transition: border-color .2s; }
.choice input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green-700); transform: scale(0); transition: transform .2s var(--ease); }
.choice input:checked { border-color: var(--green-700); }
.choice input:checked::after { transform: scale(1); }
.choice:has(input:checked) { color: var(--green-800); }
.consent.has-error { border-color: #d64545; }

#submitBtn { margin-top: 4px; position: relative; justify-self: center; padding: 14px 32px; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: var(--white); animation: spin .7s linear infinite; }
#submitBtn.is-loading { pointer-events: none; opacity: .85; }
#submitBtn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Popup RSVP (sukses / error) ---------- */
.popup {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(8, 22, 19, .55); backdrop-filter: blur(2px);
  animation: popFade .2s var(--ease);
}
.popup__card {
  position: relative; width: 100%; max-width: 430px; max-height: calc(100svh - 40px); overflow-y: auto;
  padding: 40px 28px 30px; border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow-lg); text-align: center; color: var(--ink);
  animation: popIn .25s var(--ease);
}
.popup__close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.popup__close:hover { background: var(--green-50); }
.popup__close svg { width: 22px; height: 22px; stroke-width: 2; }
.popup__icon {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--green-800); color: var(--white);
}
.popup__svg { width: 34px; height: 34px; stroke-width: 2.6; }
.popup__svg--error { display: none; }
.popup.is-error .popup__icon { background: #c43a3a; }
.popup.is-error .popup__svg--success { display: none; }
.popup.is-error .popup__svg--error { display: block; }
.popup__title { font-size: 1.2rem; font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; margin: 0 auto 12px; max-width: 320px; }
.popup__message { font-size: .9rem; color: #3d4643; line-height: 1.7; margin: 0 auto 24px; max-width: 340px; white-space: pre-line; overflow-wrap: anywhere; }
.popup__ok {
  display: inline-flex; align-items: center; justify-content: center; min-width: 160px; padding: 13px 32px;
  border: 0; border-radius: var(--radius-sm); background: var(--green-800); color: var(--white);
  font: 800 .95rem/1 var(--font); letter-spacing: .04em; cursor: pointer; transition: background .2s;
}
.popup__ok:hover { background: var(--green-900); }
.popup__ok:focus-visible, .popup__close:focus-visible { outline: 3px solid rgba(21, 94, 84, .35); outline-offset: 2px; }
@keyframes popFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: rgba(255, 255, 255, .6); font-size: .85rem; padding: 22px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.footer p { margin: 0; }
.footer a { color: #ff5a5a; text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }
/* Love merah (SVG, supaya warnanya tidak diganti emoji bawaan OS) */
.heart { width: 18px; height: 18px; fill: #ff4d4d; stroke: none; vertical-align: -4px; margin: 0 2px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 56px 12px; background: rgba(8, 22, 19, .92); backdrop-filter: blur(6px);
  animation: fadeIn .25s var(--ease);
}
.lightbox__figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox__figure img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox__figure figcaption { margin-top: 12px; color: rgba(255, 255, 255, .7); font-size: .85rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .1); color: var(--white); transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { bottom: 12px; }
.lightbox__nav--prev { left: calc(50% - 56px); }
.lightbox__nav--next { right: calc(50% - 56px); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* =========================================================
   ≥ 640px — large phone / small tablet
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 28px; --section-y: 88px; }

  .hero__bar { margin-top: 28px; padding: 22px 24px; }
  .hero__meta { grid-template-columns: repeat(3, 1fr); }

  .speakers { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .gallery  { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .field-row { grid-template-columns: 1fr 1fr; }
  .form { padding: 32px; }

  .contact dl { grid-template-columns: auto 1fr; gap: 6px 16px; }
  .contact dt { font-size: inherit; }
  .contact dd { margin: 0; }

  .tl-title { font-size: 1rem; }
  .tl-sub { font-size: .9rem; }

  .info__card { padding: 8px 24px; }
  .info__row { gap: 16px; padding: 20px 0; }
  .info__row .icon { width: 48px; height: 48px; border-radius: 14px; }
  .info__row .icon svg { width: 22px; height: 22px; }

  .tl-item { grid-template-columns: 112px 1fr; gap: 20px; padding-left: 0; }
  .tl-item::before { left: 133px; }
  .tl-item::after  { left: 127px; top: 18px; }
  .tl-time { padding-top: 14px; text-align: right; padding-right: 6px; }
  .tl-body { margin-left: 22px; }

  .footer__inner { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   ≥ 900px — tablet landscape / desktop
   ========================================================= */
@media (min-width: 900px) {
  :root { --nav-h: 72px; --section-y: 104px; --kv-ratio: 1581 / 672; --kv-inset: .0285; --kv-fit: .78; }

  /* desktop nav */
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0;
    background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .nav__menu a:not(.btn) {
    position: relative; padding: 8px 14px; border: 0; font-size: .9rem; font-weight: 500; color: var(--muted); border-radius: 999px;
    transition: color .2s, background .2s;
  }
  .nav__menu a:not(.btn):hover { color: var(--green-800); background: var(--green-100); }
  .nav__menu a:not(.btn).is-active { color: var(--green-800); font-weight: 600; background: var(--green-100); }

  .nav__logo { height: 38px; }

  /* KV desktop (versi lebar) */
  .hero__rsvp { bottom: 8%; font-size: clamp(.8125rem, 1.05cqw, 1.0625rem); padding: .85em 1.5em; }
  /* Hero selalu setinggi layar: KV menempel di bawah, sisa ruang di atasnya
     diisi putih (bagian atas KV desktop memang putih polos) supaya terlihat full */
  .hero__visual { height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); align-items: flex-end; }
  .hero__visual::before { display: none; }
  .nav__title { font-size: .95rem; }
  .hero__bar {
    flex-direction: row; align-items: center; justify-content: space-between; gap: 24px;
    margin-top: 32px; padding: 22px 28px;
  }
  .hero__meta { flex: 1; gap: 24px; }


  /* Event info: card info di kiri, peta di kanan (setinggi card) */
  .info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } /* card info & peta sama lebar */
  .info__card h3 { white-space: nowrap; }
  .info__card { padding: 8px 32px; }
  .info__map { min-height: 100%; }
  .info__map iframe { height: 100%; min-height: 420px; }

  .speakers { grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
  .gallery  { grid-template-columns: repeat(4, 1fr); gap: 14px; }

  .form { padding: 40px; }

  .lightbox { padding: 40px 96px; }
  .lightbox__nav { top: 50%; bottom: auto; transform: translateY(-50%); width: 52px; height: 52px; }
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
  .lightbox__close { top: 20px; right: 20px; }
}

/* =========================================================
   ≥ 1100px — wide desktop
   ========================================================= */
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(5, 1fr); }
  .tl-item { grid-template-columns: 128px 1fr; }
  .tl-item::before { left: 149px; }
  .tl-item::after  { left: 143px; }
  .tl-body { padding: 20px 24px; }
}

/* Input nomor HP (type number) tanpa panah naik-turun */
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
