/* Base Variables & Reset */
:root {
  /* Colors */
  --primary-blue: #2563EB;
  --primary-blue-hover: #1E40AF;
  --secondary-blue: #2D5BFF;
  --accent-green: #16A34A;
  --accent-orange: #FACC15;
  --accent-purple: #6D28D9;
  
  /* Backgrounds */
  --bg-light-grey: #F9FAFB;
  --bg-white: #FFFFFF;
  --bg-dark-navy: #0F172A;
  
  /* Text Colors */
  --text-dark: #1E293B;
  --text-medium: #475569;
  --text-light: #94A3B8;
  --text-muted: #6B7280;
  
  /* Borders */
  --border-light: #E5E7EB;
  --border-medium: #CBD5E1;
  
  /* Typography - Using Poppins */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1rem;
  
  /* 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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: all 0.15s ease-in-out;
  --transition-medium: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 1.5vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.25vw, 1.125rem); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-medium);
}

/* Links */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-blue-hover);
}

/* Lists */
ul, ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-xs);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-dark-navy);
  color: var(--bg-white);
  padding: var(--spacing-lg);
  z-index: 10000;
  box-shadow: var(--shadow-xl);
  transform: translateY(100%);
  transition: var(--transition-medium);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max-width);
  margin: 0 auto;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  min-width: 250px;
}

.cookie-content a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.cookie-accept-btn {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.cookie-accept-btn:hover {
  background-color: var(--primary-blue-hover);
}

/* 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 */
*:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Loading & Performance */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }
  
  .cookie-content p {
    min-width: auto;
  }
  
  .cookie-accept-btn {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  body {
    font-size: 14px;
  }
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden; /* Disable horizontal scrolling */
}

.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 14px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}

.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-inner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-actions { display: flex; gap: 8px; }

.cookie-btn { border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; font-weight: 600; }
.cookie-btn.btn-primary { background: #2563eb; color: #fff; }
.cookie-btn.btn-primary:hover { background: #1e40af; }
.cookie-btn.btn-outline { background: transparent; color: #fff; outline: 2px solid #374151; }
.cookie-btn.btn-outline:hover { outline-color: #6b7280; }

/* ensure [hidden] actually hides */
[hidden] { display: none !important; }
.cookie-consent.is-visible {
  display: block !important;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
}
