/* ============================================================
   Mise — Shared Stylesheet
   Aesthetic: Editorial / restaurant-warm. Cream paper, terracotta,
   forest green. Serif display (Fraunces), refined sans (Inter Tight).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter+Tight:wght@300;400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  /* Palette */
  --cream: #F4ECDC;
  --cream-deep: #EADBC0;
  --paper: #FAF5EA;
  --terracotta: #B85528;
  --terracotta-deep: #8E3D1A;
  --terracotta-soft: #E8B898;
  --forest: #1F3328;
  --forest-soft: #3D5544;
  --ink: #1A1612;
  --ink-soft: #4A3F32;
  --gold: #B58642;
  --line: rgba(26, 22, 18, 0.12);
  --line-strong: rgba(26, 22, 18, 0.25);

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter Tight', -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Container */
  --container: 1200px;
  --container-narrow: 880px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(184, 85, 40, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 95%, rgba(31, 51, 40, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Subtle paper grain via SVG noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.32  0 0 0 0 0.22  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ----- Typography ----- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  color: var(--forest);
  letter-spacing: -0.015em;
  line-height: 1.05;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.125rem); }
h4 { font-size: 1.25rem; font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 300;
}

p {
  color: var(--ink-soft);
  margin-bottom: 1em;
}

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--terracotta-deep); }

/* ----- Layout helpers ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

section { padding: var(--space-xl) 0; position: relative; }

.section-divider {
  height: 1px;
  background: var(--line);
  margin: 0 1.5rem;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* ----- Navigation ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 236, 220, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav .brand img,
header .brand img,
.brand img {
  height: 38px !important;
  width: 148px !important;
  max-width: 148px !important;
  max-height: 38px !important;
  min-width: 0 !important;
  display: block !important;
  object-fit: contain !important;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--terracotta);
  display: grid;
  place-items: center;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
}

/* Footer logo: slightly larger and the file works on dark forest green */
footer .brand img,
footer .footer-brand .brand img {
  height: 44px !important;
  width: 172px !important;
  max-height: 44px !important;
  max-width: 172px !important;
  min-width: 0 !important;
  object-fit: contain !important;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: var(--terracotta);
  transition: width 0.3s;
}

.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-links a.active {
  color: var(--terracotta);
}

@media (max-width: 720px) {
  .nav-links { gap: 1.25rem; }
  /* On mobile, hide all nav items EXCEPT the Book a demo button and the hamburger.
     Everything else moves into the slide-in menu. */
  .nav-links > li:not(.nav-cta):not(.nav-hamburger) { display: none; }
  .nav-links a.btn { display: inline-flex; }
  /* Shrink the Book a demo button on mobile so it fits beside the hamburger */
  .nav-links .nav-cta a.btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  .nav-links { gap: 0.6rem; }
}

/* ----- Hamburger button (mobile only) ----- */
.nav-hamburger { display: none; }

@media (max-width: 720px) {
  .nav-hamburger { display: inline-flex; }
}

.hamburger-btn {
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
}

.hamburger-btn:hover, .hamburger-btn:focus {
  border-color: var(--terracotta);
  background: rgba(184, 85, 40, 0.05);
  outline: none;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 1.75px;
  background: var(--forest);
  border-radius: 2px;
  position: relative;
}

.hamburger-btn span::before,
.hamburger-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.75px;
  background: var(--forest);
  border-radius: 2px;
}
.hamburger-btn span::before { top: -7px; }
.hamburger-btn span::after  { top:  7px; }

/* ----- Slide-in mobile menu ----- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100vh;
  background: var(--cream);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -20px rgba(31, 51, 40, 0.25);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem 2rem;
  overflow-y: auto;
}

html[dir="rtl"] .mobile-menu {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--line);
  box-shadow: 30px 0 60px -20px rgba(31, 51, 40, 0.25);
  transform: translateX(-100%);
}

.mobile-menu.open { transform: translateX(0); }
html[dir="rtl"] .mobile-menu.open { transform: translateX(0); }

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 51, 40, 0.4);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.mobile-menu-close {
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--forest);
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
}

.mobile-menu-close:hover, .mobile-menu-close:focus {
  border-color: var(--terracotta);
  background: rgba(184, 85, 40, 0.05);
  color: var(--terracotta);
  outline: none;
}

.mobile-menu-lang {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.mobile-menu-lang a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-menu-lang a:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.mobile-menu-lang a.active {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.mobile-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-top: 1px solid var(--line);
}

.mobile-menu-nav li {
  border-bottom: 1px solid var(--line);
}

.mobile-menu-nav a {
  display: block;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
  color: var(--terracotta);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.mobile-menu-footer a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
}

/* Lock body scroll when menu open */
body.menu-open { overflow: hidden; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--terracotta);
  color: var(--cream) !important;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--terracotta-deep);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.btn span, .btn svg { position: relative; z-index: 1; }

.btn:hover {
  color: var(--cream) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px rgba(184, 85, 40, 0.5);
}
.btn:hover::after { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--forest) !important;
  border: 1.5px solid var(--forest);
}
.btn-ghost::after { background: var(--forest); }
.btn-ghost:hover { color: var(--cream) !important; }

.btn-arrow::after { content: none; }
.btn-arrow {
  background: transparent;
  color: var(--terracotta) !important;
  padding: 0;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0;
}
.btn-arrow:hover { color: var(--terracotta-deep) !important; transform: none; box-shadow: none; }
.btn-arrow svg { transition: transform 0.25s; }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ----- Footer ----- */
footer {
  background: var(--forest);
  color: var(--cream);
  padding: 4rem 0 2.5rem;
  margin-top: var(--space-2xl);
  position: relative;
  z-index: 2;
}

footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 720px) {
  footer .container { grid-template-columns: 1fr; gap: 2rem; }
}

footer h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta-soft);
  font-weight: 500;
  margin-bottom: 1rem;
}

footer ul { list-style: none; }
footer li { margin-bottom: 0.5rem; }
footer a { color: var(--cream); opacity: 0.85; font-size: 0.95rem; }
footer a:hover { color: var(--terracotta-soft); opacity: 1; }

footer .footer-brand p { color: var(--cream); opacity: 0.7; font-size: 0.95rem; margin-top: 1rem; max-width: 28ch; }

.footer-bottom {
  border-top: 1px solid rgba(244, 236, 220, 0.15);
  margin-top: 3rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.6;
  text-align: center;
}

/* ----- Reusable component patterns ----- */

/* Card */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  border-color: var(--terracotta-soft);
  box-shadow: 0 20px 40px -25px rgba(31, 51, 40, 0.18);
  transform: translateY(-2px);
}

/* Numbered list */
.numbered-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--terracotta);
  line-height: 1;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

/* Stat block */
.stat {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--forest);
  line-height: 1;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  max-width: 26ch;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fade-in.d1 { animation-delay: 0.1s; }
.fade-in.d2 { animation-delay: 0.2s; }
.fade-in.d3 { animation-delay: 0.3s; }
.fade-in.d4 { animation-delay: 0.4s; }
.fade-in.d5 { animation-delay: 0.5s; }
.fade-in.d6 { animation-delay: 0.6s; }

/* Decorative italic word */
.italic-display {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--terracotta);
  font-weight: 400;
}

/* Inline icon */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
}

/* Pull-quote (hero subtitle style) */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.35;
  color: var(--forest);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  border-left: 2px solid var(--terracotta);
  padding-left: 1.5rem;
}

/* Marquee accent line */
.accent-line {
  width: 60px;
  height: 2px;
  background: var(--terracotta);
  margin-bottom: 1.5rem;
}


/* ============================================================
   LANGUAGE-SPECIFIC TYPOGRAPHY & RTL SUPPORT
   ============================================================ */

/* Arabic — uses Amiri for display (editorial, warm) and Vazirmatn for body */
html[lang="ar"] {
  --font-display: 'Amiri', 'Times New Roman', serif;
  --font-body: 'Vazirmatn', 'Tahoma', sans-serif;
}

html[lang="ar"] body { font-size: 18px; line-height: 1.7; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

/* Persian — Vazirmatn for both display and body (it's beautiful in Persian) */
html[lang="fa"] {
  --font-display: 'Vazirmatn', 'Tahoma', sans-serif;
  --font-body: 'Vazirmatn', 'Tahoma', sans-serif;
}

html[lang="fa"] body { font-size: 17px; line-height: 1.7; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3, html[lang="fa"] h4 {
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

/* Turkish — same fonts as English, but slightly more breathing room for longer words */
html[lang="tr"] body { font-size: 16.5px; }
html[lang="tr"] h1 { letter-spacing: -0.02em; }

/* ============================================================
   RTL LAYOUT (Arabic, Persian)
   ============================================================ */
html[dir="rtl"] body { text-align: right; }

/* Flip all flex rows so navigation, cards, etc. read RTL */
html[dir="rtl"] .nav-inner,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .hero-cta,
html[dir="rtl"] .form-row.two-col,
html[dir="rtl"] .thanks-actions,
html[dir="rtl"] footer .container {
  direction: rtl;
}

/* Brand logo: stays LTR since the wordmark "MISE" is Latin */
html[dir="rtl"] .brand img {
  direction: ltr;
}

/* Buttons: flip the arrow icons that point left/right */
html[dir="rtl"] .btn .icon,
html[dir="rtl"] .btn-arrow svg {
  transform: scaleX(-1);
}

/* Hero — keep visual where it makes sense, but flip text alignment */
html[dir="rtl"] .hero h1,
html[dir="rtl"] .hero p,
html[dir="rtl"] .hero .lede,
html[dir="rtl"] .hero-trust,
html[dir="rtl"] .eyebrow {
  text-align: right;
}

/* Section titles centered in original — keep centered in RTL too */
html[dir="rtl"] .section-title h2,
html[dir="rtl"] .page-header h1,
html[dir="rtl"] .page-header .lede,
html[dir="rtl"] .cta-section h2,
html[dir="rtl"] .cta-section .lede,
html[dir="rtl"] .final-cta h2,
html[dir="rtl"] .final-cta p,
html[dir="rtl"] .honest-note p {
  text-align: center;
}

/* Lists with bullet markers: bullets on the right in RTL */
html[dir="rtl"] .phase ul li,
html[dir="rtl"] .beliefs-col li {
  direction: rtl;
}

/* Numbered phase blocks: numbers stay where they are, but text flows RTL */
html[dir="rtl"] .phase-grid {
  direction: rtl;
}

/* Form: labels and inputs RTL */
html[dir="rtl"] .form-row label,
html[dir="rtl"] .form-row input,
html[dir="rtl"] .form-row textarea,
html[dir="rtl"] .form-row select {
  text-align: right;
  direction: rtl;
}

/* But email and phone fields stay LTR for their content */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="url"] {
  direction: ltr;
  text-align: right;
}

/* Currency amounts — keep LTR so $249 reads correctly, not 942$ */
html[dir="rtl"] .tier-price-row {
  direction: ltr;
  justify-content: flex-end;
}

html[dir="rtl"] .stat,
html[dir="rtl"] .kpi-value,
html[dir="rtl"] .tier-price,
html[dir="rtl"] .subscription-pricecard .stat {
  direction: ltr;
  unicode-bidi: embed;
}

/* Receipts in hero: keep LTR (they're showing real-world receipt content) */
html[dir="rtl"] .receipt {
  direction: ltr;
  text-align: left;
}

/* Borders that were on left side flip to right side in RTL */
html[dir="rtl"] .pull-quote {
  border-left: none;
  border-right: 2px solid var(--terracotta);
  padding-left: 0;
  padding-right: 1.5rem;
}

/* Section markers with vertical line: flip for RTL */
html[dir="rtl"] .stat-block {
  /* keeps the top border, no left/right flipping needed */
}

/* Origin story cards: flip rotations for visual symmetry */
html[dir="rtl"] .story-card-1 {
  left: auto; right: 0;
  transform: rotate(2deg);
}
html[dir="rtl"] .story-card-2 {
  right: auto; left: 0;
  transform: rotate(-1.5deg);
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s;
}

.lang-switcher-toggle:hover {
  color: var(--terracotta);
}

.lang-switcher-toggle svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

/* Globe icon size on toggle */
.lang-switcher-toggle .lang-flag {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 160px;
  box-shadow: 0 10px 30px -10px rgba(31, 51, 40, 0.2);
  display: none;
  z-index: 100;
}

html[dir="rtl"] .lang-switcher-menu {
  right: auto;
  left: 0;
}

.lang-switcher.open .lang-switcher-menu {
  display: block;
}

.lang-switcher-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s;
  /* Force LTR on each menu item so flag stays on the left of its language
     name in all contexts — including on RTL Arabic and Persian pages. */
  direction: ltr;
  text-align: left;
}

.lang-switcher-menu a:hover {
  background: var(--cream);
  color: var(--terracotta);
}

.lang-switcher-menu a.active {
  color: var(--terracotta);
  font-weight: 600;
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
  /* Isolate flag emoji so it doesn't get pulled around by surrounding RTL text */
  unicode-bidi: isolate;
}

/* Hide the long-word "Book a demo" buttons cleanly on smaller screens for non-EN langs */
@media (max-width: 720px) {
  html[lang="ar"] .nav-links a.btn span,
  html[lang="fa"] .nav-links a.btn span,
  html[lang="tr"] .nav-links a.btn span {
    font-size: 0.85rem;
  }
}
