/* restore.css - sistem desain situs publik.
   Nuansa: mebel jati premium. Serif editorial untuk judul, sans jernih untuk
   teks, palet aubergine + kuningan di atas ivory hangat. */

:root {
  /* ---- tipografi ----
     Fraunces: serif dengan sumbu optical-size, tegas di ukuran besar dan
     tetap hangat - cocok untuk kerajinan kayu, bukan kesan teknologi.
     Inter: teks isi, paling jernih di ukuran kecil. */
  --font-head: Fraunces, "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;

  /* ---- warna ----
     Ungu dipertahankan tapi diperdalam jadi aubergine; violet terang terasa
     seperti aplikasi teknologi, bukan galeri mebel. */
  --ink: #241d2b;
  --muted: #6f6577;
  --brand: #4c2a68;
  --brand-dark: #33194a;
  --brand-light: #7a5aa0;
  --brand-tint: #f2ecf6;
  --brass: #b8924a;
  --brass-soft: #d9c08a;
  --cream: #faf7f2;
  --sand: #f0eae0;
  --line: #e6ddd0;
  --line-soft: #efe8dd;

  --radius: 3px;
  --radius-lg: 5px;
  --shadow-sm: 0 1px 2px rgba(36, 29, 43, .05);
  --shadow-md: 0 10px 34px rgba(36, 29, 43, .10);
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.icon { width: 1.2em; height: 1.2em; vertical-align: -.22em; flex: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; }

/* angka harga sejajar rapi */
.price, .price-lg, .t-card .who, .info-list .v { font-variant-numeric: tabular-nums; }

/* ---------- topbar ---------- */
.topbar {
  background: var(--brand-dark); color: #e0d5ea;
  font-size: .8rem; letter-spacing: .01em; padding: 9px 0;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.topbar a { color: #e0d5ea; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .soc { display: flex; gap: 15px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .95);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 82px; }

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 44px; height: 44px; flex: none; border-radius: 2px;
  background: linear-gradient(150deg, var(--brand-light), var(--brand-dark));
  color: var(--cream); font-family: var(--font-head); font-size: 1.45rem; font-weight: 600;
  display: grid; place-items: center; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.brand .name {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 600;
  letter-spacing: -.005em; white-space: nowrap; line-height: 1.15;
}
/* tagline pakai sans - huruf kapital berspasi lebar mustahil dibaca kalau serif */
.brand .name small {
  display: block; font-family: var(--font-body); font-size: .6rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--brass);
  font-weight: 600; margin-top: 4px;
}

.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a {
  position: relative; text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: .89rem; letter-spacing: .04em;
  text-transform: uppercase; padding: 10px 15px;
}
.nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 1px; background: var(--brass); transform: scaleX(0);
  transition: transform .25s ease; transform-origin: left;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--brand); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 11px; cursor: pointer; color: var(--ink);
}

/* ---------- pencarian ---------- */
.search { position: relative; }
.search input {
  width: 216px; padding: 10px 14px 10px 38px; font: inherit; font-size: .88rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); transition: border-color .2s, width .25s;
}
.search input::placeholder { color: #a49b8d; }
.search input:focus { outline: none; border-color: var(--brass); width: 250px; }
.search .s-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-results {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(380px, 80vw);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden; display: none; z-index: 60;
}
.search-results.open { display: block; }
.search-results a {
  display: flex; gap: 13px; align-items: center; padding: 12px 15px;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-soft);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a:focus { background: var(--sand); }
.search-results img { width: 48px; height: 48px; object-fit: cover; }
.search-results .t { font-weight: 600; font-size: .89rem; }
.search-results .p { font-size: .82rem; color: var(--brand); font-weight: 600; }
.search-results .empty { padding: 16px; color: var(--muted); font-size: .88rem; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 460px at 78% 4%, rgba(184, 146, 74, .13), transparent 62%),
    linear-gradient(178deg, var(--sand), var(--cream) 72%);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 8vw, 110px) 0;
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 6vw, 72px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .69rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 24px;
}
.eyebrow::after { content: ""; width: 44px; height: 1px; background: var(--brass-soft); }

.hero h1 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.06;
  letter-spacing: -.022em; margin: 0 0 22px;
}
.hero p.lead {
  font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--muted);
  margin: 0 0 34px; max-width: 46ch; line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-collage a {
  overflow: hidden; background: var(--sand); position: relative;
  box-shadow: var(--shadow-md); border-radius: var(--radius);
}
.hero-collage a:first-child { grid-row: span 2; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; transition: transform .7s cubic-bezier(.2, .7, .3, 1); }
.hero-collage a:first-child img { aspect-ratio: 3 / 4.1; }
.hero-collage a:hover img { transform: scale(1.05); }

/* ---------- tombol ---------- */
.btn-x {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.btn-primary-x { background: var(--brand); color: #fff; }
.btn-primary-x:hover { background: var(--brand-dark); }
.btn-wa { background: #1d8a4c; color: #fff; }
.btn-wa:hover { background: #156b3a; }
.btn-ghost-x { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-x:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; }

/* ---------- seksi ---------- */
.section { padding: clamp(58px, 8.5vw, 108px) 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }

.section-head { margin-bottom: 48px; max-width: 60ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h1, .section-head h2 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem); margin: 0 0 14px;
  line-height: 1.16; letter-spacing: -.018em;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1rem; }
/* garis kuningan tipis sebagai penanda seksi */
.section-head.center h1::after, .section-head.center h2::after {
  content: ""; display: block; width: 56px; height: 1px;
  background: var(--brass); margin: 20px auto 0;
}
.section-head:not(.center) h1::after, .section-head:not(.center) h2::after {
  content: ""; display: block; width: 56px; height: 1px;
  background: var(--brass); margin: 18px 0 0;
}

/* ---------- kartu produk ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 30px; }

.p-card {
  background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; border-radius: var(--radius);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.p-card:hover { box-shadow: var(--shadow-md); border-color: var(--brass-soft); transform: translateY(-3px); }
.p-card .thumb { position: relative; display: block; background: var(--sand); overflow: hidden; }
.p-card .thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .3, 1); }
.p-card:hover .thumb img { transform: scale(1.055); }
.p-card .cat {
  position: absolute; left: 0; top: 14px; background: var(--brand); color: #fff;
  font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 13px;
}
.p-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-card h3 {
  margin: 0; font-family: var(--font-head); font-weight: 600;
  font-size: 1.16rem; line-height: 1.3; letter-spacing: -.01em;
}
.p-card h3 a { color: var(--ink); text-decoration: none; }
.p-card h3 a:hover { color: var(--brand); }
.p-card .desc { margin: 0; font-size: .87rem; color: var(--muted); line-height: 1.65; }
.p-card .price {
  font-weight: 600; color: var(--brand); font-size: 1.16rem; margin-top: auto;
  padding-top: 6px; letter-spacing: -.01em;
}
.p-card .acts { display: flex; gap: 9px; margin-top: 4px; }
.p-card .acts .btn-x { flex: 1; padding: 11px 12px; font-size: .72rem; letter-spacing: .08em; }

/* ---------- kategori ---------- */
.grid-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 22px; }
.c-card {
  display: flex; align-items: center; gap: 17px; padding: 26px 24px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius); transition: border-color .25s ease, box-shadow .25s ease;
}
.c-card:hover { border-color: var(--brass); box-shadow: var(--shadow-md); }
.c-card .ic {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--brass-soft); color: var(--brass); border-radius: 50%;
}
.c-card .n { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; }
.c-card .m { font-size: .78rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- rail testimoni (carousel CSS, tanpa JS) ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 18px; scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: var(--sand); }
.rail::-webkit-scrollbar-thumb { background: var(--brass-soft); }

.t-card {
  background: #fff; border: 1px solid var(--line); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 15px; border-radius: var(--radius);
}
.t-card p {
  margin: 0; font-family: var(--font-head); font-size: 1.02rem;
  font-weight: 500; line-height: 1.62; font-style: italic; color: #3b3243;
}
.t-card .who { display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.t-card .av {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 600; font-size: .95rem;
}
.t-card .who .n { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.t-card .who .a { font-size: .78rem; color: var(--muted); }

.stars { display: inline-flex; gap: 3px; }
.stars .star { width: 15px; height: 15px; color: #ded5c6; }
.stars .star.on { color: var(--brass); }

/* ---------- remah roti & detail ---------- */
.crumbs {
  font-size: .78rem; color: var(--muted); padding: 24px 0 0;
  letter-spacing: .04em; text-transform: uppercase;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin-inline: 9px; color: var(--brass-soft); }

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); padding: 38px 0 12px; align-items: start; }
.gallery .main { overflow: hidden; border: 1px solid var(--line); background: var(--sand); border-radius: var(--radius); }
.gallery .main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 12px; margin-top: 14px; }
.gallery .thumbs a { overflow: hidden; border: 1px solid var(--line); background: var(--sand); border-radius: var(--radius); transition: border-color .2s; }
.gallery .thumbs a:hover { border-color: var(--brass); }
.gallery .thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.detail h1 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem); margin: 4px 0 16px;
  line-height: 1.13; letter-spacing: -.02em;
}
.detail .price-lg {
  font-size: clamp(1.5rem, 3vw, 1.95rem); font-weight: 600; color: var(--brand);
  margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line);
  letter-spacing: -.015em;
}
.detail .meta { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  padding: 7px 14px; text-decoration: none; border-radius: var(--radius);
}
a.chip:hover { border-color: var(--brass); color: var(--brand); }
.detail .buybox { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.usp { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.usp li { display: flex; gap: 11px; align-items: flex-start; font-size: .91rem; color: var(--muted); }
.usp svg { color: var(--brass); margin-top: .22em; }

/* ---------- teks panjang ---------- */
.prose-x { max-width: 68ch; font-size: 1.02rem; }
.prose-x h2, .prose-x h3 {
  font-family: var(--font-head); font-weight: 600; margin: 1.7em 0 .55em;
  line-height: 1.28; letter-spacing: -.012em;
}
.prose-x h2 { font-size: 1.5rem; }
.prose-x h3 { font-size: 1.22rem; }
.prose-x p { margin: 0 0 1.15em; }
.prose-x ul, .prose-x ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.prose-x li { margin-bottom: .5em; }
.prose-x li::marker { color: var(--brass); }
.prose-x strong { color: var(--ink); font-weight: 600; }
.prose-x figure { margin: 2em 0; }
.prose-x figure img {
  border: 1px solid var(--line); border-radius: var(--radius);
  max-height: 460px; width: auto; margin-inline: auto;
}
.prose-x figcaption {
  font-size: .82rem; color: var(--muted); text-align: center; margin-top: .8em;
  letter-spacing: .05em; text-transform: uppercase;
}
.prose-x img { border-radius: var(--radius); }

/* ---------- kontak ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--brass-soft); color: var(--brass); border-radius: 50%;
}
.info-list .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .17em; color: var(--muted); font-weight: 600; }
.info-list .v { font-weight: 600; font-size: 1.02rem; }
.info-list a { color: var(--ink); text-decoration: none; }
.info-list a:hover { color: var(--brand); }

.note {
  background: var(--sand); border: 0; border-left: 2px solid var(--brass);
  padding: 22px 26px; font-size: .93rem; color: #574d5f; line-height: 1.7;
}
.note strong { color: var(--ink); }

/* ---------- pita ajakan ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--brand-dark), var(--brand) 65%, #5d3780);
  color: #fff; padding: clamp(56px, 8vw, 96px) 0; text-align: center;
  position: relative;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 240px at 50% 0%, rgba(184, 146, 74, .22), transparent 70%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; }
.cta-band h2 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem); margin: 0 0 16px; letter-spacing: -.018em;
}
.cta-band p { margin: 0 auto 32px; max-width: 52ch; opacity: .88; font-size: 1.02rem; }
.cta-band .btn-x { background: var(--cream); color: var(--brand-dark); }
.cta-band .btn-x:hover { background: #fff; }

/* ---------- footer ---------- */
.site-footer { background: #1b1522; color: #a99fb2; padding: 76px 0 0; font-size: .92rem; }
.site-footer a { color: #a99fb2; text-decoration: none; }
.site-footer a:hover { color: var(--brass-soft); }
.f-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px; }
.f-grid h4 {
  color: #fff; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  margin: 0 0 20px; font-weight: 600;
}
.f-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.f-brand .name {
  font-family: var(--font-head); font-weight: 600; font-size: 1.4rem;
  color: #fff; margin-bottom: 12px; letter-spacing: -.01em;
}
.f-brand p { margin: 0 0 22px; max-width: 32ch; line-height: 1.7; }
.f-soc { display: flex; gap: 11px; }
.f-soc a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%;
  transition: border-color .25s, color .25s;
}
.f-soc a:hover { border-color: var(--brass); color: var(--brass); }
.f-bottom {
  margin-top: 60px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0 30px;
  font-size: .8rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  color: #7d7387; letter-spacing: .03em;
}

/* ---------- tombol WA mengambang ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; background: #1d8a4c; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 26px rgba(29, 138, 76, .38);
  transition: transform .22s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 29px; height: 29px; }

/* ---------- lain-lain ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- responsif ---------- */
@media (max-width: 940px) {
  .hero .wrap, .detail, .contact-grid { grid-template-columns: 1fr; }
  .hero-collage { max-width: 480px; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .section-head { margin-bottom: 36px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .search { order: 3; width: 100%; }
  .search input, .search input:focus { width: 100%; }
  .site-header .wrap { flex-wrap: wrap; position: relative; min-height: 70px; padding-block: 12px; }
}
@media (max-width: 560px) {
  .f-grid { grid-template-columns: 1fr; gap: 30px; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 16px; }
  .p-card .body { padding: 16px 15px 18px; }
  .p-card h3 { font-size: 1rem; }
  .p-card .acts { flex-direction: column; }
  .rail { grid-auto-columns: minmax(270px, 1fr); }
  .btn-x { padding: 13px 22px; }
}

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

@media print {
  .site-header, .topbar, .wa-float, .site-footer, .cta-band { display: none; }
}
