/* ===== CUSTOM CSS FOR TAILWIND - ELEGANT & MINIMAL ===== */

/* CSS Variables - Color System */
:root {
  --primary-color: #1e40af;
  --secondary-color: #0f172a;
  --background-color: #ffffff;
  --footer-bg-color: #f8fafc;
  --section-1-bg: #ffffff;
  --section-2-bg: #f8fafc;
  --section-3-bg: #ffffff;
  
  /* Typography Scale */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-elegant: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-firm: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Typography */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.025em;
  background-color: var(--background-color);
  color: var(--secondary-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-top: 0;
  color: var(--secondary-color);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.3;
  color: var(--secondary-color);
}

/* Heading Hierarchy */
h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

h4 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

h5 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

h6 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

/* Paragraphs */
p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section:nth-child(even) {
  background-color: var(--section-2-bg);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: white;
}

.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-pill);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

/* Card System */
.card {
  background-color: var(--background-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-lg);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant);
}

.card-header {
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--section-2-bg);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  color: var(--secondary-color);
}

.card-subtitle {
  font-size: 0.95rem;
  color: var(--primary-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation */
.nav {
  background-color: var(--background-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: var(--space-md) 0;
}

.nav-item {
  padding: var(--space-sm) var(--space-md);
  font-weight: 500;
  color: var(--secondary-color);
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-item.active {
  color: var(--primary-color);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--secondary-color);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  background-color: var(--background-color);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: var(--secondary-color);
  padding: var(--space-2xl) 0 var(--space-lg) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer h4, .footer h5, .footer h6 {
  color: var(--secondary-color);
  margin-bottom: var(--space-md);
}

.footer p, .footer a {
  color: var(--secondary-color);
  opacity: 0.8;
}

.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Hero Section */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--section-1-bg) 0%, var(--section-2-bg) 100%);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 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); }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }

/* Decorative Elements */
.decorative-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-sm);
  margin: var(--space-lg) auto;
}

.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Media Queries */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
  
  .hero-title { font-size: 2.5rem; }
  .section { padding: var(--space-2xl) 0; }
  
  .container { padding: 0 var(--space-sm); }
  
  .btn { padding: 0.625rem 1.5rem; font-size: 0.9rem; }
  
  .grid { gap: var(--space-md); }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  .hero-title { font-size: 2rem; }
  
  .section { padding: var(--space-xl) 0; }
  
  .card { padding: var(--space-md); }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.slide-up {
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--footer-bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}


/* 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;
    }
}