/*
Theme Name: RN International Contracting
Theme URI: https://rncontractingltd.com
Author: Zendipit
Author URI: https://zendipit.com
Description: Premium bilingual-ready construction & contracting WordPress theme for RN International Contracting Limited Company.
Version: 1.9.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: rn-contracting
Tags: custom-logo, custom-menu, featured-images, translation-ready, rtl-language-support, block-styles, wide-blocks
*/
:root{--rn-navy:#082846;--rn-navy2:#041c31;--rn-navy3:#0a3558;--rn-blue:#0f4c81;--rn-steel:#8393a2;--rn-gold:#f4b81f;--rn-white:#fff;--rn-bg:#f6f8fb;--rn-text:#0b1d2f;--rn-muted:#66727f;--rn-border:#dbe2e9;--rn-shadow:0 18px 46px rgba(4,28,49,.11);--rn-radius:20px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--rn-text);background:#fff;line-height:1.58;-webkit-font-smoothing:antialiased}a{text-decoration:none;color:inherit}img{max-width:100%;height:auto;display:block}.container{width:min(1180px,92%);margin:auto}.section{padding:82px 0}.section-kicker{font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;font-weight:900;color:var(--rn-gold)}.section-title{font-size:clamp(2rem,4vw,3.45rem);line-height:1.06;margin:.42rem 0 1.05rem;font-weight:900;letter-spacing:-.025em}.section-copy{font-size:1.06rem;color:var(--rn-muted);max-width:760px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.65rem;padding:14px 20px;border-radius:9px;font-weight:800;transition:.22s;border:1px solid transparent}.btn-primary{background:var(--rn-gold);color:#0b2137}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(244,184,31,.28)}.btn-outline{border-color:rgba(255,255,255,.52);color:#fff;background:rgba(255,255,255,.035)}.btn-outline:hover{background:#fff;color:var(--rn-navy)}
.topbar{background:var(--rn-navy2);color:#e8eef4;font-size:.84rem}.topbar .container{display:flex;justify-content:space-between;gap:16px;padding:7px 0}.topbar-left,.topbar-right{display:flex;gap:18px;align-items:center}.site-header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.985);backdrop-filter:blur(14px);box-shadow:0 5px 24px rgba(4,28,49,.07)}.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:80px;gap:24px}.site-branding{display:flex;align-items:center;flex:0 0 auto}.site-branding img{width:228px;max-height:60px;object-fit:contain}.main-nav{display:flex;align-items:center;gap:24px;font-weight:750}.main-nav a{padding:28px 0;position:relative}.main-nav a:after{content:"";position:absolute;left:0;bottom:16px;width:0;height:3px;border-radius:3px;background:var(--rn-gold);transition:.25s}.main-nav a:hover:after,.main-nav .current-menu-item>a:after{width:100%}.header-actions{display:flex;align-items:center;gap:10px}.lang-switch{font-size:.82rem;border:1px solid var(--rn-border);padding:8px 11px;border-radius:7px;background:#fff}.menu-toggle{display:none;background:none;border:0;font-size:29px;color:var(--rn-navy);padding:7px;line-height:1;cursor:pointer}
.hero{position:relative;min-height:660px;display:flex;align-items:center;background:linear-gradient(90deg,rgba(4,28,49,.97) 0%,rgba(4,28,49,.88) 48%,rgba(4,28,49,.30) 76%,rgba(4,28,49,.15) 100%),var(--hero-image) center/cover no-repeat;color:#fff;overflow:hidden}.hero:after{content:"";position:absolute;inset:auto 0 0;height:6px;background:repeating-linear-gradient(135deg,var(--rn-gold) 0 18px,#0c2033 18px 36px)}.hero-content{position:relative;z-index:2;max-width:700px;padding:88px 0}.hero h1{font-size:clamp(3rem,6vw,5.55rem);line-height:.99;margin:14px 0 22px;font-weight:900;letter-spacing:-.035em}.hero h1 span{color:var(--rn-gold)}.hero p{font-size:1.16rem;max-width:660px;color:#dce7f0}.hero-actions{display:flex;flex-wrap:wrap;gap:13px;margin:28px 0}.trust-row{display:flex;flex-wrap:wrap;gap:24px;margin-top:32px;color:#fff}.trust-item{display:flex;gap:10px;align-items:center;font-weight:750}.trust-dot{width:38px;height:38px;border:2px solid var(--rn-gold);border-radius:50%;display:grid;place-items:center;color:var(--rn-gold);flex:0 0 auto}
.stats{background:linear-gradient(135deg,#061f36,#0b3559);color:#fff}.stats-grid{display:grid;grid-template-columns:1.1fr repeat(4,1fr);gap:16px;align-items:stretch}.stat-intro{padding:26px 10px 26px 0}.stat-intro p{color:#d7e2ec;margin:0;max-width:360px}.stat-card{border:1px solid rgba(255,255,255,.20);border-radius:15px;padding:28px 18px;background:rgba(255,255,255,.045);text-align:center;min-height:168px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}.stat-number{font-size:2.65rem;line-height:1;font-weight:900;color:#fff}.stat-label{margin-top:10px;color:#dce5ed;font-weight:650;line-height:1.35}
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:32px}.service-card{background:#fff;border:1px solid var(--rn-border);border-radius:var(--rn-radius);overflow:hidden;box-shadow:0 10px 32px rgba(5,35,60,.075);transition:.25s}.service-card:hover{transform:translateY(-5px);box-shadow:var(--rn-shadow)}.service-card img{height:210px;width:100%;object-fit:cover;object-position:center}.service-body{padding:24px 24px 26px}.service-icon{width:46px;height:46px;border-radius:12px;background:var(--rn-gold);display:grid;place-items:center;margin-top:-47px;position:relative;border:4px solid #fff;font-weight:900;color:var(--rn-navy);box-shadow:0 5px 15px rgba(4,28,49,.09)}.service-card h3{font-size:1.32rem;margin:18px 0 8px}.service-card p{color:var(--rn-muted);margin:0 0 14px}.learn{color:#bd8300;font-weight:850}
.about-wrap{display:grid;grid-template-columns:1fr 1fr;gap:54px;align-items:center}.about-media{position:relative}.about-media img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:22px;box-shadow:var(--rn-shadow)}.about-badge{position:absolute;right:18px;bottom:18px;background:var(--rn-gold);padding:16px 20px;border-radius:12px;font-weight:900;box-shadow:0 14px 34px rgba(4,28,49,.18)}.ticks{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0}.tick{display:flex;gap:10px;align-items:flex-start}.tick span{color:var(--rn-gold);font-weight:900}
.projects{background:var(--rn-bg)}.projects-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.project-card{background:#fff;border-radius:18px;overflow:hidden;border:1px solid var(--rn-border);box-shadow:0 10px 28px rgba(5,35,60,.06)}.project-card img{height:240px;width:100%;object-fit:cover}.project-body{padding:22px}.project-meta{font-size:.8rem;text-transform:uppercase;letter-spacing:.12em;color:#b57d00;font-weight:850}.project-card h3{margin:8px 0 6px;font-size:1.35rem}.project-card p{color:var(--rn-muted)}
.cta{background:linear-gradient(rgba(4,28,49,.92),rgba(4,28,49,.92)),url('assets/images/hero-default-clean.jpg') center/cover no-repeat;color:#fff}.cta .container{display:flex;justify-content:space-between;align-items:center;gap:30px}.cta h2{font-size:clamp(2.2rem,4vw,3.8rem);line-height:1.06;margin:8px 0}.cta p{max-width:690px;color:#dbe6ef}
.footer{background:#062847;color:#d7e1ea;padding:58px 0 0}.footer-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr 1.25fr;gap:38px}.footer h4{color:var(--rn-gold);text-transform:uppercase;letter-spacing:.08em;font-size:.86rem}.footer-logo img{width:220px;filter:brightness(0) invert(1)}.footer p{color:#c9d5df}.footer ul{list-style:none;padding:0;margin:0}.footer li{margin:9px 0}.footer a:hover{color:#fff}.footer-bottom{margin-top:40px;padding:17px 0;border-top:1px solid rgba(255,255,255,.14);display:flex;justify-content:space-between;gap:20px;font-size:.88rem}.zendipit-credit{font-weight:750;color:#fff}.whatsapp-float{position:fixed;right:22px;bottom:22px;width:52px;height:52px;border-radius:50%;background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 12px 30px rgba(0,0,0,.22);z-index:1000;border:2px solid #fff;transition:.2s}.whatsapp-float:hover{transform:translateY(-2px) scale(1.03)}.whatsapp-float svg{width:27px;height:27px;display:block}.back-top{position:fixed;right:24px;bottom:86px;width:43px;height:43px;border-radius:50%;background:var(--rn-gold);display:grid;place-items:center;font-weight:900;box-shadow:0 10px 28px rgba(0,0,0,.16);z-index:990;color:var(--rn-navy)}.content-area{padding:60px 0}.entry-content{max-width:850px;margin:auto}.wp-block-image img{border-radius:12px}
@media(max-width:980px){.main-nav{display:none;position:absolute;top:80px;left:0;right:0;background:#fff;padding:18px 5%;box-shadow:0 16px 30px rgba(0,0,0,.12);flex-direction:column;align-items:flex-start;gap:3px}.main-nav.open{display:flex}.main-nav a{padding:9px 0;width:100%}.main-nav a:after{display:none}.menu-toggle{display:block}.header-actions .btn{display:none}.stats-grid{grid-template-columns:1fr 1fr}.stat-intro{grid-column:1/-1}.services-grid,.projects-grid{grid-template-columns:1fr 1fr}.about-wrap{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}.cta .container{flex-direction:column;align-items:flex-start}}
@media(max-width:640px){
 body{font-size:16px}.container{width:min(100% - 40px,620px)}.topbar{display:none}.site-header{box-shadow:0 3px 14px rgba(4,28,49,.08)}.header-inner{min-height:82px;gap:10px}.site-branding img{width:192px;max-height:56px}.header-actions{gap:6px}.lang-switch{font-size:.77rem;padding:7px 9px;white-space:nowrap}.menu-toggle{font-size:27px;padding:5px}.main-nav{top:82px;padding:16px 20px 20px}.main-nav a{font-size:1rem;border-bottom:1px solid #edf1f5;padding:10px 0}
 .hero{min-height:auto;background:linear-gradient(180deg,rgba(4,28,49,.96) 0%,rgba(4,28,49,.91) 58%,rgba(4,28,49,.76) 100%),var(--hero-image) 58% center/cover no-repeat}.hero-content{padding:62px 0 72px}.hero h1{font-size:clamp(2.55rem,12vw,3.6rem);line-height:1.02;margin:12px 0 18px}.hero p{font-size:1.03rem;line-height:1.65}.hero-actions{display:grid;grid-template-columns:1fr;gap:12px;margin:24px 0}.hero-actions .btn{width:100%;min-height:52px}.trust-row{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px;margin-top:28px}.trust-item{font-size:.96rem;line-height:1.3}.trust-item:last-child{grid-column:1/-1}.trust-dot{width:34px;height:34px}
 .section{padding:58px 0}.section-title{font-size:clamp(2rem,9vw,2.65rem);line-height:1.08}.section-copy{font-size:1rem;line-height:1.65}.stats{padding:54px 0}.stats-grid{grid-template-columns:1fr 1fr;gap:12px}.stat-intro{grid-column:1/-1;padding:0 0 18px}.stat-intro .section-title{font-size:2.55rem}.stat-card{min-height:136px;padding:20px 12px}.stat-number{font-size:2rem}.stat-label{font-size:.88rem}.services-grid{grid-template-columns:1fr;gap:18px;margin-top:26px}.service-card{border-radius:18px}.service-card img{height:205px;object-fit:cover}.service-body{padding:22px}.service-icon{width:44px;height:44px;margin-top:-45px}.service-card h3{font-size:1.3rem;margin-top:17px}.service-card p{font-size:1rem;line-height:1.55}
 .about-wrap{gap:28px}.about-media img{aspect-ratio:16/11;border-radius:18px}.about-badge{right:12px;bottom:12px;font-size:.88rem;padding:12px 14px}.ticks{grid-template-columns:1fr;gap:12px;margin:20px 0}.tick{padding:10px 0;border-bottom:1px solid #e7edf2}.tick:last-child{border-bottom:0}.projects-grid{grid-template-columns:1fr;gap:18px}.project-card img{height:210px}.cta{background-position:center}.cta .container{gap:22px}.cta h2{font-size:2.5rem}.cta .btn{width:100%;min-height:52px}
 .footer{padding-top:48px}.footer-grid{grid-template-columns:1fr;gap:28px}.footer-logo img{width:205px}.footer h4{margin-bottom:10px}.footer li{margin:8px 0}.footer-bottom{margin-top:30px;flex-direction:column;gap:8px;line-height:1.5}.whatsapp-float{right:16px;bottom:18px;width:48px;height:48px;border-width:2px}.whatsapp-float svg{width:25px;height:25px}.back-top{right:18px;bottom:78px;width:40px;height:40px}.content-area{padding:44px 0}
}
@media(max-width:390px){.container{width:calc(100% - 32px)}.site-branding img{width:174px}.lang-switch{font-size:.72rem;padding:6px 8px}.menu-toggle{font-size:25px}.hero h1{font-size:2.45rem}.trust-row{grid-template-columns:1fr}.trust-item:last-child{grid-column:auto}.stats-grid{grid-template-columns:1fr 1fr}.stat-card{min-height:128px}.stat-label{font-size:.84rem}.section-title{font-size:2.1rem}}

/* === RN Mobile Professional Audit v1.2 === */
html,body{overflow-x:hidden}
.service-card img,.project-card img,.about-media img{background:#e9eef3}

@media (max-width:767px){
  body{font-size:15px;line-height:1.55}
  .container{width:calc(100% - 32px);max-width:620px}
  .topbar{display:none}
  .site-header{position:sticky;top:0;background:#fff;box-shadow:0 4px 18px rgba(4,28,49,.08)}
  .header-inner{min-height:72px;padding:7px 0;gap:8px}
  .site-branding img{width:158px;max-height:52px}
  .header-actions{gap:5px}
  .lang-switch{font-size:.73rem;padding:6px 8px;border-radius:8px}
  .menu-toggle{font-size:25px;padding:4px 2px}
  .main-nav{top:72px;padding:12px 16px 16px}
  .main-nav a{font-size:.95rem;padding:9px 0}

  .hero{min-height:auto;background:linear-gradient(180deg,rgba(4,28,49,.92),rgba(4,28,49,.84)),var(--hero-image) 62% center/cover no-repeat}
  .hero-content{padding:46px 0 54px;max-width:100%}
  .hero .section-kicker{font-size:.72rem;letter-spacing:.12em}
  .hero h1{font-size:clamp(2.05rem,9.5vw,2.65rem);line-height:1.03;letter-spacing:-.025em;margin:10px 0 14px;max-width:11.5em}
  .hero p{font-size:.96rem;line-height:1.55;max-width:34em}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:10px;margin:20px 0 22px}
  .hero-actions .btn{width:100%;min-height:48px;padding:12px 15px;font-size:.94rem;border-radius:9px}
  .trust-row{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;margin-top:22px}
  .trust-item{font-size:.89rem;line-height:1.25;gap:8px}
  .trust-item:last-child{grid-column:1/-1}
  .trust-dot{width:30px;height:30px;font-size:.85rem}

  .section{padding:48px 0}
  .section-kicker{font-size:.72rem;letter-spacing:.13em}
  .section-title{font-size:clamp(1.8rem,8vw,2.2rem);line-height:1.08;margin:.38rem 0 .78rem}
  .section-copy{font-size:.96rem;line-height:1.58}

  .stats{padding:46px 0}
  .stats-grid{grid-template-columns:1fr 1fr;gap:10px}
  .stat-intro{grid-column:1/-1;padding:0 0 12px}
  .stat-intro .section-title{font-size:2rem;max-width:10em}
  .stat-intro p{font-size:.94rem;line-height:1.5}
  .stat-card{min-height:116px;padding:15px 8px;border-radius:14px}
  .stat-number{font-size:1.7rem}
  .stat-label{font-size:.79rem;line-height:1.25;margin-top:7px}

  .services-grid{grid-template-columns:1fr;gap:16px;margin-top:22px}
  .service-card{border-radius:16px;box-shadow:0 8px 24px rgba(5,35,60,.07)}
  .service-card img{height:166px;width:100%;object-fit:cover;object-position:center}
  .service-body{padding:18px 18px 20px}
  .service-icon{width:40px;height:40px;margin-top:-39px;border-radius:10px;border-width:3px;font-size:.8rem}
  .service-card h3{font-size:1.18rem;line-height:1.25;margin:14px 0 7px}
  .service-card p{font-size:.92rem;line-height:1.5;margin-bottom:11px}
  .learn{font-size:.9rem}

  .about-wrap{gap:24px}
  .about-media img{aspect-ratio:16/10;object-fit:cover;object-position:center;border-radius:16px}
  .about-badge{right:10px;bottom:10px;font-size:.78rem;padding:10px 12px;border-radius:9px}
  .ticks{grid-template-columns:1fr;gap:0;margin:16px 0 20px}
  .tick{font-size:.92rem;padding:10px 0;border-bottom:1px solid #e6ebf0}
  .tick:last-child{border-bottom:0}
  .tick span{font-size:1rem}

  .projects-grid{grid-template-columns:1fr;gap:16px}
  .project-card{border-radius:16px}
  .project-card img{height:175px;object-fit:cover}
  .project-body{padding:18px}
  .project-meta{font-size:.7rem}
  .project-card h3{font-size:1.16rem;margin:6px 0}
  .project-card p{font-size:.92rem;line-height:1.5;margin-bottom:0}

  .cta{background-position:center}
  .cta .container{gap:18px}
  .cta h2{font-size:2rem;line-height:1.08;margin:7px 0 10px}
  .cta p{font-size:.95rem;line-height:1.55}
  .cta .btn{width:100%;min-height:48px;padding:12px 15px;font-size:.94rem}

  .footer{padding-top:42px}
  .footer-grid{grid-template-columns:1fr;gap:24px}
  .footer-logo img{width:180px}
  .footer h4{font-size:.78rem;margin:0 0 8px}
  .footer p,.footer li{font-size:.91rem;line-height:1.5}
  .footer-bottom{margin-top:26px;padding:14px 0;flex-direction:column;gap:6px;font-size:.8rem}

  .whatsapp-float{right:14px;bottom:18px;width:44px;height:44px;border:2px solid #fff;box-shadow:0 8px 20px rgba(0,0,0,.18)}
  .whatsapp-float svg{width:23px;height:23px}
  .back-top{right:16px;bottom:70px;width:36px;height:36px;font-size:.86rem;box-shadow:0 7px 18px rgba(0,0,0,.14)}
}

@media (max-width:390px){
  .container{width:calc(100% - 28px)}
  .site-branding img{width:146px}
  .lang-switch{font-size:.68rem;padding:5px 7px}
  .menu-toggle{font-size:23px}
  .hero h1{font-size:2rem}
  .hero p{font-size:.92rem}
  .trust-row{grid-template-columns:1fr}
  .trust-item:last-child{grid-column:auto}
  .stats-grid{grid-template-columns:1fr 1fr}
  .stat-card{min-height:110px}
  .stat-number{font-size:1.55rem}
  .stat-label{font-size:.75rem}
  .section-title{font-size:1.85rem}
  .service-card img{height:150px}
}

/* Admin bar safe sticky positioning */
.admin-bar .site-header{top:32px}
@media(max-width:782px){.admin-bar .site-header{top:46px}}

/* === RN Final Mobile + Bilingual Stability Patch v1.3 === */
.service-card{overflow:hidden}
.service-card img{display:block;width:100%;aspect-ratio:16/9;height:auto;object-fit:cover;object-position:center}
.service-card .service-body{position:relative;background:#fff}
.service-card .service-icon{position:relative;z-index:2}
.lang-switch,.pll-parent-menu-item{white-space:nowrap}
html[dir="rtl"] .header-inner, html[dir="rtl"] .topbar .container{direction:ltr}
html[dir="rtl"] .header-actions{direction:ltr}
html[dir="rtl"] .site-branding{direction:ltr}
html[dir="rtl"] .services-grid,html[dir="rtl"] .projects-grid,html[dir="rtl"] .stats-grid,html[dir="rtl"] .about-wrap{direction:ltr}

@media(max-width:767px){
  .header-inner{min-height:74px;padding:8px 0}
  .site-branding img{width:152px;max-height:50px}
  .hero-content{padding:42px 0 48px}
  .hero h1{font-size:clamp(2rem,9vw,2.45rem);max-width:10.5em}
  .hero p{font-size:.93rem;line-height:1.52}
  .hero-actions .btn{min-height:46px;font-size:.91rem}
  .trust-row{gap:10px 12px;margin-top:20px}
  .trust-item{font-size:.86rem}
  .section{padding:44px 0}
  .section-title{font-size:clamp(1.72rem,7.4vw,2.08rem)}
  .section-copy{font-size:.93rem}
  .stats-grid{gap:9px}
  .stat-card{min-height:108px;padding:14px 8px}
  .stat-number{font-size:1.62rem}
  .stat-label{font-size:.76rem}
  .services-grid{gap:15px;margin-top:20px}
  .service-card img{height:158px;aspect-ratio:auto;object-fit:cover}
  .service-body{padding:17px 18px 19px}
  .service-icon{width:38px;height:38px;margin-top:-36px;font-size:.76rem}
  .service-card h3{font-size:1.12rem;margin:13px 0 6px}
  .service-card p{font-size:.9rem;line-height:1.46;margin:0 0 10px}
  .learn{font-size:.88rem}
  .whatsapp-float{right:14px;bottom:16px;width:42px;height:42px}
  .whatsapp-float svg{width:22px;height:22px}
  .back-top{right:15px;bottom:66px;width:34px;height:34px;font-size:.82rem}
}
@media(max-width:390px){
  .site-branding img{width:142px}
  .hero h1{font-size:1.94rem}
  .section-title{font-size:1.78rem}
  .service-card img{height:145px}
  .service-card h3{font-size:1.08rem}
}

/* === RN Final Quality Patch v1.4 === */
.hero:after{display:none!important;content:none!important}
.hero{background:
  linear-gradient(90deg,rgba(4,28,49,.96) 0%,rgba(4,28,49,.88) 46%,rgba(4,28,49,.42) 76%,rgba(4,28,49,.20) 100%),
  var(--hero-image) center/cover no-repeat!important;
}
.stats{position:relative;background:linear-gradient(135deg,#062642 0%,#0a3558 58%,#0b3c63 100%)}
.stats:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.025),transparent 38%,rgba(255,255,255,.018));pointer-events:none}
.stats>.container{position:relative;z-index:1}
.about-section{background:linear-gradient(180deg,#f8fafc 0%,#f3f6f9 100%)!important}
.lang-switch{display:flex;align-items:center;gap:7px;line-height:1}
.lang-switch a{display:inline-flex;align-items:center;justify-content:center;color:#34485c;font-weight:750;padding:2px 1px;border-radius:4px;transition:.2s}
.lang-switch a:hover,.lang-switch a.active{color:var(--rn-navy);font-weight:900}
.lang-switch span{color:#9aa7b4}
.rn-ar .section-kicker,.rn-ar .section-title,.rn-ar .section-copy,.rn-ar .hero-content,.rn-ar .service-body,.rn-ar .stat-card,.rn-ar .project-body{font-family:Arial,"Noto Sans Arabic",sans-serif}
.rn-ar .hero-content,.rn-ar .section-kicker,.rn-ar .section-title,.rn-ar .section-copy,.rn-ar .service-body,.rn-ar .stat-intro,.rn-ar .project-body{text-align:right}
.rn-ar .hero-actions,.rn-ar .trust-row{direction:rtl}
.rn-ar .services-grid,.rn-ar .projects-grid,.rn-ar .stats-grid{direction:ltr}
.rn-ar .service-card,.rn-ar .project-card,.rn-ar .stat-card{direction:rtl}

@media(max-width:767px){
  .hero{background:linear-gradient(180deg,rgba(4,28,49,.95) 0%,rgba(4,28,49,.90) 58%,rgba(4,28,49,.82) 100%),var(--hero-image) 60% center/cover no-repeat!important}
  .hero-content{padding:40px 0 44px}
  .hero h1{font-size:clamp(1.95rem,8.7vw,2.38rem)!important;line-height:1.04!important;max-width:10.8em!important;margin:9px 0 13px!important}
  .hero p{font-size:.91rem!important;line-height:1.5!important;max-width:30em}
  .section{padding:42px 0!important}
  .section-title{font-size:clamp(1.65rem,7vw,2rem)!important;line-height:1.1!important}
  .section-copy{font-size:.91rem!important;line-height:1.52!important}
  .stats{padding:42px 0!important}
  .stat-intro .section-title{font-size:1.88rem!important}
  .service-card img{height:154px!important;object-fit:cover!important;object-position:center!important}
  .service-body{padding:17px 18px 18px!important}
  .service-card h3{font-size:1.08rem!important;line-height:1.24!important}
  .service-card p{font-size:.88rem!important;line-height:1.46!important}
  .lang-switch{padding:6px 8px!important;gap:6px}
  .lang-switch a{font-size:.72rem}
  .whatsapp-float{width:42px!important;height:42px!important;right:14px!important;bottom:15px!important}
  .back-top{width:34px!important;height:34px!important;right:15px!important;bottom:64px!important}
}
@media(max-width:390px){
  .hero h1{font-size:1.86rem!important}
  .section-title{font-size:1.7rem!important}
  .service-card img{height:142px!important}
}


/* v1.5 bilingual controller: language changes text only; layout geometry always stays stable. */
html,body{direction:ltr!important}
.lang-switch{display:flex;align-items:center;gap:7px}
.rn-lang-btn{appearance:none;border:0;background:transparent;color:#526171;font:inherit;font-weight:750;cursor:pointer;padding:1px 2px;line-height:1.2}
.rn-lang-btn.active{color:var(--rn-navy);font-weight:900}
.rn-lang-btn:focus-visible{outline:2px solid var(--rn-gold);outline-offset:3px;border-radius:4px}
.rn-lang-ar [data-en][data-ar],.rn-lang-ar .rn-translatable-block{font-family:Arial,"Noto Sans Arabic",sans-serif}
.rn-lang-ar [data-en][data-ar]{direction:rtl;text-align:right}
.rn-lang-ar .section-kicker,.rn-lang-ar .section-title,.rn-lang-ar .section-copy,.rn-lang-ar .hero-content p,.rn-lang-ar .service-body h3,.rn-lang-ar .service-body p,.rn-lang-ar .stat-intro,.rn-lang-ar .project-body h3,.rn-lang-ar .footer h4,.rn-lang-ar .footer p{direction:rtl;text-align:right}
.rn-lang-ar .hero-actions,.rn-lang-ar .trust-row,.rn-lang-ar .services-grid,.rn-lang-ar .projects-grid,.rn-lang-ar .stats-grid,.rn-lang-ar .about-wrap,.rn-lang-ar .header-inner,.rn-lang-ar .footer-grid{direction:ltr!important}
.rn-lang-ar .service-card,.rn-lang-ar .project-card,.rn-lang-ar .stat-card{direction:ltr!important}
.rn-lang-ar .service-body,.rn-lang-ar .project-body{direction:rtl}

.hero:after{display:none!important;content:none!important}
.hero{background:linear-gradient(90deg,rgba(4,28,49,.96) 0%,rgba(4,28,49,.88) 48%,rgba(4,28,49,.42) 78%,rgba(4,28,49,.26) 100%),var(--hero-image) center/cover no-repeat!important}
.stats{background:radial-gradient(circle at 82% 10%,rgba(28,83,124,.34),transparent 34%),linear-gradient(135deg,#051d32,#0a3457 68%,#082846)!important}
.service-card img{display:block;width:100%;height:210px;aspect-ratio:auto;object-fit:cover;object-position:center;background:#e7edf2}

@media(max-width:680px){
  .hero{background:linear-gradient(180deg,rgba(4,28,49,.95) 0%,rgba(4,28,49,.90) 60%,rgba(4,28,49,.82) 100%),var(--hero-image) 58% center/cover no-repeat!important}
  .hero-content{padding:40px 0 46px!important}
  .hero h1{font-size:clamp(1.9rem,8.6vw,2.35rem)!important;line-height:1.06!important;max-width:11em!important}
  .hero p{font-size:.91rem!important;line-height:1.52!important}
  .section{padding:50px 0!important}
  .section-title{font-size:clamp(1.82rem,7.9vw,2.2rem)!important;line-height:1.12!important}
  .services-grid{gap:16px!important}
  .service-card img{height:156px!important;object-fit:cover!important;object-position:center!important}
  .service-body{padding:20px!important}
  .service-card h3{font-size:1.08rem!important;line-height:1.25!important}
  .service-card p{font-size:.89rem!important;line-height:1.48!important}
  .lang-switch{padding:6px 8px!important;gap:6px!important}
  .rn-lang-btn{font-size:.74rem!important}
  .whatsapp-float{width:46px!important;height:46px!important;right:15px!important;bottom:18px!important}
  .back-top{width:38px!important;height:38px!important;right:19px!important;bottom:74px!important}
}


/* === RN Mobile Header + Hero Visibility Patch v1.6 ===
   Prevents the mobile header from covering/cutting hero text and keeps
   anchor sections safely below the header. */
@media (max-width: 767px){
  .site-header{
    position:relative!important;
    top:auto!important;
    z-index:999!important;
  }

  .admin-bar .site-header{
    top:auto!important;
  }

  .header-inner{
    min-height:76px!important;
    padding:9px 0!important;
  }

  .site-branding img{
    width:150px!important;
    max-height:52px!important;
  }

  .hero{
    align-items:flex-start!important;
    min-height:auto!important;
    overflow:visible!important;
  }

  .hero .container{
    width:calc(100% - 32px)!important;
  }

  .hero-content{
    padding:34px 0 44px!important;
    max-width:100%!important;
  }

  .hero .section-kicker{
    display:block!important;
    margin:0 0 10px!important;
    padding:0!important;
    line-height:1.35!important;
    font-size:.74rem!important;
    letter-spacing:.13em!important;
    white-space:normal!important;
    overflow:visible!important;
  }

  .hero h1{
    margin:0 0 14px!important;
    font-size:clamp(1.82rem,8.2vw,2.28rem)!important;
    line-height:1.08!important;
    max-width:none!important;
    overflow:visible!important;
  }

  .hero p{
    margin:0!important;
    font-size:.90rem!important;
    line-height:1.52!important;
  }

  .hero-actions{
    margin:20px 0!important;
  }

  .trust-row{
    margin-top:20px!important;
  }

  #services,#about,#projects,#contact,.stats{
    scroll-margin-top:18px!important;
  }
}

@media (max-width: 390px){
  .site-branding img{width:140px!important}
  .hero .container{width:calc(100% - 28px)!important}
  .hero-content{padding:30px 0 40px!important}
  .hero h1{font-size:1.76rem!important}
  .hero .section-kicker{font-size:.69rem!important;letter-spacing:.11em!important}
}


/* === Trusted Clients & Partners Marquee v1.8 === */
.clients-section{
  position:relative;
  background:#f7f9fc;
  overflow:hidden;
  padding:70px 0 64px;
  border-top:1px solid #eef2f6;
  border-bottom:1px solid #eef2f6;
}
.clients-head{
  text-align:center;
  max-width:840px;
  margin:0 auto 30px;
  padding:0 20px;
}
.clients-head .section-kicker{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
}
.clients-head .section-kicker:before,
.clients-head .section-kicker:after{
  content:"";
  width:54px;
  height:2px;
  background:var(--rn-gold);
  border-radius:3px;
}
.clients-head h2{
  font-size:clamp(2rem,4.6vw,3.45rem);
  line-height:1.08;
  max-width:780px;
  margin:.55rem auto 1rem;
}
.clients-head p{
  max-width:760px;
  margin:0 auto;
  color:var(--rn-muted);
  font-size:1.02rem;
  line-height:1.65;
}
.clients-marquee{
  position:relative;
  width:100%;
  overflow:hidden;
  padding:12px 0 18px;
  direction:ltr!important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 5%,#000 95%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 5%,#000 95%,transparent 100%);
}
.clients-track{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  width:max-content!important;
  min-width:max-content!important;
  gap:18px;
  align-items:center;
  justify-content:flex-start;
  animation:rnClientsMarquee 38s linear infinite;
  will-change:transform;
  direction:ltr!important;
}
.clients-marquee:hover .clients-track{animation-play-state:paused}
.client-logo-card{
  box-sizing:border-box;
  width:210px!important;
  height:118px!important;
  flex:0 0 210px!important;
  margin:0!important;
  padding:18px 22px!important;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  border:1px solid #e1e7ed;
  box-shadow:0 8px 20px rgba(5,35,60,.065);
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.client-logo-card img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
}
@keyframes rnClientsMarquee{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(calc(-50% - 9px),0,0)}
}
@media (max-width:767px){
  .clients-section{padding:50px 0 46px}
  .clients-head{margin-bottom:22px;padding:0 24px}
  .clients-head h2{font-size:clamp(1.72rem,7.7vw,2.15rem)!important;line-height:1.12!important}
  .clients-head p{font-size:.90rem;line-height:1.58}
  .clients-head .section-kicker{font-size:.72rem!important;gap:9px}
  .clients-head .section-kicker:before,
  .clients-head .section-kicker:after{width:28px}
  .clients-marquee{padding:8px 0 14px}
  .clients-track{gap:12px;animation-duration:30s}
  .client-logo-card{
    width:164px!important;
    height:96px!important;
    flex-basis:164px!important;
    padding:14px 17px!important;
    border-radius:12px;
  }
}
@media (max-width:390px){
  .client-logo-card{width:154px!important;height:90px!important;flex-basis:154px!important;padding:13px 15px!important}
}
@media (prefers-reduced-motion:reduce){
  .clients-track{animation:none!important;transform:none!important}
  .clients-marquee{overflow-x:auto}
}


/* === RN Deep Audit / Dynamic Content Hardening v1.9 === */
.clients-marquee{--client-gap:18px;contain:layout paint;}
.clients-track{
  display:flex!important;align-items:center!important;gap:var(--client-gap)!important;
  width:max-content!important;min-width:max-content!important;
  animation:rnClientsMarquee19 40s linear infinite!important;
}
.clients-group{display:flex!important;align-items:center!important;gap:var(--client-gap)!important;flex:0 0 auto!important;}
@keyframes rnClientsMarquee19{from{transform:translate3d(0,0,0)}to{transform:translate3d(calc(-50% - (var(--client-gap) / 2)),0,0)}}
.client-logo-card{isolation:isolate;}
.client-logo-card img{filter:none!important;}
@media(max-width:767px){.clients-marquee{--client-gap:12px}.clients-track{animation-duration:32s!important}}
@media(prefers-reduced-motion:reduce){.clients-track{animation:none!important;transform:none!important}.clients-marquee{overflow-x:auto!important;-webkit-mask-image:none!important;mask-image:none!important}.clients-group[aria-hidden="true"]{display:none!important}}

/* Dynamic cards added from WordPress remain visually consistent. */
.service-card a,.project-card a{color:inherit;text-decoration:none}
.service-card img,.project-card img{display:block;width:100%;object-fit:cover;object-position:center}

/* Keep Arabic text RTL without mirroring the site geometry. */
.rn-lang-ar .clients-section,.rn-lang-ar .clients-track,.rn-lang-ar .clients-group{direction:ltr!important}
.rn-lang-ar .clients-head [data-en][data-ar]{direction:rtl;text-align:center!important}
