/* ============================================================
   DeepCore Services — RTL / Arabic Stylesheet
   Font: Scheherazade New
   Direction: RTL
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Scheherazade+New:wght@400;700&display=swap');

/* BASE RTL */
html[dir="rtl"],
html[lang="ar"],
body.lang-ar {
    direction: rtl;
}

body.lang-ar {
    font-family: 'Scheherazade New', serif;
    letter-spacing: 0;
    text-align: right;
}

body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4,
body.lang-ar h5,
body.lang-ar h6,
body.lang-ar p,
body.lang-ar a,
body.lang-ar li,
body.lang-ar span,
body.lang-ar button,
body.lang-ar input,
body.lang-ar textarea,
body.lang-ar select,
body.lang-ar label {
    font-family: 'Scheherazade New', serif;
    letter-spacing: 0;
}

/* LANGUAGE SWITCHER */
body.lang-ar .lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 3px 4px;
    font-size: 1rem;
    font-weight: 400;
}

body.lang-ar .lang-switcher a {
    padding: 3px 9px;
    border-radius: 10px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: all .2s;
    font-size: 1rem;
    font-weight: 400;
}

body.lang-ar .lang-switcher a.active,
body.lang-ar .lang-switcher a:hover {
    background: #F5A31A;
    color: #111;
}

/* HEADER / NAV */
body.lang-ar .header-inner,
body.lang-ar .header-actions {
    flex-direction: row-reverse;
}

body.lang-ar .primary-nav ul {
    flex-direction: row-reverse;
    gap: 0.1rem;
}

body.lang-ar .primary-nav .nav-link {
    font-size: 1rem;
}

/* HERO */
body.lang-ar .hero-body {
    display: flex;
    flex-direction: row-reverse;
    text-align: right;
}

body.lang-ar .hero-left {
    order: 2;
    text-align: right;
}

body.lang-ar .hero-right {
    order: 1;
    margin-left: 0;
    margin-right: auto;
    text-align: right;
}

body.lang-ar .hero-geo {
    display: none;
}

body.lang-ar .hero-actions,
body.lang-ar .hero-stats {
    flex-direction: row-reverse;
}

body.lang-ar .hero-actions {
    justify-content: flex-start;
}

body.lang-ar .hero-headline {
    text-align: right;
    direction: rtl;
}

body.lang-ar .hero-headline .hero-line {
    display: block;
    font-family: 'Scheherazade New', serif;
    font-weight: 700;
    line-height: 1;
    padding-top: 0.08em;
    padding-bottom: 0.08em;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

body.lang-ar .hero-line-2 {
    font-size: clamp(3.5rem, 10vw, 8rem);
    color: #F5A31A;
    line-height: 1;
}

body.lang-ar .hero-line-4 {
    color: #F5A31A;
    -webkit-text-fill-color: #F5A31A;
}

/* SERVICE PILLS */
body.lang-ar .service-pill {
    flex-direction: row-reverse;
    text-align: right;
}

body.lang-ar .pill-arrow {
    transform: rotate(180deg);
}

/* SECTION HEADERS */
body.lang-ar .services-section .section-header-row,
body.lang-ar .equipment-section .section-header-row {
    direction: rtl;
    text-align: right;
    align-items: flex-end;
}

body.lang-ar .section-title,
body.lang-ar .section-label,
body.lang-ar .section-desc {
    text-align: right;
}

body.lang-ar .section-desc {
    font-size: 1.35rem;
    line-height: 2.15;
    font-weight: 700;
    color: #4b5062;
}

/* PILLARS / SERVICES */
body.lang-ar .pillar-title,
body.lang-ar .pillar-desc,
body.lang-ar .pillar-body {
    text-align: right;
}

body.lang-ar .pillar-link::after {
    content: ' ←';
}

body.lang-ar .pillar-link::before {
    content: none;
}

/* Equal height service cards */
.pillars-grid {
    align-items: stretch;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pillar-body {
    flex: 1;
}

.pillar-cta {
    margin-top: auto;
}

/* ABOUT */
body.lang-ar .legacy-grid,
body.lang-ar .legacy-stats {
    flex-direction: row-reverse;
}

body.lang-ar .legacy-stat {
    text-align: right;
}

/* EQUIPMENT */
body.lang-ar .eq-info {
    text-align: right;
}

body.lang-ar .equipment-split {
    flex-direction: row-reverse;
}

body.lang-ar .equipment-split-content {
    text-align: right;
}

body.lang-ar .equipment-split-list {
    padding-right: 0;
}

body.lang-ar .equipment-split-list li {
    padding-left: 0;
    padding-right: 1.4rem;
    text-align: right;
}

body.lang-ar .equipment-split-list li::before {
    left: auto;
    right: 0;
}

/* VISION */
body.lang-ar .vision-inner,
body.lang-ar .vision-actions {
    flex-direction: row-reverse;
}

body.lang-ar .vision-stat {
    flex-direction: row-reverse;
    text-align: right;
}

/* PROJECTS */
body.lang-ar .project-body {
    text-align: right;
}

body.lang-ar .project-tags {
    flex-direction: row-reverse;
}

body.lang-ar .project-points {
    padding-right: 0;
    padding-left: 0;
}

body.lang-ar .project-points li {
    padding-left: 0;
    padding-right: 18px;
    text-align: right;
}

body.lang-ar .project-points li::before {
    left: auto;
    right: 0;
}

/* CONTACT */
body.lang-ar .contact-grid {
    flex-direction: row-reverse;
}

body.lang-ar .contact-title,
body.lang-ar .contact-sub,
body.lang-ar .contact-form {
    text-align: right;
}

body.lang-ar .contact-items {
    align-items: flex-end;
}

body.lang-ar .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* WP FORMS RTL */
body.lang-ar .wpforms-form,
html[dir="rtl"] .wpforms-container {
    direction: rtl;
    text-align: right;
}

body.lang-ar .wpforms-form *,
html[dir="rtl"] .wpforms-container * {
    text-align: right;
    unicode-bidi: normal;
}

body.lang-ar .wpforms-form label,
html[dir="rtl"] .wpforms-field-label {
    display: block;
    text-align: right;
}

body.lang-ar .wpforms-form input,
body.lang-ar .wpforms-form textarea,
body.lang-ar .wpforms-form select,
html[dir="rtl"] .wpforms-field input,
html[dir="rtl"] .wpforms-field textarea,
html[dir="rtl"] .wpforms-field select {
    direction: rtl;
    text-align: right;
    padding: 15px 18px;
}

body.lang-ar .wpforms-form input::placeholder,
body.lang-ar .wpforms-form textarea::placeholder,
html[dir="rtl"] .wpforms-field input::placeholder,
html[dir="rtl"] .wpforms-field textarea::placeholder {
    direction: rtl;
    text-align: right;
}

body.lang-ar .wpforms-field {
    margin-bottom: 18px;
}

body.lang-ar .wpforms-field-row {
    display: flex;
    flex-direction: row-reverse;
}

body.lang-ar .wpforms-field-layout {
    direction: rtl;
}

/* TICKER */
body.lang-ar .ticker-strip {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

body.lang-ar .ticker-track {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
}

body.lang-ar .ticker-item {
    line-height: 34px;
    padding: 0 16px;
    margin: 0;
}

/* STATS */
body.lang-ar .stat-item {
    text-align: center;
}

/* FOOTER */
body.lang-ar .footer-top {
    direction: rtl;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

body.lang-ar .footer-brand,
body.lang-ar .footer-col {
    text-align: right;
}

body.lang-ar .footer-links {
    direction: rtl;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 120px;
}

body.lang-ar .footer-col ul li a,
body.lang-ar .footer-contact-list li a {
    justify-content: flex-start;
    text-align: right;
}

body.lang-ar .footer-bottom {
    direction: rtl;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body.lang-ar .hero-body {
        flex-direction: column;
    }

    body.lang-ar .hero-left {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    body.lang-ar .hero-headline {
        padding-left: 0.5rem;
    }

    body.lang-ar .equipment-split {
        flex-direction: column;
    }

    body.lang-ar .hero-line-2 {
        line-height: 1;
    }

    body.lang-ar .footer-top,
    body.lang-ar .footer-bottom {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }

    body.lang-ar .footer-links {
        flex-direction: column;
        gap: 25px;
    }
}

/* Arabic section header button LEFT side fix */
body.lang-ar .section-header-row {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
}

body.lang-ar .section-header-row > div {
    flex: 1;
    text-align: right;
}

body.lang-ar .section-header-row > .btn,
body.lang-ar .section-header-row > a.btn {
    margin-right: auto;
    margin-left: 0;
}
/* Restore Arabic equipment/services button position */
body.lang-ar .services-section .section-header-row,
body.lang-ar .equipment-section .section-header-row {
    display: flex;
    flex-direction: row;
    direction: rtl;
    align-items: flex-end;
}

body.lang-ar .services-section .section-header-row > div,
body.lang-ar .equipment-section .section-header-row > div {
    flex: 1;
    text-align: right;
}

body.lang-ar .services-section .section-header-row .btn,
body.lang-ar .equipment-section .section-header-row .btn {
    margin-right: auto;
    margin-left: 0;
}

/* Restore Arabic section buttons to LEFT side */
body.lang-ar .services-section .section-header-row,
body.lang-ar .equipment-section .section-header-row {
    direction: rtl;
    text-align: right;
    align-items: flex-end;
}

body.lang-ar .services-section .section-header-row > div,
body.lang-ar .equipment-section .section-header-row > div {
    flex: 1;
}

body.lang-ar .services-section .section-header-row > .btn,
body.lang-ar .equipment-section .section-header-row > .btn {
    margin-right: auto;
    margin-left: 0;
}

body.lang-ar .section-header-row {
    direction: rtl;
}

body.lang-ar .section-header-row .btn {
    order: -1;
    margin-right: auto;
    margin-left: 0;
}
