/* ============================================================
   Tilaqa — kerangka situs bersama (navigasi produk, footer, tombol,
   tipografi halaman pemasaran). Dipakai: beranda Tilaqa (/), Hifz (/hifz).
   Warna & ukuran dari tokens.css.
   ============================================================ */

:root {
  /* Aksen per produk */
  --p-hifz: var(--green-600);
  --p-hifz-bg: var(--green-50);
  --p-sirah: #9A6A2C;
  --p-sirah-bg: #F6EBD8;
  --p-lughah: #2B6E8F;
  --p-lughah-bg: #E3F0F6;
  --eyebrow-ink: #7A5A1E;
}
@media (prefers-color-scheme: dark) {
  :root { --p-sirah: #D9A65E; --p-sirah-bg: #33281A; --p-lughah: #6FB4D4; --p-lughah-bg: #16303D; --eyebrow-ink: var(--gold-600); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased; line-height: 1.65; overflow-x: hidden;
}
a { color: var(--green-700); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); position: relative; }

/* ---------- logo ---------- */
.tlogo { width: 30px; height: 30px; flex: none; }

/* ---------- navigasi produk ---------- */
.tnav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.tnav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.tbrand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.tbrand b { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.tbrand .sub { color: var(--ink-muted); font-weight: 500; font-size: 1.05rem; margin-left: -4px; }
.tprod { display: flex; align-items: center; gap: 4px; margin-left: 14px; flex: 1; }
.tprod a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 600; color: var(--ink-muted); text-decoration: none;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.tprod a:hover { background: var(--surface-2); color: var(--ink); }
.tprod a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.tprod .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--p-hifz)); }
.tag {
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--r-pill);
}
.tag.baru { color: var(--p-sirah); background: var(--p-sirah-bg); }
.tag.segera { color: var(--ink-muted); background: var(--surface-2); border: 1px solid var(--line); }
.tag.live { color: var(--green-700); background: var(--green-50); }
.tag.pratinjau { color: var(--p-lughah); background: var(--p-lughah-bg); }
.tnav .aksi { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .tnav .wrap { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .tbrand { flex: 1; }
  .tprod { order: 3; flex-basis: 100%; margin: 6px -8px 0; padding-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
  .tprod::-webkit-scrollbar { display: none; }
  .tprod a { white-space: nowrap; }
}

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0;
  border-radius: var(--r-pill); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-1), border-color var(--dur-1);
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-utama {
  background: var(--green-600); color: #fff; padding: 13px 26px; min-height: var(--hit-min);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--green-600) 32%, transparent);
}
.btn-utama:hover { background: var(--green-500); box-shadow: 0 6px 24px color-mix(in srgb, var(--green-600) 42%, transparent); }
.btn-kedua {
  background: var(--surface); color: var(--ink); padding: 12px 24px; min-height: var(--hit-min);
  border: 1px solid var(--line);
}
.btn-kedua:hover { border-color: var(--gold-300); background: var(--surface-2); }
.btn-nav { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 8px 18px; font-size: .86rem; }
.btn-nav:hover { background: var(--surface-2); }
.btn .panah { transition: transform var(--dur-2) var(--ease); }
.btn:hover .panah { transform: translateX(3px); }

/* ---------- tipografi pemasaran ---------- */
/* label kecil di atas judul: pil lembut bertitik emas (bukan garis, agar tidak terbaca sebagai tanda pisah) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; color: var(--eyebrow-ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
  padding: 7px 14px 7px 12px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--gold-100) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-300) 45%, transparent);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); flex: none; }
.eyebrow .ar-eyebrow { font-family: var(--font-arab-ui); letter-spacing: 0; text-transform: none; font-size: 1.2rem; line-height: 1.65; font-weight: 600; direction: rtl; unicode-bidi: isolate; flex: none; }
.eyebrow .sep { opacity: .45; flex: none; letter-spacing: 0; }
h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.9rem); line-height: 1.06; letter-spacing: -.035em;
  margin: .34em 0 .3em; font-weight: 800; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--green-700); position: relative; white-space: nowrap; }
h1 em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .06em; height: .14em;
  background: color-mix(in srgb, var(--gold-500) 38%, transparent); border-radius: 3px; z-index: -1;
}
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); letter-spacing: -.028em; line-height: 1.15; margin: .35em 0 .4em; text-wrap: balance; }
.lede { color: var(--ink-muted); font-size: clamp(1.02rem, 1.6vw, 1.15rem); max-width: 50ch; margin: 0 0 28px; }
.sec-lede { color: var(--ink-muted); max-width: 60ch; margin: 0 0 36px; }
section { padding: clamp(56px, 8vw, 100px) 0; position: relative; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.rise { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.tfoot { border-top: 1px solid var(--line); padding: 44px 0 40px; color: var(--ink-muted); font-size: .86rem; background: var(--bg); }
.tfoot .grid { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 760px) { .tfoot .grid { grid-template-columns: 1fr 1fr; } .tfoot .grid > :first-child { grid-column: 1 / -1; } }
.tfoot h4 { margin: 0 0 12px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.tfoot a { display: block; color: var(--ink-muted); text-decoration: none; padding: 3px 0; }
.tfoot a:hover { color: var(--green-700); }
.tfoot .tag { margin-left: 6px; vertical-align: 1px; }
.tfoot .tagline { margin: 10px 0 0; max-width: 34ch; }
.tfoot .ar { font-family: var(--font-arab-ui); font-size: 1.05rem; color: var(--gold-600); margin-top: 6px; }
.tfoot .legal {
  margin-top: 30px; padding-top: 18px; border-top: 1px dashed var(--line);
  font-size: .76rem; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Keep labels and headings readable on narrow screens. */
@media (max-width: 520px) {
  .tprod { gap: 2px; margin-inline: 0; }
  .tprod a { padding-inline: 9px; font-size: .8rem; min-height: 44px; }
  .tprod .tag { display: none; }
  h1 em { white-space: normal; }
  .hero-grid > * { min-width: 0; }
}
