/**
 * AJ Long Electric - Master Stylesheet
 * Single source of truth - imports all component styles
 *
 * LOAD ORDER MATTERS:
 * 1. Variables first (so everything can use them)
 * 2. Reset (clean slate)
 * 3. Base styles (typography)
 * 4. Layout components (header, footer)
 * 5. UI components (buttons, forms, cards)
 * 6. Page-specific overrides (last, so they can override)
 *
 * To update styles:
 * - Header → edit components/header.css
 * - Footer → edit components/footer.css
 * - Forms → edit components/forms.css
 * - Buttons → edit components/buttons.css
 * - Colors/spacing → edit base/variables.css
 */

/* ============================================
   1. VARIABLES (must be first)
   ============================================ */
@import './base/variables.css';

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
@import './base/reset.css';
@import './base/typography.css';

/* ============================================
   3. LAYOUT COMPONENTS
   ============================================ */
@import './components/header.css';
@import './components/footer.css';

/* ============================================
   4. UI COMPONENTS
   ============================================ */
@import './components/buttons.css';
@import './components/forms.css';
@import './components/cards.css';

/* ============================================
   5. PAGE-SPECIFIC STYLES (optional)
   ============================================ */
/* @import './pages/home.css'; */
/* @import './pages/about.css'; */

/* ============================================
   UTILITY CLASSES
   (Kept in main.css since they're used everywhere)
   ============================================ */

/* Colors */
.text-aj-orange { color: var(--aj-orange); }
.text-aj-dark { color: var(--aj-dark); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-white { color: white; }

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

/* Spacing */
.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.py-4 { padding-block: var(--space-4); }
.py-6 { padding-block: var(--space-6); }
.py-8 { padding-block: var(--space-8); }
.py-12 { padding-block: var(--space-12); }
.py-16 { padding-block: var(--space-16); }

.px-4 { padding-inline: var(--space-4); }
.px-6 { padding-inline: var(--space-6); }

.m-0 { margin: 0; }
.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); }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox */
.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-end { justify-content: flex-end; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

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

/* Font Weight */
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Border Radius */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Width */
.w-full { width: 100%; }
.h-full { height: 100%; }

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

/* ============================================
   HERO SECTIONS
   ============================================ */
section.pattern-bg,
section.hero-section,
.pattern-bg,
.hero-section {
  background-color: var(--aj-dark);
  background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23373737" fill-opacity="0.15"%3E%3Cpath d="M9 0h2v20H9zM0 9h20v2H0z"/%3E%3C/g%3E%3C/svg%3E');
  color: white !important;
}

section.pattern-bg *,
section.hero-section *,
.pattern-bg *,
.hero-section * {
  color: white !important;
}

section.pattern-bg .text-aj-orange,
section.hero-section .text-aj-orange,
.pattern-bg .text-aj-orange,
.hero-section .text-aj-orange {
  color: var(--aj-orange) !important;
}
