/* ========================================
   MOBOS.AT DESIGN SYSTEM
   Extracted from WordPress Basix Theme
   ======================================== */

/* CSS Variables for Design System */
:root {
  /* Color Palette */
  --primary-brand: #003366;           /* Dark navy blue from logo */
  --background-light: #efece6;        /* Light beige background */
  --background-grey: #f7f7f7;         /* Light grey background */
  --background-white: #ffffff;         /* White background */
  
  /* Brand Blue Variations (True Brand Color with Opacity) */
  --background-blue-very-light: rgba(0, 51, 102, 0.05);  /* Brand blue 5% opacity */
  --background-blue-light: rgba(0, 51, 102, 0.08);       /* Brand blue 8% opacity */
  --background-blue-medium: rgba(0, 51, 102, 0.12);      /* Brand blue 12% opacity */
  
  --text-dark: #3c3c3c;               /* Dark grey text */
  --text-light: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
  --text-white: #ffffff;              /* Pure white text */
  
  /* Accent Colors (to be extracted from theme options) */
  --accent-primary: #003366;          /* Default to brand color */
  --accent-secondary: #666666;         /* Secondary accent */
  
  /* Interactive States */
  --hover-overlay: rgba(0, 0, 0, 0.1);
  --hover-light: rgba(255, 255, 255, 0.2);
  --shadow-light: 0 0 46px 0 rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 0 40px 0px rgba(0, 0, 0, 0.11);
  
  /* Typography */
  --font-primary: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Open Sans', Helvetica, Arial, sans-serif;
  --font-heading: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-icon: 'FontAwesome';
  
  /* Font Sizes */
  --font-size-base: 16px;
  --font-size-small: 0.875em; /* 14px */
  --font-size-large: 1.25em;  /* 20px */
  --font-size-xl: 1.5em;      /* 24px */
  --font-size-xxl: 1.75em;    /* 28px */
  --font-size-huge: 3em;
  
  /* Line Heights */
  --line-height-base: 1.3em;
  --line-height-tight: 1em;
  --line-height-relaxed: 1.6em;
  --line-height-loose: 1.8em;
  --line-height-huge: 1.9em;
  
  /* Spacing System */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 1.5rem;    /* 24px */
  --spacing-lg: 2rem;      /* 32px */
  --spacing-xl: 3rem;      /* 48px */
  --spacing-xxl: 4rem;     /* 64px */
  --spacing-huge: 6rem;    /* 96px */
  
  /* Page Layout System */
  --page-max-width: 1200px;
  --page-padding-desktop: 1.5rem;
  --page-padding-tablet: 1.25rem;
  --page-padding-mobile: 1rem;
  
  /* Content Widths */
  --content-max-width: 1200px;    /* Full page width */
  --content-narrow: 800px;        /* Narrow content */
  --content-wide: 1000px;         /* Wide content */
  --content-full: 100%;           /* Full width */
  
  /* Section Spacing */
  --section-padding-desktop: 4rem 0;
  --section-padding-tablet: 3rem 0;
  --section-padding-mobile: 2rem 0;
  
  /* Component Spacing */
  --component-margin: 2rem;
  --component-padding: 1.5rem;
  --component-gap: 1rem;
  
  /* Grid System */
  --grid-gap-desktop: 2rem;
  --grid-gap-tablet: 1.5rem;
  --grid-gap-mobile: 1rem;
  
  /* Border Radius */
  --radius-sm: 3px;
  --radius-md: 0px;                  /* Default theme uses 0px */
  --radius-lg: 50%;                 /* For circular elements */
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Reveal Animations */
  --reveal-duration: 0.6s;
  --reveal-ease: ease-out;
  --reveal-translate: 16px;
}

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

/* Base Typography */
/* Reset default margins and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-dark);
  text-rendering: optimizeLegibility;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
  color: var(--primary-brand);
}

h1 {
  font-size: var(--font-size-huge);
  line-height: var(--line-height-huge);
}

h2 {
  font-size: var(--font-size-xxl);
  line-height: var(--line-height-relaxed);
}

h3 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-relaxed);
}

h4 {
  font-size: var(--font-size-large);
  line-height: var(--line-height-relaxed);
}

h5 {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

h6 {
  font-size: var(--font-size-small);
  line-height: var(--line-height-base);
}

/* Paragraphs */
p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

/* Links */
a {
  color: var(--primary-brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Lists */
ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

li {
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   LAYOUT SYSTEM - REMOVED
   ======================================== */
/* Old layout system removed - using new container/grid system in layout.css */

/* ========================================
   COMPONENT STYLES - REMOVED
   ======================================== */
/* Component styles moved to components.css to avoid duplication */

/* Forms, Cards, and other components moved to components.css */

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

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

.text-white { color: var(--text-white); }
.text-dark { color: var(--text-dark); }
.text-primary { color: var(--primary-brand); }

/* Background Utilities */
.bg-white { background-color: var(--background-white); }
.bg-grey { background-color: var(--background-grey); }
.bg-light { background-color: var(--background-light); }
.bg-primary { background-color: var(--primary-brand); }

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

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

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

/* Flexbox Utilities */
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

/* Subtle scroll-reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-translate));
  transition: opacity var(--reveal-duration) var(--reveal-ease),
              transform var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

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

/* Mobile First Approach */
@media (max-width: 320px) {
  :root {
    --content-padding: 0 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
  }
  
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.4em; }
  h3 { font-size: 1.2em; }
  
  .col {
    flex: 0 0 100%;
    margin-bottom: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --content-padding: 0 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
  }
  
  h1 { font-size: 2em; }
  h2 { font-size: 1.5em; }
  h3 { font-size: 1.25em; }
  
  .col {
    flex: 0 0 100%;
    margin-bottom: var(--spacing-md);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .col-sm-6 { flex: 0 0 50%; }
  .col-sm-12 { flex: 0 0 100%; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .col-md-4 { flex: 0 0 33.333333%; }
  .col-md-6 { flex: 0 0 50%; }
  .col-md-8 { flex: 0 0 66.666667%; }
  .col-md-12 { flex: 0 0 100%; }
}

@media (min-width: 1025px) {
  .col-lg-3 { flex: 0 0 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; }
  .col-lg-6 { flex: 0 0 50%; }
  .col-lg-8 { flex: 0 0 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; }
  .col-lg-12 { flex: 0 0 100%; }
}

@media (min-width: 1200px) {
  .col-xl-2 { flex: 0 0 16.666667%; }
  .col-xl-3 { flex: 0 0 25%; }
  .col-xl-4 { flex: 0 0 33.333333%; }
  .col-xl-6 { flex: 0 0 50%; }
  .col-xl-8 { flex: 0 0 66.666667%; }
  .col-xl-12 { flex: 0 0 100%; }
}
