/* Neo-Brutalism Light CSS - Custom Styles */

/* CSS Variables - Color System */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #6b7280;
  --background-color: #ffffff;
  --footer-bg-color: #0f0f0f;
  --button-color: #000000;
  --section-bg-colors: #ffffff, #f9fafb, #f3f4f6;
  
  /* Neo-Brutalism specific */
  --border-thick: 3px;
  --border-medium: 2px;
  --border-light: 1px;
  --shadow-offset: 4px;
  --border-radius-sharp: 0px;
  --border-radius-soft: 4px;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Layout */
  --container-max-width: 1200px;
  --section-padding: var(--space-2xl);
}

/* Base Reset and Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: var(--primary-color);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
  line-height: 1.7;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: var(--border-light) solid transparent;
  transition: all 0.2s ease;
}

a:hover {
  border-bottom-color: var(--primary-color);
}

/* Layout Components */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section:nth-child(even) {
  background-color: #f9fafb;
}

.section:nth-child(3n) {
  background-color: #f3f4f6;
}

/* Header Styling */
.header {
  background-color: var(--background-color);
  border-bottom: var(--border-thick) solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--primary-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--primary-color);
  border: var(--border-medium) solid var(--primary-color);
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--background-color);
}

.nav {
  display: flex;
  gap: var(--space-lg);
}

.nav a {
  font-weight: 600;
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border: var(--border-medium) solid transparent;
  transition: all 0.2s ease;
}

.nav a:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--background-color);
}

/* Button System - Neo-Brutalism */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: var(--border-thick) solid var(--primary-color);
  background-color: var(--button-color);
  color: var(--background-color);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: calc(var(--shadow-offset) - 2px) calc(var(--shadow-offset) - 2px) 0 var(--primary-color);
}

.btn:active {
  transform: translate(var(--shadow-offset), var(--shadow-offset));
  box-shadow: none;
}

.btn-primary {
  background-color: var(--button-color);
  color: var(--background-color);
  border-color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--background-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-ghost:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
}

/* Card System - Neo-Brutalism */
.card {
  background-color: var(--background-color);
  border: var(--border-thick) solid var(--primary-color);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--primary-color);
  transition: all 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 var(--primary-color);
}

.card-header {
  border-bottom: var(--border-medium) solid var(--secondary-color);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.card-subtitle {
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 500;
}

.card-body {
  margin-bottom: var(--space-md);
}

.card-footer {
  border-top: var(--border-medium) solid var(--secondary-color);
  padding-top: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Form Elements - Neo-Brutalism */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm);
  border: var(--border-medium) solid var(--primary-color);
  background-color: var(--background-color);
  color: var(--primary-color);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--primary-color);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Hero Section */
.hero {
  background-color: var(--background-color);
  padding: var(--space-2xl) 0;
  text-align: center;
  border-bottom: var(--border-thick) solid var(--primary-color);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--secondary-color);
  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;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: var(--background-color);
  padding: var(--space-2xl) 0 var(--space-lg);
  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-lg);
}

.footer-section h3 {
  color: var(--background-color);
  border-bottom: var(--border-medium) solid var(--background-color);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--background-color);
  display: block;
  margin-bottom: var(--space-xs);
  padding: var(--space-xs) 0;
  border-bottom: var(--border-light) solid transparent;
}

.footer-section a:hover {
  border-bottom-color: var(--background-color);
}

.footer-bottom {
  border-top: var(--border-medium) solid var(--secondary-color);
  padding-top: var(--space-md);
  text-align: center;
  color: var(--secondary-color);
}

/* Utility Classes */
.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); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-block { display: inline-block; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: var(--space-xl);
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .nav {
    gap: var(--space-sm);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: var(--space-lg);
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .nav {
    flex-direction: column;
    width: 100%;
  }
  
  .nav a {
    text-align: center;
  }
}

/* Alpine.js Integration */
[x-cloak] {
  display: none !important;
}

/* Smooth transitions for Alpine.js state changes */
[x-transition] {
  transition: all 0.3s ease;
}

/* Interactive States */
.interactive {
  cursor: pointer;
  transition: all 0.2s ease;
}

.interactive:hover {
  transform: translate(-1px, -1px);
}

/* Focus states for accessibility */
*:focus {
  outline: var(--border-medium) dashed var(--primary-color);
  outline-offset: 2px;
}

button:focus,
.btn:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: var(--border-medium) dashed var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .btn {
    display: none;
  }
  
  .section {
    padding: var(--space-sm) 0;
  }
  
  .card {
    box-shadow: none;
    border: var(--border-medium) solid var(--primary-color);
  }
}


/* 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;
    }
}