/* ==========================================================================
   Efata Gemilang Jaya, Concept Hub
   Fondasi bersama untuk Essential, Premium, Signature dan halaman pemilih.
   Ide utama: "benang merah", satu garis merah (warna sayap di logo) yang
   menyambung antar section dan diikat dengan simpul di tiap judul.
   ========================================================================== */

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* warna: diambil dari logo (sayap, perisai, huruf EGJ) dan seragam pink */
  --navy: #12203f;
  --navy-2: #1b2f5a;
  --navy-3: #0c1630;
  --ink: #1b2440;
  --muted: #545b73;
  --white: #fffbf9;
  --pink: #f6e1dd;
  --pink-2: #ecc7c1;
  --crimson: #8f1d26;
  --crimson-2: #c4414a;
  --gold: #c99a2e;
  --gold-2: #e8c870;

  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 64px;
  --gap-t: clamp(20px, 4vh, 48px);
  --pad-b: clamp(28px, 5vh, 56px);
  --pad-t: calc(var(--nav-h) + var(--gap-t));
  --thread-x: 18px;
  --pad-l: 54px;
  --pad-r: 20px;
  --radius: 10px;
}

@media (min-width: 760px) {
  :root {
    --nav-h: 72px;
    /* di layar sangat lebar, benang ikut bergeser ke tepi kolom 1440px */
    --thread-x: max(clamp(24px, 3.4vw, 52px), calc((100vw - 1440px) / 2 + 24px));
    --pad-l: calc(var(--thread-x) + clamp(34px, 4.4vw, 72px));
    --pad-r: max(clamp(28px, 5vw, 80px), calc((100vw - 1440px) / 2 + 28px));
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, ul, ol, figure, address, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.1rem + 3.6vw, 4.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.3vw, 3.1rem); letter-spacing: -0.005em; }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem); line-height: 1.2; }

.lede {
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.7;
  max-width: 46ch;
}
.muted { color: var(--muted); }

.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;
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible { outline-color: var(--gold-2); }

/* ---------- warna latar per section ---------- */
.on-white { --field: var(--white); --thread: var(--crimson); background: var(--white); color: var(--ink); }
.on-pink  { --field: var(--pink);  --thread: var(--crimson); background: var(--pink);  color: var(--ink); }
.on-navy  { --field: var(--navy);  --thread: var(--crimson-2); background: var(--navy); color: var(--white); }
.on-navy .muted { color: #b9c2db; }
.on-pink .muted { color: #4b5169; }

/* ---------- section: satu layar penuh, full bleed ---------- */
.sec {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--pad-t) var(--pad-r) var(--pad-b) var(--pad-l);
  display: grid;
  align-content: center;
  scroll-snap-align: start;
}
/* section yang isinya harus mengisi seluruh layar (peta, panel foto) */
.sec--fill { align-content: stretch; grid-template-rows: minmax(0, 1fr); }
.bleed-r { margin-right: calc(var(--pad-r) * -1); }
.bleed-b { margin-bottom: calc(var(--pad-b) * -1); }
.bleed-t { margin-top: calc(var(--gap-t) * -1); }

/* benang merah */
.sec::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: var(--thread-x);
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--thread);
}
/* simpul di judul. Tidak ada elemen ber-position di antara section dan judul,
   supaya simpul selalu sejajar dengan benang. */
.knot::before {
  content: "";
  position: absolute;
  left: var(--thread-x);
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: calc(0.55em - 7px);
  border-radius: 50%;
  background: var(--field, var(--white));
  border: 2.5px solid var(--gold);
}

/* ---------- navigasi ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 var(--pad-r) 0 calc(var(--thread-x) + 14px);
  background: rgba(255, 251, 249, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 32, 63, 0.1);
  color: var(--navy);
}
.nav--bare {
  position: absolute;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand img { height: 30px; width: auto; }
.brand span { max-width: 15ch; }
@media (min-width: 760px) {
  .brand img { height: 34px; }
  .brand span { max-width: none; font-size: 1.15rem; }
}

.nav-links { display: none; margin-left: auto; align-items: center; gap: 1.6rem; }
.nav-links a {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-links a.btn { color: #fff; padding: 0.5rem 1rem; }
.nav-links a.btn::after { display: none; }
.nav-cta { margin-left: 0.4rem; }

.menu { margin-left: auto; }
.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--navy);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary i {
  position: relative;
  width: 16px; height: 2px;
  background: currentColor;
}
.menu summary i::before,
.menu summary i::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor;
}
.menu summary i::before { top: -5px; }
.menu summary i::after { top: 5px; }
.menu ul {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  padding: 0.5rem var(--pad-r) 1rem calc(var(--thread-x) + 14px);
  background: var(--white);
  border-bottom: 1px solid rgba(18, 32, 63, 0.14);
  box-shadow: 0 18px 30px -20px rgba(18, 32, 63, 0.45);
}
.menu li a {
  display: block;
  padding: 0.85rem 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid rgba(18, 32, 63, 0.08);
}
.menu li:last-child a { border-bottom: 0; }

@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .menu { display: none; }
}

/* ---------- tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--crimson { background: var(--crimson); color: #fff; }
.btn--crimson:hover { background: #74161e; }
.btn--gold { background: var(--gold-2); color: var(--navy); }
.btn--gold:hover { background: #f1d78e; }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: rgba(127, 127, 127, 0.14); }
.btn--sm { min-height: 42px; padding: 0.5rem 1rem; font-size: 0.93rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- bingkai lengkung: dipakai satu kali, di foto hero ---------- */
.arch {
  position: relative;
  aspect-ratio: 3 / 4;
  width: var(--arch-w, min(100%, 400px));
  margin-inline: auto;
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
}
.arch::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1.5px solid var(--gold);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

/* ---------- satu momen gerak: benang menjulur, foto muncul dari bawah ---------- */
@keyframes thread-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes arch-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ring-in { from { opacity: 0; } to { opacity: 1; } }
.sec--first::before { transform-origin: top; animation: thread-draw 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.arch--in img { animation: arch-in 1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.arch--in::after { animation: ring-in 0.6s 1s ease both; }

/* ---------- ikon ---------- */
.ico { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- baris keunggulan (dipakai Premium dan Signature) ---------- */
.proofs { display: grid; }
.proof {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule, rgba(18, 32, 63, 0.18));
}
.proof:last-child { border-bottom: 1px solid var(--rule, rgba(18, 32, 63, 0.18)); }
.proof .ico { margin-top: 0.15rem; color: var(--ico, var(--crimson)); width: 1.7rem; height: 1.7rem; }
.proof h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); margin-bottom: 0.3rem; }
.proof p { max-width: 52ch; }
.on-navy .proof { --rule: rgba(255, 255, 255, 0.2); --ico: var(--gold-2); }

/* ---------- pita kredit ---------- */
.credit { font-size: 0.82rem; opacity: 0.8; }
.credit a { text-underline-offset: 3px; }

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