/* ============================================
   MAGTEK STANDARDIZATION STYLESHEET
   ============================================
   
   PURPOSE:
   Centralized spacing, typography, and pattern
   standards for consistent flow across all pages.
   
   LOAD ORDER:
   This file should be loaded FIRST, before any
   page-specific CSS files:
   
   1. magtek-standardization.css (THIS FILE)
   2. magtek-buttons.css
   3. magtek-heroes.css
   4. magtek-cards.css
   5. [page-specific].css (dynaconnect, qwantum, etc)
   
   USAGE:
   Use this file on EVERY page to maintain brand
   consistency. Page-specific CSS files can extend
   or override these base styles as needed.
   
   KEY PRINCIPLES:
   - Keep spacing values consistent (2,3,4,6,10 rem)
   - Maintain typography hierarchy (h1→h2→h3→h4)
   - Use standard animation delays (0,100,200,300ms)
   - Customize content, not spacing
   
   Created: 2025
   Last Updated: 2025-10-30
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
  /* Colors */
  --magtek-red: #d21242;
  --magtek-red-dark: #b01035;
  --magtek-blue: #263c50;
  --text-primary: #263c50;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-light: #e2e8f0;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-elevated: #ffffff;

  /* Radius and Elevation */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* Status/Trust Scale */
  --status-success: #059669;
  --status-info: #0ea5e9;
  --status-warning: #d97706;
  --status-risk: #dc2626;

  /* Spacing Scale */
  --space-xs: 1rem;
  --space-sm: 2rem;
  --space-md: 3rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 10rem;

  /* Typography Scale */
  --font-size-hero: 4.5rem;
  --font-size-h1: 3.6rem;
  --font-size-h2: 3rem;
  --font-size-h3: 2.8rem;
  --font-size-h4: 2rem;
  --font-size-large: 1.8rem;
  --font-size-body: 1.6rem;
  --font-size-small: 1.4rem;

  /* Animation Timing */
  --aos-delay-0: 0ms;
  --aos-delay-1: 100ms;
  --aos-delay-2: 200ms;
  --aos-delay-3: 300ms;
  --aos-delay-4: 400ms;
}

/* ============================================
   2. SPACING UTILITIES
   ============================================
   
   Standard spacing values used throughout:
   - 2rem: Small gaps (list items, inline elements)
   - 3rem: Medium gaps (cards in grids)
   - 4rem: Large gaps (section components)
   - 6rem: Extra large (between major sections)
   - 10rem: Section padding (vertical)
   ============================================ */

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

/* Section Backgrounds with Consistent Padding */
.section-bg-white,
.section-bg-light,
.section-bg-alt,
.section-bg-pattern {
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: hidden;
}

.section-bg-white {
  background: var(--bg-white);
}

.section-bg-light {
  background: var(--bg-light);
}

.section-bg-alt {
  background: linear-gradient(180deg, #fafbfc 0%, #f8f9fa 100%);
}

.section-bg-pattern {
  background: linear-gradient(180deg, #fafbfc 0%, #f8f9fa 100%);
}

/* ============================================
   3. TYPOGRAPHY HIERARCHY
   ============================================
   
   Standardized heading sizes and weights:
   - h1: 4.5rem / 700 - Hero headlines (once per page)
   - h2: 3.6rem / 800 - Major sections
   - h3: 2.8-3rem / 700-800 - Subsections
   - h4: 2rem / 700 - Feature titles
   - body: 1.6rem / 400 / 1.7 line-height
   ============================================ */

/* Section Header Pattern */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-sm);
  position: relative;
}

.section-title {
  font-size: var(--font-size-h1);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  line-height: 1.2;
  position: relative;
  padding-bottom: 3rem;
}

/* Red underline decoration under section titles */
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--magtek-red) 0%, var(--magtek-red-dark) 100%);
  border-radius: 2px;
  opacity: 0.8;
}

.section-subtitle {
  font-size: var(--font-size-large);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto;
  text-align: center;
  max-width: 800px;
}

/* Services Grid Header Pattern */
.services-grid-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  margin-top: var(--space-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid-title {
  font-size: var(--font-size-h2);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.services-grid-subtitle {
  font-size: var(--font-size-large);
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* Industry Header Pattern */
.industry-section {
  margin-top: 12rem;
}

.industry-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.industry-title {
  font-size: var(--font-size-h3);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.industry-subtitle {
  font-size: 1.7rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Explanation Intro Paragraph */
.explanation-intro {
  font-size: var(--font-size-large);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

/* Comparison Description */
.comparison-description {
  font-size: 1.7rem;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

/* ============================================
   4. CONSISTENT LIST SPACING
   ============================================ */

.checkmark-list {
  margin-top: var(--space-sm);
  list-style: none;
  padding: 0;
}

.checkmark-list-item {
  margin-bottom: 1rem;
  padding-left: 3rem;
  position: relative;
  font-size: var(--font-size-body);
  line-height: 1.7;
}

.checkmark-list-icon {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--magtek-red);
  font-weight: 700;
  font-size: 1.8rem;
}

/* ============================================
   5. RESPONSIVE BREAKPOINTS
   ============================================
   
   Consistent responsive behavior:
   - Desktop (>1024px): 4rem padding, 10rem sections
   - Tablet (≤1024px): 3rem padding, 8rem sections
   - Mobile (≤768px): 2rem padding, 6rem sections
   - Small (≤480px): 1.5rem padding, 4rem sections
   ============================================ */

@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section-bg-white,
  .section-bg-light,
  .section-bg-alt,
  .section-bg-pattern {
    padding: 8rem 0;
  }

  .section-title {
    font-size: 3.2rem;
  }

  .services-grid-title,
  .industry-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .section-bg-white,
  .section-bg-light,
  .section-bg-alt,
  .section-bg-pattern {
    padding: 6rem 0;
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .section-title {
    font-size: 2.8rem;
  }

  .services-grid-title,
  .industry-title {
    font-size: 2.4rem;
  }

  .section-subtitle,
  .services-grid-subtitle,
  .industry-subtitle {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.5rem;
  }

  .section-bg-white,
  .section-bg-light,
  .section-bg-alt,
  .section-bg-pattern {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2.4rem;
  }

  .services-grid-title,
  .industry-title {
    font-size: 2.2rem;
  }
}

/* ============================================
   6. GRID PATTERNS
   ============================================ */

/* 2 Column Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* 3 Column Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* 4 Column Grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* Responsive Grids */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* ============================================
   7. SPACING UTILITIES (MARGIN/PADDING)
   ============================================ */

/* Margin Top */
.mt-xs {
  margin-top: var(--space-xs);
}
.mt-sm {
  margin-top: var(--space-sm);
}
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mt-xl {
  margin-top: var(--space-xl);
}
.mt-xxl {
  margin-top: var(--space-xxl);
}

/* Margin Bottom */
.mb-xs {
  margin-bottom: var(--space-xs);
}
.mb-sm {
  margin-bottom: var(--space-sm);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.mb-lg {
  margin-bottom: var(--space-lg);
}
.mb-xl {
  margin-bottom: var(--space-xl);
}
.mb-xxl {
  margin-bottom: var(--space-xxl);
}

/* Padding Top */
.pt-xs {
  padding-top: var(--space-xs);
}
.pt-sm {
  padding-top: var(--space-sm);
}
.pt-md {
  padding-top: var(--space-md);
}
.pt-lg {
  padding-top: var(--space-lg);
}
.pt-xl {
  padding-top: var(--space-xl);
}
.pt-xxl {
  padding-top: var(--space-xxl);
}

/* Padding Bottom */
.pb-xs {
  padding-bottom: var(--space-xs);
}
.pb-sm {
  padding-bottom: var(--space-sm);
}
.pb-md {
  padding-bottom: var(--space-md);
}
.pb-lg {
  padding-bottom: var(--space-lg);
}
.pb-xl {
  padding-bottom: var(--space-xl);
}
.pb-xxl {
  padding-bottom: var(--space-xxl);
}

/* Gap Utilities */
.gap-sm {
  gap: var(--space-sm);
}
.gap-md {
  gap: var(--space-md);
}
.gap-lg {
  gap: var(--space-lg);
}
.gap-xl {
  gap: var(--space-xl);
}

/* ============================================
   8. TEXT UTILITIES
   ============================================ */

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

.text-primary {
  color: var(--text-primary);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-muted {
  color: var(--text-muted);
}
.text-red {
  color: var(--magtek-red);
}
.text-success {
  color: var(--status-success);
}
.text-info {
  color: var(--status-info);
}
.text-warning {
  color: var(--status-warning);
}
.text-risk {
  color: var(--status-risk);
}

.font-weight-bold {
  font-weight: 700;
}
.font-weight-extrabold {
  font-weight: 800;
}
.font-weight-normal {
  font-weight: 400;
}

/* ============================================
   9. ANIMATION DELAY UTILITIES
   ============================================
   
   Standard AOS animation timing:
   - 0ms: Section headers
   - 100ms: Primary content (product cards)
   - 200ms: Supporting content (comparisons)
   - 300ms: Social proof (customer stories)
   ============================================ */

[data-aos][data-aos-delay="100"] {
  transition-delay: var(--aos-delay-1);
}

[data-aos][data-aos-delay="200"] {
  transition-delay: var(--aos-delay-2);
}

[data-aos][data-aos-delay="300"] {
  transition-delay: var(--aos-delay-3);
}

[data-aos][data-aos-delay="400"] {
  transition-delay: var(--aos-delay-4);
}

/* ============================================
   10. COMMON CONTENT PATTERNS
   ============================================ */

/* Feature Box Pattern */
.feature-box {
  padding: var(--space-lg);
  background: white;
  border-radius: 16px;
  border: 2px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Value Proposition Box */
.value-prop-box {
  padding: var(--space-lg) var(--space-xl);
  background: white;
  border-radius: 24px;
  border: 2px solid var(--border-light);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 950px;
  margin: var(--space-lg) auto;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
}

.stat-number {
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--magtek-red);
  line-height: 1;
  margin-bottom: 1rem;
}

.stat-label {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   11. UTILITIES
   ============================================ */

.max-width-sm {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.max-width-md {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.max-width-lg {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.max-width-xl {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.display-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.align-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}

/* ============================================
   PHASE 2 LAYOUT PRIMITIVES
   ============================================ */
.magtek-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.magtek-stats-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.6rem;
}

.magtek-stats-value {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.magtek-stats-label,
.magtek-stats-helper {
  margin: 0.4rem 0 0;
  color: var(--text-secondary);
}

.magtek-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.magtek-kpi-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.magtek-kpi-title,
.magtek-kpi-value,
.magtek-kpi-description,
.magtek-kpi-trend {
  margin: 0;
}

.magtek-kpi-title {
  font-size: 1.3rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.magtek-kpi-value {
  margin-top: 0.6rem;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.magtek-kpi-description {
  margin-top: 0.8rem;
  color: var(--text-secondary);
}

.magtek-kpi-trend {
  margin-top: 0.8rem;
  font-weight: 700;
}

.magtek-step-flow {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  flex-wrap: wrap;
}

.magtek-step-flow-item {
  flex: 1 1 220px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: 1.5rem;
}

.magtek-step-flow-separator {
  align-self: center;
  color: var(--text-muted);
}

.magtek-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border-light);
}

.magtek-timeline-item {
  margin: 0 0 1.2rem 1.4rem;
  padding: 1rem 1rem 1rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.magtek-timeline-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.magtek-faq-accordion .magtek-faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  margin-bottom: 0.8rem;
  padding: 0.8rem 1rem;
}

.magtek-faq-accordion summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
}

.magtek-faq-answer {
  margin-top: 0.8rem;
  color: var(--text-secondary);
}

.magtek-integration-matrix table,
.magtek-comparison-grid table {
  width: 100%;
  border-collapse: collapse;
}

.magtek-integration-matrix th,
.magtek-integration-matrix td,
.magtek-comparison-grid th,
.magtek-comparison-grid td {
  border: 1px solid var(--border-light);
  padding: 0.8rem 1rem;
}

/* Surface/Elevation Utilities */
.surface-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.radius-sm {
  border-radius: var(--radius-sm);
}
.radius-md {
  border-radius: var(--radius-md);
}
.radius-lg {
  border-radius: var(--radius-lg);
}
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* Modern fintech eyebrow/label utility */
.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(38, 60, 80, 0.15);
  background: rgba(38, 60, 80, 0.05);
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ============================================
   END OF STANDARDIZATION STYLESHEET
   ============================================
   
   QUICK REFERENCE - Copy/Paste Examples:
   
   STANDARD SECTION:
   <section class="section-bg-white">
     <div class="container">
       <div class="section-header" data-aos="fade-up">
         <h2 class="section-title">Title</h2>
         <p class="section-subtitle">Subtitle</p>
       </div>
       <!-- Your content with data-aos-delay="100", "200", etc -->
     </div>
   </section>
   
   SERVICES GRID:
   <div class="services-grid-header">
     <h3 class="services-grid-title">Title</h3>
     <p class="services-grid-subtitle">Description</p>
   </div>
   
   INDUSTRY SECTION:
   <div class="industry-header">
     <h3 class="industry-title">Title</h3>
     <p class="industry-subtitle">Description</p>
   </div>
   
   SPACING UTILITIES:
   <div class="mt-xl mb-lg gap-md">
     <!-- 6rem top, 4rem bottom, 3rem gap -->
   </div>
   
   GRID LAYOUTS:
   <div class="grid-4 gap-md">
     <!-- 4 columns with 3rem gap -->
     <!-- Auto-responsive: 2 cols on tablet, 1 col on mobile -->
   </div>
   
   REMEMBER:
   - Keep spacing values consistent (2,3,4,6,10 rem)
   - Customize content, layout, and components freely
   - Same standards = cohesive brand feel
   - Different layouts = unique page experiences
   
   ============================================ */
