/* ===== CSS Variables ===== */
:root {
  --color-primary: #0070f0;
  --color-primary-hover: #005fcc;
  --color-dark: #0b0f2e;
  --color-dark-alt: #12163a;
  --color-text: #1a1a2e;
  --color-text-light: #5a5a7a;
  --color-white: #ffffff;
  --color-gray-bg: #f0f2f7;
  --color-accent: #e85d75;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1200px;
  --header-height: 72px;
  --transition: 0.3s ease;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 50px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

img, video {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: var(--color-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header.is-transparent {
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav > li {
  position: relative;
}

.header-nav > li > .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

.header-nav > li > .nav-link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.header-nav .chevron {
  width: 10px;
  height: 10px;
  opacity: 0.7;
  transition: transform var(--transition);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  padding: 8px 0;
  background: var(--color-dark);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 10;
}

.has-dropdown:hover > .nav-dropdown,
.has-dropdown.is-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.nav-dropdown li a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .btn {
  padding: 8px 22px;
  font-size: 14px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 200px repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 20px;
}

.footer-country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.footer-country .flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #ed2939 50%, #fff 50%);
  position: relative;
}

.footer-country .flag::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: #fff;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

.footer-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 14px;
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.footer-disclaimer {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.footer-disclaimer p {
  margin-bottom: 12px;
}

.footer-disclaimer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.footer-disclaimer a:hover {
  color: var(--color-white);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-dark);
    padding: 24px;
    gap: 0;
    z-index: 999;
    overflow-y: auto;
  }

  .header-nav.is-open > li {
    width: 100%;
  }

  .header-nav.is-open > li > .nav-link {
    padding: 14px 16px;
    font-size: 16px;
    justify-content: space-between;
  }

  .header-nav.is-open .nav-dropdown {
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .header-nav.is-open .has-dropdown.is-expanded > .nav-dropdown {
    max-height: 400px;
  }

  .header-nav.is-open .has-dropdown.is-expanded > .nav-link .chevron {
    transform: rotate(180deg);
  }

  .header-nav.is-open .nav-dropdown li a {
    padding: 12px 16px 12px 32px;
    font-size: 15px;
    white-space: normal;
  }

  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-mid {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .header-actions .btn-outline {
    display: none;
  }
}
