/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
  --purple-dark: #3a3a3a;
  --purple-primary: #505050;
  --purple-brand: #484848;
  --purple-light: #808080;
  --purple-pale: #b8b8b8;
  --purple-bg: #eeeeee;
  --purple-soft: #f5f5f5;
  --orange: #f09447;
  --orange-dark: #40160a;
  --text-dark: #0a0a0a;
  --text-secondary: #737373;
  --text-muted: #17141e;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --border-light: #e5e5e5;
  --france-blue: #000091;
  --france-red: #E1000F;
  --gradient-purple: linear-gradient(29deg, #3a3a3a 9%, #505050 90%);
  --gradient-purple-alt: linear-gradient(54deg, #3a3a3a 9%, #505050 90%);
  --gradient-purple-cta: linear-gradient(18deg, #3a3a3a 9%, #505050 90%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius-sm: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 0.875rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  color: transparent;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-sm {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Animation utilities */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-child.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 1rem;
  backdrop-filter: blur(12px);
  background: rgba(58, 58, 58, 0.95);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 45px;
  height: 52px;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  color: white;
  font-size: 1.125rem;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-btn {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  color: #fafafa;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.nav-btn:active {
  transform: scale(0.95);
}

.nav-btn-cta {
  background: var(--orange);
  color: var(--orange-dark);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.nav-btn-cta:hover {
  background: #ff9f4f;
  box-shadow: 0 4px 20px rgba(240, 148, 71, 0.4);
}

/* Language selector dropdown */
.lang-selector {
  position: relative;
  cursor: pointer;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  /* Match .nav-btn style */
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  color: #fafafa;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.lang-chevron {
  transition: transform 0.2s;
  filter: brightness(0) invert(1);
}

.lang-selector:hover .lang-chevron,
.lang-selector.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  list-style: none;
  padding: 0.25rem 0;
  min-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

/* Invisible bridge so hover doesn't break between trigger and menu */
.lang-selector::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.lang-selector:hover .lang-menu,
.lang-selector.open .lang-menu {
  display: block;
}

.lang-menu li a {
  display: block;
  padding: 0.4rem 0.875rem;
  color: #1f2937;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
  white-space: nowrap;
}

.lang-menu li a:hover {
  background: #f3f4f6;
}

.lang-menu li.active a {
  color: #505050;
  font-weight: 600;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  color: white;
  background: none;
  border: none;
  outline: none;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-menu.open {
  max-height: 500px;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  overflow: visible;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .mobile-menu {
    display: flex;
  }
}

.mobile-menu .nav-btn {
  text-align: left;
}

.mobile-menu .lang-selector {
  align-self: flex-start;
}

.mobile-menu .lang-current {
  color: rgba(255, 255, 255, 0.9);
}

.mobile-menu .lang-menu {
  position: static;
  margin-top: 0.25rem;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu .lang-menu li a {
  color: rgba(255, 255, 255, 0.9);
}

.mobile-menu .lang-menu li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-menu .lang-menu li.active a {
  color: #fff;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 4rem 2rem;
  }
}

.cta-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.cta-banner {
  background: var(--gradient-purple-cta);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.cta-banner:hover {
  transform: scale(1.02);
}

.cta-banner h2 {
  font-weight: 700;
  color: white;
  font-size: 1.875rem;
  margin-bottom: 0.25rem;
}

.cta-banner > p {
  color: var(--purple-bg);
  font-size: 0.875rem;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--orange-dark);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.cta-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(240, 148, 71, 0.6);
}

.cta-btn svg {
  width: 18px;
  height: 18px;
}

.cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.cta-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-badge svg {
  width: 16px;
  height: 16px;
}

.cta-badge p {
  color: var(--purple-pale);
  font-size: 0.75rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 2rem;
  }
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-icon {
  width: 45px;
  height: 52px;
}

.footer-logo-text {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-col h3 {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links p,
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-links p:hover,
.footer-links a:hover {
  color: var(--purple-brand);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-dark);
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.footer-social:hover {
  transform: scale(1.05);
}

.footer-social svg {
  width: 14px;
  height: 14px;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* ===== Icon Color Utilities ===== */
/* Uses CSS filters to color SVGs loaded via img tags */

.icon-purple {
  filter: brightness(0) saturate(100%) invert(18%) sepia(10%) saturate(500%) hue-rotate(200deg) brightness(95%) contrast(90%);
}

.icon-white {
  filter: brightness(0) saturate(100%) invert(100%);
}

.icon-dark {
  filter: brightness(0) saturate(100%) invert(13%) sepia(10%) saturate(1156%) hue-rotate(201deg) brightness(97%) contrast(91%);
}

.icon-purple-light {
  filter: brightness(0) saturate(100%) invert(40%) sepia(5%) saturate(300%) hue-rotate(200deg) brightness(95%) contrast(90%);
}

.icon-gray {
  filter: brightness(0) saturate(100%) invert(50%) sepia(8%) saturate(456%) hue-rotate(182deg) brightness(94%) contrast(89%);
}
