/* ============================================================
   UNILIVRE — Design System Global
   UI/UX Premium Redesign
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Colors */
  --clr-primary:       #9B1D20;
  --clr-primary-light: #C0392B;
  --clr-primary-dark:  #6B0F12;
  --clr-primary-glow:  rgba(155,29,32,0.18);

  --clr-dark:          #080C14;
  --clr-dark-2:        #0F1523;
  --clr-dark-3:        #161D2E;
  --clr-dark-4:        #1E273A;

  --clr-surface:       #FFFFFF;
  --clr-surface-2:     #F8F7F4;
  --clr-surface-3:     #F0EDE8;

  --clr-text-primary:  #0F1523;
  --clr-text-secondary:#4A5568;
  --clr-text-muted:    #8896A5;
  --clr-text-light:    #FFFFFF;

  --clr-gold:          #C9A84C;
  --clr-gold-light:    #E8C96A;
  --clr-border:        rgba(0,0,0,0.08);
  --clr-border-dark:   rgba(255,255,255,0.1);

  /* Typography */
  --ff-serif:   'Playfair Display', Georgia, serif;
  --ff-sans:    'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  /* Sizes */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3.5rem;
  --fs-5xl:  5rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.15);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.2);
  --shadow-red: 0 8px 32px rgba(155,29,32,0.35);

  /* Transitions */
  --ease-fast:   0.15s cubic-bezier(0.4,0,0.2,1);
  --ease-base:   0.3s cubic-bezier(0.4,0,0.2,1);
  --ease-slow:   0.6s cubic-bezier(0.4,0,0.2,1);
  --ease-spring: 0.5s cubic-bezier(0.34,1.56,0.64,1);

  /* Layout */
  --container-max: 1200px;
  --nav-height: 76px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  color: var(--clr-text-primary);
  background: var(--clr-surface);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SELECTION ──────────────────────────────────────────── */
::selection { background: var(--clr-primary); color: #fff; }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-dark); }
::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: 3px; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.container--wide { max-width: 1400px; }
.container--narrow { max-width: 800px; }

/* ── SECTION SPACING ────────────────────────────────────── */
.section { padding-block: var(--sp-24); }
.section--lg { padding-block: var(--sp-32); }
.section--sm { padding-block: var(--sp-16); }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
.heading-display {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 6vw, var(--fs-5xl));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.heading-1 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, var(--fs-4xl));
  font-weight: 700;
  line-height: 1.15;
}
.heading-2 {
  font-family: var(--ff-sans);
  font-size: clamp(1.5rem, 3vw, var(--fs-3xl));
  font-weight: 700;
  line-height: 1.2;
}
.heading-3 {
  font-family: var(--ff-sans);
  font-size: clamp(1.2rem, 2.5vw, var(--fs-2xl));
  font-weight: 600;
  line-height: 1.3;
}
.body-lg { font-size: var(--fs-md); line-height: 1.8; }
.body-sm { font-size: var(--fs-sm); line-height: 1.6; }
.label {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── SECTION LABELS ─────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-4);
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--clr-primary);
  flex-shrink: 0;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--ease-base);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--ease-fast);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary::after { background: rgba(255,255,255,0.12); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(155,29,32,0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-primary);
  padding-inline: 0;
  border-radius: 0;
}
.btn-ghost::after { display: none; }
.btn-ghost:hover { gap: var(--sp-3); }

.btn-ghost .arrow {
  transition: transform var(--ease-base);
}
.btn-ghost:hover .arrow { transform: translateX(4px); }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  transition: var(--ease-base);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card--dark {
  background: var(--clr-dark-3);
  border-color: var(--clr-border-dark);
}

/* ── DIVIDERS ───────────────────────────────────────────── */
.divider {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-gold));
  border-radius: var(--radius-full);
  margin-block: var(--sp-6);
}
.divider--center { margin-inline: auto; }

/* ── GRADIENTS & OVERLAYS ───────────────────────────────── */
.overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,12,20,0.92) 0%, rgba(8,12,20,0.6) 100%);
}
.overlay-red {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(155,29,32,0.9) 0%, rgba(107,15,18,0.85) 100%);
}
.gradient-text {
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── TAG / BADGE ────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.tag--red { background: var(--clr-primary-glow); color: var(--clr-primary); }
.tag--gold { background: rgba(201,168,76,0.15); color: var(--clr-gold); }
.tag--light { background: rgba(255,255,255,0.15); color: #fff; }

/* ── GRID UTILITIES ─────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-8); }

/* ── FLEX UTILITIES ─────────────────────────────────────── */
.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-4 { gap: var(--sp-4); }
.gap-8 { gap: var(--sp-8); }

/* ── TEXT ALIGNMENT ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ── CURSOR CUSTOM ──────────────────────────────────────── */
.cursor {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clr-primary);
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: multiply;
}
.cursor-follower {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-primary);
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
  opacity: 0.6;
}

/* ── NOISE TEXTURE ──────────────────────────────────────── */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ── AOS CUSTOM OVERRIDES ───────────────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-16); }
  .section--lg { padding-block: var(--sp-20); }
  .heading-display { font-size: clamp(2rem, 8vw, 3rem); }
}
@media (max-width: 480px) {
  .container { padding-inline: var(--sp-4); }
}
