/* Trustile — shared stylesheet
   Palette: deep wine + dusty rose + ivory, drawn straight from the Trustile
   wordmark's own ribbon gradient (not a generic craft-market orange), to read
   as an elegant fabric house rather than a flat marketplace. Mobile-first
   since most traffic lands from a WhatsApp/Instagram link on a phone. */

:root {
  --maroon: #5e1f2c;
  --maroon-dark: #421521;
  --maroon-deep: #280d15;
  --terracotta: #9c6467; /* dusty rose accent, sampled from the logo's ribbon swash */
  --cream: #faf7f2;
  --cream-dark: #f1e7e0;
  --charcoal: #2a2320;
  --ink-soft: #6b5d56;
  --line: #e6dad2;
  --wa-green: #25D366;
  --wa-green-dark: #1da851;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(42,35,32,0.07);
  --shadow-lift: 0 8px 24px rgba(42,35,32,0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0 0 .5em; color: var(--maroon-dark); }
p { margin: 0 0 1em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / nav ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 14px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }
@media (max-width: 480px) { .brand-logo { height: 34px; } }

nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  text-decoration: none; color: var(--charcoal); font-size: .95rem; font-weight: 600;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a.active { border-bottom-color: var(--terracotta); color: var(--maroon); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--maroon-dark); cursor: pointer; }

@media (max-width: 720px) {
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-wa { background: var(--wa-green); color: #fff; }
.btn-wa:hover { background: var(--wa-green-dark); }
.btn-outline { background: transparent; border-color: var(--maroon); color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--maroon-dark); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 65%);
  color: #fdf7ef;
  padding: 64px 0 56px;
}
.hero .container { display: grid; gap: 28px; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: #f0c9a6; margin-bottom: 14px;
}
.hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 16px; }
.hero p.lead { color: #ecdccb; font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.trust-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.trust-points li { display: flex; gap: 10px; align-items: flex-start; color: #f4e9dc; font-size: .95rem; }
.trust-points li::before { content: "✓"; color: #f0c9a6; font-weight: 900; }

.hero-visual {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 22px; backdrop-filter: blur(2px);
}
.hero-visual .swatch-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.hero-visual .mini-swatch { aspect-ratio: 1; border-radius: 8px; }
.hero-visual p { color: #ecdccb; font-size: .85rem; margin: 0; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 34px; text-align: center; }
.section-head h2 { font-size: 1.8rem; }
.section-head p { color: var(--ink-soft); }

.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.info-card .icon-badge {
  width: 42px; height: 42px; border-radius: 10px; background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.3rem;
}
.pillar-list { display: flex; flex-direction: column; gap: 16px; }
.pillar { padding-top: 14px; border-top: 1px solid var(--line); }
.pillar:first-child { padding-top: 0; border-top: none; }
.pillar h4 {
  font-family: Georgia, serif; color: var(--maroon-dark); font-size: .95rem;
  margin: 0 0 4px; text-transform: uppercase; letter-spacing: .5px;
}
.pillar p { color: var(--ink-soft); font-size: .88rem; margin: 0; line-height: 1.55; }

.band-cream { background: var(--cream-dark); }
.band-maroon { background: var(--maroon); color: #fff; }
.band-maroon h2 { color: #fff; }
.band-maroon p { color: #ecdccb; }

/* ---------- Katalog ---------- */
.catalog-banner {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 3px, transparent 3px 14px),
    linear-gradient(160deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  padding: 46px 20px;
}
.catalog-banner-inner { max-width: 1120px; margin: 0 auto; }
.catalog-banner h1 { color: #fff; font-size: 2.1rem; margin: 4px 0 0; }
.catalog-section { padding-top: 32px; }

.search-row { display: flex; gap: 10px; }
.search-row input[type="text"] {
  width: 80%; padding: 12px 16px; border-radius: 999px; border: 2px solid var(--line);
  font-size: .95rem; line-height: 1.3; background: #fff;
}
.search-row input[type="text"]:focus { outline: none; border-color: var(--terracotta); }
select.jenis-select {
  padding: 10px 14px; border-radius: 999px; border: 2px solid var(--line);
  background: #fff; font-size: .88rem; font-weight: 600; color: var(--maroon-dark);
}
.result-count { font-size: .82rem; color: var(--ink-soft); margin: 0; }

/* ---- sidebar + grid layout ---- */
.filter-toggle {
  display: none; width: 100%; margin-bottom: 16px; padding: 12px 16px;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  font-weight: 700; font-size: .9rem; color: var(--maroon-dark); cursor: pointer;
}
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }

.filter-sidebar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); position: sticky; top: 90px;
}
.filter-group { border-bottom: 1px solid var(--line); padding: 12px 0; }
.filter-group:first-of-type { padding-top: 0; }
.filter-group:last-of-type { border-bottom: none; }
.filter-group summary {
  cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--charcoal);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "+"; color: var(--ink-soft); font-weight: 400; font-size: 1.1rem; }
.filter-group[open] summary::after { content: "−"; }
.filter-list { margin-top: 10px; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.filter-row {
  display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--charcoal);
  padding: 5px 4px; border-radius: 6px; cursor: pointer;
}
.filter-row:hover { background: var(--cream-dark); }
.filter-row input[type="radio"] { accent-color: var(--maroon-deep); flex-shrink: 0; }
.filter-row span:nth-child(2) { flex: 1; }

.catalog-toolbar-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }

.catalog-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1180px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .catalog-grid { grid-template-columns: 1fr; } }

.fabric-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.fabric-swatch, .fabric-media {
  aspect-ratio: 4/3; position: relative; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--cream-dark);
}
.fabric-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fabric-swatch .name-on-swatch {
  background: rgba(0,0,0,.32); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 6px 10px; width: 100%;
}
.fabric-swatch .pola-badge, .fabric-media .pola-badge {
  position: absolute; top: 8px; left: 8px; background: var(--terracotta);
  color: #fff; font-size: .64rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .3px;
}

@media (max-width: 860px) {
  .filter-toggle { display: block; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-sidebar {
    display: none; position: static; margin-bottom: 20px;
  }
  .filter-sidebar.open { display: block; }
}
.fabric-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fabric-body h4 { margin: 0; font-size: .98rem; font-family: -apple-system,sans-serif; color: var(--charcoal); font-weight: 700; }
.fabric-meta { font-size: .78rem; color: var(--ink-soft); }
.fabric-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 8px; }
.tag-pill { font-size: .68rem; background: var(--cream-dark); color: var(--maroon-dark); padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.tag-pill-cat {
  font-size: .68rem; background: #fff; color: var(--terracotta); border: 1.3px solid var(--terracotta);
  padding: 2px 8px; border-radius: 999px; font-weight: 700;
}
.color-label { font-size: .68rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.color-dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.color-dot {
  width: 20px; height: 20px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid rgba(0,0,0,0.12); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
  transition: transform .1s ease, box-shadow .1s ease;
}
.color-dot.has-border { border-color: var(--line); }
.color-dot:hover { transform: scale(1.15); }
.color-dot.selected {
  border-color: var(--maroon-deep);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--maroon-deep);
}
.fabric-cta { margin-top: auto; }
.fabric-cta .btn { width: 100%; justify-content: center; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* ---------- Tentang / Kontak ---------- */
.about-hero { padding: 44px 0; }
.about-block { display: grid; gap: 34px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 780px) { .about-block { grid-template-columns: 1fr; } }
.stat-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 20px; }
.stat { }
.stat b { display: block; font-size: 1.7rem; color: var(--maroon); font-family: Georgia, serif; }
.stat span { font-size: .8rem; color: var(--ink-soft); }

.contact-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.1rem; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: .95rem; }
.contact-line .ic { font-size: 1.2rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

.todo-banner {
  background: #fdeeee; border: 1px solid #f0b8b8; color: #7a2020;
  border-radius: var(--radius); padding: 12px 16px; font-size: .82rem; margin-bottom: 16px;
}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--charcoal); color: #cfc4b8; padding: 34px 0 22px; margin-top: 40px; }
footer.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer.site-footer .foot-brand { font-family: Georgia, serif; color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
footer.site-footer small { font-size: .78rem; color: #9c8f80; }

/* ---------- Pencari Kain (fabric-finder quiz) ---------- */
.quiz-hero { padding: 44px 0 8px; text-align: center; }
.quiz-hero h2 { font-size: 1.9rem; }
.quiz-hero p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto; }

/* Homepage variant: big serif title on plain white, quiz sits in a card below. */
.quiz-intro { padding: 52px 0 8px; text-align: center; background: #fff; }
.quiz-intro .eyebrow { color: var(--terracotta); }
.quiz-intro h1 { font-size: 2.3rem; margin: 6px 0 10px; }
.quiz-intro .lead { color: var(--ink-soft); max-width: 56ch; margin: 0 auto; }
.quiz-embed-card {
  background: var(--cream-dark); border-radius: 20px; padding: 34px 34px 30px;
  border: 1px solid var(--line);
}
@media (max-width: 600px) { .quiz-embed-card { padding: 22px 16px 20px; } }

.step-nav { display: flex; margin: 30px 0 40px; }
.step-nav .step {
  flex: 1; min-width: 0; background: #fff; color: var(--ink-soft);
  font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  text-align: center; padding: 14px 8px; position: relative; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
  margin-left: -16px; border: 1px solid var(--line);
}
.step-nav .step:first-child {
  margin-left: 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}
.step-nav .step:hover { background: var(--cream-dark); }
.step-nav .step span { display: block; }
.step-nav .step .step-sub { font-size: .66rem; text-transform: none; font-weight: 600; opacity: .85; margin-top: 2px; }
.step-nav .step.done { background: var(--maroon-dark); color: #fff; border-color: var(--maroon-dark); z-index: 1; }
.step-nav .step.done:hover { background: var(--maroon); border-color: var(--maroon); }
.step-nav .step.active { background: var(--maroon-deep); color: #fff; border-color: var(--maroon-deep); z-index: 2; cursor: default; }
.step-nav .step.active:hover { background: var(--maroon-deep); }
@media (max-width: 720px) {
  .step-nav .step { font-size: .62rem; padding: 12px 4px; }
  .step-nav .step .step-sub { display: none; }
}

.quiz-back {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: #fff;
  color: var(--maroon-dark); font-size: 1rem; cursor: pointer; margin-bottom: 18px;
}
.quiz-back:disabled { opacity: 0; pointer-events: none; }

.quiz-question { text-align: center; margin-bottom: 8px; }
.quiz-question h3 { font-size: 1.6rem; }
.quiz-hint { text-align: center; color: var(--ink-soft); font-size: .88rem; margin-bottom: 28px; }

.option-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.option-card {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px 12px; text-align: center; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.option-card .ico { font-size: 1.7rem; }
.option-card .t { font-size: .86rem; font-weight: 700; color: var(--charcoal); }
.option-card:hover { border-color: var(--terracotta); }
.option-card.selected { border-color: var(--maroon-deep); background: var(--cream-dark); }
.option-card.selected .t { color: var(--maroon-deep); }

.quiz-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.quiz-skip { text-align: center; margin-top: 14px; font-size: .88rem; }
.quiz-skip a { color: var(--maroon); font-weight: 700; text-decoration: underline; cursor: pointer; }

.quiz-results h3 { text-align: center; }
.quiz-results-sub { text-align: center; color: var(--ink-soft); margin-bottom: 26px; }
.match-badge {
  position: absolute; top: 8px; left: 8px; background: var(--maroon-deep); color: #fff;
  font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}

/* ---------- Floating WA button (mobile) ---------- */
.wa-float {
  position: fixed; bottom: 18px; right: 18px; z-index: 60;
  background: var(--wa-green); color: #fff; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lift);
  text-decoration: none; font-size: 1.5rem;
}
