:root {
  --primary-blue: #1e40af;
  --secondary-orange: #ea580c;
  --pure-white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #f1f5f9;
  --dark-gray: #1f2937;
  --text-primary: #1f2937;
  --text-secondary: #64748b;
  --shadow-soft: 0 10px 30px -10px rgba(30, 64, 175, 0.1);
  --shadow-hover: 0 20px 40px -10px rgba(30, 64, 175, 0.15);
  --shadow-elevated: 0 25px 50px -10px rgba(30, 64, 175, 0.2);
  --border-radius-soft: 16px;
  --border-radius-medium: 20px;
  --border-radius-large: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--pure-white);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(30, 64, 175, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(234, 88, 12, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

/* Section Background Variations */
.section-light {
  background-color: var(--pure-white);
}

.section-medium {
  background-color: var(--light-gray);
  border-radius: var(--border-radius-large);
  margin: 2rem 0;
  padding: 4rem 2rem;
}

.section-dark-accent {
  background-color: var(--medium-gray);
  position: relative;
  overflow: hidden;
}

.section-dark-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(30, 64, 175, 0.05) 0%, 
    rgba(234, 88, 12, 0.05) 100%);
  pointer-events: none;
}

/* Cards */
.card {
  background: var(--pure-white);
  border-radius: var(--border-radius-soft);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30, 64, 175, 0.08);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-orange));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 64, 175, 0.15);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Enhanced Card Variants */
.card-featured {
  background: linear-gradient(135deg, var(--pure-white) 0%, var(--light-gray) 100%);
  border: 1px solid rgba(30, 64, 175, 0.1);
  box-shadow: var(--shadow-elevated);
  position: relative;
}

.card-featured::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-orange));
  border-radius: var(--border-radius-soft);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-featured:hover::after {
  opacity: 0.1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-soft);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-orange) 0%, #dc2626 100%);
  color: var(--pure-white);
  box-shadow: 0 4px 14px 0 rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #dc2626 0%, var(--secondary-orange) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(234, 88, 12, 0.35);
  color: var(--pure-white);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e3a8a 100%);
  color: var(--pure-white);
  box-shadow: 0 4px 14px 0 rgba(30, 64, 175, 0.25);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--primary-blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(30, 64, 175, 0.35);
  color: var(--pure-white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--pure-white);
  transform: translateY(-2px);
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(30, 64, 175, 0.1);
  border-radius: var(--border-radius-soft);
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--pure-white);
  transition: var(--transition-smooth);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
  background-color: var(--light-gray);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Navigation */
.nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 64, 175, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-brand:hover {
  color: var(--secondary-orange);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-soft);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
  background-color: rgba(30, 64, 175, 0.08);
}

/* Footer */
.footer {
  background-color: var(--dark-gray);
  color: #d1d5db;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--pure-white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
  transition: var(--transition-smooth);
}

.footer-section a:hover {
  color: var(--secondary-orange);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid #374151;
  text-align: center;
  color: #6b7280;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rounded { border-radius: var(--border-radius-soft); }
.rounded-lg { border-radius: var(--border-radius-large); }

.shadow { box-shadow: var(--shadow-soft); }
.shadow-lg { box-shadow: var(--shadow-hover); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.text-primary { color: var(--primary-blue); }
.text-secondary { color: var(--secondary-orange); }
.text-muted { color: var(--text-secondary); }

.bg-primary { background-color: var(--primary-blue); }
.bg-secondary { background-color: var(--secondary-orange); }
.bg-light { background-color: var(--light-gray); }
.bg-medium { background-color: var(--medium-gray); }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-container {
    padding: 0 1rem;
    height: 60px;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .section-medium {
    margin: 1rem 0;
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }
  
  .nav-links {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .card {
    padding: 1rem;
  }
}

/* Focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
  scroll-padding-top: 80px;
}

/* Selection styling */
::selection {
  background-color: rgba(30, 64, 175, 0.2);
  color: var(--text-primary);
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}