@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@300;400;500;600&family=Cairo:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --i18n-switch-offset: 18px;
}

html[lang="ar"] body,
html[lang="ar"] body * {
  font-family: "Cairo", sans-serif !important;
}

html[lang="ar"] :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  button,
  .btn-primary,
  .btn-secondary,
  .btn-dark,
  .btn-plan,
  .nav-cta,
  .mobile-cta,
  .city-filter-btn,
  .card-action,
  .volt-language-switch button
) {
  font-family: "Cairo", sans-serif !important;
}

html[lang="ar"] :is(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  a,
  button,
  span,
  label,
  small
) {
  letter-spacing: normal;
  line-height: 1.3;
}

html[lang="ar"] :is(
  .nav-logo-text,
  .huge-volt-text,
  .volt-loader__title
) {
  font-family: "Barlow Condensed", sans-serif !important;
}

/* These labels are divs, so the general Arabic letter-spacing reset above
   does not reach them. English tracking disconnects Arabic cursive glyphs. */
html[lang="ar"] :is(
  .hero-eyebrow,
  .section-eyebrow,
  .eyebrow,
  .section-kicker,
  .branch-city,
  .branch-meta,
  .coach-role,
  .hero-panel-top,
  .hero-panel-bottom,
  .founder-signature,
  .stat-item span,
  .free-session-callout,
  .price-ribbon,
  .price-plan,
  .price-name,
  .price-save,
  .impact-title,
  .impact-stat,
  .stat-label,
  .stat-text
) {
  letter-spacing: normal !important;
  text-transform: none;
}

html[lang="ar"] .section-eyebrow {
  line-height: 1.7;
}

html[lang="ar"] .price-ribbon {
  line-height: 1.5;
  white-space: nowrap;
}

/* Locations page: its large display labels are divs, so they need explicit
   Arabic typography instead of inheriting the original Barlow display styles. */
html[lang="ar"] :is(
  .loc-eyebrow,
  .loc-hero-title,
  .loc-hero-city,
  .loc-hero-sub,
  .go-pill,
  .go-headline,
  .go-sub,
  .go-cta
) {
  font-family: "Cairo", sans-serif !important;
  letter-spacing: normal;
  text-transform: none;
}

html[lang="ar"] .loc-hero-title {
  line-height: 1.1;
}

html[lang="ar"] .loc-hero-city {
  line-height: 1.18;
}

html[lang="ar"] .hero-title {
  line-height: 1.08;
}

html[lang="ar"] .cta-banner::before {
  content: "احجز";
  font-family: "Cairo", sans-serif;
  letter-spacing: normal;
}

html[lang="ar"] .go-headline {
  line-height: 1.35;
}

html[lang="ar"] :is(
  .location-name,
  .cta-text h2
) {
  line-height: 1.25;
}

html[lang="ar"] :is(
  .location-num,
  .location-status,
  .city-filter-title,
  .city-filter-btn,
  .location-cta,
  .info-label,
  .info-value,
  .hours-row,
  .map-overlay-badge,
  .go-pill,
  .go-sub,
  .go-cta
) {
  line-height: 1.65;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] [style*="text-align: left"] {
  text-align: right !important;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .story-text,
html[dir="rtl"] .section-copy,
html[dir="rtl"] .card-content,
html[dir="rtl"] .faq-answer,
html[dir="rtl"] .terms-content,
html[dir="rtl"] .privacy-content {
  text-align: right;
}

/* Keep the global header and footer in their original English layout.
   Their labels can still be translated without reversing component order. */
html[dir="rtl"] :is(.site-header, .mobile-nav-overlay, .site-footer) {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .site-footer .footer-headline {
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
}

html[dir="rtl"] :is(.site-header, .site-footer) [style*="text-align: left"] {
  text-align: left !important;
}

html[dir="rtl"] :is(.site-header, .site-footer) :is(ul, ol) {
  padding-left: 0;
  padding-right: 0;
}

html[dir="ltr"] .section-eyebrow::after,
html[dir="rtl"] .section-eyebrow::after {
  order: -1;
}

html[dir="rtl"] :is(.hero-stats, .floating-price, .location-number) {
  right: auto !important;
  left: 48px;
}

html[dir="rtl"] .hero-stats .stat-pill {
  width: 118px;
  height: 118px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

html[dir="rtl"] .hero-stats .stat-num {
  font-size: 42px;
}

html[dir="rtl"] .hero-stats .stat-label {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0;
}

html[dir="rtl"] .mobile-nav-overlay {
  right: 0;
  left: auto;
  align-items: flex-start;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 0;
  transform: translateX(100%);
}

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

html[dir="rtl"] .mobile-nav-close {
  right: 24px;
  left: auto;
}

html[dir="rtl"] .mobile-nav-overlay .nav-link-item {
  transform: translateX(30px);
  text-align: left;
}

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

html[dir="rtl"] :is(.card-action, .btn-dark, .btn-primary, .btn-secondary, .nav-cta) svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .site-header .nav-cta svg {
  transform: none;
}

html[data-i18n-page="partnership"] body {
  color: var(--body-copy-color, #ffffff);
  font-size: var(--body-copy-size, 20px);
  line-height: var(--body-copy-line-height, 1.65);
}

html[data-i18n-page="partnership"] :is(
  .fran-subtitle,
  .section-subtitle,
  .ems-qa-item p,
  .ems-advantages-list li,
  .stat-card .stat-label,
  .bento-card p,
  .model-card p,
  .model-features li,
  .safety-list li,
  .contraindications-block > p,
  .contra-list li,
  .who-text p,
  .who-detail-item .value,
  .process-step p,
  .suit-hero p,
  .suit-card p,
  .cta-section > div > p:first-of-type
) {
  color: var(--body-copy-color, #ffffff) !important;
  font-size: var(--body-copy-size, 20px) !important;
  line-height: var(--body-copy-line-height, 1.65) !important;
}

html[dir="rtl"] :is(
  a[href*="wa.me"],
  a[href*="whatsapp.com"],
  button[data-whatsapp]
) svg {
  transform: none !important;
}

html[dir="rtl"] :is(ul, ol) {
  padding-left: 0;
  padding-right: 1.25em;
}

html[dir="rtl"] .price-features li::before {
  content: "\2190";
}

html[dir="rtl"] .faq-answer ul {
  direction: rtl;
  padding-left: 0;
  padding-right: 0;
}

html[dir="rtl"] .faq-answer li {
  direction: rtl;
  text-align: right;
  padding-left: 0;
  padding-right: 24px;
}

html[dir="rtl"] .faq-answer li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .testimonials-header,
html[dir="rtl"] .testimonial-card {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .testimonials-header {
  justify-content: flex-start;
}

html[dir="rtl"] .t-author {
  justify-content: flex-start;
}

.volt-language-switch {
  position: fixed;
  z-index: 99990;
  top: var(--i18n-switch-offset);
  left: auto;
  right: var(--i18n-switch-offset);
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  direction: ltr;
  isolation: isolate;
}

.volt-language-switch::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--volt, #b9e42b);
  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.volt-language-switch[data-active-language="ar"]::before {
  transform: translateX(100%);
}

body:has(nav) .volt-language-switch,
body:has(.site-header) .volt-language-switch {
  top: 108px;
}

.footer-legal-links:has(.volt-language-switch) {
  gap: 16px;
}

.footer-legal-links .volt-language-switch,
.volt-language-switch--footer {
  position: relative;
  z-index: 1;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  flex-shrink: 0;
  padding: 3px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.volt-language-switch button {
  min-width: 44px;
  min-height: 34px;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: 700 12px/1 "Cairo", "Barlow", sans-serif;
  cursor: pointer;
  transition: color 160ms ease;
}

.footer-legal-links .volt-language-switch button,
.volt-language-switch--footer button {
  min-width: 40px;
  min-height: 30px;
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.58);
}

.volt-language-switch button[aria-pressed="true"] {
  color: var(--black, #0a0a0a);
}

.volt-language-switch button:focus-visible {
  outline: 2px solid var(--volt, #b9e42b);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  :root {
    --i18n-switch-offset: 10px;
  }

  .volt-language-switch button {
    min-width: 40px;
    min-height: 32px;
    padding: 5px 9px;
  }

  body:has(nav) .volt-language-switch,
  body:has(.site-header) .volt-language-switch {
    top: 48px;
  }

  .footer-legal-links:has(.volt-language-switch) {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  html[dir="rtl"] :is(.hero-stats, .floating-price, .location-number) {
    left: 20px;
  }

  html[dir="rtl"] .hero-stats {
    left: auto !important;
    right: auto !important;
    align-self: center;
    justify-content: center;
    margin-inline: auto;
    padding-inline: 20px;
  }

  html[dir="rtl"] .hero-stats .stat-pill {
    width: auto;
    height: auto;
    min-height: 94px;
    padding: 14px 10px;
  }

  html[dir="rtl"] .hero-stats .stat-num {
    font-size: 32px;
  }

  html[dir="rtl"] .hero-stats .stat-label {
    font-size: 10px;
  }
}
