/* Translated landing pages (/ar/, /es/, /tr/): extras on top of styles.css */
html[lang=ar] body { font-family: "Cairo", "Inter", system-ui, sans-serif; line-height: 1.75; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3, html[lang=ar] .brand__name, html[lang=ar] .quiz__title { font-family: "Cairo", "Outfit", sans-serif; letter-spacing: 0; }
.brand, .brand__name { direction: ltr; }
.tel, bdi.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* header language menu already styled in styles.css (.langsel); keep it on the trailing edge */
.lp-nav-end { display: flex; align-items: center; gap: 4px; }
[dir=rtl] .langsel { margin-left: 0; margin-right: 16px; }
[dir=rtl] .langsel select { padding: 10px 14px 10px 32px; background-position: left 12px center; }
@media (max-width: 800px) { [dir=rtl] .langsel { margin-right: auto; margin-left: 10px; } }

/* hero card (replaces the English estimator) */
.pcard { min-height: 0; }
.pcard__list { display: grid; gap: 14px; margin-top: 18px; }
.pcard__row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.pcard__ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); }
.pcard__ic .ic { width: 22px; height: 22px; }
.pcard__row b { display: block; font-size: 16px; }
.pcard__row span { color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.pcard__cta { margin-top: 18px; }

/* services tiles + videos */
.hub { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub a.tile { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.hub a.tile:hover { border-color: var(--teal-bright); box-shadow: var(--shadow); }
.hub .tile b { display: block; font-size: 17px; margin-bottom: 4px; }
.hub .tile span { color: var(--text-2); font-size: 14.5px; line-height: 1.55; display: block; }
.hub .tile em { display: block; font-style: normal; color: var(--teal); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
html[lang=ar] .hub .tile em { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.vh { margin: 40px 0 18px; font-size: clamp(22px, 3vw, 28px); }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vcard { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.vcard video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
.vcard figcaption { padding: 12px 16px 16px; }
.vcard em { display: block; font-style: normal; color: var(--teal); font-weight: 700; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }
html[lang=ar] .vcard em { letter-spacing: 0; text-transform: none; }
.vcard b { display: block; margin: 2px 0 4px; }
.vcard span { display: block; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.svcmore { margin-top: 26px; text-align: center; }
@media (max-width: 900px) { .hub, .vgrid { grid-template-columns: 1fr; } }

/* animated cards in right-to-left pages: the dot travels right to left */
[dir=rtl] .wf__link::after { transform-origin: right; }
[dir=rtl] .wf__link::before { left: auto; right: 0; }
[dir=rtl] .wf__link.is-moving::before { animation-name: travelRtl; }
@keyframes travelRtl { 0% { right: 0; opacity: 1; } 90% { opacity: 1; } 100% { right: calc(100% - 11px); opacity: 0; } }
[dir=rtl] .wf-log li time { margin-left: 0; margin-right: auto; padding-left: 0; padding-right: 8px; }
@media (max-width: 720px) { [dir=rtl] .wf__link { margin: 2px 22px 2px 0; } }

/* showcase header and process */
.showcase__head .section__sub a { white-space: nowrap; }
.howline__label { white-space: normal; }

/* forms in RTL */
[dir=rtl] .field label, [dir=rtl] .form legend { text-align: right; }
.lp-fine { color: var(--text-3); font-size: 13.5px; line-height: 1.55; }
.check small { display: block; margin-top: 6px; color: var(--text-3); direction: ltr; text-align: left; }
.check small[hidden] { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact__faq details p { margin-top: 8px; }
.nav__links a { white-space: nowrap; }
/* hide off-screen helpers without pushing the page wider (right-to-left pages scroll the other way) */
.skip { left: auto; right: auto; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; padding: 0; }
.skip:focus { clip: auto; width: auto; height: auto; overflow: visible; padding: 10px 16px; inset-inline-start: 16px; }
.hp { left: auto; right: auto; clip: rect(0 0 0 0); }

/* service groups: always open on wide screens, tap-to-open lists on phones */
.svcgrp { margin: 0 0 14px; }
.svcgrp > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); font-weight: 600; font-size: 17px; min-height: 52px; }
.svcgrp > summary::-webkit-details-marker { display: none; }
.svcgrp > summary small { color: var(--text-3); font-weight: 500; }
.svcgrp > summary .ic { width: 20px; height: 20px; color: var(--teal); transition: transform .2s; flex: none; }
.svcgrp[open] > summary .ic { transform: rotate(45deg); }
.svcgrp[open] > summary { margin-bottom: 14px; }
.svcgrp--vid { margin-top: 22px; }
@media (min-width: 901px) {
  .svcgrp > summary { pointer-events: none; border: 0; background: none; padding: 0 0 4px; font-size: 20px; }
  .svcgrp > summary .ic { display: none; }
  .svcgrp--vid > summary { font-family: var(--display); font-size: clamp(22px, 3vw, 28px); margin-top: 18px; }
}
