/* ========================================
   CSS Variables & Global Configuration
======================================== */
:root {
  /* Primary Palette */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #f97316;
  --secondary-light: #fb923c;
  --secondary-dark: #ea580c;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-section-1: #f8fafc;
  --bg-section-2: #ffffff;
  --bg-section-3: #f1f5f9;
  --bg-footer: #1e293b;
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-white: #ffffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --gradient-secondary: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  --gradient-subtle: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  
  /* Shadows - Soft & Diffused */
  --shadow-soft-sm: 0 4px 20px -8px rgba(37, 99, 235, 0.15);
  --shadow-soft-md: 0 10px 30px -10px rgba(37, 99, 235, 0.25);
  --shadow-soft-lg: 0 20px 50px -15px rgba(37, 99, 235, 0.3);
  --shadow-soft-xl: 0 30px 80px -20px rgba(37, 99, 235, 0.35);
  --shadow-secondary: 0 10px 30px -10px rgba(249, 115, 22, 0.25);
  
  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
}

/* ========================================
   Base Styles & Typography
======================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  margin: 0;
  padding: 0;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h5 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 600;
}

h6 {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ========================================
   Component: Buttons
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-soft-sm);
}

.btn::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;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-soft-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-lg);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--text-white);
  box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -15px rgba(249, 115, 22, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-md);
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
  border-radius: calc(var(--radius-xl) + 4px);
}

.btn-small {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.875rem;
  border-radius: var(--radius-lg);
}

.btn:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--primary-light);
  ring-offset: 2px;
}

/* ========================================
   Component: Cards
======================================== */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft-sm);
  border: 1px solid rgba(37, 99, 235, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft-lg);
  border-color: rgba(37, 99, 235, 0.15);
}

.card-secondary::before {
  background: var(--gradient-secondary);
}

.card-elevated {
  box-shadow: var(--shadow-soft-md);
}

.card-elevated:hover {
  box-shadow: var(--shadow-soft-xl);
}

.card-compact {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
}

.card-spacious {
  padding: var(--space-2xl);
  border-radius: calc(var(--radius-xl) + 4px);
}

/* ========================================
   Layout Components
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: var(--bg-section-1);
}

.section-secondary {
  background: var(--gradient-subtle);
}

.section-dark {
  background: var(--bg-footer);
  color: var(--text-white);
}

/* ========================================
   Form Elements
======================================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========================================
   Navigation & Header
======================================== */
.nav {
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px -10px rgba(37, 99, 235, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.nav-logo {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

/* ========================================
   Footer
======================================== */
.footer {
  background: var(--bg-footer);
  color: var(--text-white);
  padding: var(--space-3xl) 0 var(--space-xl) 0;
  margin-top: var(--space-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: var(--text-white);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Utility Classes
======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }

.bg-primary { background: var(--bg-primary); }
.bg-section-1 { background: var(--bg-section-1); }
.bg-section-2 { background: var(--bg-section-2); }
.bg-section-3 { background: var(--bg-section-3); }

.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); }

.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); }

.py-xl { padding: var(--space-3xl) 0; }
.py-lg { padding: var(--space-2xl) 0; }
.py-md { padding: var(--space-xl) 0; }

/* ========================================
   Gradients & Special Effects
======================================== */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: var(--gradient-primary);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
    --space-xl: 2rem;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .nav-container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .nav-menu {
    gap: var(--space-md);
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  .card-spacious {
    padding: var(--space-xl);
  }
  
  .btn {
    padding: var(--space-sm) var(--space-md);
  }
  
  .btn-large {
    padding: var(--space-md) var(--space-lg);
  }
}

@media (max-width: 480px) {
  .nav-menu {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ========================================
   Animations & Interactions
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Accessibility & Focus States
======================================== */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Print Styles
======================================== */
@media print {
  .btn,
  .nav,
  .footer {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}


/* 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;
    }
}