/* ===========================================================
   Selaras Wedding Studio — Editorial Scrollytelling Premium
   =========================================================== */

:root {
  --gold: #b8965a;
  --gold-soft: #d9b98a;
  --blush: #c98a8a;
  --sage: #7a8f6f;
  --ivory: #faf6f0;
  --paper: #f7ece0;
  --surface: #ffffff;
  --border: #e3d4bf;
  --ink: #2b2420;
  --ink-soft: #6b5c4c;
  --success: #4c7a52;
  --warning: #b8863a;
  --danger: #a3453a;
  --info: #4a6b7a;
  --shadow: 0 20px 50px rgba(43,36,32,.10);
  --radius: 4px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', 'Segoe UI', sans-serif;
}

:root[data-theme="dark"] {
  --ivory: #16130f;
  --paper: #1d1913;
  --surface: #211c16;
  --border: #3a3226;
  --ink: #f2e9db;
  --ink-soft: #c9b9a3;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivory: #16130f;
    --paper: #1d1913;
    --surface: #211c16;
    --border: #3a3226;
    --ink: #f2e9db;
    --ink-soft: #c9b9a3;
    --shadow: 0 20px 50px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, blockquote { font-family: var(--font-serif); font-weight: 500; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: #fff;
  padding: .75rem 1.25rem; z-index: 999; border-radius: var(--radius);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.grain-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .03; mix-blend-mode: multiply;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ---------- NAV (minimal persistent) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: var(--font-serif); font-size: 1.6rem; letter-spacing: .04em; }
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: .92rem; letter-spacing: .03em; color: var(--ink-soft); position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold);
  transition: width .3s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 50%; width: 38px; height: 38px;
  cursor: pointer; color: var(--ink); display: flex; align-items: center; justify-content: center; position: relative;
}
.theme-toggle i { position: absolute; transition: opacity .3s ease, transform .3s ease; font-size: .95rem; }
.theme-toggle .fa-moon { opacity: 0; transform: scale(.6); }
[data-theme="dark"] .theme-toggle .fa-sun { opacity: 0; transform: scale(.6); }
[data-theme="dark"] .theme-toggle .fa-moon { opacity: 1; transform: scale(1); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ---------- HERO ---------- */
.hero {
  min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 1.5rem 4rem; position: relative;
}
.hero-copy { max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--gold); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.12; font-style: italic; }
.hero-tagline { font-size: 1.15rem; max-width: 520px; margin: 1.4rem auto 2rem; }
.link-cta {
  display: inline-flex; align-items: center; gap: .6rem; font-size: 1rem; letter-spacing: .02em;
  border-bottom: 1px solid var(--gold); padding-bottom: 3px; transition: gap .25s ease, color .25s ease; color: var(--gold);
}
.link-cta:hover { gap: 1rem; }

.scroll-cue {
  position: absolute; bottom: 2.2rem; display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .78rem; letter-spacing: .08em; color: var(--ink-soft);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- STAT STRIP ---------- */
.stat-strip {
  display: flex; justify-content: center; gap: clamp(2rem, 8vw, 6rem); flex-wrap: wrap;
  padding: 2.5rem 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-serif); font-size: 2.6rem; color: var(--gold); }
.stat-label { font-size: .78rem; letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; }

/* ---------- SECTION HEAD (shared) ---------- */
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; padding: 0 1.5rem; }
.narrative-index {
  display: inline-block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .6rem;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- NARRATIVE (Cerita Kami) ---------- */
.narrative { padding: 6rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.narrative-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 6rem;
}
.narrative-block:last-child { margin-bottom: 0; }
.narrative-block.reverse { direction: rtl; }
.narrative-block.reverse > * { direction: ltr; }
.narrative-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.narrative-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- PAKET ---------- */
.paket { padding: 6rem 1.5rem; background: var(--paper); }
.paket-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.paket-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.4rem 2rem; text-align: center; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease;
}
.paket-card:hover, .paket-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); }
.paket-card.featured { border-color: var(--gold); position: relative; }
.paket-card.featured::before {
  content: "Paling Diminati"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-size: .68rem; letter-spacing: .06em; padding: .3rem .9rem; border-radius: 20px;
}
.paket-card h3 { font-size: 1.5rem; }
.paket-price { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); margin: .8rem 0 1.2rem; }
.paket-list { list-style: none; padding: 0; margin: 0 0 1.4rem; text-align: left; font-size: .9rem; }
.paket-list li { padding: .35rem 0; border-bottom: 1px dashed var(--border); }
.paket-list li i { color: var(--sage); margin-right: .5rem; }
.paket-more { font-size: .85rem; color: var(--gold); }

/* ---------- PROSES ---------- */
.proses { padding: 6rem 1.5rem; max-width: 900px; margin: 0 auto; }
.proses-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.proses-timeline::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px; background: var(--border);
}
.proses-step { display: flex; gap: 1.6rem; padding-bottom: 2.8rem; position: relative; }
.proses-step:last-child { padding-bottom: 0; }
.proses-num {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.3rem;
  color: var(--gold); background: var(--ivory); position: relative; z-index: 1;
}
.proses-step h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.proses-step p { margin: 0; }

/* ---------- GALERI / FILMSTRIP ---------- */
.galeri { padding: 6rem 0; }
.filmstrip {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 1.5rem 1rem;
  scrollbar-width: thin;
}
.filmstrip img {
  scroll-snap-align: start; flex: 0 0 320px; border-radius: var(--radius); cursor: zoom-in;
  transition: transform .3s ease;
}
.filmstrip img:hover { transform: scale(1.02); }

/* ---------- TESTIMONI ---------- */
.testimoni { padding: 5rem 1.5rem; text-align: center; }
.quote-rotator { max-width: 700px; margin: 0 auto; min-height: 180px; }
.quote-rotator blockquote {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-style: italic; line-height: 1.5; opacity: 0; transition: opacity .5s ease;
}
.quote-rotator blockquote.active { opacity: 1; }
.quote-author { color: var(--gold); font-size: .9rem; letter-spacing: .04em; margin-top: 1rem; }
.quote-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.quote-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0;
}
.quote-dots button.active { background: var(--gold); }

/* ---------- VENDOR ---------- */
.vendor { padding: 4rem 1.5rem; background: var(--paper); }
.vendor-grid {
  max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: center;
}
.vendor-grid img { border-radius: var(--radius); filter: grayscale(.15); transition: filter .3s ease; }
.vendor-grid img:hover { filter: grayscale(0); }

/* ---------- ARTIKEL ---------- */
.artikel { padding: 6rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.artikel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.artikel-card { cursor: pointer; }
.artikel-card img { border-radius: var(--radius); margin-bottom: 1rem; }
.artikel-card h3 { font-size: 1.2rem; }
.artikel-card .paket-more { display: inline-block; margin-top: .4rem; }

/* ---------- FAQ ---------- */
.faq { padding: 5rem 1.5rem; max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 1.2rem 0; font-family: var(--font-serif);
  font-size: 1.1rem; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-q i { transition: transform .3s ease; color: var(--gold); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding-bottom: 1.2rem; }

/* ---------- KONTAK ---------- */
.kontak { padding: 6rem 1.5rem; background: var(--paper); }
.kontak-wrap { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.kontak-info ul { list-style: none; margin: 0; padding: 0; }
.kontak-info li { display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px dashed var(--border); }
.kontak-info li i { color: var(--gold); width: 20px; }
.kontak-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.kontak-form h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .84rem; margin-bottom: .4rem; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--ivory); color: var(--ink); font-family: var(--font-sans); font-size: .95rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.btn-solid {
  display: inline-block; background: var(--gold); color: #fff; border: none; padding: .85rem 1.8rem;
  font-size: .92rem; letter-spacing: .03em; cursor: pointer; border-radius: 2px; transition: background .25s ease;
}
.btn-solid:hover { background: var(--blush); }

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 2rem 1.5rem; text-align: center; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .8rem; align-items: center; font-size: .85rem; color: var(--ink-soft);
}
.footer-social { display: flex; gap: 1rem; font-size: 1.1rem; }
.footer-social a:hover { color: var(--gold); }

/* ---------- FLOATING ---------- */
.wa-float {
  position: fixed; bottom: 1.6rem; left: 1.6rem; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: var(--shadow); z-index: 400; transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.back-to-top {
  position: fixed; bottom: 1.6rem; right: 1.6rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease; z-index: 400;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- MODAL ---------- */
.modal-overlay, .popup-overlay {
  position: fixed; inset: 0; background: rgba(20,16,12,.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 900; padding: 1.5rem;
}
.modal-overlay[hidden], .popup-overlay[hidden] { display: none; }
.modal-box, .popup-box {
  background: var(--surface); border-radius: var(--radius); max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 2.4rem; position: relative; box-shadow: var(--shadow);
  animation: popIn .3s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: var(--ink-soft); line-height: 1;
}
.popup-box { text-align: center; max-width: 440px; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,8,6,.9); z-index: 950; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 2rem; gap: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; border-radius: var(--radius); }
.lightbox p { color: #f2e9db; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: #f2e9db;
  font-size: 2rem; cursor: pointer;
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink);
  color: var(--ivory); padding: .9rem 1.6rem; border-radius: var(--radius); font-size: .9rem; opacity: 0;
  pointer-events: none; transition: opacity .3s ease, transform .3s ease; z-index: 1000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .narrative-block, .narrative-block.reverse { grid-template-columns: 1fr; direction: ltr; }
  .paket-grid, .artikel-grid { grid-template-columns: 1fr; }
  .vendor-grid { grid-template-columns: repeat(2, 1fr); }
  .kontak-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1.5rem; gap: 1.2rem; transform: translateY(-140%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }
}
