/* CONWAY. Coffee space by Bukit Delight — tema "Kecantikan & perawatan"
   Semua warna, jarak, dan tipografi diatur dari :root di bawah ini.
   Ubah token, seluruh halaman ikut berubah. */

:root {
  --paper: #FAF6F2;
  --surface: #FFFFFF;
  --ink: #241C22;
  --muted: #6E6068;
  --rule: #E8DDD6;
  --brand: #5A2E4D;
  --brand-ink: #FFFFFF;
  --accent: #C08552;
  --radius: 2px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, -apple-system, sans-serif;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);

  --gap-section: clamp(4.5rem, 2.5rem + 8vw, 9rem);

  /* Stagger token: dipakai oleh .reveal agar elemen bersaudara masuk bergantian. */
  --stagger: 0;

  /* Kurva gerak. Bawaan CSS terlalu lemah; angka ini yang dipakai di seluruh
     halaman. Jangan buat kurva baru — pakai atau perluas yang ini. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-press: cubic-bezier(0.32, 0.72, 0, 1);

  --dur-press: 140ms;
  --dur-hover: 200ms;
  --dur-panel: 240ms;
  --dur-reveal: 700ms;

  /* Bootstrap overrides so its own components inherit the palette. */
  --bs-primary: #5A2E4D;
  --bs-body-color: #241C22;
  --bs-body-bg: #FAF6F2;
  --bs-border-color: #E8DDD6;
  --bs-border-radius: 2px;
  --bs-link-color: #5A2E4D;
  --bs-link-hover-color: #C08552;
  --bs-font-sans-serif: 'Jost', system-ui, -apple-system, sans-serif;
}

* { -webkit-font-smoothing: antialiased; }

/* Butiran film halus. Overlay fixed + pointer-events:none supaya tidak pernah
   ikut menggulir dan tidak memicu repaint GPU. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Bootstrap pulls .row outward by half its gutter. With the default 12px
   container padding, a g-5 row overflows a 360px screen — widening the
   container gutter keeps every row inside the viewport and keeps column
   content aligned with everything else. */
.container { --bs-gutter-x: 2rem; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}

h1, h2, h3, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { text-wrap: pretty; max-width: 68ch; }

.lead-text { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }

/* Section rhythm is deliberately uneven: the hero breathes, the proof strip is
   tight, the rest sits on a common scale. */
.section { padding-block: var(--gap-section); }
.section--tight { padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.section + .section { border-top: 1px solid var(--rule); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.rule { height: 1px; background: var(--rule); border: 0; opacity: 1; }

/* ---------- Navigation ---------- */
.site-nav {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur-hover) var(--ease-out),
    background var(--dur-hover) var(--ease-out);
}
.site-nav.is-stuck { border-bottom-color: var(--rule); }
.site-nav .navbar-brand { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.site-nav .nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--dur-hover) var(--ease-out);
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--ink); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius); font-weight: 600; padding-inline: 1.25rem; }
.btn-brand { background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand); }
.btn-brand:hover { background: color-mix(in srgb, var(--brand) 88%, #000); color: var(--brand-ink); }
.btn-outline-brand { border: 1px solid var(--rule); color: var(--ink); background: var(--surface); }
.btn-outline-brand:hover { border-color: var(--ink); color: var(--ink); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.btn {
  transition:
    background-color var(--dur-hover) var(--ease-out),
    border-color var(--dur-hover) var(--ease-out),
    color var(--dur-hover) var(--ease-out),
    transform var(--dur-press) var(--ease-press);
}
.btn:active { transform: scale(0.98); }

/* Ikon di dalam tombol duduk dalam lingkarannya sendiri dan bergerak sendiri.
   Tujuan: umpan balik visual yang memperjelas tombol adalah tindakan. */
.btn .btn-icon {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-left: 0.15rem;
  margin-right: -0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  transition: transform var(--dur-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  /* Sentuhan di ponsel memicu hover palsu, jadi gerakan hover dikunci ke
     penunjuk sungguhan. */
  .btn:hover .btn-icon { transform: translate(2px, -1px) scale(1.06); }
  .service-item:hover .num { transform: translateX(2px); }
}

.service-item .num { transition: transform var(--dur-hover) var(--ease-out); }

/* ---------- Bingkai bersarang ----------
   Kartu tidak diletakkan polos di atas latar: ada baki luar dan pelat dalam,
   dengan radius yang mengecil sesuai padding agar lengkungnya sepusat. */
.shell {
  --shell-pad: 6px;
  padding: var(--shell-pad);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: calc(var(--radius) + var(--shell-pad));
}
.shell > .core {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent);
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 6vw, 6.5rem) var(--gap-section); }
.hero h1 .mark {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 34%, transparent) 62%);
  padding-inline: 0.1em;
}

/* Badge bukti sosial kecil di atas h1 — lebih spesifik dari hanya eyebrow */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.hero-badge .stars { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.06em; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-card dl { margin: 0; }
.hero-card .row-item { padding: 0.85rem 1.15rem; border-top: 1px solid var(--rule); }
.hero-card .row-item dt { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.hero-card .row-item dd { margin: 0.15rem 0 0; font-weight: 500; }

/* Foto hero tanpa border — cukup shell yang membungkus */
.hero-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.media-frame {
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Proof strip ---------- */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.proof li {
  list-style: none;
  padding: 1rem 1.25rem;
  border-left: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--muted);
}
.proof li:first-child { border-left: 0; }
.proof li strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Services: a numbered ledger, not three identical cards ---------- */
.service-list { border-top: 1px solid var(--rule); }
.service-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--dur-hover) var(--ease-out);
}
.service-item:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.service-item .num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.service-item h3 { margin: 0 0 0.35rem; }
.service-item p { margin: 0; color: var(--muted); }

/* ---------- Layanan: harga & atribut ---------- */
.service-item .price {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.topic {
  display: inline-block;
  padding: 1px 7px;
  margin: 2px 1px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink);
}

.attr-list { list-style: none; padding: 0; margin: 0; }
.attr-list li {
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
}
.attr-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85em;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.hours-table { width: 100%; max-width: 340px; border-collapse: collapse; }
.hours-table th,
.hours-table td { padding: 0.4rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.hours-table th { text-align: left; color: var(--muted); font-size: 0.9rem; }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Reviews ---------- */
.rating-block { display: flex; align-items: baseline; gap: 0.6rem; }
.rating-block .score { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; }
.stars { color: var(--accent); letter-spacing: 0.1em; }
.quote {
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.1rem;
  color: var(--ink);
  font-size: 1.05rem;
}
.quote footer { color: var(--muted); font-size: 0.88rem; margin-top: 0.5rem; }

/* ---------- Gallery: asymmetric on purpose ---------- */
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery > :first-child { grid-column: span 2; grid-row: span 2; }
  .gallery > :first-child .media-frame { aspect-ratio: 1; height: 100%; }
}

/* Item galeri yang tersembunyi sebelum "Lihat lebih banyak" diklik */
.gallery-item--hidden {
  display: none;
}

/* Tombol galeri show-more */
.gallery-more-wrap {
  margin-top: 1.25rem;
  text-align: center;
}

/* ---------- FAQ ---------- */
.accordion { --bs-accordion-border-color: var(--rule); --bs-accordion-btn-focus-box-shadow: none; }
.accordion-item { background: transparent; }
.accordion-button { background: transparent; font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; }
.accordion-button:not(.collapsed) { background: transparent; color: var(--brand); box-shadow: none; }

/* ---------- Map & contact ---------- */
.map-frame { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--rule); border-radius: var(--radius); }
@media (min-width: 992px) { .map-frame { aspect-ratio: 4 / 3; } }

.form-control {
  border-color: var(--rule);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  background: var(--surface);
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent); }

/* ---------- Closing CTA section ---------- */
.cta-section {
  background: var(--brand);
  color: var(--brand-ink);
  padding-block: clamp(3rem, 2rem + 6vw, 6rem);
}
.cta-section .eyebrow { color: color-mix(in srgb, var(--brand-ink) 65%, transparent); }
.cta-section h2 {
  color: var(--brand-ink);
  font-size: var(--step-3);
  max-width: 22ch;
}
.cta-section p { color: color-mix(in srgb, var(--brand-ink) 78%, transparent); }
.cta-section .btn-brand {
  background: var(--brand-ink);
  color: var(--brand);
  border-color: var(--brand-ink);
}
.cta-section .btn-brand:hover {
  background: color-mix(in srgb, var(--brand-ink) 90%, transparent);
  color: var(--brand);
}
.cta-section .btn-outline-brand {
  border-color: color-mix(in srgb, var(--brand-ink) 40%, transparent);
  color: var(--brand-ink);
  background: transparent;
}
.cta-section .btn-outline-brand:hover {
  border-color: var(--brand-ink);
  color: var(--brand-ink);
}
/* Garis pemisah di cta-section */
.cta-section .rule { background: color-mix(in srgb, var(--brand-ink) 20%, transparent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: var(--brand-ink); }
.site-footer a { color: color-mix(in srgb, var(--brand-ink) 82%, transparent); text-decoration: none; }
.site-footer a:hover { color: var(--brand-ink); text-decoration: underline; }
.site-footer .rule { background: color-mix(in srgb, var(--brand-ink) 22%, transparent); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1030;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: #128C7E; color: #fff;
  border-radius: 999px; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
  transition: transform var(--dur-hover) var(--ease-out);
}
.wa-float:hover { color: #fff; transform: translateY(-2px); }

/* ---------- Utility ---------- */
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 1040;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: 0.5rem; color: var(--paper); }

.todo {
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  padding: 0 0.18em;
  font-size: 0.94em;
}
/* Instruksi tidak pernah ditempel pada tipografi display. */
h1 .todo, h2 .todo { background: none; border: 0; font-size: inherit; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 60ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Reduced motion berarti lebih sedikit dan lebih lembut, bukan nol: warna dan
   opacity tetap bertransisi, perpindahan posisi yang dihapus. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, background-color, border-color, color !important;
    transition-duration: 160ms !important;
  }
  .reveal { opacity: 1; transform: none; transition-delay: 0ms; }
  .btn:active { transform: none; }
}
