/* ========================================
   CUSTOM STYLES FOR PROFESSIONAL MINIMALIST WEBSITE
   Following strict design guidelines from JSON preferences
======================================== */

/* CSS Variables for Design System */
:root {
  /* Color Palette - Monochrome with Minimal Accents */
  --primary-color: #1a1a1a;
  --secondary-color: #6b7280;
  --background-color: #ffffff;
  --footer-bg-color: #f8f9fa;
  --button-color: #2563eb;
  --text-color: #1a1a1a;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --hover-bg: #f9fafb;
  
  /* Spacing System - Minimal and Consistent */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography Scale */
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  
  /* Border Radius - Minimal */
  --border-radius-sm: 2px;
  --border-radius-md: 4px;
  --border-radius-lg: 6px;
  
  /* Shadows - Subtle and Professional */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Typography - Professional and Readable */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--primary-color);
  margin: 0 0 var(--space-md) 0;
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

p {
  margin: 0 0 var(--space-md) 0;
  line-height: var(--line-height-relaxed);
}

.text-muted {
  color: var(--text-muted);
}

/* Links - Clean and Professional */
a {
  color: var(--button-color);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--button-color);
  outline-offset: 2px;
}

/* Container System - Full Width */
.container {
  width: 100%;
  max-width: none;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

/* Section Layout - Alternating Backgrounds */
.section {
  padding: var(--space-3xl) 0;
}

.section:nth-child(even) {
  background-color: #f8f9fa;
}

.section-white {
  background-color: #ffffff;
}

.section-light {
  background-color: #f8f9fa;
}

/* Buttons - Minimal and Professional */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  user-select: none;
}

.btn-primary {
  background-color: var(--button-color);
  color: #ffffff;
  border-color: var(--button-color);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--hover-bg);
  border-color: var(--secondary-color);
  color: var(--text-color);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--button-color);
  border-color: var(--button-color);
}

.btn-outline:hover {
  background-color: var(--button-color);
  color: #ffffff;
  text-decoration: none;
}

.btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--button-color);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cards - Clean and Minimal */
.card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-lg);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0;
  color: var(--primary-color);
}

.card-body {
  color: var(--text-color);
}

.card-footer {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-lg);
}

/* Forms - Professional and Accessible */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

.form-input {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-color);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--button-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-sm) center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding-right: var(--space-2xl);
}

/* Grid System - Simple and Flexible */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--space-md) * -0.5);
}

.col {
  flex: 1;
  padding: 0 calc(var(--space-md) * 0.5);
}

.col-12 { width: 100%; }
.col-11 { width: 91.666667%; }
.col-10 { width: 83.333333%; }
.col-9 { width: 75%; }
.col-8 { width: 66.666667%; }
.col-7 { width: 58.333333%; }
.col-6 { width: 50%; }
.col-5 { width: 41.666667%; }
.col-4 { width: 33.333333%; }
.col-3 { width: 25%; }
.col-2 { width: 16.666667%; }
.col-1 { width: 8.333333%; }

/* Utilities - Essential Spacing and Alignment */
.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; }
.font-normal { font-weight: 400; }

.text-sm { font-size: var(--font-size-sm); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }

.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); }

.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); }

.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); }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Header - Clean and Minimal */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-lg) 0;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  margin-left: var(--space-lg);
  transition: color 0.15s ease-in-out;
}

.nav-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Footer - Professional */
.footer {
  background-color: var(--footer-bg-color);
  border-top: 1px solid var(--border-color);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
}

.footer-content {
  color: var(--text-muted);
  text-align: center;
}

.footer-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

/* Hero Section - Professional and Minimal */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-tight);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Lists - Clean Styling */
ul, ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
}

.list-unstyled {
  list-style: none;
  padding-left: 0;
}

/* Tables - Professional */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
}

.table th,
.table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--hover-bg);
}

/* Code - Monospace */
code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 0.875em;
  color: var(--primary-color);
  background-color: var(--hover-bg);
  padding: 0.125rem 0.25rem;
  border-radius: var(--border-radius-sm);
}

pre {
  background-color: var(--hover-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
  margin-bottom: var(--space-md);
}

pre code {
  background: none;
  padding: 0;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .col-md-12 { width: 100%; }
  .col-md-6 { width: 50%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-3 { width: 25%; }
  .text-md-center { text-align: center; }
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Management for Accessibility */
*:focus {
  outline: 2px solid var(--button-color);
  outline-offset: 2px;
}

/* Loading States - Minimal */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Print Styles */
@media print {
  .btn,
  .nav,
  .footer {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !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;
    }
}