/* ===================================================================
   Odoo Maroc — Global Stylesheet
   Modern, animated, responsive design system
   =================================================================== */

/* ----------  Design Tokens  ---------- */
:root {
  --purple: #714b67;
  --purple-dark: #5a3b52;
  --purple-light: #8f6a83;
  --accent: #00d0a1;
  --accent-2: #f9a825;
  --ink: #1c1a26;
  --ink-soft: #4a4658;
  --muted: #7b7788;
  --bg: #ffffff;
  --bg-soft: #f7f5fb;
  --bg-dark: #16121f;
  --card: #ffffff;
  --border: #eae6f2;
  --shadow-sm: 0 4px 14px rgba(28, 26, 38, .06);
  --shadow-md: 0 14px 40px rgba(28, 26, 38, .10);
  --shadow-lg: 0 30px 70px rgba(113, 75, 103, .22);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --grad: linear-gradient(120deg, #714b67 0%, #9b5c8f 50%, #00d0a1 140%);
  --grad-soft: linear-gradient(120deg, #f5eef4 0%, #eef7f4 100%);
  --maxw: 1200px;
  --ease: cubic-bezier(.16, .84, .44, 1);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ----------  Reset  ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
section { position: relative; }

/* ----------  Utilities  ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.text-center { text-align: center; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--purple);
  background: var(--bg-soft); padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--border);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1, h2, h3 { line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0 14px; }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin: 0 auto; }
.head { max-width: 720px; margin: 0 auto 64px; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 100px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px rgba(113, 75, 103, .35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(113, 75, 103, .45); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--purple); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--purple); background: var(--bg-soft); transform: translateY(-3px); }

/* ----------  Navbar  ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding: 22px 0;
}
.nav.scrolled { background: rgba(255,255,255,.85); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); padding: 14px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(113, 75, 103, .4);
}
.brand span.mar { color: var(--accent); }
.nav.light .brand, .nav.light .nav-links a { color: #fff; }
.nav.scrolled .brand, .nav.scrolled .nav-links a { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-weight: 500; font-size: .96rem; position: relative; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--purple); }
.nav.light .nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px; }
.burger span { width: 26px; height: 2.5px; background: currentColor; border-radius: 2px; transition: .3s; }
.nav.light .burger { color: #fff; }
.nav.scrolled .burger { color: var(--ink); }

/* ----------  Hero  ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0,208,161,.18), transparent),
              radial-gradient(1000px 700px at 0% 20%, rgba(113,75,103,.28), transparent),
              var(--bg-dark);
  color: #fff; overflow: hidden; padding-top: 90px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.3rem); }
.hero p.lead { font-size: 1.18rem; color: rgba(255,255,255,.78); margin: 24px 0 36px; max-width: 540px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.hero-badges .stat b { font-size: 2rem; display: block; }
.hero-badges .stat span { color: rgba(255,255,255,.6); font-size: .88rem; }

/* floating visual */
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}
.hero-card img { border-radius: var(--radius); }
.float-chip {
  position: absolute; background: #fff; color: var(--ink); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; gap: 12px; align-items: center;
  font-weight: 600; font-size: .9rem;
}
.float-chip .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.chip-1 { top: -26px; left: -30px; animation: float 5s ease-in-out infinite; }
.chip-2 { bottom: -24px; right: -26px; animation: float 6s ease-in-out infinite .6s; }
.chip-3 { top: 44%; right: -46px; animation: float 5.5s ease-in-out infinite .3s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* animated blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; }
.blob-1 { width: 380px; height: 380px; background: #714b67; top: -80px; right: -60px; animation: drift 14s ease-in-out infinite; }
.blob-2 { width: 300px; height: 300px; background: #00d0a1; bottom: -60px; left: -40px; animation: drift 16s ease-in-out infinite reverse; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.15); } }

/* marquee logos */
.marquee { overflow: hidden; padding: 40px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.marquee-track { display: flex; gap: 70px; width: max-content; animation: scroll 26s linear infinite; opacity: .75; }
.marquee-track span { font-weight: 700; font-size: 1.25rem; color: rgba(255,255,255,.6); white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ----------  Reveal Animations  ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* ----------  Feature / Service cards  ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0;
  transition: opacity .4s; z-index: 0;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card > * { position: relative; z-index: 1; }
.card .ic {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--purple); margin-bottom: 20px; transition: .4s;
}
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .learn { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; color: var(--purple); font-size: .92rem; }
.card:hover.card-fill::before { opacity: 1; }
.card-fill:hover h3, .card-fill:hover p, .card-fill:hover .learn { color: #fff; }
.card-fill:hover .ic { background: rgba(255,255,255,.2); color: #fff; }

/* ----------  Steps / Process  ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--bg-soft); border-radius: var(--radius); padding: 34px 28px; position: relative;
  border: 1px solid var(--border); transition: transform .4s var(--ease), box-shadow .4s;
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); background: #fff; }
.step .num {
  counter-increment: step; font-size: 2.6rem; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: .94rem; }

/* ----------  Split / About  ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split .media { position: relative; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.check-list .cx {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; color: #fff; margin-top: 2px;
}
.check-list .cx svg { width: 14px; height: 14px; }
.check-list b { display: block; }
.check-list span { color: var(--muted); font-size: .95rem; }

/* ----------  Stats band  ---------- */
.stats-band { background: var(--bg-dark); color: #fff; border-radius: var(--radius-lg); padding: 60px; position: relative; overflow: hidden; }
.stats-band .grid-4 { position: relative; z-index: 1; }
.stat-item b { font-size: clamp(2.2rem, 4vw, 3.2rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-item span { display: block; color: rgba(255,255,255,.6); margin-top: 6px; }

/* ----------  Testimonials  ---------- */
.quote {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s;
}
.quote:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.quote .stars { color: var(--accent-2); margin-bottom: 14px; letter-spacing: 3px; }
.quote p { font-size: 1.02rem; color: var(--ink-soft); }
.quote .who { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.quote .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote .who b { display: block; font-size: .95rem; }
.quote .who span { color: var(--muted); font-size: .85rem; }

/* ----------  Pricing  ---------- */
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 34px;
  transition: transform .4s var(--ease), box-shadow .4s; position: relative;
}
.price-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.price-card.featured { background: var(--bg-dark); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.price-card.featured .price-sub, .price-card.featured .price-list span { color: rgba(255,255,255,.65); }
.badge-pop { position: absolute; top: 22px; right: 22px; background: var(--accent); color: #04382d; font-size: .72rem; font-weight: 700; padding: 6px 14px; border-radius: 100px; letter-spacing: .05em; }
.price { font-size: 3rem; font-weight: 800; margin: 14px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-sub { color: var(--muted); font-size: .95rem; margin-bottom: 26px; }
.price-list { margin: 26px 0; }
.price-list li { display: flex; gap: 12px; align-items: center; padding: 9px 0; font-size: .95rem; border-bottom: 1px dashed var(--border); }
.price-card.featured .price-list li { border-color: rgba(255,255,255,.1); }
.price-list li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ----------  CTA band  ---------- */
.cta-band {
  background: var(--grad); border-radius: var(--radius-lg); padding: 70px 60px; color: #fff;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 16px auto 30px; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.6); }
.cta-band .shine { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,255,255,.25), transparent 65%); top: -200px; right: -120px; }

/* ----------  Page hero (inner pages)  ---------- */
.page-hero {
  padding: 170px 0 90px; text-align: center; color: #fff;
  background: radial-gradient(900px 500px at 50% -20%, rgba(0,208,161,.2), transparent), var(--bg-dark);
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-hero p { color: rgba(255,255,255,.75); max-width: 620px; margin: 18px auto 0; font-size: 1.1rem; }
.crumbs { display: flex; gap: 10px; justify-content: center; margin-top: 22px; font-size: .9rem; color: rgba(255,255,255,.6); }
.crumbs a:hover { color: var(--accent); }

/* ----------  Contact  ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.info-card { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; transition: .3s; background: #fff; }
.info-card:hover { box-shadow: var(--shadow-md); transform: translateX(6px); }
.info-card .ic { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--grad-soft); color: var(--purple); display: grid; place-items: center; }
.info-card b { display: block; margin-bottom: 3px; }
.info-card span { color: var(--muted); font-size: .95rem; }
.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .96rem; transition: border-color .25s, box-shadow .25s; background: var(--bg-soft);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(113,75,103,.12); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; text-align: center; }
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--ink); color: #fff; padding: 16px 26px; border-radius: 100px; box-shadow: var(--shadow-lg);
  display: flex; gap: 12px; align-items: center; z-index: 2000; transition: transform .5s var(--ease); font-weight: 500;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .ic { color: var(--accent); }

/* map */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.2); }

/* ----------  FAQ  ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; background: #fff; transition: box-shadow .3s; }
.faq-item.open { box-shadow: var(--shadow-md); }
.faq-q { padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; }
.faq-q .plus { width: 26px; height: 26px; flex: none; position: relative; transition: transform .3s; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--purple); border-radius: 2px; }
.faq-q .plus::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq-q .plus::after { left: 12px; top: 4px; bottom: 4px; width: 2px; transition: transform .3s; }
.faq-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 26px 24px; color: var(--muted); }

/* ----------  Team  ---------- */
.team-card { text-align: center; }
.team-card .avatar { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; position: relative; box-shadow: var(--shadow-sm); }
.team-card .avatar img { aspect-ratio: 1/1.05; object-fit: cover; transition: transform .5s var(--ease); }
.team-card:hover .avatar img { transform: scale(1.06); }
.team-card h3 { font-size: 1.15rem; }
.team-card span { color: var(--purple); font-size: .9rem; font-weight: 500; }

/* ----------  Footer  ---------- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer p { font-size: .95rem; max-width: 300px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: .95rem; transition: color .25s, padding .25s; }
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .3s; }
.socials a:hover { background: var(--grad); transform: translateY(-4px); }
.socials svg { width: 18px; height: 18px; }
.news-form { display: flex; gap: 8px; margin-top: 16px; }
.news-form input { flex: 1; padding: 12px 16px; border-radius: 100px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; }
.news-form input::placeholder { color: rgba(255,255,255,.4); }
.news-form button { padding: 12px 20px; border-radius: 100px; border: none; background: var(--grad); color: #fff; cursor: pointer; font-weight: 600; }
.footer-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }

/* ----------  Scroll progress + back to top  ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 2000; transition: width .1s; }
.to-top { position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; pointer-events: none; transition: .3s; z-index: 900; border: none; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* ----------  Responsive  ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { max-width: 480px; margin: 20px auto 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band, .cta-band { padding: 44px 28px; }
}
@media (max-width: 640px) {
  .section { padding: 74px 0; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 340px; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 100px 32px; gap: 22px; transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--ink) !important; font-size: 1.1rem; }
  .burger { display: flex; }
  .nav-cta .btn:not(.burger) { display: none; }
  .grid-3, .grid-4, .steps, .grid-2, .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 20px; }
  .float-chip { display: none; }
}

/* ----------  Language switcher  ---------- */
.lang-switch {
  display: inline-flex; align-items: center; border-radius: 100px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); margin-right: 4px;
}
.nav.scrolled .lang-switch { border-color: var(--border); background: var(--bg-soft); }
.lang-switch button {
  border: none; background: none; cursor: pointer; padding: 7px 13px; font-family: inherit;
  font-weight: 700; font-size: .82rem; color: inherit; line-height: 1; transition: background .25s, color .25s;
}
.lang-switch button.active { background: var(--grad); color: #fff; }
[dir="rtl"] .lang-switch { margin-right: 0; margin-left: 4px; }

/* ----------  RTL / Arabic  ---------- */
html.lang-ar body,
html.lang-ar .btn,
html.lang-ar input,
html.lang-ar textarea,
html.lang-ar select,
html.lang-ar .brand { font-family: "Tajawal", "Poppins", system-ui, sans-serif; }

html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .text-center,
html[dir="rtl"] .head { text-align: center; }
html[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
html[dir="rtl"] .btn > svg,
html[dir="rtl"] .card .learn { transform: scaleX(-1); }
html[dir="rtl"] .eyebrow::before { margin-left: 0; }
html[dir="rtl"] .check-list li,
html[dir="rtl"] .info-card,
html[dir="rtl"] .faq-q,
html[dir="rtl"] .price-list li { text-align: right; }
html[dir="rtl"] .field input,
html[dir="rtl"] .field textarea,
html[dir="rtl"] .field select { text-align: right; }
html[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 6px; }
html[dir="rtl"] .info-card:hover { transform: translateX(-6px); }
@media (max-width: 640px) {
  html[dir="rtl"] .nav-links { inset: 0 auto 0 0; transform: translateX(-100%); }
  html[dir="rtl"] .nav-links.open { transform: none; }
}

