/* ==========================================================================
   Rumah Tilawah — theme tokens
   Diadaptasi dari design system "Ibnu Katsir Al Makkiy" (Yayasan Study Qur'an).
   Self-contained: gabungan tokens colors/typography/spacing/effects.
   ========================================================================== */

:root {
  /* ---- Tosca / Teal — PRIMARY ---- */
  --tosca-900: #0C3E43;
  --tosca-800: #114F55;
  --tosca-700: #166069;
  --tosca-600: #186F76;
  --tosca-500: #2A8B92;
  --tosca-300: #7FBDC1;
  --tosca-100: #D6E9EA;
  --tosca-50:  #EEF6F6;

  /* ---- Gold — ACCENT ---- */
  --gold-800: #7E6329;
  --gold-700: #96793A;
  --gold-600: #B18E4A;
  --gold-500: #C6A461;
  --gold-300: #DCC489;
  --gold-100: #F1E7CE;

  /* ---- Netral (ivory hangat) ---- */
  --ivory:   #FAF7F0;
  --surface: #FFFFFF;
  --ink-900: #17302F;
  --ink-700: #2E4241;
  --ink-500: #5C6A69;
  --ink-300: #9AA5A4;
  --line:    #E7E1D5;

  --text-on-dark: #F3EFE6;

  /* Families */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', Inter, Arial, Helvetica, sans-serif;
  --font-arabic:  'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  /* Layout */
  --container-max: 1200px;

  /* Tosca-tinted soft shadows */
  --shadow-card:  0 6px 24px rgba(12, 62, 67, 0.08);
  --shadow-hover: 0 12px 32px rgba(12, 62, 67, 0.14);
  --shadow-sm:    0 2px 8px rgba(12, 62, 67, 0.06);
  --shadow-lg:    0 20px 48px rgba(12, 62, 67, 0.18);
}

/* ---- reset / base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink-900);
  font-family: var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
::selection { background: var(--gold-300); color: var(--tosca-900); }
a { -webkit-tap-highlight-color: transparent; }
section[id], footer[id] { scroll-margin-top: 80px; }

@keyframes rt-bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }
@keyframes rt-vscroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* ---- helper: reveal ---- */
[data-reveal] { will-change: opacity, transform; }

/* ---- program slider track: hide scrollbar ---- */
#rt-track { scrollbar-width: none; }
#rt-track::-webkit-scrollbar { height: 0; width: 0; }

/* ---- reusable component classes (Button / Badge) ---- */
.rt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; line-height: 1; letter-spacing: .005em;
  border-radius: var(--radius-pill); border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background .24s cubic-bezier(.22,1,.36,1), color .24s, transform .14s, box-shadow .24s;
  padding: 12px 24px; font-size: 1rem;
}
.rt-btn.sm { padding: 8px 16px; font-size: .875rem; gap: 6px; }
.rt-btn.lg { padding: 15px 32px; font-size: 1.125rem; gap: 10px; }
.rt-btn--donasi { background: var(--gold-600); color: var(--tosca-900); box-shadow: var(--shadow-sm); }
.rt-btn--donasi:hover { background: var(--gold-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-card); }
.rt-btn--primary { background: var(--tosca-600); color: #fff; box-shadow: var(--shadow-sm); }
.rt-btn--primary:hover { background: var(--tosca-700); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.rt-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.rt-btn--outline:hover { background: rgba(255,255,255,.08); }

.rt-badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body);
  font-size: .75rem; font-weight: 600; line-height: 1; letter-spacing: .02em;
  padding: 5px 11px; border-radius: var(--radius-pill);
}
.rt-badge--solid { background: var(--tosca-600); color: #fff; }
.rt-badge--gold  { background: var(--gold-100); color: var(--gold-800); }
