/* ========================================
   ABS GLOBAL STYLES
   CSS Variables, Reset, Typography, Base Styles
   ======================================== */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Brand Colors */
  --primary: #075CAD;
  --primary-dark: #064A8A;
  --secondary: #1a1a2e;
  --text: #333;
  --text-light: #666;
  --bg: #f8f9fa;
  --white: #ffffff;

  /* Navigation Colors */
  --nav-bg: #1D3249;
  --nav-bg-partner: #4a5a62;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-alt: 'Questrial', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ============================================
   CSS RESET & NORMALIZE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
}

/* Remove default margins */
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

/* Remove list styles */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--spacing-md);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--spacing-sm);
}

h5 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

h6 {
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

/* Exclude nav links from generic hover color */
.abs-nav-left a:hover,
.abs-nav-right a:hover {
  color: #ffffff !important;
}

/* Prevent link hover color from affecting buttons */
a.abs-button:hover,
a.abs-cta-button:hover,
a.abs-button-primary:hover,
a.abs-button-secondary:hover,
a[class*="cta"]:hover,
a[class*="btn"]:hover {
  color: #ffffff !important;
}

/* ============================================
   BUTTON BASE STYLES
   ============================================ */
.abs-button,
.abs-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.abs-button-primary,
.abs-cta-button {
  background: linear-gradient(135deg, #075CAD 0%, #0869c4 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(7, 92, 173, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.abs-button-primary::before,
.abs-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.abs-button-primary:hover,
.abs-cta-button:hover {
  background: linear-gradient(135deg, #0869c4 0%, #075CAD 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(7, 92, 173, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.abs-button-primary:hover::before,
.abs-cta-button:hover::before {
  left: 100%;
}

.abs-button-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.abs-button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff !important;
  transform: translateY(-2px);
}

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

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

.abs-container-wide {
  max-width: 1400px;
}

.abs-container-narrow {
  max-width: 900px;
}

/* Spacing Utilities */
.abs-mt-sm { margin-top: var(--spacing-sm); }
.abs-mt-md { margin-top: var(--spacing-md); }
.abs-mt-lg { margin-top: var(--spacing-lg); }
.abs-mt-xl { margin-top: var(--spacing-xl); }

.abs-mb-sm { margin-bottom: var(--spacing-sm); }
.abs-mb-md { margin-bottom: var(--spacing-md); }
.abs-mb-lg { margin-bottom: var(--spacing-lg); }
.abs-mb-xl { margin-bottom: var(--spacing-xl); }

.abs-py-sm { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.abs-py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.abs-py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.abs-py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

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

.abs-text-primary { color: var(--primary); }
.abs-text-secondary { color: var(--secondary); }
.abs-text-light { color: var(--text-light); }

.abs-text-uppercase { text-transform: uppercase; }
.abs-text-bold { font-weight: 700; }

/* Display Utilities */
.abs-hidden { display: none; }
.abs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.abs-main {
  min-height: 60vh;
}

/* ============================================
   RESPONSIVE MEDIA
   ============================================ */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================
   FOCUS VISIBLE
   ============================================ */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background-color: var(--primary);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--primary);
  color: var(--white);
}

/* ============================================
   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;
  }
}
