/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Brand Colors - Exact implementation of user specifications */
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --background-color: #0f0f23;
  --footer-bg-color: #0a0a1a;
  --button-color: #ffd700;
  
  /* Section Background Colors */
  --section-bg-1: #16213e;
  --section-bg-2: #1a1a2e;
  --section-bg-3: #0f3460;
  
  /* Corporate Palette */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-gold: #ffd700;
  --border-color: #334155;
  --border-subtle: #1e293b;
  
  /* Typography Scale */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  
  /* Shadows - Minimal Corporate Style */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* ===== RESET AND BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  background-color: var(--background-color);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

h5 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

h6 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
}

p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.text-lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-light);
}

.text-muted {
  color: var(--text-muted);
}

/* ===== LINKS ===== */
a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #e6c200;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===== LAYOUT COMPONENTS ===== */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-alt {
  background-color: var(--section-bg-1);
}

.section-dark {
  background-color: var(--section-bg-2);
}

.section-accent {
  background-color: var(--section-bg-3);
}

/* ===== CONTAINER SYSTEM ===== */
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ===== BUTTONS - Corporate Clean Style ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  min-height: 44px;
  letter-spacing: 0.025em;
}

.btn-primary {
  background-color: var(--button-color);
  color: var(--primary-color);
  border-color: var(--button-color);
}

.btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--primary-color);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--text-primary);
  color: var(--background-color);
  border-color: var(--text-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--secondary-color);
  color: var(--text-primary);
}

.btn-large {
  padding: var(--space-md) var(--space-2xl);
  font-size: 1.05rem;
  min-height: 52px;
}

/* ===== CARDS - Minimal Corporate ===== */
.card {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-normal);
  position: relative;
}

.card:hover {
  border-color: var(--border-color);
  transform: translateY(-2px);
}

.card-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
}

.card-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

/* ===== FORMS - Clean Corporate ===== */
.form-group {
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  background-color: var(--background-color);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  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(255, 215, 0, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== NAVIGATION - Minimal ===== */
.nav {
  display: flex;
  align-items: center;
  padding: var(--space-lg) 0;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  margin-left: auto;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent-gold);
  text-decoration: none;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2xl); }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ===== FOOTER ===== */
.footer {
  background-color: var(--footer-bg-color);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .container-custom {
    padding: 0 var(--space-lg);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .hero {
    padding: var(--space-3xl) 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .nav-menu {
    gap: var(--space-lg);
  }
  
  .card {
    padding: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .container-custom {
    padding: 0 var(--space-md);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for better accessibility */
*:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* ===== LOADING AND INTERACTIVE STATES ===== */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== SECTIONS WITH SPECIFIC BACKGROUNDS ===== */
.section-slate {
  background-color: var(--section-bg-1);
}

.section-navy {
  background-color: var(--section-bg-2);
}

.section-blue {
  background-color: var(--section-bg-3);
}

/* ===== ADDITIONAL COMPONENTS ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--accent-gold);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.separator {
  height: 1px;
  background-color: var(--border-subtle);
  margin: var(--space-2xl) 0;
}

.alert {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid;
  margin-bottom: var(--space-lg);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
  color: #93c5fd;
}

.alert-success {
  background-color: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  color: #86efac;
}

.alert-warning {
  background-color: rgba(255, 215, 0, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #fca5a5;
}


/* 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;
    }
}