:root {
  /* Color System */
  --primary-color: #1A1A1A;
  --secondary-color: #0F172A;
  --background-color: #F9FAFB;
  --footer-bg-color: #111827;
  --button-color: #1F2937;
  --section-bg-white: #FFFFFF;
  --section-bg-light: #F3F4F6;
  --section-bg-tan: #E5D0AC;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border System */
  --border-thin: 1px;
  --border-thick: 2px;
  --border-radius-sharp: 0;
  --border-radius-soft: 4px;
  
  /* Shadow System (Neo-Brutalism) */
  --shadow-offset: 4px 4px 0;
  --shadow-offset-hover: 6px 6px 0;
  --shadow-color: #000000;
  
  /* Typography 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;
  --text-6xl: 3.75rem;
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: var(--primary-color);
  font-size: var(--text-base);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.05em;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-3xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h5 {
  font-size: var(--text-xl);
  font-weight: 600;
}

h6 {
  font-size: var(--text-lg);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  font-weight: 400;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-white {
  background-color: var(--section-bg-white);
}

.section-light {
  background-color: var(--section-bg-light);
}

.section-tan {
  background-color: var(--section-bg-tan);
}

/* Header Styles */
.header {
  background-color: var(--section-bg-white);
  border-bottom: var(--border-thick) solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
}

.logo {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  border: var(--border-thick) solid transparent;
  padding: var(--space-sm) var(--space-md);
  transition: all 0.2s ease;
}

.logo:hover {
  border-color: var(--primary-color);
  background-color: var(--section-bg-light);
  text-decoration: none;
}

/* Navigation */
.nav {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav a {
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm) var(--space-md);
  border: var(--border-thick) solid transparent;
  transition: all 0.2s ease;
  display: block;
}

.nav a:hover {
  border-color: var(--primary-color);
  background-color: var(--section-bg-light);
  text-decoration: none;
}

/* Buttons - Neo-Brutalism Style */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: var(--border-thick) solid var(--primary-color);
  background-color: var(--button-color);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-offset) var(--shadow-color);
  position: relative;
  top: 0;
  left: 0;
}

.btn:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-offset-hover) var(--shadow-color);
  top: -2px;
  left: -2px;
}

.btn:active {
  box-shadow: 2px 2px 0 var(--shadow-color);
  top: 2px;
  left: 2px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary {
  background-color: var(--section-bg-white);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--section-bg-light);
  color: var(--primary-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Cards - Neo-Brutalism Style */
.card {
  background-color: var(--section-bg-white);
  border: var(--border-thick) solid var(--primary-color);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-offset) var(--shadow-color);
  transition: all 0.2s ease;
  position: relative;
  top: 0;
  left: 0;
}

.card:hover {
  box-shadow: var(--shadow-offset-hover) var(--shadow-color);
  top: -2px;
  left: -2px;
}

.card-header {
  border-bottom: var(--border-thin) solid var(--section-bg-light);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
}

.card-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-body {
  margin-bottom: var(--space-lg);
}

.card-footer {
  border-top: var(--border-thin) solid var(--section-bg-light);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-cols-1 { grid-template-columns: repeat(1, 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); }

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  border: var(--border-thick) solid var(--primary-color);
  background-color: var(--section-bg-white);
  color: var(--primary-color);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-offset) var(--shadow-color);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-offset-hover) var(--shadow-color);
  top: -2px;
  left: -2px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: white;
  padding: var(--space-3xl) 0 var(--space-xl) 0;
  border-top: var(--border-thick) solid var(--primary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section p,
.footer-section a {
  color: #D1D5DB;
  margin-bottom: var(--space-sm);
}

.footer-section a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: var(--space-lg);
  text-align: center;
  color: #9CA3AF;
  font-size: var(--text-sm);
}

/* Hero Section */
.hero {
  background-color: var(--section-bg-white);
  padding: var(--space-3xl) 0;
  border-bottom: var(--border-thick) solid var(--primary-color);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--secondary-color);
  margin-bottom: var(--space-2xl);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* Alert/Notification Styles */
.alert {
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border: var(--border-thick) solid var(--primary-color);
  box-shadow: var(--shadow-offset) var(--shadow-color);
  font-weight: 500;
}

.alert-success {
  background-color: #D1FAE5;
  border-color: #059669;
  color: #065F46;
}

.alert-error {
  background-color: #FEE2E2;
  border-color: #DC2626;
  color: #991B1B;
}

.alert-warning {
  background-color: #FEF3C7;
  border-color: #D97706;
  color: #92400E;
}

.alert-info {
  background-color: #DBEAFE;
  border-color: #2563EB;
  color: #1E40AF;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .nav {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .card-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .card {
    padding: var(--space-lg);
  }
  
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

/* Focus States for Accessibility */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
a:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .btn {
    display: none;
  }
  
  .card {
    border: 1px solid #000;
    box-shadow: none;
    break-inside: avoid;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .card,
  .btn,
  .form-input,
  .form-textarea,
  .form-select {
    border-width: 3px;
  }
  
  .btn {
    box-shadow: 6px 6px 0 var(--shadow-color);
  }
  
  .btn:hover {
    box-shadow: 8px 8px 0 var(--shadow-color);
  }
}

/* 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;
  }
}


/* 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;
    }
}