:root {
  /* Color Palette - Navy, Gold, Slate */
  --color-primary: #0A1628;
  --color-primary-dark: #050b14;
  --color-primary-light: #1A2B4C;
  --color-secondary: #2C3E50;
  --color-accent: #C8963E;
  --color-accent-hover: #E0B05C;
  
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F1F3F5;
  
  --color-text: #212529;
  --color-text-light: #495057;
  --color-text-inverse: #FFFFFF;
  
  --color-border: #DEE2E6;
  --color-success: #28A745;
  --color-error: #DC3545;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Fluid Type Scale */
  --text-xs: clamp(0.75rem, 0.7vw + 0.5rem, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8vw + 0.5rem, 1rem);
  --text-base: clamp(1rem, 1vw + 0.5rem, 1.125rem);
  --text-lg: clamp(1.125rem, 1.2vw + 0.5rem, 1.25rem);
  --text-xl: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
  --text-2xl: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  --text-3xl: clamp(2rem, 3vw + 0.5rem, 2.5rem);
  --text-4xl: clamp(2.5rem, 4vw + 0.5rem, 3.5rem);
  --text-5xl: clamp(3rem, 5vw + 1rem, 4.5rem);

  /* Spacing */
  --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;

  /* Shadows & Borders */
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.1);
  --shadow-md: 0 4px 6px rgba(10, 22, 40, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(10, 22, 40, 0.1), 0 4px 6px -2px rgba(10, 22, 40, 0.05);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  opacity: 0;
  transition: opacity 400ms ease;
  overflow-x: hidden;
}
body.loaded { opacity: 1; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; color: var(--color-primary); margin-bottom: var(--space-md); }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-normal); }
a:hover { color: var(--color-accent-hover); }
ul { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--color-accent); color: white;
  padding: 8px; z-index: 100; transition: top 0.2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Layout Utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }
.section { padding: var(--space-4xl) 0; }
.section-alt { background-color: var(--color-surface-alt); }
.text-center { text-align: center; }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-8 { margin-bottom: var(--space-2xl); }

/* Typography Classes */
.h1 { font-size: var(--text-5xl); }
.h2 { font-size: var(--text-4xl); }
.h3 { font-size: var(--text-3xl); }
.text-lg { font-size: var(--text-lg); }
.text-light { color: var(--color-text-light); }
.text-primary { color: var(--color-primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 0.75rem 1.5rem; font-weight: 600; border-radius: var(--radius-md);
  cursor: pointer; border: none; font-family: var(--font-body);
  transition: all var(--transition-normal); position: relative; overflow: hidden;
}
.btn-sm { padding: 0.5rem 1rem; font-size: var(--text-sm); }
.btn-primary { background-color: var(--color-accent); color: var(--color-primary-dark); }
.btn-primary:hover { filter: brightness(1.1); transform: scale(1.03); }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: white; }

/* Header & Nav */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; background: var(--color-surface);
  box-shadow: var(--shadow-sm); z-index: 50; transition: all var(--transition-normal);
  padding: var(--space-md) 0;
}
.site-header.scrolled { padding: var(--space-xs) 0; box-shadow: var(--shadow-md); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: var(--space-sm); }
.logo-text { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 700; color: var(--color-primary); }

.nav-list { display: flex; gap: var(--space-lg); }
.nav-list a {
  color: var(--color-text); font-weight: 500; position: relative; padding: 0.5rem 0;
}
.nav-list a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--color-accent); transition: width var(--transition-normal);
}
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: var(--space-lg); }

/* Language Selector */
.lang-selector { position: relative; }
.lang-btn {
  background: none; border: none; display: flex; align-items: center; gap: var(--space-xs);
  cursor: pointer; font-family: var(--font-body); font-weight: 500; padding: 0.5rem;
}
.lang-dropdown {
  position: absolute; top: 100%; right: 0; background: var(--color-surface);
  box-shadow: var(--shadow-lg); border-radius: var(--radius-md); padding: var(--space-sm) 0;
  min-width: 150px; opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all var(--transition-fast);
}
.lang-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a {
  display: flex; align-items: center; gap: var(--space-sm); padding: 0.5rem var(--space-md);
  color: var(--color-text); transition: background var(--transition-fast);
}
.lang-dropdown a:hover { background: var(--color-surface-alt); color: var(--color-primary); }

/* Hamburger Menu */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 24px; position: relative; z-index: 60;
}
.hamburger .line {
  position: absolute; width: 100%; height: 2px; background: var(--color-primary);
  transition: all var(--transition-normal); left: 0;
}
.hamburger .line:nth-child(1) { top: 0; }
.hamburger .line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger .line:nth-child(3) { bottom: 0; }
.hamburger.open .line:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.open .line:nth-child(2) { opacity: 0; }
.hamburger.open .line:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-xl); }
.card {
  background: var(--color-surface); border-radius: var(--radius-lg);
  padding: var(--space-xl); box-shadow: var(--shadow-sm); transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon { color: var(--color-accent); margin-bottom: var(--space-md); }

/* Hero Section */
.hero {
  padding: calc(var(--space-4xl) * 1.5) 0 var(--space-4xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-inverse); text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(200, 150, 62, 0.1) 0%, transparent 50%);
  animation: gradient-shift 8s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes gradient-shift { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.hero h1 { color: var(--color-text-inverse); margin-bottom: var(--space-md); }
.hero .subtitle { font-size: var(--text-xl); color: rgba(255,255,255,0.8); max-width: 800px; margin: 0 auto var(--space-xl); }
.hero-btns { display: flex; justify-content: center; gap: var(--space-md); }
.hero-btns .btn-outline { color: white; border-color: white; }
.hero-btns .btn-outline:hover { background: white; color: var(--color-primary); }

.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  animation: bounce 2s infinite; color: var(--color-accent);
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-15px) translateX(-50%); } 60% { transform: translateY(-7px) translateX(-50%); } }

/* Stats Counter */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-xl); text-align: center; }
.stat-num { font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-xs); display: block; }
.stat-label { color: var(--color-text-light); font-weight: 500; }

/* Testimonials */
.testimonial-card { display: flex; flex-direction: column; }
.rating { color: var(--color-accent); margin-bottom: var(--space-sm); display: flex; gap: 4px; }
.author { display: flex; align-items: center; gap: var(--space-md); margin-top: auto; padding-top: var(--space-md); }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--color-primary-light); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* Blog */
.blog-card { padding: 0; overflow: hidden; }
.blog-img-container { overflow: hidden; height: 200px; position: relative; }
.blog-img-container svg { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.blog-card:hover .blog-img-container svg { transform: scale(1.08); }
.blog-content { padding: var(--space-lg); }
.blog-meta { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-sm); color: var(--color-text-light); margin-bottom: var(--space-sm); }
.blog-tag { background: var(--color-surface-alt); padding: 2px 8px; border-radius: var(--radius-sm); color: var(--color-primary); font-weight: 600; }
.blog-full-content { max-height: 0; overflow: hidden; transition: max-height var(--transition-normal); opacity: 0; }
.blog-full-content.expanded { max-height: 2000px; opacity: 1; margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-border); }

/* Accordion FAQ */
.accordion { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-md); background: var(--color-surface); overflow: hidden; }
.accordion-header { width: 100%; padding: var(--space-lg); background: none; border: none; text-align: left; font-size: var(--text-lg); font-weight: 600; color: var(--color-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background var(--transition-fast); }
.accordion-header:hover { background: var(--color-surface-alt); }
.accordion-icon { transition: transform var(--transition-normal); }
.accordion.active .accordion-icon { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height var(--transition-normal); padding: 0 var(--space-lg); opacity: 0; }
.accordion.active .accordion-content { padding: 0 var(--space-lg) var(--space-lg); opacity: 1; max-height: 500px; }

/* Forms */
.form-group { position: relative; margin-bottom: var(--space-lg); }
.form-control { width: 100%; padding: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: transparent; font-family: var(--font-body); font-size: var(--text-base); transition: border-color var(--transition-fast); }
.form-control:focus { outline: none; border-color: var(--color-accent); }
.form-label { position: absolute; left: 1rem; top: 1rem; color: var(--color-text-light); transition: all var(--transition-fast); pointer-events: none; background: var(--color-surface); padding: 0 4px; }
.form-control:focus ~ .form-label, .form-control:not(:placeholder-shown) ~ .form-label { top: -0.5rem; font-size: var(--text-sm); color: var(--color-accent); }
textarea.form-control { min-height: 150px; resize: vertical; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--color-success); color: white; padding: 1rem 2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); transition: transform var(--transition-normal); opacity: 0; z-index: 1000; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: var(--space-xl) 0; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--color-border); transform: translateX(-50%); }
.timeline-item { display: flex; justify-content: flex-end; padding-right: 50%; position: relative; margin-bottom: var(--space-xl); width: 100%; }
.timeline-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: 50%; }
.timeline-content { padding: 0 var(--space-xl); position: relative; width: 100%; max-width: 400px; }
.timeline-year { position: absolute; right: -25px; top: 0; width: 50px; height: 50px; background: var(--color-primary); color: var(--color-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; border: 4px solid var(--color-surface); z-index: 1; }
.timeline-item:nth-child(even) .timeline-year { right: auto; left: -25px; }

/* Footer */
.site-footer { background: var(--color-primary); color: white; padding: var(--space-4xl) 0 0; margin-top: var(--space-4xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--space-2xl); margin-bottom: var(--space-3xl); }
.footer-heading { color: var(--color-accent); margin-bottom: var(--space-md); font-size: var(--text-xl); }
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col ul a, .footer-col a { color: rgba(255,255,255,0.7); }
.footer-col ul a:hover, .footer-col a:hover { color: white; }
.social-links { display: flex; gap: var(--space-md); margin-top: var(--space-md); }
.social-links a { display: inline-flex; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.social-links a:hover { background: var(--color-accent); color: var(--color-primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: var(--space-lg) 0; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.5); font-size: var(--text-sm); }
.legal-links { display: flex; gap: var(--space-lg); }
.newsletter-form .input-group { display: flex; margin-top: var(--space-md); }
.newsletter-form input { flex: 1; padding: 0.75rem; border: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.newsletter-form button { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Back to Top */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--color-primary); color: white; border: none; border-radius: 50%; box-shadow: var(--shadow-lg); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--transition-normal); z-index: 90; transform: translateY(20px); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent); }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--color-surface); box-shadow: 0 -4px 10px rgba(0,0,0,0.1); padding: var(--space-md) 0; z-index: 100; transform: translateY(100%); transition: transform var(--transition-normal); border-top: 2px solid var(--color-accent); }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); }
.cookie-actions { display: flex; gap: var(--space-sm); }

/* Animations */
.reveal-up { transform: translateY(40px); opacity: 0; transition: all 800ms cubic-bezier(0.5, 0, 0, 1); }
.reveal-left { transform: translateX(-40px); opacity: 0; transition: all 800ms cubic-bezier(0.5, 0, 0, 1); }
.reveal-right { transform: translateX(40px); opacity: 0; transition: all 800ms cubic-bezier(0.5, 0, 0, 1); }
.reveal-scale { transform: scale(0.85); opacity: 0; transition: all 800ms cubic-bezier(0.5, 0, 0, 1); }
.is-visible { transform: translate(0) scale(1); opacity: 1; }

.stagger-container > * { opacity: 0; transform: translateY(30px); transition: all 600ms cubic-bezier(0.5, 0, 0, 1); }
.stagger-container.is-visible > * { opacity: 1; transform: translateY(0); }
.stagger-container.is-visible > *:nth-child(1) { transition-delay: 100ms; }
.stagger-container.is-visible > *:nth-child(2) { transition-delay: 200ms; }
.stagger-container.is-visible > *:nth-child(3) { transition-delay: 300ms; }
.stagger-container.is-visible > *:nth-child(4) { transition-delay: 400ms; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 30px; }
  .timeline-item, .timeline-item:nth-child(even) { justify-content: flex-end; padding-left: 80px; padding-right: 0; }
  .timeline-content { max-width: 100%; }
  .timeline-year, .timeline-item:nth-child(even) .timeline-year { left: 5px; right: auto; }
}

@media (max-width: 768px) {
  .nav-list { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background: var(--color-surface); flex-direction: column; padding: 100px var(--space-xl); box-shadow: -10px 0 20px rgba(0,0,0,0.1); transition: right var(--transition-normal); z-index: 55; }
  .nav-list.open { right: 0; }
  .hamburger { display: block; }
  .cta-header { display: none; }
  .hero { padding-top: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
  .cookie-banner .container { flex-direction: column; text-align: center; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal-up, .reveal-left, .reveal-right, .reveal-scale, .stagger-container > * { transform: none !important; opacity: 1 !important; }
}
