/* Homepage visual baseline, split into maintainable style layers. */
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #f8fafc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4ef;
  --blue: #0284c7;
  --blue-dark: #0369a1;
  --blue-soft: #e0f2fe;
  --white: #ffffff;
  --soft: #f8fafc;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f8fafc; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
section { scroll-margin-top: 78px; }
.site-shell { min-height: 100vh; }
.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(219, 228, 239, .92);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
}

.nav-row { min-height: 76px; display: flex; align-items: center; gap: 24px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 800;
}

.brand strong { display: block; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.brand small { display: block; margin-top: 2px; color: #94a3b8; letter-spacing: .22em; }

.desktop-nav { display: flex; align-items: center; gap: 22px; }
.desktop-nav button {
  position: relative;
  padding: 28px 0 25px;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 650;
}
.desktop-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 17px;
  height: 2px;
  background: var(--blue);
  transition: right .2s ease;
}
.desktop-nav button:hover,
.desktop-nav button.active { color: var(--blue-dark); }
.desktop-nav button.active::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { color: #334155; font-size: 14px; font-weight: 750; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--blue); color: white; box-shadow: 0 10px 24px rgba(2, 132, 199, .18); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { border: 1px solid #cbd5e1; background: white; color: var(--ink); }
.button.secondary:hover { background: #f8fafc; }
.button.compact { min-height: 42px; padding-inline: 17px; font-size: 14px; }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-size: 20px;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid var(--line);
  background: white;
}
.mobile-nav.open { display: grid; }
.mobile-nav button,
.mobile-nav a {
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  background: transparent;
  color: #334155;
  text-align: left;
  font-weight: 650;
}
.mobile-nav button.active { color: var(--blue-dark); }

.hero-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(186, 230, 253, .75), transparent 28%),
    radial-gradient(circle at 10% 78%, rgba(224, 231, 255, .72), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f0f9ff 52%, #ffffff 100%);
}

.hero-grid {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
  padding-block: 96px;
}

.eyebrow {
  display: inline-flex;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.about-panel h2,
.contact-copy h2 {
  margin: 18px 0 0;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.hero-copy h1 { max-width: 760px; font-size: clamp(46px, 6vw, 74px); }
.lead { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: #475569; font-size: 14px; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row b { color: var(--blue); }

.hero-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .12);
}
.hero-card-inner { padding: 34px; border-radius: 24px; background: white; }
.card-label { color: #94a3b8; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-card h2 { margin: 12px 0 0; font-size: 32px; letter-spacing: -.03em; }
.steps { display: grid; gap: 12px; margin-top: 28px; }
.step { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.step span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--blue); color: white; font-size: 12px; font-weight: 800; }

.next-step { margin-top: 20px; padding: 20px; border-radius: 18px; background: var(--blue); color: white; }
.next-step small { display: block; color: #d7f1ff; }
.next-step strong { display: block; margin-top: 5px; }
.next-step button { margin-top: 12px; padding: 0; border: 0; background: transparent; color: white; font-weight: 800; }

.section { padding-block: 92px; }
.split-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-panel { padding: 38px; border-radius: 28px; background: linear-gradient(135deg, #e0f2fe, #eef2ff); }
.about-panel h2,
.contact-copy h2 { font-size: clamp(36px, 4vw, 52px); }
.about-panel p,
.about-copy p,
.section-heading p,
.contact-copy p { color: var(--muted); font-size: 18px; line-height: 1.75; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.check-grid span { display: flex; gap: 10px; font-weight: 650; }
.check-grid b { color: var(--blue); }

.services-section { background: white; }
.section-heading { max-width: 760px; margin: 0 auto; text-align: center; }
.section-heading.left { margin: 0; text-align: left; }
.section-heading h2 { font-size: clamp(38px, 4.5vw, 56px); }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.service-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: #bae6fd; box-shadow: 0 22px 50px rgba(15, 23, 42, .09); }
.service-topline { display: flex; align-items: center; justify-content: space-between; }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--blue-soft); color: var(--blue-dark); font-size: 24px; }
.service-number { color: #cbd5e1; font-size: 12px; font-weight: 800; }
.service-card h3 { margin: 28px 0 0; font-size: 22px; }
.service-card .service-season-subtitle { margin: 6px 0 0; color: #475569; font-size: 14px; font-weight: 750; line-height: 1.4; }
.service-card p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; }
.service-card button { margin-top: auto; padding: 22px 0 0; border: 0; background: transparent; color: var(--blue-dark); font-weight: 800; text-align: left; }

.why-section { background: #0f172a; color: white; }
.eyebrow.light { color: #7dd3fc; }
.why-section .section-heading h2 { color: #fff; }
.why-section .section-heading p { color: #cbd5e1; }
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.reason-card { min-height: 235px; padding: 26px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; background: rgba(255, 255, 255, .045); }
.reason-number { color: #7dd3fc; font-size: 12px; font-weight: 800; }
.reason-check { width: 42px; height: 42px; display: grid; place-items: center; margin-top: 34px; border-radius: 14px; background: var(--blue); font-weight: 900; }
.reason-card h3 { margin: 22px 0 0; font-size: 18px; line-height: 1.5; }

.contact-section { background: linear-gradient(135deg, #e0f2fe, #ffffff 48%, #eef2ff); }
.contact-shell { max-width: 980px; padding: 40px; border: 1px solid rgba(255, 255, 255, .95); border-radius: 30px; background: rgba(255, 255, 255, .84); box-shadow: 0 22px 60px rgba(15, 23, 42, .08); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 38px; align-items: center; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-details { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--soft); }
.detail { margin-bottom: 22px; }
.detail:last-child { margin-bottom: 0; }
.detail small { display: block; margin-bottom: 5px; color: var(--muted); }
.detail a,
.detail strong { font-size: 18px; line-height: 1.55; }
.detail a { color: var(--blue-dark); font-weight: 750; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 14px; }


/* Desktop safeguard: an open mobile menu must never remain visible after the header switches layouts. */
@media (min-width: 1081px) {
  .mobile-nav,
  .mobile-nav.open {
    display: none !important;
  }
}

@media (max-width: 1080px) {
  .desktop-nav,
  .nav-actions { display: none; }
  .menu-button { display: grid; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero-card { max-width: 700px; }
  .service-grid,
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .section { padding-block: 72px; }
  .hero-grid { gap: 44px; padding-block: 72px; }
  .split-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .contact-shell { padding: 28px; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .nav-row { min-height: 70px; }
  .brand strong { font-size: 12px; }
  .hero-grid { padding-block: 54px; }
  .hero-copy h1 { font-size: 42px; }
  .lead { font-size: 17px; }
  .hero-actions,
  .contact-actions { display: grid; }
  .button { width: 100%; }
  .trust-row { display: grid; gap: 12px; }
  .hero-card-inner { padding: 22px; }
  .hero-card h2 { font-size: 27px; }
  .service-grid,
  .reason-grid,
  .check-grid { grid-template-columns: 1fr; }
  .contact-shell { padding: 22px; }
  .footer-row { min-height: auto; flex-direction: column; justify-content: center; padding-block: 22px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* Keep the browser scrollbar on the right in both languages.
   Only the website content switches direction. */
html,
body {
  direction: ltr;
}

.site-shell[dir="rtl"] {
  direction: rtl;
}

.site-shell[dir="ltr"] {
  direction: ltr;
}








/* Opening language-selection screen */
.language-gate {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 12% 18%, rgba(186, 230, 253, .82), transparent 28%),
    radial-gradient(circle at 88% 84%, rgba(224, 231, 255, .85), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #f8fafc 100%);
  direction: ltr;
}

.language-gate-decoration {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, .12);
  pointer-events: none;
}

.decoration-one {
  width: 380px;
  height: 380px;
  top: -190px;
  right: -115px;
}

.decoration-two {
  width: 280px;
  height: 280px;
  bottom: -140px;
  left: -80px;
}

.language-gate-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 36px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .13);
  backdrop-filter: blur(18px);
}

.language-gate-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  text-align: left;
}

.language-gate-mark {
  width: 68px;
  height: 68px;
  border-radius: 21px;
  font-size: 20px;
}

.language-gate-brand-copy strong {
  display: block;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.045em;
  text-transform: none;
}

.language-gate-brand-copy small {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .34em;
}

.language-gate-instruction {
  min-height: 34px;
  display: grid;
  place-items: center;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
}



.rotating-instruction {
  display: block;
  width: 100%;
  text-align: center;
  animation: instruction-fade-in .45s ease both;
}

.rotating-instruction[lang="ar"] {
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
}

@keyframes instruction-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotating-instruction {
    animation: none;
  }
}

.language-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.language-option {
  min-width: 0;
}

.language-option h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -.025em;
  text-align: center;
}

.language-option[dir="rtl"] h2 {
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
  text-align: center;
}

.language-choice {
  position: relative;
  width: 100%;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: white;
  color: var(--ink);
  text-align: center;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.language-choice:hover {
  transform: translateY(-5px);
  border-color: #7dd3fc;
  box-shadow: 0 22px 46px rgba(15, 23, 42, .1);
}

.language-choice:focus-visible {
  outline: 3px solid rgba(2, 132, 199, .24);
  outline-offset: 3px;
}

.language-code {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  direction: ltr;
}

.language-choice-copy {
  display: block;
  text-align: center;
}

.language-choice-copy strong {
  display: block;
  font-size: 27px;
  line-height: 1.15;
}

.language-choice-copy small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.language-choice-arrow {
  display: block;
  color: var(--blue-dark);
  font-size: 25px;
  line-height: 1;
}

.language-option[dir="rtl"] .language-choice {
  text-align: center;
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
}

.language-gate-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 14px;
}

.language-gate-contact a:hover {
  color: var(--blue-dark);
}

@media (max-width: 850px) {
  .language-gate-panel {
    padding: 36px 28px;
  }

  .language-gate-brand-copy strong {
    font-size: clamp(34px, 7vw, 52px);
  }

  .language-gate-instruction {
    width: 100%;
    margin: 24px auto 0;
    padding-inline: 0;
    justify-self: center;
  }

  .rotating-instruction {
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  .language-choice-grid {
    grid-template-columns: 1fr;
  }

  .language-option h2 {
    margin-bottom: 10px;
  }

  .language-choice {
    min-height: 126px;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr;
  }

  .language-choice-copy {
    grid-column: auto;
    align-self: center;
  }

  .language-choice-arrow {
    align-self: center;
  }
}

@media (max-width: 520px) {
  .language-gate {
    padding: 18px 12px;
  }

  .language-gate-panel {
    padding: 28px 18px;
    border-radius: 27px;
  }

  .language-gate-brand {
    gap: 13px;
  }

  .language-gate-mark {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    font-size: 16px;
  }

  .language-gate-brand-copy strong {
    font-size: 33px;
  }

  .language-gate-brand-copy small {
    font-size: 11px;
  }

  .language-gate-instruction {
    margin: 18px auto 0;
    font-size: 14px;
  }

  .language-choice-grid {
    gap: 18px;
    margin-top: 34px;
  }

  .language-option h2 {
    font-size: 26px;
  }

  .language-choice {
    padding: 18px;
  }

  .language-choice-copy strong {
    font-size: 22px;
  }

  .language-gate-contact {
    display: grid;
    gap: 6px;
    text-align: center;
  }

  .language-gate-contact > span {
    display: none;
  }
}


/* Keep the header in the same physical position in every language. */
.site-header,
.site-header .nav-row,
.site-header .desktop-nav,
.site-header .nav-actions,
.site-header .header-button-stack,
.site-header .mobile-nav,
.site-header .mobile-header-actions {
  direction: ltr;
}

.site-header .brand {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.site-header .desktop-nav button,
.site-header .mobile-nav button,
.site-header .mobile-nav a,
.site-header .header-button-stack .button {
  unicode-bidi: plaintext;
}

.site-shell[dir="rtl"] .site-header .brand {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.site-shell[dir="rtl"] .site-header .desktop-nav,
.site-shell[dir="rtl"] .site-header .nav-actions {
  flex-direction: row;
}

.site-shell[dir="rtl"] .site-header .mobile-nav button,
.site-shell[dir="rtl"] .site-header .mobile-nav a {
  text-align: left;
}


/* Compact, explicit language selector. */
.header-button-stack {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 148px;
}

.header-button-stack > .button {
  width: 100%;
  min-height: 36px;
  padding-inline: 14px;
}

.language-menu-wrap {
  position: relative;
  width: 100%;
}

.language-menu-trigger {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: white;
  color: var(--blue-dark);
  list-style: none;
  transition:
    border-color .18s ease,
    background .18s ease,
    transform .18s ease;
}

.language-menu-trigger:hover,
.language-menu-wrap[open] > .language-menu-trigger {
  border-color: #7dd3fc;
  background: #f0f9ff;
}

.language-menu-trigger:hover {
  transform: translateY(-1px);
}

.language-menu-trigger::-webkit-details-marker { display: none; }
.language-menu-symbol { font-size: 15px; line-height: 1; }
.language-menu-trigger strong { font-size: 11px; letter-spacing: .08em; }
.language-menu-chevron { font-size: 13px; line-height: 1; transition: transform .18s ease; }
.language-menu-wrap[open] .language-menu-chevron { transform: rotate(180deg); }

.language-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 184px;
  display: none;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

.language-menu-wrap[open] > .language-menu-panel {
  display: grid;
}

.language-menu-panel button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #334155;
  font-weight: 750;
  text-align: start;
  white-space: nowrap;
}

.language-menu-panel button:hover,
.language-menu-panel button.active {
  background: #f0f9ff;
  color: var(--blue-dark);
}

.language-selected-mark {
  color: var(--blue);
  direction: ltr;
}

.mobile-header-actions {
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.mobile-header-actions > .button,
.mobile-header-actions .language-menu-trigger {
  width: 100%;
}

.mobile-language-menu .language-menu-panel {
  position: static;
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  box-shadow: none;
}

@media (max-width: 1080px) {
  .header-button-stack .language-menu-panel {
    display: none;
  }
}


/* Keep every language header in the same physical positions. */
.site-shell[dir="rtl"] .site-header,
.site-shell[dir="rtl"] .site-header .nav-row,
.site-shell[dir="rtl"] .site-header .desktop-nav,
.site-shell[dir="rtl"] .site-header .nav-actions,
.site-shell[dir="rtl"] .site-header .header-button-stack,
.site-shell[dir="rtl"] .site-header .mobile-nav,
.site-shell[dir="rtl"] .site-header .mobile-header-actions {
  direction: ltr;
}

.site-shell[dir="rtl"] .site-header .brand {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.site-shell[dir="rtl"] .site-header .desktop-nav,
.site-shell[dir="rtl"] .site-header .nav-actions {
  flex-direction: row;
}

.site-shell[dir="rtl"] .site-header .language-menu-panel {
  direction: ltr;
}

.site-shell[dir="rtl"] .site-header .language-menu-panel button[dir="rtl"] {
  direction: rtl;
  text-align: right;
}




/* Keep the language label visible to the right of Log In. */
.nav-actions > .language-menu-wrap {
  flex: 0 0 auto;
  width: 76px;
}

.nav-actions > .language-menu-wrap .language-menu-trigger {
  width: 76px;
  min-height: 42px;
  border-radius: 12px;
}

.nav-actions > .language-menu-wrap .language-menu-panel {
  left: auto;
  right: 0;
}

/* Keep language choices centered and stacked vertically. */
.language-menu-panel {
  justify-items: stretch;
}

.language-menu-panel button {
  position: relative;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.language-menu-panel button > span:first-child {
  width: 100%;
  text-align: center;
}

.language-menu-panel .language-selected-mark {
  position: absolute;
  right: 13px;
}

.language-menu-panel button[dir="rtl"] {
  direction: rtl;
  text-align: center;
}

.language-menu-panel button[dir="rtl"] > span:first-child {
  text-align: center;
}

.site-shell[dir="rtl"] .site-header .language-menu-panel button[dir="rtl"] {
  text-align: center;
}

/* Mobile: keep the language button on the Home row, aligned far right. */
.mobile-home-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf2f7;
}

.mobile-home-row > button[data-go="home"] {
  width: 100%;
  border-bottom: 0;
}

.mobile-home-row > .mobile-language-menu {
  width: 76px;
}

.mobile-home-row > .mobile-language-menu .language-menu-trigger {
  width: 76px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #bae6fd;
  border-radius: 12px;
}

.mobile-home-row > .mobile-language-menu .language-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 90;
  width: 184px;
  min-width: 184px;
  margin-top: 0;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

.mobile-header-actions {
  display: block;
  padding: 12px 0 0;
}

.mobile-header-actions > .button {
  width: 100%;
}

@media (max-width: 460px) {
  .mobile-home-row {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  .mobile-home-row > .mobile-language-menu,
  .mobile-home-row > .mobile-language-menu .language-menu-trigger {
    width: 70px;
  }

  .mobile-home-row > .mobile-language-menu .language-menu-trigger {
    min-height: 40px;
  }
}


/* Hindi language typography. */
.rotating-instruction[lang="hi"],
.language-option[lang="hi"],
.language-menu-panel button[lang="hi"] {
  font-family: "Nirmala UI", "Mangal", Arial, sans-serif;
}


/* Keep the rotating language prompt exactly centered on tablets. */
@media (min-width: 521px) and (max-width: 850px) {
  .language-gate-instruction {
    width: 100%;
    margin: 24px auto 0;
    padding: 0;
    justify-self: center;
    text-align: center;
  }

  .rotating-instruction {
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
}


/* Automatic contact form */
.contact-shell {
  max-width: 1180px;
}

.contact-grid-with-form {
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  gap: 44px;
  align-items: start;
}

.contact-info-stack {
  min-width: 0;
}

.contact-info-stack .contact-details {
  margin-top: 28px;
}

.contact-form-card {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, .08);
}

.contact-form-heading h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.contact-form-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-form {
  position: relative;
  margin-top: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input,
.form-field select {
  min-height: 50px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #94a3b8;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, .12);
}

.form-required-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-submit-row {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.contact-submit {
  justify-self: start;
  min-width: 170px;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: .72;
}

.form-status {
  min-height: 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.form-status.success {
  color: #166534;
}

.form-status.error {
  color: #b91c1c;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.site-shell[dir="rtl"] .contact-form-card,
.site-shell[dir="rtl"] .form-field {
  text-align: right;
}

.site-shell[dir="rtl"] .contact-submit {
  justify-self: start;
}

@media (max-width: 900px) {
  .contact-grid-with-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .contact-form-card {
    padding: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }

  .contact-submit {
    width: 100%;
  }
}


/* Keep contact-form fields in the same physical positions in every language. */
.contact-form .form-grid {
  direction: ltr;
}

.site-shell[dir="rtl"] .contact-form .form-field {
  direction: rtl;
  text-align: right;
}

/* Phone numbers always use the English-page alignment and number direction. */
.contact-form .phone-field,
.site-shell[dir="rtl"] .contact-form .phone-field {
  direction: ltr;
  text-align: left;
}

.contact-form .phone-field > span,
.contact-form .phone-field input,
.contact-form .phone-field input::placeholder {
  direction: ltr;
  text-align: left;
}

.contact-phone-value {
  display: block;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}


/* Force the business phone block to match the English layout in RTL pages. */
.contact-details .phone-detail,
.site-shell[dir="rtl"] .contact-details .phone-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  direction: ltr !important;
  text-align: left !important;
}

.contact-details .phone-detail small,
.site-shell[dir="rtl"] .contact-details .phone-detail small {
  display: block;
  width: 100%;
  direction: rtl;
  text-align: left !important;
}

.contact-details .contact-phone-value,
.site-shell[dir="rtl"] .contact-details .contact-phone-value {
  display: inline-block;
  width: auto;
  direction: ltr !important;
  unicode-bidi: isolate-override !important;
  text-align: left !important;
  white-space: nowrap;
}

.contact-details .contact-phone-value bdi,
.site-shell[dir="rtl"] .contact-details .contact-phone-value bdi {
  display: inline-block;
  direction: ltr !important;
  unicode-bidi: isolate-override !important;
  text-align: left !important;
}


/* Arabic contact card: place the phone block on the right above the email. */
.site-shell[dir="rtl"] .contact-details .phone-detail {
  align-items: flex-end !important;
  direction: rtl !important;
  text-align: right !important;
}

.site-shell[dir="rtl"] .contact-details .phone-detail small {
  direction: rtl !important;
  text-align: right !important;
}

.site-shell[dir="rtl"] .contact-details .contact-phone-value {
  align-self: flex-end !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left !important;
}

.site-shell[dir="rtl"] .contact-details .contact-phone-value bdi {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left !important;
}


/* Arabic phone block: support both the React app and standalone preview. */
.site-shell[dir="rtl"] .contact-details .phone-detail,
#app[dir="rtl"] .contact-details .phone-detail {
  display: flex !important;
  width: 100% !important;
  flex-direction: column !important;
  align-items: stretch !important;
  direction: rtl !important;
  text-align: right !important;
}

.site-shell[dir="rtl"] .contact-details .phone-detail small,
#app[dir="rtl"] .contact-details .phone-detail small {
  display: block !important;
  width: 100% !important;
  direction: rtl !important;
  text-align: right !important;
}

.site-shell[dir="rtl"] .contact-details .phone-detail .contact-phone-value,
#app[dir="rtl"] .contact-details .phone-detail .contact-phone-value {
  display: block !important;
  width: 100% !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.site-shell[dir="rtl"] .contact-details .phone-detail .contact-phone-value bdi,
#app[dir="rtl"] .contact-details .phone-detail .contact-phone-value bdi {
  display: inline-block !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
}
