/* === CSS VARIABLES === */
:root {
  /* Colors */
  --primary-color: #2D3748;
  --secondary-color: #4A5568;
  --background-color: #FFFFFF;
  --footer-bg-color: #1A202C;
  --button-color: #3182CE;
  --section-bg-1: #FFFFFF;
  --section-bg-2: #F7FAFC;
  --section-bg-3: #FFFFFF;
  
  /* Text Colors */
  --text-primary: #2D3748;
  --text-secondary: #4A5568;
  --text-light: #718096;
  --text-white: #FFFFFF;
  
  /* Typography */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', 'system-ui', sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 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), 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);
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
}

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* === RESET & BASE STYLES === */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 var(--space-md) 0;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm) 0;
}

p {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.text-lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.text-small {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* === LINKS === */
a {
  color: var(--button-color);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: all var(--transition-fast);
}

a:hover {
  text-decoration-color: var(--button-color);
  text-decoration-thickness: 2px;
}

/* === LAYOUT COMPONENTS === */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-alt {
  background-color: var(--section-bg-2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl) auto;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: var(--space-sm);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  line-height: 1;
  letter-spacing: 0.025em;
}

.btn-primary {
  background-color: var(--button-color);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #2C5AA0;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--text-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--text-primary);
  color: var(--text-white);
  text-decoration: none;
}

.btn-text {
  background: none;
  border: none;
  color: var(--button-color);
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0;
  text-decoration: underline;
  text-decoration-offset: 2px;
  text-decoration-thickness: 1px;
}

.btn-text:hover {
  text-decoration-thickness: 2px;
}

/* === CARDS === */
.card {
  background-color: var(--background-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(203, 213, 225, 0.8);
}

.card-content {
  position: relative;
  z-index: 2;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  color: var(--button-color);
  font-weight: 500;
  text-decoration: none;
  margin-top: var(--space-sm);
}

.card-cta:hover {
  text-decoration: underline;
}

/* === HEADER STYLES === */
.site-header {
  background-color: var(--background-color);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.main-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.main-nav a:hover {
  color: var(--text-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--button-color);
  transition: width var(--transition-normal);
}

.main-nav a:hover::after {
  width: 100%;
}

/* === FOOTER STYLES === */
.site-footer {
  background-color: var(--footer-bg-color);
  color: var(--text-white);
  padding: var(--space-2xl) 0 var(--space-lg) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-section h4 {
  color: var(--text-white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.7;
}

.footer-section a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* === FORMS === */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-sans);
  background-color: var(--background-color);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--button-color);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* === UTILITY CLASSES === */
.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); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--section-bg-2); }
.bg-dark { background-color: var(--footer-bg-color); }

.text-white { color: var(--text-white); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
  }
  
  .main-nav {
    gap: var(--space-md);
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .main-nav {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

/* === FOCUS STATES FOR ACCESSIBILITY === */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--button-color);
  outline-offset: 2px;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* === LOADING STATES === */
.loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

/* === SECTION BACKGROUNDS === */
.section:nth-child(even) {
  background-color: var(--section-bg-2);
}

.section:nth-child(odd) {
  background-color: var(--section-bg-1);
}

/* === DIVIDER ELEMENTS === */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(226, 232, 240, 0.8), transparent);
  margin: var(--space-xl) 0;
  border: none;
}

/* === HOVER EFFECTS === */
.hover-lift {
  transition: transform var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* === IMAGE STYLES === */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.image-rounded {
  border-radius: var(--radius-lg);
}

/* === GRID LAYOUTS === */
.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));
}

/* === STICKY ELEMENTS === */
.sticky {
  position: sticky;
  top: var(--space-lg);
}


/* 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;
    }
}