:root {
  /* Brand Colors */
  --color-primary: #1e3a8a;
  --color-secondary: #f59e0b;
  --color-background: #ffffff;
  --color-footer-bg: #1f2937;
  --color-button: #1e3a8a;
  
  /* Section Backgrounds */
  --color-section-white: #ffffff;
  --color-section-light: #f9fafb;
  --color-section-gray: #f3f4f6;
  
  /* Extended Palette for Elegance */
  --color-cream: #fefce8;
  --color-warm-gray: #f5f5f4;
  --color-text-dark: #1c1917;
  --color-text-medium: #57534e;
  --color-text-light: #78716c;
  --color-accent: #d97706;
  
  /* Shadows */
  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-pill: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 300ms ease-out;
}

/* Base Reset and Typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-cream);
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-lg) 0;
  color: var(--color-text-dark);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--space-md) 0;
  color: var(--color-text-dark);
}

h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin: 0 0 var(--space-md) 0;
  color: var(--color-text-medium);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Links - Elegant Underlined Style */
a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Lists */
ul, ol {
  margin: 0 0 var(--space-md) 0;
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
  color: var(--color-text-medium);
}

/* Buttons - Pill-shaped Primary Design */
.btn, .btn-primary, button, input[type="submit"], input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  background-color: var(--color-button);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  letter-spacing: 0.025em;
  box-shadow: var(--shadow-subtle);
  min-height: 48px;
  outline: none;
}

.btn:hover, .btn-primary:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background-color: #1e40af;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn:active, .btn-primary:active, button:active, input[type="submit"]:active, input[type="button"]:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

.btn:focus, .btn-primary:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text-dark);
}

.btn-secondary:hover {
  background-color: #d97706;
  color: white;
}

/* Cards - Elegant Minimal Design */
.card {
  background-color: var(--color-section-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
  border: 1px solid var(--color-warm-gray);
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-warm-gray);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text-dark);
}

.card-text {
  color: var(--color-text-medium);
  line-height: 1.6;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-text-dark);
  font-size: 0.95rem;
}

.form-input, input[type="text"], input[type="email"], input[type="password"], 
input[type="number"], input[type="tel"], input[type="url"], textarea, select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-warm-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-dark);
  background-color: var(--color-section-white);
  transition: var(--transition-fast);
}

.form-input:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-input::placeholder, input::placeholder, textarea::placeholder {
  color: var(--color-text-light);
}

/* Section Layouts - Using Background Differences */
.section {
  padding: var(--space-3xl) 0;
}

.section-light {
  background-color: var(--color-section-light);
}

.section-gray {
  background-color: var(--color-section-gray);
}

.section-cream {
  background-color: var(--color-cream);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Header */
.header {
  background-color: var(--color-section-white);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-warm-gray);
}

.header h1 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

/* Navigation */
.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-lg);
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  color: var(--color-text-medium);
}

.nav a:hover {
  color: var(--color-primary);
  background-color: var(--color-warm-gray);
}

/* Footer */
.footer {
  background-color: var(--color-footer-bg);
  color: #e5e7eb;
  padding: var(--space-3xl) 0 var(--space-xl) 0;
}

.footer h4 {
  color: white;
  margin-bottom: var(--space-md);
}

.footer p, .footer li {
  color: #d1d5db;
}

.footer a {
  color: var(--color-secondary);
}

.footer a:hover {
  color: #fbbf24;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.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-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); }

.py-3xl { 
  padding-top: var(--space-3xl); 
  padding-bottom: var(--space-3xl); 
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .card {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .btn, .btn-primary, button, input[type="submit"], input[type="button"] {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.95rem;
  }
  
  .nav {
    flex-direction: column;
    gap: var(--space-sm);
  }
}


/* 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;
    }
}