:root {
  /* Brand Colors */
  --primary-color: #2D3748;
  --secondary-color: #4A5568;
  --background-color: #F7FAFC;
  --footer-bg-color: #1A202C;
  --button-color: #3182CE;
  
  /* Section Backgrounds */
  --section-white: #FFFFFF;
  --section-light-gray: #EDF2F7;
  --section-medium-gray: #E2E8F0;
  
  /* Neutral Colors */
  --text-primary: #2D3748;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --text-light: #A0AEC0;
  --border-light: #E2E8F0;
  --border-medium: #CBD5E0;
  
  /* Shadows */
  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-soft: 0 2px 8px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 2px 6px 0 rgba(0, 0, 0, 0.05);
  
  /* 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;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
}

/* Typography */
body {
  font-family: var(--font-sans);
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

h5 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

h6 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: var(--text-base);
}

/* Links */
a {
  color: var(--button-color);
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
}

a:not(.btn):hover {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--button-color);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

a:not(.btn):hover::after {
  transform: scaleX(1);
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section:nth-child(even) {
  background-color: var(--section-light-gray);
}

.section:nth-child(odd) {
  background-color: var(--section-white);
}

/* Cards */
.card {
  background: var(--section-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.card-header {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-md);
}

.card-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.card-body {
  padding: 0;
}

.card-footer {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.025em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--button-color);
  color: white;
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  background-color: #2C5AA0;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  color: var(--button-color);
  border: 1px solid var(--button-color);
}

.btn-ghost:hover {
  background-color: var(--button-color);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--button-color);
  border: none;
  padding: 0.5rem 0;
  border-radius: var(--radius-sm);
}

.btn-outline:hover {
  background-color: var(--button-color);
  color: white;
  border-radius: var(--radius-full);
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--section-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--button-color);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox,
.form-radio {
  margin-right: var(--space-xs);
}

/* Navigation */
.nav {
  background-color: var(--section-white);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-sm) 0;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background-color: var(--section-light-gray);
  text-decoration: none;
}

/* Hero Section */
.hero {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--section-white) 0%, var(--section-light-gray) 100%);
  text-align: center;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: #E2E8F0;
  padding: var(--space-3xl) 0 var(--space-lg) 0;
}

.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6 {
  color: white;
  font-family: var(--font-serif);
}

.footer a {
  color: #A0AEC0;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: white;
  text-decoration: none;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.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); }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-white { background-color: var(--section-white); }
.bg-light { background-color: var(--section-light-gray); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-subtle { box-shadow: var(--shadow-subtle); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-medium { box-shadow: var(--shadow-medium); }

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .hero {
    padding: var(--space-2xl) 0;
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  .hero-title { font-size: var(--text-3xl); }
  .section { padding: var(--space-lg) 0; }
}

/* Alpine.js Compatibility */
[x-cloak] { display: none !important; }

/* Focus States for Accessibility */
*:focus {
  outline: 2px solid var(--button-color);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  outline: 2px solid var(--button-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .btn,
  .nav,
  .footer {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
    padding: var(--space-sm) 0;
  }
  
  body {
    background: white;
    color: black;
  }
}


/* 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;
    }
}