/* ============================================
   MICHAEL PAYCER — PREMIUM DESIGN SYSTEM
   Black + Gold + White
   Optimized for all pages while preserving existing content
   ============================================ */

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

/* ============================================
   CSS VARIABLES (Brand Tokens)
   ============================================ */

:root {
  /* Primary Colors */
  --primary: #1C1917;
  --on-primary: #FFFFFF;
  --secondary: #44403C;
  --on-secondary: #FFFFFF;
  --accent: #A16207;
  --on-accent: #FFFFFF;

  /* Backgrounds */
  --background: #FAFAF9;
  --foreground: #0C0A09;
  --card: #FFFFFF;
  --card-foreground: #0C0A09;

  /* Semantic */
  --muted: #E8ECF0;
  --muted-foreground: #64748B;
  --border: #D6D3D1;
  --destructive: #DC2626;
  --on-destructive: #FFFFFF;
  --success: #16A34A;
  --warning: #EAB308;
  --info: #0EA5E9;
  --ring: #1C1917;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 150ms ease-in-out;
}

a:hover {
  border-bottom-color: var(--accent);
  color: #8A4F06;
}

a:visited {
  color: #8A4F06;
}

a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn, button[class*="btn"] {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-align: center;
}

.btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.btn-primary, button.btn-primary, [class*="btn-primary"] {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: #8A4F06;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(161, 98, 7, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(161, 98, 7, 0.15);
}

.btn-secondary, button.btn-secondary {
  background: var(--card);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: #FFFAF8;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* ============================================
   CARDS
   ============================================ */

.card, [class*="card"] {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav a {
  color: var(--secondary);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--accent);
}

nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================
   SECTION STYLING
   ============================================ */

section {
  padding: var(--space-3xl) var(--space-lg);
}

section h2 {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  margin-top: var(--space-3xl);
}

footer a {
  color: var(--accent);
}

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

/* ============================================
   FORMS
   ============================================ */

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 200ms ease-in-out;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.1);
  background: #FFFAF8;
}

input::placeholder {
  color: var(--muted-foreground);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  section {
    padding: var(--space-2xl) var(--space-lg);
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }

  section {
    padding: var(--space-xl) var(--space-md);
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

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

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

.bg-muted { background: var(--muted); }
.bg-primary { background: var(--primary); color: var(--on-primary); }
.bg-accent { background: var(--accent); color: var(--on-accent); }

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

/* ============================================
   EXISTING CONTENT PRESERVATION
   ============================================ */

/* Ensure existing classes and structures work */
[class*="hero"] {
  background: linear-gradient(135deg, var(--background) 0%, var(--card) 100%);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

[class*="header"] {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

[class*="feature"], [class*="service"] {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  nav, footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

