/* ==========================================================================
   BCU Landing Page
   1. Tokens  2. Reset & base  3. Utilities  4. Header  5. Hero
   6. Sections & status  7. Cards  8. How to Order  9. Footer
   10. Cart drawer  11. Toast  12. Motion  13. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root,
[data-theme="dark"] {
  --bg: #0b0a09;
  --surface: #1f1b17;
  --surface-2: #171411;
  --border: #3a322a;
  --gold: #c9a23f;          /* isi tombol, aksen */
  --gold-text: #c9a23f;     /* teks emas */
  --on-gold: #1a1408;
  --text: #f2ebdd;
  --muted: #a39a8c;
  --header-bg: rgba(11, 10, 9, 0.6);
  --header-solid: rgba(11, 10, 9, 0.92);
  --overlay: rgba(0, 0, 0, 0.6);
  --ok: #7fb77e;
  --bad: #d77a6a;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f7f2e9;
  --surface: #ece3d3;
  --surface-2: #f1eadd;
  --border: #d6c8b0;
  --gold: #c9a23f;
  --gold-text: #8a6516;
  --on-gold: #1a1408;
  --text: #1e1a15;
  --muted: #645b4f;
  --header-bg: rgba(247, 242, 233, 0.6);
  --header-solid: rgba(247, 242, 233, 0.94);
  --overlay: rgba(30, 26, 21, 0.45);
  --ok: #3f7a3e;
  --bad: #a8442f;
  --shadow: 0 20px 50px rgba(60, 45, 20, 0.18);
  color-scheme: light;
}

:root {
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Reset & base ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* 3. Utilities ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  color: var(--gold-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn--solid { background: var(--gold); color: var(--on-gold); }
.btn--solid:hover { background: #d8b350; }
.btn--solid:active { transform: translateY(1px); }
.btn--text { color: var(--text); padding-inline: 16px; }
.btn--text:hover { color: var(--gold-text); }
.btn--block { width: 100%; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--text);
  transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--gold-text); }

/* 4. Header ---------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.header.is-scrolled {
  background: var(--header-solid);
  border-bottom-color: var(--border);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}
.header__logo img { width: 52px; height: 52px; transition: transform 0.3s var(--ease); }
.header__logo:hover img { transform: rotate(-8deg) scale(1.05); }

.nav__list { display: flex; gap: 32px; }
.nav__link {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.lang-btn { padding: 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }
.lang-btn { display: inline-flex; gap: 4px; }
.lang-btn__opt { color: var(--muted); transition: color 0.2s; }
.lang-btn__sep { color: var(--border); }
html[lang="en"] .lang-btn__opt[data-lang="en"],
html[lang="id"] .lang-btn__opt[data-lang="id"] { color: var(--gold-text); }

[data-theme="dark"] .icon--moon,
[data-theme="light"] .icon--sun { display: none; }

.cart-btn__count
.wishlist-btn__count {
  position: absolute;
  top: 2px; right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.cart-btn__count.is-bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }

.nav-toggle { display: none; }
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle { gap: 5px; grid-auto-flow: row; align-content: center; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  padding-block: 88px;
}
.hero__title {
  margin: 18px 0 22px;
  font-size: clamp(40px, 5.6vw, 64px);
  letter-spacing: -0.01em;
}
.hero__lead { max-width: 460px; color: var(--muted); font-size: 15px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* 6. Sections & status ----------------------------------------------------- */
.section { padding-block: 104px 32px; }
.section + .section { padding-top: 96px; }
.section:last-of-type { padding-bottom: 112px; }

.section__head { text-align: center; margin-bottom: 28px; }
.section__title { font-size: clamp(28px, 3.4vw, 36px); }
.section__lead { margin-top: 10px; color: var(--muted); }

.sub-title {
  margin: 56px 0 22px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sub-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  margin: 0 auto 40px;
  padding: 14px 20px;
  max-width: 820px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
}
.status-bar__days { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.status-bar__label { color: var(--muted); }
.status-bar__note { color: var(--muted); font-size: 12px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent);
}
.status-badge.is-open { color: var(--ok); }
.status-badge.is-closed { color: var(--bad); }
.status-badge.is-soon { color: var(--gold-text); }

.day-chips { display: flex; gap: 4px; }
.day-chip {
  min-width: 36px;
  padding: 3px 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  opacity: 0.55;
}
.day-chip.is-on { color: var(--gold-text); border-color: var(--gold); opacity: 1; }
.day-chip.is-today { box-shadow: inset 0 -2px 0 var(--text); opacity: 1; }

/* 7. Cards ----------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--samples { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; }
.card__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.card__media img {
  width: 100%;
  aspect-ratio: 800 / 660;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }

.wish-btn {
  position: absolute;
  top: 10px; right: 10px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(11, 10, 9, 0.85);
  color: #f2ebdd;
  transition: transform 0.2s, color 0.2s;
}
.wish-btn .icon { width: 15px; height: 15px; }
.wish-btn:hover { transform: scale(1.1); }
.wish-btn[aria-pressed="true"] { color: var(--gold); }
.wish-btn[aria-pressed="true"] .icon { fill: currentColor; }

.card__body { padding-top: 14px; display: flex; flex-direction: column; flex: 1; }
.card__cat {
  color: var(--gold-text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card__name { margin: 4px 0 14px; font-size: 18px; }
.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.card__price { font-size: 14px; font-weight: 600; }
.card__from { color: var(--muted); font-size: 11px; font-weight: 400; margin-right: 4px; }

.add-btn {
  min-width: 64px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold-text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
}
.add-btn:hover:not(:disabled),
.add-btn.is-added { background: var(--gold); color: var(--on-gold); }
.add-btn:disabled { border-color: var(--border); color: var(--muted); cursor: not-allowed; }

.sample { position: relative; overflow: hidden; border: 1px solid var(--border); }
.sample img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.6s var(--ease); }
.sample:hover img { transform: scale(1.05); }
.sample__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(11, 10, 9, 0.9));
  color: #f2ebdd;
}
.sample__type { color: #c9a23f; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.sample__title { font-family: var(--font-serif); font-size: 16px; }

/* 8. How to Order ---------------------------------------------------------- */
.order {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.order__inner { padding-block: 80px; text-align: center; }
.order__lead { max-width: 520px; margin: 12px auto 0; color: var(--muted); font-size: 14px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 36px auto;
  counter-reset: step;
}
.steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.steps__num {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-text);
  font-family: var(--font-serif);
  font-size: 16px;
}

/* 9. Footer ---------------------------------------------------------------- */
.footer { padding-top: 64px; font-size: 13px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr;
  gap: 32px;
}
.footer__logo { font-family: var(--font-serif); font-size: 22px; }
.footer__tagline { margin-top: 8px; color: var(--muted); }
.footer__heading {
  margin-bottom: 14px;
  color: var(--gold-text);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__col li + li { margin-top: 8px; }
.footer__col a { color: var(--muted); transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }

.newsletter__row { display: flex; border: 1px solid var(--border); }
.newsletter__input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  font-size: 13px;
}
.newsletter__input::placeholder { color: var(--muted); }
.newsletter__input:focus { outline: none; }
.newsletter__row:focus-within { border-color: var(--gold); }
.newsletter__btn { padding: 0 12px; color: var(--gold-text); }
.newsletter__btn .icon { width: 16px; height: 16px; }
.newsletter__msg { min-height: 20px; margin-top: 8px; font-size: 12px; }
.newsletter__msg.is-ok { color: var(--ok); }
.newsletter__msg.is-err { color: var(--bad); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.footer__social { display: flex; gap: 16px; }
.footer__social a:hover { color: var(--gold-text); }

/* 10. Cart drawer ---------------------------------------------------------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--overlay);
  opacity: 0;
  transition: opacity 0.3s;
}
.cart-overlay.is-open { opacity: 1; }

.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0.35s;
}
.cart.is-open { transform: none; visibility: visible; }
.cart:focus { outline: none; }

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart__title { font-size: 22px; }
.cart__body { flex: 1; overflow-y: auto; padding: 8px 24px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--border); }
.cart-item__name { font-family: var(--font-serif); font-size: 15px; line-height: 1.3; }
.cart-item__price { color: var(--muted); font-size: 12px; margin-top: 2px; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item__subtotal { font-size: 13px; font-weight: 600; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); }
.qty button { width: 28px; height: 28px; color: var(--muted); }
.qty button:hover { color: var(--gold-text); }
.qty span { min-width: 24px; text-align: center; font-size: 13px; }

.cart-item__remove { color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.cart-item__remove:hover { color: var(--bad); }

.cart__empty { padding: 56px 0; text-align: center; }
.cart__hint { margin-top: 6px; color: var(--muted); font-size: 13px; }

.cart__foot {
  display: grid;
  gap: 10px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.cart__total strong { font-size: 18px; }
.cart__note {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  resize: vertical;
}
.cart__note:focus { outline: none; border-color: var(--gold); }

/* 11. Toast ---------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  padding: 12px 20px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 12. Motion --------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* 13. Responsive ----------------------------------------------------------- */
@media (max-width: 1023px) {
  .grid--products,
  .grid--samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-block: 64px; }

  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .header__inner { grid-template-columns: auto 1fr; }
  .nav-toggle { display: inline-grid; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--header-solid);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav__link { display: block; padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .nav__link.is-active { color: var(--gold-text); }
}

@media (max-width: 639px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .header__logo img { width: 44px; height: 44px; }
  .header__actions { gap: 0; }

  .grid { gap: 16px; }
  .card__name { font-size: 16px; }
  .card__row { flex-wrap: wrap; }

  .section { padding-top: 72px; }
  .section + .section { padding-top: 64px; }

  .status-bar { flex-direction: column; text-align: center; }

  .steps { grid-template-columns: 1fr; gap: 20px; }
  .order__inner { padding-block: 64px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--news { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 379px) {
  .grid--products { grid-template-columns: 1fr; }
}
