/**
 * Dark Wealth Design System
 * Ruski W2R - Original Design Rebuild
 * 
 * Philosophy: Oligarch Luxury Polish
 * Clean, professional, no !important hacks
 */

/* ============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Colors - Dark Wealth Palette */
  --color-charcoal: #0F1113;
  --color-charcoal-light: #1A1D21;
  --color-slate: #2C3038;
  --color-slate-light: #3A3F48;
  
  --color-gold: #9E7C1A;
  --color-gold-bright: #D4AF37;
  --color-gold-pale: #C9B037;
  --color-gold-dark: #7A5F14;
  
  --color-off-white: #F5F3EF;
  --color-cream: #E8E4DC;
  --color-pure-white: #FFFFFF;
  --color-pure-black: #000000;
  
  /* Semantic Colors */
  --color-text-primary: var(--color-off-white);
  --color-text-secondary: #A0A0A0;
  --color-text-muted: #6B6B6B;
  --color-text-gold: var(--color-gold-bright);
  
  --color-bg-primary: var(--color-charcoal);
  --color-bg-secondary: var(--color-slate);
  --color-bg-light: var(--color-off-white);
  
  /* Typography */
  --font-headline: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.65vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1.35vw, 2rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 2.25vw, 3rem);
  --text-3xl: clamp(2.25rem, 1.5rem + 3.75vw, 4.5rem);
  --text-4xl: clamp(3rem, 2rem + 5vw, 6rem);
  
  /* Spacing - 8px Base Grid */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Layout */
  --container-max: 1400px;
  --container-narrow: 900px;
  --container-wide: 1600px;
  
  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
  --shadow-gold-lg: 0 0 40px rgba(212, 175, 55, 0.4);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-slower: 800ms ease;
  
  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); font-weight: 400; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

.text-display {
  font-family: var(--font-headline);
  font-size: var(--text-4xl);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.text-gold { color: var(--color-gold-bright); }
.text-muted { color: var(--color-text-secondary); }
.text-center { text-align: center; }

/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section { padding-block: var(--space-20); }
.section-sm { padding-block: var(--space-12); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.grid { display: grid; }

/* ============================================
   5. COMPONENTS
   ============================================ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-bright) 100%);
  color: var(--color-charcoal);
  border-color: var(--color-gold-bright);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold-pale) 100%);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-gold-bright);
  border-color: var(--color-gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: var(--shadow-gold);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* Cards */
.card {
  background: var(--color-slate);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: rgba(44, 48, 56, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Glass Effect */
.glass {
  background: rgba(15, 17, 19, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* ============================================
   6. HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

.header-scrolled {
  background: rgba(15, 17, 19, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding-inline: var(--space-6);
}

.logo {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-gold-bright);
  letter-spacing: 0.05em;
}

.logo span { color: var(--color-text-primary); }

.nav-desktop { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold-bright);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-gold-bright);
}

.nav-link:hover::after { width: 100%; }

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lang-link {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-link:hover, .lang-link.active {
  color: var(--color-gold-bright);
  background: rgba(212, 175, 55, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  gap: 6px;
  cursor: pointer;
  z-index: calc(var(--z-modal) + 1);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-gold-bright);
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--color-charcoal);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.nav-mobile.active {
  opacity: 1;
  visibility: visible;
}

.nav-mobile .nav-list {
  flex-direction: column;
  gap: var(--space-6);
}

.nav-mobile .nav-link { font-size: var(--text-xl); }

/* ============================================
   7. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 17, 19, 0.4) 0%,
    rgba(15, 17, 19, 0.6) 50%,
    rgba(15, 17, 19, 0.9) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding-inline: var(--space-6);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: var(--space-4);
}

.hero-title { margin-bottom: var(--space-6); }
.hero-title em {
  font-style: italic;
  color: var(--color-gold-bright);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-gold-bright);
}

/* ============================================
   8. SECTIONS
   ============================================ */

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: var(--space-4);
}

.section-title { margin-bottom: var(--space-4); }
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.service-card {
  position: relative;
  padding: var(--space-8);
  background: var(--color-slate);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition-base);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-bright), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-gold-bright);
}

.service-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.service-description {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

/* About Section */
.about-section {
  background: var(--color-off-white);
  color: var(--color-charcoal);
}

.about-section .section-label { color: var(--color-gold); }
.about-section .section-subtitle { color: var(--color-slate); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about-text {
  font-size: var(--text-lg);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-gold);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-slate);
  margin-top: var(--space-1);
}

/* Testimonials Section */
.testimonials-section { background: var(--color-charcoal-light); }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-slate);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-headline);
  font-size: 6rem;
  color: var(--color-gold);
  opacity: 0.2;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  line-height: 1;
}

.testimonial-text {
  font-size: var(--text-lg);
  font-style: italic;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-gold);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.author-title {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* CTA Section */
.cta-section {
  position: relative;
  padding-block: var(--space-24);
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 19, 0.85);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title { margin-bottom: var(--space-4); }

.cta-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* ============================================
   9. FOOTER
   ============================================ */
.footer {
  background: var(--color-charcoal);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand { max-width: 300px; }

.footer-logo {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  color: var(--color-gold-bright);
  margin-bottom: var(--space-4);
}

.footer-tagline {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.footer-column h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover { color: var(--color-gold-bright); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-gold-bright);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  text-align: center;
}

.copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover { color: var(--color-gold-bright); }

/* ============================================
   10. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 40px rgba(212, 175, 55, 0.3); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }
.animate-goldGlow { animation: goldGlow 2s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   11. RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .header-inner { padding-inline: var(--space-8); }
  
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
  
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
  
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 2fr; }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
  .container { padding-inline: var(--space-12); }
}
