/* Caffera — halaman depan. Mobile dulu, melebar di atas 820px. */

/* Font dihosting sendiri (subset latin) supaya tidak menunggu server Google */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/playfair-display-500-latin.woff2") format("woff2");
}

:root {
  --brand: #1B3FE0;   /* biru logo */
  --navy: #0F1F6B;
  --tint: #EAF0FF;
  --subtle: #C9D8FF;
  --putih: #fff;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --lebar: 1120px;
  --gutter: max(20px, calc((100vw - var(--lebar)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--putih);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
img { display: block; max-width: 100%; }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* Tombol: pil dengan bayangan blok rata (tanpa blur) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 2px solid var(--navy); border-radius: 999px;
  background: var(--brand); color: var(--putih);
  font: 700 15px/1 var(--font); text-decoration: none;
  box-shadow: 4px 4px 0 var(--navy);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--navy); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--navy); }
.btn--kecil { min-height: 44px; padding: 0 18px; font-size: 13px; box-shadow: 3px 3px 0 var(--navy); }
.btn--garis { background: var(--putih); color: var(--navy); }

.kilau { width: 22px; height: 22px; fill: currentColor; }

/* Navigasi */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: var(--putih); border-bottom: 1px solid var(--navy);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.nav__brand img { border-radius: 50%; }
.nav__links { display: none; gap: 28px; font-size: 14px; font-weight: 600; }
.nav__links a { text-decoration: none; }
.nav__links a:hover { color: var(--brand); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: grid; gap: 56px; align-items: center;
  padding: 48px var(--gutter) 72px;
  background: var(--tint);
}
.hero::before {
  content: ""; position: absolute; left: -90px; top: -90px;
  width: 260px; height: 260px; border: 1px solid var(--subtle); border-radius: 50%;
}
.hero__teks { position: relative; display: grid; gap: 20px; justify-items: start; }
.kilau--hero { color: var(--brand); width: 26px; height: 26px; }
.hero__judul {
  font-size: clamp(46px, 11vw, 92px); font-weight: 800;
  line-height: .98; letter-spacing: -.035em;
}
.hero__judul .biru { display: block; color: var(--brand); }
.hero__sub { font-size: 15px; font-weight: 600; }

.hero__foto { position: relative; width: min(74vw, 340px); margin: 0 auto; }
.hero__cincin {
  position: absolute; left: 50%; top: 50%;
  width: 138%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 1px solid var(--navy); border-radius: 50%; background: rgba(201, 216, 255, .55);
}
.hero__bingkai {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border: 2px solid var(--navy); border-radius: 28px; background: var(--navy);
}
.hero__bingkai img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__bingkai figcaption {
  position: absolute; left: 0; right: 0; top: 54%; height: 20%;
  display: grid; place-items: center;
  background: rgba(15, 31, 107, .84); color: var(--putih);
  font: 500 clamp(20px, 5.4vw, 28px)/1 var(--font-serif);
}
.stiker {
  position: absolute; padding: 7px 13px;
  border: 2px solid var(--navy); border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.stiker--kiri { left: -16px; top: 7%; background: var(--brand); color: var(--putih); transform: rotate(-6deg); }
.stiker--kanan { right: -12px; bottom: 6%; background: var(--putih); transform: rotate(4deg); }
.stiker i { display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--brand); }

/* Strip teks berjalan */
.strip { overflow: hidden; background: var(--navy); color: var(--putih); padding: 13px 0; white-space: nowrap; }
.strip__jalur { display: inline-flex; animation: jalan 45s linear infinite; }
.strip span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.strip span::after { content: "✦"; margin: 0 26px; }
@keyframes jalan { to { transform: translateX(-50%); } }

/* Cerita: pita biru dengan tekstur paus dari logo di pojok kiri */
.cerita {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 20px;
  padding: 72px var(--gutter);
  background: var(--brand); color: var(--putih);
}
.cerita::before {
  content: ""; position: absolute; z-index: -1; left: -50px; bottom: -40px;
  width: 460px; height: 330px;
  background: url("../img/logo-tekstur.webp") -415px -545px / 900px auto no-repeat;
  mix-blend-mode: multiply; opacity: .4;
}
.cerita h2 { font-size: clamp(32px, 6vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.cerita h2 .kilau { width: 18px; height: 18px; vertical-align: top; }
.cerita p { max-width: 56ch; font-size: 16px; line-height: 1.75; }

/* Suasana */
.suasana { padding: 64px var(--gutter) 72px; }
.suasana__kepala { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.suasana h2 { font-size: clamp(24px, 4.6vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.suasana h2 a { color: var(--brand); text-decoration: none; }
.galeri { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.galeri li {
  aspect-ratio: 4 / 5; overflow: hidden;
  border: 2px solid var(--navy); border-radius: 22px; background: var(--subtle);
}
.galeri img { width: 100%; height: 100%; object-fit: cover; }

/* Lokasi */
.lokasi { display: grid; gap: 36px; padding: 64px var(--gutter) 72px; background: var(--tint); }
.lokasi__teks { display: grid; gap: 8px; justify-items: start; align-content: center; }
.lokasi h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 8px; }
.lokasi p, .lokasi address { font-size: 15px; font-weight: 600; font-style: normal; line-height: 1.6; }
.lokasi__kode { font-weight: 500; opacity: .85; }
.lokasi .btn { margin-top: 16px; }
.peta {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border: 2px solid var(--navy); border-radius: 18px; box-shadow: 5px 5px 0 var(--navy);
  background: var(--subtle);
}
.peta iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
.kaki { overflow: hidden; background: var(--brand); color: var(--putih); padding: 22px var(--gutter) 0; }
.kaki__baris { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }
.kaki__merek { display: inline-flex; align-items: center; gap: 8px; }
.kaki__merek img { border-radius: 50%; background: var(--putih); }
.kaki__baris a { text-decoration: underline; text-underline-offset: 3px; }
.kaki__nama {
  margin-top: 28px; text-align: center; white-space: nowrap;
  font-size: clamp(48px, 18vw, 232px); font-weight: 800; line-height: .8; letter-spacing: -.04em;
  transform: translateY(.06em);
}

/* Layar sempit: tekstur paus lebih samar supaya teks tetap nyaman dibaca */
@media (max-width: 819px) {
  .cerita::before { opacity: .28; width: 380px; height: 270px; background-size: 740px auto; background-position: -340px -450px; }
}

/* Layar lebih lebar */
@media (min-width: 600px) {
  .nav__links { display: flex; }
}
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding-top: 80px; padding-bottom: 96px; }
  .hero__foto { width: min(100%, 360px); margin: 0 0 0 auto; }
  .cerita { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
  .galeri { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .lokasi { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip__jalur { animation: none; }
  .btn { transition: none; }
}

/* Halaman 404 */
.hilang { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 24px; text-align: center; background: var(--tint); }
.hilang img { border-radius: 50%; }
.hilang h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: -.02em; }
