/* Haupict Photography — token lihat DESIGN.md */
:root {
  --paper: #F5F1E8;
  --paper-2: #ECE6D9;
  --ink: #1C1915;
  --muted: #6B6358;
  --line: #D9D1C2;
  --accent: #8C5A3C;
  --night: #15130F;
  --night-text: #EDE7DA;
  --night-muted: #A69D8E;
  --night-line: #35302A;

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 10vw, 144px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.label {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.accent { color: var(--accent); }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; }
.section-head .label { margin-bottom: 16px; }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 500 15px/1 var(--body); letter-spacing: .02em; text-decoration: none;
  border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s;
}
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(237,231,218,.6); color: var(--night-text); }
.btn-ghost:hover { background: rgba(237,231,218,.14); border-color: var(--night-text); }
.btn-big { min-height: 60px; padding: 0 38px; font-size: 16px; }

/* Navigasi */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter); color: var(--night-text);
  transition: background .3s, color .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(245,241,232,.94); backdrop-filter: blur(10px); color: var(--ink); padding-block: 12px; border-color: var(--line); }
.brand { font-family: var(--display); font-size: 28px; letter-spacing: .02em; text-decoration: none; margin-right: auto; line-height: 1; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 15px; text-decoration: none; padding: 8px 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-links a:hover::after { transform: scaleX(1); }
.btn-nav { min-height: 40px; padding: 0 20px; border-color: currentColor; color: inherit; }
.btn-nav:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav:not(.solid) .btn-nav:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.menu-btn { display: none; background: none; border: 0; color: inherit; font: 500 15px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 12px 0 12px 12px; cursor: pointer; }

.mobile-menu { position: fixed; inset: 0; z-index: 40; background: var(--night); color: var(--night-text); padding: 96px var(--gutter) 40px; overflow-y: auto; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { font-family: var(--display); font-size: 36px; line-height: 1.1; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--night-line); }
.mobile-menu a.sub { font-family: var(--body); font-size: 16px; color: var(--night-muted); padding: 12px 0 12px 20px; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: transparent; color: var(--night-text); border-color: transparent; backdrop-filter: none; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 600px; max-height: 1100px; background: var(--night); color: var(--night-text); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 62% 40%; animation: heroIn 1.6s ease-out both; }
@keyframes heroIn { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(21,19,15,.88) 0%, rgba(21,19,15,.42) 42%, rgba(21,19,15,.18) 70%, rgba(21,19,15,.42) 100%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: clamp(36px, 7vh, 80px); }
.hero .label { color: var(--night-text); opacity: .85; margin-bottom: 20px; }
.hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1; max-width: 13ch; }
.hero-sub { margin-top: 24px; max-width: 44ch; font-size: 18px; color: var(--night-text); opacity: .9; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Intro */
.intro { padding-block: var(--section) calc(var(--section) * .6); }
.intro-text { font-family: var(--display); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.25; max-width: 26ch; margin-left: auto; margin-right: 8%; max-width: 30ch; }

/* Menu layanan */
.menu { padding-block: calc(var(--section) * .6) var(--section); }
.menu .section-head { margin-bottom: 40px; }
.menu-list { border-top: 1px solid var(--ink); }
.menu-list a {
  position: relative; display: grid; grid-template-columns: 56px 1fr auto 40px; align-items: baseline; gap: 16px;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .35s, color .35s;
}
.menu-list .num { font-size: 13px; letter-spacing: .14em; color: var(--accent); font-weight: 500; }
.menu-list .name { font-family: var(--display); font-size: clamp(34px, 5.2vw, 72px); line-height: 1; }
.menu-list .from { font-size: 15px; color: var(--muted); white-space: nowrap; }
.menu-list .arrow { font-size: 22px; text-align: right; transition: transform .35s; }
.menu-list img {
  position: absolute; right: 22%; top: 50%; width: clamp(160px, 17vw, 240px); height: auto; max-height: 300px; object-fit: cover;
  transform: translateY(-50%) rotate(-3deg) scale(.94); opacity: 0; pointer-events: none; z-index: 2;
  transition: opacity .35s, transform .45s;
}
@media (hover: hover) and (min-width: 861px) {
  .menu-list a:hover, .menu-list a:focus-visible { padding-left: 16px; }
  .menu-list a:hover .name, .menu-list a:focus-visible .name { font-style: italic; }
  .menu-list a:hover .arrow { transform: translateX(6px); }
  .menu-list a:hover img, .menu-list a:focus-visible img { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
}

/* Tentang */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 112px); align-items: center; padding-block: var(--section); border-top: 1px solid var(--line); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-text .label { margin-bottom: 16px; }
.about-text h2 { margin-bottom: 32px; }
.about-text > p { max-width: 58ch; color: #3A352E; }
.about-text > p + p { margin-top: 18px; }
.about blockquote { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.about blockquote p { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.35; max-width: 30ch; max-width: 34ch; }
.about blockquote footer { margin-top: 18px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Karya */
.works { padding-block: var(--section); border-top: 1px solid var(--line); }
.works .section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 36px); row-gap: clamp(40px, 6vw, 88px); align-items: start; }
.g button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; }
.g img { width: 100%; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.g button:hover img { transform: scale(1.035); }
.g figcaption { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.g1 { grid-column: 1 / span 7; }
.g2 { grid-column: 9 / span 4; margin-top: 96px; }
.g3 { grid-column: 2 / span 5; }
.g4 { grid-column: 8 / span 4; margin-top: -40px; }
.g5 { grid-column: 1 / span 6; margin-top: 40px; }
.g6 { grid-column: 7 / span 6; margin-top: 160px; }
.g7 { grid-column: 3 / span 8; }
.works-more { margin-top: clamp(48px, 6vw, 80px); text-align: center; color: var(--muted); }
.works-more a { color: var(--accent); text-underline-offset: 4px; }

/* Bab layanan */
.chapters { border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 112px); padding-block: var(--section); align-items: start; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter.flip .chapter-photo { order: 2; }
.chapter-photo { position: sticky; top: 96px; }
.chapter-photo img { width: 100%; max-height: calc(100vh - 140px); object-fit: cover; }
.chapter-body .label { margin-bottom: 14px; }
.chapter-body h2 { font-size: clamp(44px, 6.4vw, 88px); margin-bottom: 28px; }
.story { max-width: 56ch; color: #3A352E; }
.packages { margin-top: 48px; border-top: 1px solid var(--ink); }
.pkg { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.pkg header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pkg h3 { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.1; }
.price { font-family: var(--display); font-size: clamp(30px, 3.2vw, 40px); line-height: 1; font-variant-numeric: lining-nums; white-space: nowrap; }
.price small { font-family: var(--body); font-size: 12px; letter-spacing: .14em; color: var(--accent); font-weight: 500; vertical-align: .5em; margin-right: 4px; }
.pkg ul { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: 16px; color: #3A352E; }
.pkg li { padding-left: 18px; position: relative; }
.pkg li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--accent); }
.pkg-link { display: inline-block; margin-top: 20px; font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding: 6px 0 4px; transition: color .25s, border-color .25s; }
.pkg-link span { display: inline-block; transition: transform .3s; }
.pkg-link:hover { color: var(--accent); border-color: var(--accent); }
.pkg-link:hover span { transform: translateX(5px); }
.note { margin-top: 24px; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 62ch; }

/* FAQ */
.faq { background: var(--paper-2); padding-block: var(--section); }
.faq-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 112px); align-items: start; }
.faq .section-head { position: sticky; top: 110px; }
.faq-lead { margin-top: 24px; color: var(--muted); max-width: 34ch; }
.faq-lead a { color: var(--accent); text-underline-offset: 4px; }
.faq-list { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid #CFC6B5; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 24px 0; font-family: var(--display); font-size: clamp(22px, 2.1vw, 28px); line-height: 1.25; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--body); font-size: 22px; color: var(--accent); flex: none; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 48px 26px 0; max-width: 60ch; color: #3A352E; }

/* Kontak */
.contact { background: var(--night); color: var(--night-text); padding-top: var(--section); }
.contact .label { color: var(--night-muted); margin-bottom: 20px; }
.contact h2 { font-size: clamp(44px, 7.6vw, 112px); line-height: .98; max-width: 13ch; margin-bottom: 44px; }
.contact-list { margin-top: clamp(56px, 8vw, 104px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--night-line); padding-top: 28px; }
.contact-list li { display: flex; flex-direction: column; gap: 6px; }
.contact-list li > span:first-child { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
.contact-list a, .contact-list .plain { font-family: var(--display); font-size: 26px; line-height: 1.2; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-block: 28px; margin-top: clamp(56px, 8vw, 104px); border-top: 1px solid var(--night-line); font-size: 14px; color: var(--night-muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--night-text); }

/* WA mengambang */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 500 15px var(--body); text-decoration: none;
  border: 1px solid rgba(245,241,232,.25);
  transform: translateY(90px); opacity: 0; transition: transform .4s, opacity .4s, background .25s;
}
.wa-float.show { transform: none; opacity: 1; }
.wa-float:hover { background: var(--accent); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(21,19,15,.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; }
.lb-close { position: fixed; top: 18px; right: 20px; background: none; border: 1px solid rgba(237,231,218,.5); color: var(--night-text); border-radius: 999px; padding: 10px 20px; font: 500 14px var(--body); cursor: pointer; }
.lb-close:hover { background: rgba(237,231,218,.14); }

/* Muncul saat digulir */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Tablet & ponsel */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-links, .btn-nav { display: none; }
  .menu-btn { display: block; }
  .hero picture img { object-position: 60% 50%; }
  .intro-text { margin-inline: 0; }
  .menu-list a { grid-template-columns: 36px 1fr 28px; padding: 22px 0; row-gap: 6px; }
  .menu-list .from { grid-column: 2; grid-row: 2; font-size: 14px; }
  .menu-list .arrow { grid-column: 3; grid-row: 1; }
  .menu-list img { display: none; }
  .about, .chapter, .faq-grid { grid-template-columns: 1fr; }
  .chapter.flip .chapter-photo { order: 0; }
  .chapter-photo, .faq .section-head { position: static; }
  .chapter-photo img { max-height: 70vh; }
  .gallery { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .g { grid-column: auto !important; margin-top: 0 !important; }
  .g1, .g5, .g7 { grid-column: 1 / -1 !important; }
  .g1 { order: 1; } .g2 { order: 2; } .g4 { order: 3; } .g3 { order: 4; } .g5 { order: 5; } .g6 { order: 6; } .g7 { order: 7; }
  .g3, .g6 { grid-column: 1 / -1 !important; }
  .g5 { grid-column: 1 / -1 !important; }
  .g figcaption { font-size: 11px; }
  .contact-list { grid-template-columns: 1fr 1fr; }
  .wa-float { left: 16px; right: 16px; bottom: 14px; justify-content: center; }
  .contact .foot { padding-bottom: 88px; }
}
@media (max-width: 520px) {
  .pkg ul { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  details p { padding-right: 0; }
  .contact-list a, .contact-list .plain { font-size: 22px; }
}

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