/* ==========================================================================
   STITCH N APPAREL — CORE DESIGN SYSTEM & FOUNDATION
   Precision Custom Apparel, Patches, Digitizing & Manufacturing
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Color Palette */
  --color-primary: #0f172a;       /* Slate 900 - Industrial luxury ink */
  --color-primary-light: #1e293b; /* Slate 800 */
  --color-primary-muted: #334155; /* Slate 700 */
  
  --color-accent: #d97706;        /* Amber 600 - Warm embroidery thread / brass gold */
  --color-accent-hover: #b45309;  /* Amber 700 */
  --color-accent-light: #f59e0b;  /* Amber 500 */
  --color-accent-subtle: #fef3c7; /* Amber 100 */
  --color-accent-glow: rgba(217, 119, 6, 0.12);

  --color-navy: #1e3a8a;          /* Deep rich royal navy */
  --color-navy-light: #2563eb;
  
  /* Neutral Surfaces (Light Theme) */
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;        /* Slate 50 - Soft neutral */
  --color-bg-muted: #f1f5f9;      /* Slate 100 - Subtle card backgrounds */
  --color-bg-contrast: #0f172a;   /* Slate 900 - Dark accent sections */

  --color-text: #1e293b;          /* Slate 800 - Crisp readability */
  --color-text-heading: #090d16;  /* Near black for bold authority */
  --color-text-muted: #64748b;    /* Slate 500 */
  --color-text-subtle: #94a3b8;   /* Slate 400 */
  --color-text-inverse: #ffffff;
  
  --color-border: #e2e8f0;        /* Slate 200 - Ultra clean hairline border */
  --color-border-subtle: #f1f5f9;
  --color-border-hover: #cbd5e1;
  --color-border-accent: rgba(217, 119, 6, 0.4);

  --color-success: #15803d;
  --color-success-bg: #dcfce7;
  --color-danger: #b91c1c;
  --color-danger-bg: #fee2e2;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing Scale */
  --space-2xs: 0.25rem; /* 4px */
  --space-xs:  0.5rem;  /* 8px */
  --space-sm:  0.75rem; /* 12px */
  --space-md:  1rem;    /* 16px */
  --space-lg:  1.5rem;  /* 24px */
  --space-xl:  2rem;    /* 32px */
  --space-2xl: 3rem;    /* 48px */
  --space-3xl: 4.5rem;  /* 72px */
  --space-4xl: 6rem;    /* 96px */

  /* Shadows (Curated, Diffused, Restrained) */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 14px 28px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 44px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.05);
  --shadow-inner: inset 0 2px 4px 0 rgba(15, 23, 42, 0.05);

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 980px;
  --header-height: 80px;
  --topbar-height: 38px;
}

/* ==========================================================================
   CSS RESET & CORE DEFAULTS
   ========================================================================== */

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

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Focus Outline Accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Media Elements */
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul, ol {
  list-style: none;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--color-text);
  font-size: 1.025rem;
  line-height: 1.7;
}

p.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.65;
  font-weight: 400;
}

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

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

/* Section Spacing */
.section {
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
  position: relative;
}

.section-sm {
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.section-bg-alt {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-bg-dark {
  background-color: var(--color-bg-contrast);
  color: var(--color-text-inverse);
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4 {
  color: #ffffff;
}

.section-bg-dark p {
  color: #94a3b8;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-accent-subtle);
  color: var(--color-accent-hover);
  margin-bottom: 1rem;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-tag-dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.3);
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
