/* Gudang Pallet Al Amin — tampilan elegan: serif klasik, krem gading, hijau hutan, aksen kayu */
:root {
  --bg: #F6F2EA;
  --surface: #FFFDF8;
  --tint: #EDE6D8;
  --ink: #1E1C18;
  --muted: #6B655B;
  --line: #E2DACB;
  --accent: #2F4A3A;
  --accent-ink: #F6F2EA;
  --gold: #A9844F;
  --wa: #1FA855;
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 30px 60px -40px rgba(47, 38, 20, .45);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141613; --surface: #1B1E1A; --tint: #22261F; --ink: #EEE8DC; --muted: #A7A398;
    --line: #2F342D; --accent: #9CC3A6; --accent-ink: #10140F; --gold: #CFAE78;
    --shadow: 0 30px 60px -40px rgba(0, 0, 0, .8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141613; --surface: #1B1E1A; --tint: #22261F; --ink: #EEE8DC; --muted: #A7A398;
  --line: #2F342D; --accent: #9CC3A6; --accent-ink: #10140F; --gold: #CFAE78;
  --shadow: 0 30px 60px -40px rgba(0, 0, 0, .8); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.45rem; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow { font: 600 .74rem var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.sec-head { display: grid; gap: 16px; margin-bottom: 56px; max-width: 680px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font: 600 .92rem var(--font-body); letter-spacing: .02em; text-decoration: none; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.wa:hover { filter: brightness(.92); background: var(--wa); color: #fff; }
.btn.small { padding: 10px 18px; font-size: .85rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.link-arrow:hover { color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.topbar { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: .8rem; letter-spacing: .04em; padding: 8px 16px; }
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand b { display: block; font: 500 1.35rem/1 var(--font-display); }
.brand small { display: block; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--muted); padding-block: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav .btn { display: none; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none; }
  header.site.open .menu { display: flex; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu li.menu-cta { padding-top: 16px; }
  .menu li.menu-cta a { border: 0; }
}
@media (min-width: 961px) { .menu li.menu-cta { display: none; } }

/* Hero beranda */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); border-radius: var(--radius); }
.hero-media img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-badge { position: absolute; left: -24px; bottom: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.hero-badge b { display: block; font: 500 2rem/1 var(--font-display); }
.hero-badge span { font-size: .82rem; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; font: 500 2rem/1 var(--font-display); }
.facts span { font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { margin-right: 22px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-badge { left: 12px; bottom: 12px; padding: 12px 16px; }
  .hero-badge b { font-size: 1.5rem; }
}

/* Header halaman dalam */
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 18px 0 20px; max-width: 18ch; }
.crumbs { font-size: .82rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* Pilar */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 36px 32px 8px 0; display: grid; gap: 12px; align-content: start; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar .num { font: italic 400 1rem var(--font-display); color: var(--gold); }
.pillar p { color: var(--muted); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Kartu produk */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { background: var(--tint); padding: 28px 28px 18px; }
.card-img svg { display: block; width: 100%; height: auto; max-height: 160px; }
.card-body { padding: 26px 28px; display: grid; gap: 14px; align-content: start; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.badge { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; font-weight: 600; }
.dim { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.card-body > p { color: var(--muted); font-size: .95rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.specs dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-foot { padding: 20px 28px 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.price { font: 500 1.8rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.price small { display: block; font: 400 .75rem var(--font-body); color: var(--muted); margin-top: 6px; letter-spacing: .02em; }

/* Toggle harga */
.mode-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.toggle button { font: 600 .88rem var(--font-body); padding: 10px 20px; border-radius: 999px; background: transparent; color: var(--muted); border: 0; cursor: pointer; transition: background .2s, color .2s; }
.toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* Tabel harga */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-variant-numeric: tabular-nums; }
th, td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--tint); }
th span { display: block; letter-spacing: .02em; text-transform: none; font-size: .82rem; color: var(--ink); margin-top: 4px; font-weight: 500; }
tr:last-child td { border-bottom: 0; }
td .name { font: 500 1.15rem var(--font-display); }
td .sub { display: block; font-size: .8rem; color: var(--muted); }
td.num { font-weight: 600; }
td .save { display: block; font-size: .78rem; color: var(--accent); font-weight: 500; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.tier { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--gold); }
.tier p { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }

/* Langkah */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: "0" counter(s); font: italic 400 2.6rem/1 var(--font-display); color: var(--gold); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split > div { min-width: 0; }
.split .stack { display: grid; gap: 20px; justify-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.list-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list-lines li { display: grid; gap: 4px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.list-lines strong { font: 500 1.2rem var(--font-display); }
.list-lines span { color: var(--muted); font-size: .95rem; }

/* Galeri */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.shot { margin: 0; display: grid; gap: 16px; align-content: start; }
.shot button { all: unset; cursor: zoom-in; display: block; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.shot button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.shot img, .shot svg { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.shot button:hover img, .shot button:hover svg { transform: scale(1.04); }
.step-no { position: absolute; left: 14px; top: 14px; font: italic 500 .95rem var(--font-display); background: var(--surface); color: var(--ink); padding: 4px 12px; border-radius: 999px; }
.shot figcaption { display: grid; gap: 6px; }
.shot figcaption strong { font: 500 1.2rem var(--font-display); }
.shot figcaption span { color: var(--muted); font-size: .93rem; }
dialog#lightbox { width: min(960px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); overflow: auto; }
dialog#lightbox::backdrop { background: rgba(12, 12, 10, .8); }
.lb-media { aspect-ratio: 4 / 3; max-height: 64vh; width: 100%; background: var(--tint); }
.lb-media img, .lb-media svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.lb-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 24px 28px; }
.lb-info > div:first-child { flex: 1 1 280px; min-width: 0; display: grid; gap: 8px; }
.lb-info p:not(.eyebrow) { color: var(--muted); }
.lb-nav { display: flex; gap: 8px; }

/* Testimoni */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.quote { margin: 0; padding: 32px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 24px; align-content: space-between; }
.quote blockquote { margin: 0; font: italic 400 1.18rem/1.55 var(--font-display); }
.quote blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--gold); margin-bottom: 14px; }
.quote figcaption { font-size: .88rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); display: block; }

/* Ajakan */
.cta { background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--radius) * 1.5); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta h2 { color: inherit; }
.cta h2 em { color: inherit; opacity: .75; }
.cta p { opacity: .85; margin-top: 14px; max-width: 52ch; }
.cta .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.cta .btn:hover { background: transparent; color: var(--accent-ink); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Kontak */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); display: grid; gap: 18px; justify-items: start; align-content: start; }
.contact-card .big { font: 500 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mini { font: 600 .72rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 999px; cursor: pointer; }
.mini:hover { border-color: var(--gold); color: var(--gold); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); display: block; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding-block: 22px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 500 1.2rem var(--font-display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 300 1.5rem/1 var(--font-body); color: var(--gold); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--muted); max-width: 66ch; }

/* Footer */
footer.site { background: #171914; color: #E9E4D8; padding-block: 80px 36px; margin-top: 0; }
footer.site .brand small { color: #CFAE78; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
footer.site h4 { font: 600 .72rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: #CFAE78; margin: 0 0 16px; }
footer.site p, footer.site li { color: #B9B4A8; font-size: .93rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: #fff; }
.foot-about p { margin-top: 18px; max-width: 36ch; }
.fine { margin-top: 64px; padding-top: 24px; border-top: 1px solid #2D302A; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8rem; color: #8C887E; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Tombol WA mengambang */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5); transition: transform .25s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Animasi masuk */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Foto gudang */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.photo-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tint); aspect-ratio: 4 / 3; }
.photo-grid figure.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.photo-grid figure.wide { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.photo-grid figure:hover img { transform: scale(1.04); }
.photo-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid figure.big, .photo-grid figure.wide { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
}

/* Nama badan usaha di hero */
.legal { display: inline-block; margin-bottom: 18px; padding: 6px 16px; border: 1px solid var(--gold); border-radius: 999px; font: 500 .95rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--surface); }
.hero .legal + .eyebrow { display: flex; }
