:root {
  /* Color System */
  --primary-50: #f8fafc;
  --primary-100: #f1f5f9;
  --primary-200: #e2e8f0;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --footer-800: #1e293b;
  --accent-500: #0ea5e9;
  --accent-600: #0284c7;
  
  /* Typography */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', 'system-ui', sans-serif;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* 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);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-pill: 9999px;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--secondary-700);
  background-color: var(--primary-50);
  margin: 0;
  padding: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-700);
  margin-top: 0;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-xl);
  color: var(--secondary-800);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}

h4, h5, h6 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

a {
  color: var(--accent-500);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

a:hover {
  color: var(--accent-600);
}

a.underline-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-500);
  transition: width 0.3s ease;
}

a.underline-link:hover::after {
  width: 100%;
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-lg);
}

/* Section System */
.section {
  padding: var(--space-3xl) 0;
}

.section--white {
  background-color: #ffffff;
}

.section--light {
  background-color: var(--primary-50);
}

.section--subtle {
  background-color: var(--primary-100);
}

/* Card System */
.card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--primary-200);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--compact {
  padding: var(--space-lg);
}

.card--spacious {
  padding: var(--space-2xl);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  min-width: 120px;
}

.btn--primary {
  background-color: var(--accent-500);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background-color: var(--accent-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--secondary-700);
  border: 2px solid var(--secondary-500);
}

.btn--secondary:hover {
  background-color: var(--secondary-500);
  color: white;
}

.btn--outline {
  background-color: transparent;
  color: var(--accent-500);
  border: 2px solid var(--accent-500);
}

.btn--outline:hover {
  background-color: var(--accent-500);
  color: white;
}

.btn--large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  min-width: 160px;
}

.btn--small {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.85rem;
  min-width: 80px;
}

/* Header */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--primary-200);
  padding: var(--space-lg) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary-800);
  text-decoration: none;
}

.header__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-xl);
}

.header__link {
  color: var(--secondary-600);
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-500);
  transition: width 0.3s ease;
}

.header__link:hover::after {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--footer-800);
  color: #e2e8f0;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__section h3 {
  font-family: var(--font-serif);
  color: #ffffff;
  margin-bottom: var(--space-md);
}

.footer__section p,
.footer__section a {
  color: #cbd5e1;
  margin-bottom: var(--space-xs);
}

.footer__section a:hover {
  color: var(--accent-500);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid #475569;
  color: #94a3b8;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  justify-content: space-between;
}

.flex--column {
  flex-direction: column;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

/* Spacing Utilities */
.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.p-sm {
  padding: var(--space-sm);
}

.p-md {
  padding: var(--space-md);
}

.p-lg {
  padding: var(--space-lg);
}

/* Form Elements */
.form {
  max-width: 500px;
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--secondary-700);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--primary-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background-color: #ffffff;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Hero Section */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero__title {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--secondary-600);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--accent-500);
}

.text-secondary {
  color: var(--secondary-600);
}

.bg-white {
  background-color: #ffffff;
}

.bg-light {
  background-color: var(--primary-50);
}

.bg-subtle {
  background-color: var(--primary-100);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .header__menu {
    gap: var(--space-md);
  }
  
  .hero {
    padding: var(--space-2xl) 0;
  }
  
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .header__nav {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .header__menu {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
}

/* Focus States for Accessibility */
.btn:focus,
.form__input:focus,
.form__textarea:focus,
.form__select:focus,
a:focus {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .footer {
    display: none;
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  .btn {
    border: 2px solid var(--secondary-500);
    background-color: transparent;
    color: var(--secondary-700);
  }
}


/* 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;
    }
}