/* Elegant & Minimal CSS - Custom Styles for Tailwind */

/* CSS Variables - Design System */
:root {
  /* Color Palette */
  --primary-color: #111111;
  --secondary-color: #4B5563;
  --background-color: #FFFFFF;
  --footer-bg-color: #000000;
  --button-color: #1F2937;
  --section-bg-1: #FFFFFF;
  --section-bg-2: #F9FAFB;
  --section-bg-3: #F3F4F6;
  
  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* 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;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-pill: 9999px;
  
  /* Shadows - Minimal & Refined */
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Base Typography & Reset */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--primary-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Elegant Heading Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
  font-weight: 700;
}

h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

h5 {
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

h6 {
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

/* Body Text */
p {
  margin-top: 0;
  margin-bottom: var(--space-md);
  line-height: 1.75;
  color: var(--secondary-color);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--button-color);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

a:hover {
  opacity: 0.8;
}

/* Elegant Underlined Links for Navigation */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--button-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Lists */
ul, ol {
  margin-top: 0;
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

/* Section Styling with Background Variations */
.section-light {
  background-color: var(--section-bg-1);
  padding: var(--space-3xl) 0;
}

.section-neutral {
  background-color: var(--section-bg-2);
  padding: var(--space-3xl) 0;
}

.section-subtle {
  background-color: var(--section-bg-3);
  padding: var(--space-3xl) 0;
}

.section-dark {
  background-color: var(--footer-bg-color);
  padding: var(--space-3xl) 0;
}

/* Elegant Container */
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Hero Section */
.hero-section {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero-title {
  font-size: var(--text-6xl);
  margin-bottom: var(--space-lg);
  font-weight: 700;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--secondary-color);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* Pill-Shaped Buttons - Core Feature */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--button-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.btn-secondary {
  background-color: transparent;
  color: var(--button-color);
  border: 2px solid var(--button-color);
}

.btn-secondary:hover {
  background-color: var(--button-color);
  color: white;
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--secondary-color);
}

.btn-ghost:hover {
  background-color: var(--section-bg-2);
  color: var(--primary-color);
}

/* Cards with Minimal Styling */
.card {
  background-color: var(--section-bg-1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: 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-lg);
}

.card-header {
  margin-bottom: var(--space-md);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.card-content {
  color: var(--secondary-color);
  line-height: 1.7;
}

.card-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--primary-color);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background-color: var(--section-bg-1);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--button-color);
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Navigation */
.navbar {
  background-color: var(--section-bg-1);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.nav-item {
  margin: 0;
}

.nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: white;
  padding: var(--space-3xl) 0 var(--space-xl) 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 1;
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-xs { margin-bottom: var(--space-xs); }
.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-xs { margin-top: var(--space-xs); }
.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); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* Responsive Design */
@media (max-width: 768px) {
  .container-custom {
    padding: 0 var(--space-md);
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .nav-container {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .nav-menu {
    gap: var(--space-md);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .card {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  .section-light,
  .section-neutral,
  .section-subtle,
  .section-dark {
    padding: var(--space-2xl) 0;
  }
}

/* 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;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--button-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--primary-color);
  }
  
  .btn-secondary {
    border-width: 3px;
  }
}

/* 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;
    }
}