/* ════════════════════════════════════════════════════════════════
   SÁNG ĐẠO TRONG ĐỜI — Brand Design System (Bright / Saffron)
   Vibrant saffron-orange + white surfaces · inspired by Bchannel
   ════════════════════════════════════════════════════════════════ */

:root {
  /* ── Brand colors (brightened) ── */
  --brown:        #97561a;  /* Nâu */
  --brown-light:  #b45f06;  /* Nâu sáng */
  --saffron:      #f59000;  /* vibrant primary orange */
  --saffron-deep: #e07700;
  --gold:         #fbc117;  /* Vàng cam */
  --amber:        #ffbe3d;
  --maroon:       #440200;  /* Nâu đỏ — rare deep accent only */
  --cream:        #fcf2d2;  /* Vàng nhạt, brighter */
  --slate:        #cccccc;  /* Màu lam */

  /* ── Derived / functional ── */
  --cream-deep:   #f7e8ba;  /* card surface on cream */
  --cream-soft:   #fffdf5;  /* lifted surface (near white) */
  --white:        #ffffff;
  --ink:          #3d2509;  /* primary text on light */
  --ink-soft:     #7a521f;  /* secondary text */
  --ink-faint:    #a9824a;  /* tertiary / captions */
  --line:         #efdcab;  /* hairline on cream */
  --line-strong:  #e6cd8f;
  --on-dark:      #fff6e0;  /* primary text on warm/dark */
  --on-dark-soft: #ffe3b3;  /* secondary text on warm/dark */
  --gold-deep:    #d97e0a;  /* legible orange for text on light */

  /* warm rich gradient — replaces near-black for "dark" sections */
  --rich1: #e8881a;
  --rich2: #c2600e;
  --rich-deep: #7a3c0a;

  /* ── Typography ── */
  --font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Dancing Script', 'Manrope', cursive;

  /* type scale */
  --text-caption: 12px;
  --text-sm: 14px;
  --text-body: 16px;
  --text-lead: 19px;
  --text-sub: 22px;
  --text-h3: 28px;
  --text-h2: 40px;
  --text-h1: 56px;
  --text-display: 88px;

  /* ── Spacing (8px base) ── */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s7: 64px; --s8: 80px;
  --s9: 96px; --s10: 128px;
  --section-gap: 64px;

  /* ── Radius ── */
  --r-card: 16px;
  --r-card-lg: 24px;
  --r-pill: 100px;
  --r-sm: 10px;

  /* ── Elevation (soft, warm-tinted) ── */
  --shadow-sm: 0 1px 2px rgba(151,86,26,0.05), 0 4px 14px rgba(245,144,0,0.07);
  --shadow-md: 0 2px 6px rgba(151,86,26,0.06), 0 14px 40px rgba(245,144,0,0.12);
  --shadow-lg: 0 8px 24px rgba(151,86,26,0.12), 0 30px 70px rgba(194,96,14,0.16);
  --shadow-gold: 0 10px 40px rgba(245,144,0,0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* ── Typographic primitives ── */
.script { font-family: var(--font-script); font-weight: 700; line-height: 1; }

.h-display { font-weight: 800; font-size: clamp(3rem, 9vw, var(--text-display)); line-height: 0.98; letter-spacing: -0.03em; }
.h1 { font-weight: 800; font-size: clamp(2.4rem, 6vw, var(--text-h1)); line-height: 1.04; letter-spacing: -0.025em; }
.h2 { font-weight: 800; font-size: clamp(2rem, 4.5vw, var(--text-h2)); line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-weight: 700; font-size: var(--text-h3); line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: var(--text-lead); line-height: 1.55; color: var(--ink-soft); font-weight: 400; }
.eyebrow { font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--saffron-deep); }
.text-gold { color: var(--gold-deep); }
.text-soft { color: var(--ink-soft); }
.text-faint { color: var(--ink-faint); }

/* gold/saffron gradient text — metallic sheen (position driven by sheen.js) */
.gold-text {
  background: linear-gradient(100deg,
    #c9740a 0%, #e0a312 18%, #fbc117 34%,
    #fff7df 47%, #ffffff 50%, #fff7df 53%,
    #fbc117 66%, #e0a312 82%, #c9740a 100%);
  background-size: 250% 100%;
  background-position: 150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Layout ── */
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--s3); padding-right: var(--s3); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding-left: var(--s3); padding-right: var(--s3); }

/* ── Buttons (pill) ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-body);
  padding: 14px 30px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .2s;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--saffron) 55%, var(--saffron-deep)); color: #fff; box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 50px rgba(245,144,0,0.42); }
.btn-gold { background: var(--gold); color: #5a2a08; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 50px rgba(251,193,23,0.46); }
.btn-ghost { background: transparent; color: var(--saffron-deep); border-color: var(--saffron); }
.btn-ghost:hover { border-color: var(--saffron-deep); background: rgba(245,144,0,0.08); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(255,246,224,0.5); }
.btn-ghost-light:hover { background: rgba(255,246,224,0.12); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); font-weight: 700; line-height: 1;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(245,144,0,0.12); color: var(--saffron-deep);
  border: 1px solid rgba(245,144,0,0.22);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }

/* ── Card ── */
.card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  padding: var(--s4);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--saffron); }

/* card on warm/rich sections */
.card-dark {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,246,224,0.22);
  border-radius: var(--r-card-lg);
  padding: var(--s4);
  backdrop-filter: blur(6px);
}

/* ── Decorative ── */
.divider-gold {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--saffron) 50%, var(--line-strong) 80%, transparent);
  opacity: .8;
}
.rule { height: 1px; background: var(--line); border: 0; }

.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: radial-gradient(rgba(245,144,0,0.05) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ── Logo lockup ── */
.logo-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { flex-shrink: 0; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-words .top { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.01em; color: var(--brown); font-size: 17px; }
.logo-words .bottom { font-family: var(--font-script); font-weight: 700; color: var(--saffron-deep); font-size: 19px; margin-top: -2px; margin-left: 18px; }
.logo-words.on-dark .top { color: var(--gold); }
.logo-words.on-dark .bottom { color: var(--gold); }

/* script headings need a taller line-box so gradient-clipped descenders/diacritics aren't cut */
.h-display .script, .h1 .script, .h2 .script, .h3 .script, .hero .script-accent, .shine-text { line-height: 1.28; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

/* ── Utility ── */
.center { text-align: center; }
.mono-num { font-variant-numeric: tabular-nums; }

/* ── Ban tổ chức (organizers) ── */
.org-section { padding: 72px 0; }
.org-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
@media (max-width: 820px){ .org-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.org-card { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow-sm); transition: transform .35s, box-shadow .35s; }
.org-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.org-card-main { border-color: var(--saffron); box-shadow: var(--shadow-gold); }
.org-logo { width: 116px; height: 116px; border-radius: 100px; background: #fff; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; padding: 10px; margin-bottom: 20px; }
.org-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.org-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.org-card p { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.org-role { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--saffron-deep); background: rgba(245,144,0,0.12); border: 1px solid rgba(245,144,0,0.22); padding: 6px 14px; border-radius: 100px; }
