/* Base CSS Variables from Tailwind v4 globals.css */
:root {
  --font-size: 14px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
  
  /* Spacing scale */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;
  --spacing-32: 8rem;
  
  /* 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 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* Typography */
h1 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h4 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

p {
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

/* Layout Classes */
.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-1 {
  flex: 1 1 0%;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
  max-width: 1200px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Spacing */
.p-4 {
  padding: var(--spacing-4);
}

.p-6 {
  padding: var(--spacing-6);
}

.px-4 {
  padding-left: var(--spacing-4);
  padding-right: var(--spacing-4);
}

.py-2 {
  padding-top: var(--spacing-2);
  padding-bottom: var(--spacing-2);
}

.py-8 {
  padding-top: var(--spacing-8);
  padding-bottom: var(--spacing-8);
}

.py-16 {
  padding-top: var(--spacing-16);
  padding-bottom: var(--spacing-16);
}

.mb-2 {
  margin-bottom: var(--spacing-2);
}

.mb-4 {
  margin-bottom: var(--spacing-4);
}

.mb-8 {
  margin-bottom: var(--spacing-8);
}

.mt-4 {
  margin-top: var(--spacing-4);
}

.ml-4 {
  margin-left: var(--spacing-4);
}

/* Grid */
.grid {
  display: grid;
}

.gap-2 {
  gap: var(--spacing-2);
}

.gap-4 {
  gap: var(--spacing-4);
}

.gap-6 {
  gap: var(--spacing-6);
}

/* Text Colors */
.text-muted-foreground {
  color: var(--muted-foreground);
}

.text-primary {
  color: var(--primary);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.leading-relaxed {
  line-height: 1.625;
}

/* Background */
.bg-white {
  background-color: var(--background);
}

.bg-muted {
  background-color: var(--muted);
}

/* Borders */
.border {
  border: 1px solid var(--border);
}

.border-b {
  border-bottom: 1px solid var(--border);
}

.border-t {
  border-top: 1px solid var(--border);
}

/* Width & Height */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.h-16 {
  height: 4rem;
}

.h-4 {
  height: 1rem;
}

.w-4 {
  width: 1rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

/* Object Fit */
.object-cover {
  object-fit: cover;
}

/* Display */
.hidden {
  display: none;
}

.block {
  display: block;
}

/* Header Styles */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: var(--spacing-2) 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  height: 2rem;
  padding: 0 var(--spacing-3);
  font-size: var(--text-sm);
}

.btn-lg {
  height: 2.75rem;
  padding: 0 var(--spacing-8);
  font-size: var(--text-lg);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border-color: var(--border);
  background-color: transparent;
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--accent);
}

/* Language Button States */
.language-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Card Styles */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-content {
  color: var(--card-foreground);
}

/* Hero Section */
.hero-section {
  height: 70vh;
  min-height: 500px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--spacing-4);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--muted-foreground);
  margin-bottom: var(--spacing-8);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer-link {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

/* Mobile Menu */
.mobile-menu {
  background-color: var(--background);
  border-top: 1px solid var(--border);
}

/* Cookie Consent */
#cookie-consent .card {
  background-color: var(--card);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  
  .md\:hidden {
    display: none;
  }
  
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\:items-center {
    align-items: center;
  }
  
  .md\:text-6xl {
    font-size: var(--text-6xl);
  }
  
  .md\:text-xl {
    font-size: var(--text-xl);
  }
  
  .md\:w-auto {
    width: auto;
  }
  
  .hero-title {
    font-size: var(--text-6xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-xl);
  }
}

@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
  
  .sm\:w-auto {
    width: auto;
  }
}

/* Smooth transitions */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.footer-link:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Form Styles */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--input-background);
  color: var(--foreground);
  font-size: var(--text-base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(3, 2, 19, 0.1);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--destructive);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--destructive);
  font-size: var(--text-sm);
  margin-top: var(--spacing-1);
}

.form-error.hidden {
  display: none;
}

.space-y-6 > * + * {
  margin-top: var(--spacing-6);
}

/* Success message styles */
#form-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: var(--spacing-4);
  color: #166534;
}

/* Aspect ratio utility */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Print styles */
@media print {
  .header,
  .mobile-menu,
  #cookie-consent {
    display: none;
  }
}