/* ============================================
   VAMOS Solutions — Style Sheet
   Version 2.1 — December 2025 (i18n + RTL)
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Primary */
  --gold: #E6C642;
  --bg-dark: #0E0F11;
  --surface-dark: #1A1D21;
  --text-dark: #F5F4EE;
  --muted-dark: #A9ABB0;
  --border-dark: #2E3238;

  /* Light mode */
  --bg-light: #FAF8F1;
  --surface-light: #FFFFFF;
  --text-light: #101114;
  --muted-light: #5A5F67;
  --border-light: #D9D6C9;

  /* Status */
  --success: #0F5E4A;
  --warning: #8C4A2F;
  --info: #1F3A5F;

  /* Layout */
  --radius: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.18);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Typography */
  --font-heading: "Archivo Black", system-ui, sans-serif;
  --font-body: "Roboto Condensed", system-ui, sans-serif;
  --font-accent: "Pacifico", cursive;

  /* Current theme (dark default) */
  --bg: var(--bg-dark);
  --surface: var(--surface-dark);
  --text: var(--text-dark);
  --muted: var(--muted-dark);
  --border: var(--border-dark);
}

[data-theme="light"] {
  --bg: var(--bg-light);
  --surface: var(--surface-light);
  --text: var(--text-light);
  --muted: var(--muted-light);
  --border: var(--border-light);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

strong {
  font-weight: 700;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gold {
  color: var(--gold);
}

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.tagline {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--gold);
  opacity: 0.95;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: rgba(0, 0, 0, 0.05);
}

.btn-gold:hover {
  filter: brightness(0.92);
  color: var(--bg-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--text);
}

.btn-full {
  width: 100%;
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
}

.btn-lang {
  padding: 0.5rem 0.75rem;
  gap: 0.35rem;
}

.lang-current {
  font-weight: 700;
  font-size: 0.85rem;
}

.lang-chevron {
  transition: transform 0.2s ease;
}

.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1001;
  box-shadow: var(--shadow-soft);
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 4px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

.lang-option:hover {
  background: rgba(230, 198, 66, 0.1);
}

.lang-option.active {
  background: rgba(230, 198, 66, 0.15);
  color: var(--gold);
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
}

/* --- Chips --- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(26, 29, 33, 0.6);
}

[data-theme="light"] .chip {
  background: rgba(255, 255, 255, 0.65);
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.card-compact {
  padding: var(--space-md);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.card-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0;
}

.card-role {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.card-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* --- Avatar --- */
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(230, 198, 66, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .avatar {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(14, 15, 17, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(46, 50, 56, 0.65);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(250, 248, 241, 0.75);
  border-bottom: 1px solid rgba(217, 214, 201, 0.9);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo {
  height: 42px;
  width: auto;
}

#logoLight {
  display: none;
}

#logoDark {
  display: block;
}

[data-theme="light"] #logoLight {
  display: block;
}

[data-theme="light"] #logoDark {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease;
}

[dir="rtl"] .hamburger::before,
[dir="rtl"] .hamburger::after {
  left: auto;
  right: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
  background-image:
    radial-gradient(1200px 600px at 20% 30%, rgba(230, 198, 66, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.36) 100%),
    url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
}

[dir="rtl"] .hero {
  background-image:
    radial-gradient(1200px 600px at 80% 30%, rgba(230, 198, 66, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.36) 100%),
    url('../img/hero.jpg');
}

[data-theme="light"] .hero {
  background-image:
    radial-gradient(1200px 600px at 20% 30%, rgba(230, 198, 66, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, rgba(250, 248, 241, 0.96) 0%, rgba(250, 248, 241, 0.78) 50%, rgba(250, 248, 241, 0.62) 100%),
    url('../img/hero.jpg');
}

[data-theme="light"][dir="rtl"] .hero {
  background-image:
    radial-gradient(1200px 600px at 80% 30%, rgba(230, 198, 66, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, rgba(250, 248, 241, 0.96) 0%, rgba(250, 248, 241, 0.78) 50%, rgba(250, 248, 241, 0.62) 100%),
    url('../img/hero.jpg');
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xl);
  align-items: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: var(--space-md);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: var(--space-sm);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

/* --- Sections --- */
.section {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background: var(--surface);
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 70ch;
}

/* --- Grids --- */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --- Trust Section --- */
.section-trust {
  padding: var(--space-lg) 0;
}

.trust-card {
  padding: var(--space-lg);
}

.trust-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.trust-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.partner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.partner-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(26, 29, 33, 0.45);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

[data-theme="light"] .partner-pill {
  background: rgba(255, 255, 255, 0.78);
}

.partner-pill:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  color: var(--text);
}

.partner-logo {
  width: 100px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(245, 244, 238, 0.06);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

[data-theme="light"] .partner-logo {
  background: rgba(0, 0, 0, 0.03);
}

.partner-logo img {
  max-width: 90px;
  max-height: 22px;
  width: auto;
  height: auto;
}

[data-theme="dark"] .partner-logo img {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.trust-footer {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-xl);
  align-items: center;
}

.contact-content {
  max-width: 50ch;
}

.contact-cta {
  font-size: 1.1rem;
  margin-top: var(--space-lg);
}

.contact-card {
  padding: var(--space-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.contact-item a {
  font-size: 1rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* --- Footer --- */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9rem;
}

.footer-divider {
  color: var(--muted);
}

/* ============================================
   RTL Support (Arabic)
   ============================================ */
[dir="rtl"] {
  --font-heading: "Archivo Black", "Noto Sans Arabic", system-ui, sans-serif;
  --font-body: "Roboto Condensed", "Noto Sans Arabic", system-ui, sans-serif;
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .kicker {
  letter-spacing: 0.05em;
}

[dir="rtl"] .nav-menu {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-inner {
  direction: rtl;
}

[dir="rtl"] .card-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .card-header > div {
  text-align: right;
}

[dir="rtl"] .chips {
  justify-content: flex-start;
}

[dir="rtl"] .hero-buttons {
  justify-content: flex-start;
}

[dir="rtl"] .partner-pill {
  flex-direction: row-reverse;
}

[dir="rtl"] .contact-grid {
  direction: rtl;
}

[dir="rtl"] .footer-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-links {
  flex-direction: row-reverse;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 450px;
  }

  [dir="rtl"] .hero-card {
    margin-right: 0;
    margin-left: auto;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    max-width: 450px;
  }

  [dir="rtl"] .contact-card {
    margin-right: 0;
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px var(--space-lg) var(--space-lg);
    background: var(--surface);
    border-left: 1px solid var(--border);
    transition: right 0.3s ease, left 0.3s ease;
  }

  [dir="rtl"] .nav-menu {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid var(--border);
  }

  .nav-menu.open {
    right: 0;
  }

  [dir="rtl"] .nav-menu.open {
    right: auto;
    left: 0;
  }

  [dir="rtl"] .nav-menu {
    align-items: flex-end;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  [dir="rtl"] .nav-links {
    align-items: flex-end;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
  }

  [dir="rtl"] .nav-links a {
    text-align: right;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    margin-top: var(--space-md);
  }

  [dir="rtl"] .nav-actions {
    align-items: flex-end;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .lang-switcher {
    width: 100%;
  }

  .lang-dropdown {
    position: static;
    width: 100%;
    margin-top: var(--space-xs);
    transform: none;
  }

  .lang-switcher.open .lang-dropdown {
    transform: none;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: calc(80px + var(--space-lg)) 0 var(--space-lg);
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .partner-pills {
    flex-direction: column;
  }

  .partner-pill {
    width: 100%;
  }

  [dir="rtl"] .partner-pill {
    flex-direction: row-reverse;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  [dir="rtl"] .footer-inner {
    flex-direction: column;
  }
}

/* --- Focus states --- */
.btn:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 198, 66, 0.3);
}

/* --- Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Loading state for i18n --- */
[data-i18n-loading] {
  opacity: 0.5;
  pointer-events: none;
}