/* ============================================
   MenuPOS — Global Styles
   Variables, Resets, Typography
   ============================================ */

/* Google Fonts — DM Sans as primary */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
  /* Primary */
  --color-primary:        #1D4ED8;
  --color-primary-dark:   #1338A8;
  --color-primary-light:  #3B6FED;
  --color-primary-50:     #EFF4FF;
  --color-primary-100:    #D1DCF9;

  /* Neutrals */
  --color-bg:             #0A0F1E;
  --color-surface:        #111827;
  --color-border:         #1E293B;
  --color-text:           #FFFFFF;
  --color-text-muted:     rgba(255,255,255,0.6);
  --color-text-light:     rgba(255,255,255,0.4);

  /* Accents */
  --color-success:        #16A34A;
  --color-warning:        #D97706;
  --color-danger:         #DC2626;
  --color-gold:           #F59E0B;

  /* Dark mode surfaces */
  --color-dark-bg:        #0A0F1E;
  --color-dark-surface:   #111827;
  --color-dark-border:    #1E293B;

  /* Gradients */
  --gradient-primary:     linear-gradient(135deg, #1D4ED8 0%, #1338A8 100%);
  --gradient-hero:        linear-gradient(135deg, #0A0F1E 0%, #1D4ED8 50%, #0A0F1E 100%);
  --gradient-card:        linear-gradient(145deg, #111827 0%, #0A0F1E 100%);

  /* Typography */
  --font-display:  'DM Sans', 'Plus Jakarta Sans', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing & Radius */
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --radius-full:   9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(29,78,216,0.12);
  --shadow-lg:   0 8px 32px rgba(29,78,216,0.18);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.3);

  /* Transitions */
  --transition-fast:   all 0.18s ease;
  --transition-normal: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #FFFFFF;
  background-color: var(--color-dark-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1rem;
  font-weight: 600;
}

h6 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.7);
}

.text-muted { color: rgba(255,255,255,0.6); }
.text-light { color: rgba(255,255,255,0.4); }
.text-primary { color: var(--color-primary); }
.text-white { color: #FFFFFF; }
.text-center { text-align: center; }
.text-left { text-align: left; }

.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 48px 0;
}

.section-light {
  background-color: var(--color-dark-surface);
  color: #FFFFFF;
}

.section-dark {
  background-color: var(--color-dark-bg);
  color: #FFFFFF;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: #FFFFFF;
}

.section-dark p {
  color: rgba(255,255,255,0.7);
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: #FFF;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* Responsive breakpoints */
@media (min-width: 640px) {
  .section { padding: 64px 0; }
}

@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .container { padding: 0 32px; }
}

@media (min-width: 1024px) {
  .section { padding: 100px 0; }
}

@media (min-width: 1280px) {
  .section { padding: 120px 0; }
}

/* Utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.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; }

/* Selection */
::selection {
  background: var(--color-primary);
  color: #FFFFFF;
}
