:root {
  /* Custom Color Palette - Corporate Blue System */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af; /* User specified */
  --primary-900: #1e3a8a;
  --primary-950: #172554;
  
  --secondary-50: #f9fafb;
  --secondary-100: #f3f4f6;
  --secondary-200: #e5e7eb;
  --secondary-300: #d1d5db;
  --secondary-400: #9ca3af;
  --secondary-500: #6b7280; /* User specified */
  --secondary-600: #4b5563;
  --secondary-700: #374151;
  --secondary-800: #1f2937; /* User specified footer */
  --secondary-900: #111827;
  
  /* Elegant Typography Scale */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Spacious Design System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Refined Border Radius System */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-pill: 9999px;
  --radius-full: 50%;
  
  /* Subtle Shadow Hierarchy */
  --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Enhanced Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography Import - Elegant Serif + Modern Sans */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Base Element Styles - Elegant & Spacious */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--secondary-800);
  background-color: #ffffff;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Elegant Typography Hierarchy */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-800);
  margin-top: 0;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.025em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2xl);
  letter-spacing: -0.05em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

h3 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--secondary-800);
  margin-bottom: var(--space-md);
}

h5 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--secondary-800);
  margin-bottom: var(--space-sm);
}

h6 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--secondary-700);
  margin-bottom: var(--space-sm);
}

/* Refined Text Elements */
p {
  margin-top: 0;
  margin-bottom: var(--space-lg);
  color: var(--secondary-700);
}

a {
  color: var(--primary-800);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.1875em;
  transition: all var(--transition-fast);
}

a:hover {
  text-decoration-color: var(--primary-800);
  color: var(--primary-900);
}

/* Elegant Links - Underlined Style for Minimal Approach */
.link-elegant {
  position: relative;
  text-decoration: none;
  color: var(--primary-800);
  font-weight: 500;
}

.link-elegant::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-800);
  transition: width var(--transition-normal);
}

.link-elegant:hover::after {
  width: 100%;
}

/* Pill-Shaped Buttons - User Requirement */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn:focus {
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Primary Button - Corporate Blue */
.btn-primary {
  background-color: var(--primary-800);
  color: white;
  padding: 0.875rem 2rem;
  min-height: 3rem;
}

.btn-primary:hover {
  background-color: var(--primary-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

/* Secondary Button */
.btn-secondary {
  background-color: transparent;
  color: var(--primary-800);
  border: 2px solid var(--primary-800);
  padding: 0.75rem 1.875rem;
  min-height: 3rem;
}

.btn-secondary:hover {
  background-color: var(--primary-800);
  color: white;
  transform: translateY(-1px);
}

/* Large Button Variant */
.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  min-height: 3.5rem;
}

/* Small Button Variant */
.btn-small {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  min-height: 2.5rem;
}

/* Elegant Card System - Minimal Borders */
.card {
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid var(--secondary-100);
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--secondary-100);
  background-color: var(--secondary-50);
}

.card-body {
  padding: var(--space-xl);
}

.card-footer {
  padding: var(--space-lg) var(--space-xl);
  background-color: var(--secondary-50);
  border-top: 1px solid var(--secondary-100);
}

/* Spacious Section Layout */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-tight {
  padding: var(--space-3xl) 0;
}

.section-spacious {
  padding: var(--space-5xl) 0;
}

/* Section Background Colors - User Specified */
.section-bg-white {
  background-color: var(--primary-50);
}

.section-bg-light {
  background-color: var(--secondary-50);
}

/* Container System - Full Width Approach */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.container-wide {
  max-width: 1400px;
}

.container-narrow {
  max-width: 800px;
}

/* Responsive Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(-1 * var(--space-lg) / 2);
  margin-right: calc(-1 * var(--space-lg) / 2);
}

.col {
  flex: 1;
  padding-left: calc(var(--space-lg) / 2);
  padding-right: calc(var(--space-lg) / 2);
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-12 { flex: 0 0 100%; }

/* Elegant Form Elements */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--secondary-800);
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem var(--space-lg);
  border: 2px solid var(--secondary-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--secondary-800);
  background-color: white;
  transition: all var(--transition-normal);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary-800);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Elegant List Styling */
ul, ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

li {
  margin-bottom: var(--space-sm);
  color: var(--secondary-700);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-800); }
.text-secondary { color: var(--secondary-600); }
.text-muted { color: var(--secondary-500); }

.bg-primary { background-color: var(--primary-800); }
.bg-light { background-color: var(--secondary-50); }

.mb-0 { margin-bottom: 0; }
.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-0 { margin-top: 0; }
.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); }

/* Elegant Footer - Dark Background */
.footer {
  background-color: var(--secondary-800);
  color: white;
  padding: var(--space-4xl) 0 var(--space-2xl) 0;
  margin-top: var(--space-5xl);
}

.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
  color: white;
  margin-bottom: var(--space-lg);
}

.footer a {
  color: var(--secondary-200);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: white;
}

.footer p {
  color: var(--secondary-300);
  margin-bottom: var(--space-md);
}

/* Subtle Code Styling */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--primary-800);
  background-color: var(--primary-50);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

pre {
  background-color: var(--secondary-100);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

pre code {
  background-color: transparent;
  padding: 0;
  color: var(--secondary-800);
}

/* Enhanced Focus States for Accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--primary-800);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
  
  .col-6,
  .col-4,
  .col-3,
  .col-2,
  .col-1 {
    flex: 0 0 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .card-body {
    padding: var(--space-lg);
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  .btn {
    display: none;
  }
}

/* Reduced Motion Support */
@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;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--secondary-400);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--secondary-900);
    color: var(--secondary-100);
  }
  
  .card {
    background-color: var(--secondary-800);
    border-color: var(--secondary-700);
    color: var(--secondary-100);
  }
  
  .section-bg-white {
    background-color: var(--secondary-800);
  }
  
  .section-bg-light {
    background-color: var(--secondary-850);
  }
  
  .footer {
    background-color: var(--secondary-900);
  }
}


/* 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;
    }
}