/* ==========================================================================
   SGS Intercools — RTL refinements
   Most layout uses logical properties; these are the Arabic-specific tweaks.
   ========================================================================== */

[dir='rtl'] .sgs-h1,
[dir='rtl'] .sgs-h2,
[dir='rtl'] .sgs-h3,
[dir='rtl'] .sgs-h4,
[dir='rtl'] .sgs-apply-card__title,
[dir='rtl'] .sgs-request-modal__service,
[dir='rtl'] .sgs-request-modal__title,
[dir='rtl'] .sgs-about__badge-value,
[dir='rtl'] .sgs-clients-band__title,
[dir='rtl'] .sgs-partner__name {
    letter-spacing: 0;
    line-height: 1.24;
}

[dir='rtl'] .sgs-h1 {
    line-height: 1.18;
}

[dir='rtl'] .sgs-eyebrow {
    letter-spacing: 0.06em;
    text-transform: none;
}

[dir='rtl'] .sgs-nav__link,
[dir='rtl'] .sgs-footer__title,
[dir='rtl'] .sgs-lang {
    font-style: normal;
    letter-spacing: 0;
}

[dir='rtl'] .sgs-hero__title {
    line-height: 1.2;
}

[dir='rtl'] .sgs-hero__title span {
    display: block;
}

[dir='rtl'] .sgs-hero__lead,
[dir='rtl'] .sgs-sub,
[dir='rtl'] .sgs-clients-band__sub,
[dir='rtl'] .sgs-copy,
[dir='rtl'] .sgs-service-card__text,
[dir='rtl'] .sgs-catalog-card__name,
[dir='rtl'] .sgs-catalog-card__meta,
[dir='rtl'] .sgs-footer__about,
[dir='rtl'] .sgs-footer__link {
    font-stretch: normal;
    letter-spacing: 0;
}

[dir='rtl'] .sgs-btn,
[dir='rtl'] .sgs-tab,
[dir='rtl'] .sgs-chip,
[dir='rtl'] .sgs-filterbar__tab,
[dir='rtl'] .sgs-request-modal__chip {
    letter-spacing: 0;
}

[dir='rtl'] .sgs-request-modal__contact-title {
    letter-spacing: 0;
    text-transform: none;
}

[dir='rtl'] .sgs-request-modal__close:hover {
    transform: rotate(-90deg);
}

[dir='rtl'] .sgs-request-modal__contact a[dir='ltr'] {
    letter-spacing: 0;
}

[dir='rtl'] .sgs-apply-card select.sgs-control {
    background-position: left clamp(18px, 1.5vw, 24px) center;
}

[dir='rtl'] .sgs-request-modal select.sgs-control {
    background-position: left clamp(18px, 1.5vw, 24px) center;
}

[dir='rtl'] .sgs-filterbar__select {
    background-position: left 0.85em center;
}

[dir='rtl'] .sgs-gallery-arrow svg {
    transform: scaleX(-1);
}

/* Partner detail gallery: the arrows keep their logical sides, only the
   chevrons point the other way. */
[dir='rtl'] .sgs-partner-gallery__arrow svg {
    transform: scaleX(-1);
}

[dir='rtl'] .sgs-gallery-thumb__tag {
    letter-spacing: 0;
    text-transform: none;
}

[dir='rtl'] .sgs-upload__input::file-selector-button {
    letter-spacing: 0;
}

[dir='rtl'] .sgs-icon-flip {
    transform: scaleX(-1);
}

[dir='rtl'] .sgs-footer__contact a,
[dir='rtl'] .sgs-footer__contact address {
    letter-spacing: 0;
}

[dir='rtl'] .sgs-service-card__media {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

[dir='rtl'] .sgs-about__frame img {
    object-position: center 60%;
}

[dir='rtl'] .sgs-breadcrumb li + li::before {
    content: '/';
}

[dir='rtl'] .sgs-marquee__track {
    animation-direction: reverse;
}

[dir='rtl'] .sgs-clients-band__line {
    background: linear-gradient(270deg, rgba(8, 71, 109, 0), rgba(8, 71, 109, 0.42));
}

[dir='rtl'] [dir='rtl'] .sgs-clients-band__line:last-child {
    background: linear-gradient(90deg, rgba(8, 71, 109, 0), rgba(8, 71, 109, 0.42));
}

/* Numbers stay LTR inside Arabic copy */
[dir='rtl'] .sgs-num,
[dir='rtl'] .sgs-hero__stat-value,
[dir='rtl'] .sgs-about__badge-value {
    direction: ltr;
    unicode-bidi: isolate;
}
