/*
 * ESKON Precision - Main Styles
 * Clean production version
 */

/* ==================== CSS VARIABLES ==================== */
:root {
  --eskon-dark: #0a1628;
  --eskon-navy: #0f2744;
  --eskon-blue: #1378b5;
  --eskon-electric: #00a8ff;
  --eskon-gold: #f7b731;
  --eskon-white: #ffffff;
  --eskon-light: #f4f7fa;
  --eskon-gray: #8a9bae;
  --eskon-text: #2d3748;
  --gradient-dark: linear-gradient(135deg, #0a1628 0%, #0f2744 100%);
  --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.2);
}

/* ==================== BASE ==================== */
html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--eskon-light);
  overflow-x: hidden;
  line-height: 1.6;
}

* { box-sizing: border-box; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Impact, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ==================== HEADER ==================== */
.site-header {
  background: var(--gradient-dark);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(0, 168, 255, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}

.main-nav a:hover { color: var(--eskon-gold); }

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--eskon-gold);
  transition: width 0.3s;
}

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

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
}

.language-switcher ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.language-switcher li {
  display: flex;
  align-items: center;
}

.language-switcher li:not(:last-child)::after {
  content: "|";
  color: rgba(255,255,255,0.4);
  margin: 0 0.25rem;
  font-size: 0.8rem;
}

.language-switcher a,
.language-switcher .lang-link {
  color: rgba(255,255,255,0.7);
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s;
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher .current-lang a,
.language-switcher .lang-link.active {
  color: var(--eskon-gold);
  background: rgba(247, 183, 49, 0.15);
}

.language-switcher .lang-sep {
  color: rgba(255,255,255,0.4);
  margin: 0 0.25rem;
}

/* Custom flag emojis before language code */
.language-switcher li.lang-item-mk a::before { content: "🇲🇰 "; }
.language-switcher li.lang-item-en a::before { content: "🇬🇧 "; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.nav-overlay.active { display: block; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--eskon-dark);
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--eskon-gray);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col ul a {
  color: var(--eskon-gray);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-col ul a:hover { color: var(--eskon-gold); }

.footer-contact p {
  color: var(--eskon-gray);
  font-size: 0.875rem;
  line-height: 1.8;
  margin: 0;
}

.contact-icon { display: inline-block; width: 20px; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 0 2rem 0;
}

.footer-copyright {
  text-align: center;
  color: var(--eskon-gray);
  font-size: 0.875rem;
  margin: 0;
}

/* ==================== ANIMATIONS ==================== */
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #0a1628 0%, #1a3a5c 100%);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
  }

  .main-nav.active { right: 0; }

  .main-nav a {
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .main-nav a:last-child { border-bottom: none; }
  .main-nav a::after { display: none; }

  .language-switcher {
    position: absolute;
    top: 0.8rem;
    right: 4rem;
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .site-footer { padding: 3rem 0 1.5rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-contact p { line-height: 2.2; }
}

@media (max-width: 480px) {
  .site-logo a { font-size: 1.2rem; }
}
