/* ================================================================
   MenUp365 — Design System
   APEX WebCraft Premium Build
   Streetwear confidence meets faith-rooted authority
   ================================================================ */

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-black);
  color: var(--text-body-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  /* ── Brand Gold ── */
  --gold-50:  #FDF8ED;
  --gold-100: #F9EECC;
  --gold-200: #F2DB95;
  --gold-300: #E8C668;
  --gold-400: #D4A843;
  --gold-500: #C4972E;
  --gold-600: #B8922E;
  --gold-700: #9A7424;
  --gold-800: #7D5D1D;
  --gold-900: #634A17;
  --gold: #D4A843;
  --gold-light: #E8C668;
  --gold-dark: #B8922E;
  --gold-glow: rgba(212, 168, 67, 0.25);
  --gold-subtle: rgba(212, 168, 67, 0.08);
  --gold-muted: rgba(212, 168, 67, 0.15);

  /* ── Neutrals ── */
  --bg-black: #0A0A0A;
  --bg-charcoal: #141414;
  --bg-elevated: #1A1A1A;
  --bg-dark-card: #1E1E1E;
  --bg-cream: #FAF6F0;
  --bg-ivory: #F5F0E8;
  --bg-white: #FFFFFF;

  /* ── Text on Dark ── */
  --text-white: #FFFFFF;
  --text-body-dark: #E8E2D8;
  --text-muted-dark: #999990;
  --text-caption-dark: #666660;

  /* ── Text on Light ── */
  --text-heading-light: #1A1A1A;
  --text-body-light: #4A4540;
  --text-muted-light: #666660;
  --text-caption-light: #8A8580;

  /* ── Borders ── */
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);
  --border-gold: rgba(212, 168, 67, 0.2);

  /* ── Status ── */
  --success: #22C55E;
  --error: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;

  /* ── Typography Scale (1.25 ratio) ── */
  --text-xs:    0.75rem;   /* 12px */
  --text-sm:    0.875rem;  /* 14px */
  --text-base:  1rem;      /* 16px */
  --text-lg:    1.125rem;  /* 18px */
  --text-xl:    1.25rem;   /* 20px */
  --text-2xl:   1.563rem;  /* 25px */
  --text-3xl:   1.953rem;  /* 31px */
  --text-4xl:   2.441rem;  /* 39px */
  --text-5xl:   3.052rem;  /* 49px */
  --text-6xl:   3.815rem;  /* 61px */
  --text-7xl:   4.768rem;  /* 76px */

  /* ── Spacing (8px grid) ── */
  --space-1:  0.25rem;  /* 4px */
  --space-2:  0.5rem;   /* 8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.5rem;   /* 24px */
  --space-6:  2rem;     /* 32px */
  --space-8:  3rem;     /* 48px */
  --space-10: 4rem;     /* 64px */
  --space-12: 5rem;     /* 80px */
  --space-16: 6rem;     /* 96px */
  --space-20: 8rem;     /* 128px */

  /* ── Motion ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.06);
  --shadow-gold: 0 4px 20px rgba(212, 168, 67, 0.15);
  --shadow-gold-lg: 0 8px 40px rgba(212, 168, 67, 0.2);

  /* ── Border Radius ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ── Layout ── */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --nav-height: 72px;
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.light-section h1,
.light-section h2,
.light-section h3,
.light-section h4,
.light-section h5,
.light-section h6 {
  color: var(--text-heading-light);
}

h1, .h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, var(--text-7xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2, .h2 {
  font-size: clamp(2rem, 3vw + 0.5rem, var(--text-5xl));
  font-weight: 700;
}

h3, .h3 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, var(--text-3xl));
  font-weight: 700;
}

h4, .h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

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

p:last-child {
  margin-bottom: 0;
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted-dark); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

/* Section labels */
.section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.light-section .section-label {
  color: var(--gold-600);
}

/* Section titles */
.section-title {
  margin-bottom: var(--space-5);
}

.section-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text-muted-dark);
  max-width: 600px;
  line-height: 1.6;
}

.light-section .section-subtitle {
  color: var(--text-muted-light);
}

/* Accent serif for testimonials */
.accent-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* Section spacing */
section, .section {
  padding: var(--space-16) 0;
  position: relative;
}

@media (min-width: 1024px) {
  section, .section {
    padding: var(--space-20) 0;
  }
}

/* Dark/Light section base */
.dark-section {
  background-color: var(--bg-black);
  color: var(--text-body-dark);
}

.dark-section-alt {
  background-color: var(--bg-charcoal);
  color: var(--text-body-dark);
}

.light-section {
  background-color: var(--bg-cream);
  color: var(--text-body-light);
}

.light-section-alt {
  background-color: var(--bg-ivory);
  color: var(--text-body-light);
}

.gold-section {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-300));
  color: var(--bg-black);
}

.gold-section h1,
.gold-section h2,
.gold-section h3 {
  color: var(--bg-black);
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* Split layout (text + image) */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .split--reverse {
    direction: rtl;
  }

  .split--reverse > * {
    direction: ltr;
  }

  .split--55-45 {
    grid-template-columns: 55fr 45fr;
  }
}

/* ─── Scroll Animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

/* Section dividers */
.divider-angled {
  position: relative;
}

.divider-angled::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: inherit;
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
  z-index: 1;
}

/* Gold accent line */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: var(--space-5);
}

.gold-line--center {
  margin-left: auto;
  margin-right: auto;
}

/* Background noise texture */
.bg-noise::before {
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.bg-noise > * {
  position: relative;
  z-index: 1;
}
