/* ============================================================
   design-system.css - VioParty Design System
   KHÔNG CHỈNH SỬA CÁC TOKENS Ở ĐÂY
   ============================================================ */

/* ── 1. CSS Custom Properties ─────────────────────────────── */
:root {
  /* Brand Colors */
  --color-primary:        #6c5ce7;
  --color-primary-dark:   #4B1AAD;
  --color-primary-light:  #EEE8FF;
  --color-primary-soft:   #F5F0FF;

  /* CTA / Accent */
  --color-cta:            #22C55E;
  --color-cta-dark:       #16a34a;

  /* Typography */
  --color-text-primary:   #1A1035;
  --color-text-body:      #3D3558;
  --color-text-muted:     #9B93B8;

  /* Backgrounds */
  --color-bg:             #FFFFFF;
  --color-bg-soft:        #F8F6FF;
  --color-bg-alt:         #F3EEFF;
  --color-bg-dark:        #1A1035;

  /* Functional */
  --color-success:        #22C55E;
  --color-gold:           #F59E0B;
  --color-zalo:           #0068FF;

  /* Typography Scale */
  --font-family:          'Josefin Sans', sans-serif;
  --font-size-xs:         0.75rem;    /* 12px */
  --font-size-sm:         0.875rem;   /* 14px */
  --font-size-base:       1rem;       /* 16px */
  --font-size-lg:         1.125rem;   /* 18px */
  --font-size-xl:         1.25rem;    /* 20px */
  --font-size-2xl:        1.5rem;     /* 24px */
  --font-size-3xl:        1.875rem;   /* 30px */
  --font-size-4xl:        2.25rem;    /* 36px */
  --font-size-5xl:        3rem;       /* 48px */

  --font-h1:              clamp(1.875rem, 5vw, 3rem);
  --font-h2:              clamp(1.5rem, 3vw, 2.25rem);
  --font-h3:              clamp(1.125rem, 2vw, 1.375rem);

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  --section-padding:      80px;
  --section-padding-sm:   48px;
  --container-max:        1200px;
  --container-narrow:     720px;
  --container-wide:       1400px;

  /* Border Radius */
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-2xl:   32px;
  --radius-pill:  999px;

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(108, 92, 231, 0.06);
  --shadow-md:    0 4px 24px rgba(108, 92, 231, 0.10);
  --shadow-lg:    0 8px 40px rgba(108, 92, 231, 0.14);
  --shadow-cta:   0 4px 20px rgba(34, 197, 94, 0.35);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --nav-height:         68px;
  --mobile-cta-height:  64px;
}

/* ── 2. CSS Reset & Base ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--color-text-primary);
  line-height: 1.35; /* Increased for Vietnamese diacritics */
  font-weight: 700;
}

h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); font-weight: 600; }
h3 { font-size: var(--font-h3); font-weight: 600; }
h4 { font-size: var(--font-size-lg); font-weight: 600; }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-primary-dark); }

strong { font-weight: 700; }
em { font-style: italic; }

ul, ol {
  padding-left: var(--space-6);
}

li { margin-bottom: var(--space-2); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── 4. Layout Utilities ──────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--section-padding);
}

.section--soft   { background-color: var(--color-bg-soft); }
.section--alt    { background-color: var(--color-bg-alt); }
.section--dark   {
  background: linear-gradient(135deg, #1A1035 0%, #2D1B6E 100%);
  color: #fff;
}

/* ── 5. Section Header Pattern ────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--font-h2);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-body);
  max-width: 600px;
  margin-inline: auto;
}

.section--dark .section-title { color: #fff; }
.section--dark .section-subtitle { color: rgba(255,255,255,0.75); }
.section--dark .section-label {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ── 6. Utility Classes ───────────────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.grid { display: grid; }

.mt-auto { margin-top: auto; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 40%,
    #a29bfe 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ── 7. Responsive Breakpoints ────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-sm);
  }

  .container,
  .container--narrow,
  .container--wide {
    padding-inline: var(--space-4);
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 40px;
  }
}
