/* ============================================================================
   POPULAR GLASS PRINTERS - DESIGN SYSTEM
   Premium Luxury Industrial B2B Design Foundation
   Version 1.0
   ============================================================================ */

/* ============================================================================
   DESIGN TOKENS - COLOR SYSTEM
   ============================================================================ */

:root {
  /* Primary Colors - Sophisticated Neutrals */
  --color-charcoal: #2C2C2C;
  --color-charcoal-light: #3A3A3A;
  --color-charcoal-dark: #1A1A1A;

  --color-off-white: #FAFAFA;
  --color-white: #FFFFFF;

  --color-gray-soft: #E5E5E5;
  --color-gray-medium: #B8B8B8;
  --color-gray-dark: #6B6B6B;

  /* Accent Color - Gold/Bronze (Use <10% of visible area) */
  --color-gold: #C9A961;
  --color-gold-light: #D4B876;
  --color-gold-dark: #B39650;

  /* Semantic Colors */
  --color-success: #2D7A4F;
  --color-error: #C94949;
  --color-warning: #D4A435;

  /* Background System */
  --bg-primary: var(--color-off-white);
  --bg-secondary: var(--color-white);
  --bg-dark: var(--color-charcoal);
  --bg-dark-soft: var(--color-charcoal-light);

  /* Text System */
  --text-primary: var(--color-charcoal);
  --text-secondary: var(--color-gray-dark);
  --text-light: var(--color-gray-medium);
  --text-on-dark: var(--color-off-white);
  --text-on-gold: var(--color-charcoal-dark);
}

/* ============================================================================
   TYPOGRAPHY SYSTEM
   ============================================================================ */

:root {
  /* Font Families - System Font Stack (Performance Optimized) */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;

  /* Font Sizes - Responsive Scale */
  --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.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */
  --text-6xl: 3.75rem;
  /* 60px */

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
}

/* ============================================================================
   SPACING SYSTEM
   ============================================================================ */

:root {
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */
  --space-16: 4rem;
  /* 64px */
  --space-20: 5rem;
  /* 80px */
  --space-24: 6rem;
  /* 96px */
  --space-32: 8rem;
  /* 128px */

  /* Section Spacing */
  --section-padding-mobile: var(--space-12);
  --section-padding-tablet: var(--space-16);
  --section-padding-desktop: var(--space-24);
}

/* ============================================================================
   LAYOUT SYSTEM
   ============================================================================ */

:root {
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;

  /* Max Content Width (Premium Restraint) */
  --max-content-width: 1200px;

  /* Grid System */
  --grid-gap: var(--space-6);
  --grid-gap-lg: var(--space-8);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;
}

/* ============================================================================
   ANIMATION SYSTEM (Subtle, Premium)
   ============================================================================ */

:root {
  /* Transition Durations */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 350ms;

  /* Easing Functions */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ============================================================================
   GLOBAL RESET & BASE STYLES
   ============================================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* ============================================================================
   TYPOGRAPHY BASE STYLES
   ============================================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
}

a:hover {
  color: var(--color-gold);
}

strong,
b {
  font-weight: var(--font-semibold);
}

/* ============================================================================
   RESPONSIVE TYPOGRAPHY
   ============================================================================ */

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    /* 40px on mobile */
    --text-4xl: 2rem;
    /* 32px on mobile */
    --text-3xl: 1.5rem;
    /* 24px on mobile */
  }

  html {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 2rem;
    /* 32px on small mobile */
    --text-4xl: 1.75rem;
    /* 28px on small mobile */
  }

  html {
    font-size: 14px;
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/* Container */
.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* Section Padding */
.section-padding {
  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
}

@media (max-width: 1024px) {
  .section-padding {
    padding-top: var(--section-padding-tablet);
    padding-bottom: var(--section-padding-tablet);
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: var(--section-padding-mobile);
    padding-bottom: var(--section-padding-mobile);
  }
}

/* Text Alignment */
.text-center {
  text-align: center;
}

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

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

/* Display */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

/* Flex Utilities */
.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* Grid Utilities */
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid Breakpoints */
@media (max-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Gap Utilities - Responsive */
.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

.gap-12 {
  gap: var(--space-12);
}

@media (max-width: 768px) {
  .gap-12 {
    gap: var(--space-8);
  }

  .gap-8 {
    gap: var(--space-6);
  }
}

/* Spacing Utilities */
.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);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

/* Background Colors */
.bg-white {
  background-color: var(--bg-secondary);
}

.bg-off-white {
  background-color: var(--bg-primary);
}

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

.bg-gold {
  background-color: var(--color-gold);
}

/* Text Colors */
.text-white {
  color: var(--text-on-dark);
}

.text-gold {
  color: var(--color-gold);
}

.text-charcoal {
  color: var(--text-primary);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn var(--duration-slow) var(--ease-out);
}

.animate-slide-in {
  animation: slideInFromLeft var(--duration-slow) var(--ease-out);
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

/* Focus States */
:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Screen Reader Only */
.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;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS REFERENCE
   Mobile First Approach
   
   Mobile: default (< 768px)
   Tablet: @media (min-width: 768px)  
   Desktop: @media (min-width: 1024px)
   Large Desktop: @media (min-width: 1440px)
   ============================================================================ */