/* ═══════════════════════════════════════════════════════════════
   DREAMS FASHION FZE — Design System
   Royal Blue + Silver + Elegant Navy
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── DESIGN TOKENS ─── */
:root {
  /* Brand Colors — from logo */
  --color-primary: #4A6FA5;
  --color-primary-dark: #3A5A8A;
  --color-primary-darker: #2C4770;
  --color-primary-light: #6B8FC5;
  --color-primary-lighter: #8FADD6;
  --color-primary-50: rgba(74, 111, 165, 0.08);
  --color-primary-100: rgba(74, 111, 165, 0.15);
  --color-primary-200: rgba(74, 111, 165, 0.25);

  /* Secondary — Silver from logo border */
  --color-secondary: #9BA4B0;
  --color-secondary-dark: #7A8494;
  --color-secondary-light: #BCC3CD;

  /* Accent — Warm gold for premium highlights */
  --color-accent: #C8A97E;
  --color-accent-dark: #B08E5E;
  --color-accent-light: #DFC9A8;

  /* Dark Navy — from logo deep tones */
  --color-navy: #1B2A4A;
  --color-navy-dark: #0F1A32;
  --color-navy-light: #2A3F66;

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-off-white: #F7F8FA;
  --color-gray-50: #F3F4F6;
  --color-gray-100: #E8EBF0;
  --color-gray-200: #D1D5DC;
  --color-gray-300: #B0B7C3;
  --color-gray-400: #8B95A5;
  --color-gray-500: #6B7688;
  --color-gray-600: #4E5968;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;
  --color-black: #0A0E17;

  /* Text */
  --color-text-primary: #1B2A4A;
  --color-text-secondary: #4E5968;
  --color-text-muted: #8B95A5;
  --color-text-inverse: #FFFFFF;

  /* Semantic */
  --color-success: #059669;
  --color-warning: #D97706;
  --color-error: #DC2626;
  --color-info: #2563EB;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-navy) 100%);
  --gradient-primary-reverse: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  --gradient-hero: linear-gradient(135deg, #1B2A4A 0%, #2A3F66 30%, #4A6FA5 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(27,42,74,0.95) 0%, rgba(74,111,165,0.8) 50%, rgba(27,42,74,0.9) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
  --gradient-glass-dark: linear-gradient(135deg, rgba(27,42,74,0.95) 0%, rgba(42,63,102,0.85) 100%);
  --gradient-cta: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-navy) 100%);
  --gradient-shimmer: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* 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;
  --space-32: 8rem;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(11,17,33,0.04);
  --shadow-sm: 0 2px 8px rgba(11,17,33,0.06);
  --shadow-md: 0 4px 16px rgba(11,17,33,0.08);
  --shadow-lg: 0 8px 32px rgba(11,17,33,0.1);
  --shadow-xl: 0 16px 48px rgba(11,17,33,0.12);
  --shadow-2xl: 0 24px 64px rgba(11,17,33,0.16);
  --shadow-glass: 0 8px 32px rgba(74,111,165,0.08);
  --shadow-primary: 0 8px 24px rgba(74,111,165,0.25);
  --shadow-primary-lg: 0 16px 40px rgba(74,111,165,0.3);
  --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.06);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
  --border-light: 1px solid var(--color-gray-100);
  --border-medium: 1px solid var(--color-gray-200);
  --border-glass: 1px solid rgba(255,255,255,0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s var(--ease-smooth);
  --transition-normal: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
  --transition-bounce: 0.4s var(--ease-bounce);

  /* Z-Index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 900px;
  --container-wide: 1440px;
  --header-height: 80px;
  --section-padding: clamp(4rem, 8vw, 7rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-secondary);
}

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

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

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

/* ─── SECTION ─── */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-4);
  background: var(--color-primary-50);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 640px;
  margin: 0 auto;
}

/* ─── TEXT UTILITIES ─── */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-white { color: var(--color-white); }

.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: var(--z-tooltip);
  transition: width 0.1s linear;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Scroll-triggered animation class */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ─── SPACING UTILITIES ─── */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.pt-section { padding-top: var(--section-padding); }
.pb-section { padding-bottom: var(--section-padding); }

/* ─── DISPLAY 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-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.grid { display: grid; }

/* ─── BG UTILITIES ─── */
.bg-white { background-color: var(--color-white); }
.bg-off-white { background-color: var(--color-off-white); }
.bg-gray { background-color: var(--color-gray-50); }
.bg-navy { background-color: var(--color-navy); }
.bg-primary { background-color: var(--color-primary); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }
}

/* ─── SELECTION ─── */
::selection {
  background: var(--color-primary-200);
  color: var(--color-navy);
}

/* ─── FOCUS VISIBLE ─── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-50);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-400);
}
