/* Elegant & Minimal CSS Design */

/* CSS Custom Properties (Variables) */
:root {
  /* Colors */
  --primary-color: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --background-color: #ffffff;
  --footer-bg-color: #1e293b;
  --button-color: #2563eb;
  
  /* Section backgrounds for subtle contrast */
  --section-bg-1: #ffffff;
  --section-bg-2: #f8fafc;
  --section-bg-3: #f1f5f9;
  
  /* Text colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-white: #ffffff;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
}

/* Base Styles */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--background-color);
  line-height: 1.7;
  letter-spacing: -0.01em;
  font-weight: var(--font-weight-normal);
}

/* Typography Hierarchy */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: var(--space-sm);
}

h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Underlined links as specified in requirements */
a.link-underline {
  position: relative;
  text-decoration: none;
}

a.link-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

a.link-underline:hover::after {
  width: 100%;
}

/* Buttons - Pill-shaped as specified */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: var(--font-weight-medium);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--button-color);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--text-white);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--text-white);
  text-decoration: none;
}

/* Sections with background color variations */
.section {
  padding: var(--space-3xl) 0;
}

.section:nth-child(even) {
  background-color: var(--section-bg-2);
}

.section:nth-child(3n) {
  background-color: var(--section-bg-3);
}

/* Cards */
.card {
  background-color: var(--section-bg-1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.2);
}

.card-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
}

.card-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Forms */
.form {
  max-width: 100%;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--section-bg-1);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Header */
.header {
  background-color: var(--section-bg-1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding: var(--space-lg) 0;
}

.header h1 {
  margin-bottom: var(--space-xs);
}

.header p {
  margin-bottom: 0;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: var(--text-white);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer h3,
.footer h4,
.footer h5,
.footer h6 {
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: var(--text-white);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--space-sm));
}

.col {
  flex: 1;
  padding: 0 var(--space-sm);
}

.col-2 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 var(--space-sm);
}

.col-3 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 var(--space-sm);
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* Spacing Utilities */
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.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); }

.p-0 { padding: 0; }
.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); }

/* Elegant decorative elements */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.3), transparent);
  margin: var(--space-xl) 0;
}

.elegant-quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
  padding: var(--space-lg);
  border-left: 3px solid var(--primary-color);
  background-color: rgba(37, 99, 235, 0.02);
  margin: var(--space-lg) 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .col-2,
  .col-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .col,
  .col-2,
  .col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: var(--space-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }
  
  .card {
    padding: var(--space-md);
  }
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection styles */
::selection {
  background-color: rgba(37, 99, 235, 0.2);
  color: var(--text-primary);
}

/* Subtle animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Minimal decorative borders */
.elegant-border {
  border-top: 2px solid var(--primary-color);
  border-radius: 1px;
  width: 60px;
  margin: var(--space-md) auto;
}


/* 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;
    }
}