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

:root {
  /* Blue and deep yellow color palette */
  --primary-blue: #1e3a8a;
  --secondary-blue: #3b82f6;
  --accent-yellow: #fbbf24;
  --deep-yellow: #f59e0b;
  --warm-beige: #fef3c7;
  --cream: #fffbeb;
  --dark-gray: #2c3e50;
  --medium-gray: #7f8c8d;
  --light-gray: #ecf0f1;
  --success-green: #27ae60;
  --warning-orange: #f59e0b;
  --error-red: #e74c3c;
  
  /* Typography */
  --font-primary: 'Open Sans', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  
  /* Spacing system */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Border radius for 2014 style */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  
  /* Shadows for depth */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-yellow) 0%, var(--deep-yellow) 100%);
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--cream);
}

/* Typography */
h1 {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-blue);
  margin-bottom: var(--space-md);
}

h2 {
  font-family: var(--font-secondary);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark-gray);
  margin-bottom: var(--space-md);
}

h3 {
  font-family: var(--font-secondary);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark-gray);
  margin-bottom: var(--space-sm);
}

h4 {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  color: var(--medium-gray);
}

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

.section {
  padding: var(--space-xxl) 0;
}

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

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.btn-secondary {
  background: var(--gradient-accent);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
  transition: all 0.3s ease;
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -var(--space-sm);
}

.col {
  flex: 1;
  padding: 0 var(--space-sm);
}

.col-2 {
  flex: 0 0 50%;
  padding: 0 var(--space-sm);
}

.col-3 {
  flex: 0 0 33.333%;
  padding: 0 var(--space-sm);
}

.col-4 {
  flex: 0 0 25%;
  padding: 0 var(--space-sm);
}

.col-3 {
  flex: 0 0 33.333%;
  padding: 0 var(--space-sm);
}

/* Card Component */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Performance optimizations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

/* Focus management for accessibility */
*:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.btn:focus {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
}

/* Print styles */
@media print {
  .header-top,
  .mobile-menu-toggle,
  .btn,
  .scroll-top-btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .col-2, .col-3, .col-4 {
    flex: 0 0 100%;
    margin-bottom: var(--space-md);
  }
  
  .row {
    margin: 0;
  }
  
  .col, .col-2, .col-3, .col-4 {
    padding: 0;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-lg) 0;
  }
}