/*
Theme Name: Alwaha
Theme URI: https://alwahauditing.com
Author: Alwaha Auditing Office
Description: Bilingual (Arabic/English) theme for Alwaha Auditing Office.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: alwaha
*/
:root{--ink:#10282B;--ink2:#0B1F21;--teal:#1F7A77;--acc:#2DA8A4;--mint:#7FD3CF;--bg:#F7F5F0;--line:#E3DED4;--muted:#55605F;--body:#3A4847;--soft:#E1EFEE;--w:1280px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif;font-size:16px;line-height:1.85;font-variant-numeric:tabular-nums lining-nums}
body.lang-en{font-family:'IBM Plex Sans',Helvetica,Arial,sans-serif;line-height:1.7}
a{color:var(--teal);text-decoration:none}a:hover{color:var(--ink)}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4{margin:0;color:var(--ink);font-weight:700;line-height:1.45}
.lang-en h1,.lang-en h2,.lang-en h3{line-height:1.2}
p{margin:0}
.wrap{max-width:var(--w);margin:0 auto;padding:0 40px}
.eyebrow{font-size:14px;font-weight:600;color:var(--teal)}
.lang-en .eyebrow{letter-spacing:.4px}
.h1{font-size:52px}.h2{font-size:34px}.h3{font-size:20px}
.lead{font-size:19px;color:var(--body)}
.small{font-size:14px}.cap{font-size:13px}.muted{color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:52px;padding:0 26px;border-radius:10px;font-size:16px;font-weight:600;border:0;cursor:pointer;font-family:inherit;white-space:nowrap}
.btn-primary{background:var(--teal);color:#fff}.btn-primary:hover{background:var(--ink);color:#fff}
.btn-outline{background:transparent;color:var(--ink);border:1.5px solid var(--ink)}.btn-outline:hover{background:var(--ink);color:#fff}
.btn-acc{background:var(--acc);color:var(--ink2)}.btn-acc:hover{background:var(--mint);color:var(--ink2)}
.btn-ghost{background:transparent;color:#fff;border:1.5px solid #4E7E81}.btn-ghost:hover{border-color:var(--mint);color:#fff}
.card{background:#fff;border:1px solid var(--line);border-radius:16px}
.section{padding:88px 0}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:32px}
.sec-head .t{display:flex;flex-direction:column;gap:10px}
.more{font-size:14px;font-weight:600;white-space:nowrap}
/* top bar & header */
.topbar{background:var(--ink);color:#DCE7E6;font-size:13px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:40px}
.topbar a{color:#DCE7E6}.topbar .l{display:flex;gap:28px}
.lang-switch a{background:#DCE7E6;color:var(--ink);padding:3px 14px;border-radius:999px;font-weight:600}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header .wrap{display:flex;justify-content:space-between;align-items:center;gap:24px;height:88px}
.brand{display:flex;gap:14px;align-items:center;color:var(--ink)}
.brand img{width:56px;height:56px;object-fit:contain}
.brand .n{display:flex;flex-direction:column;line-height:1.3}.brand b{font-size:18px}.brand span{font-size:13px;color:var(--muted)}
.nav{display:flex;gap:26px;font-size:15px;font-weight:500}
.nav a{color:var(--ink);padding:6px 0;border-bottom:2px solid transparent}
.nav a.on,.nav a:hover{color:var(--teal);border-bottom-color:var(--acc)}
.hdr-r{display:flex;gap:14px;align-items:center}
.hdr-r .nx img{height:40px;width:auto}
.hdr-r .btn{height:44px;font-size:15px}
.menu-btn{display:none;width:44px;height:44px;border:0;background:var(--ink);border-radius:10px;align-items:center;justify-content:center;cursor:pointer}
/* hero */
.hero{padding:72px 0}
.hero .wrap{display:grid;grid-template-columns:7fr 5fr;gap:48px;align-items:center}
.hero .txt{display:flex;flex-direction:column;gap:22px}
.hero .lead{max-width:600px}
.btns{display:flex;gap:12px;flex-wrap:wrap;margin-top:4px}
.news-card{padding:26px;display:flex;flex-direction:column;gap:16px}
.news-card .hd{display:flex;justify-content:space-between;align-items:center}
.news-item{display:flex;gap:14px;color:var(--ink);padding-bottom:16px;border-bottom:1px solid #EEEAE2}
.news-item:last-child{border:0;padding:0}
.news-item .ph{width:88px;height:68px;flex-shrink:0;border-radius:10px;background:#E6EFEE;overflow:hidden}
.news-item .ph img{width:100%;height:100%;object-fit:cover}
.news-item .c{display:flex;flex-direction:column;gap:6px}
.news-item b{font-size:16px;font-weight:600;line-height:1.7}
.tag{font-size:13px;font-weight:600;align-self:flex-start;padding:2px 10px;border-radius:999px;color:#8A4B12;background:#F6EBDD}
.tag.reg{color:#1F5C5A;background:var(--soft)}
/* clients */
.clients{padding:0 0 8px}
.clients .hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.clients .strip{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 24px;display:flex;align-items:center;justify-content:center}
.clients .strip img{max-height:120px;width:auto}
/* services */
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.svc{padding:26px;display:flex;flex-direction:column;gap:14px;color:var(--ink);transition:border-color .2s,transform .2s}
.svc:hover{border-color:var(--acc);transform:translateY(-2px);color:var(--ink)}
.ico{width:48px;height:48px;border-radius:12px;background:var(--soft);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.svc h3{font-size:20px}.svc p{font-size:14px;color:var(--body)}
/* sectors */
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.chip{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;color:var(--ink);font-weight:600}
.chip:hover{border-color:var(--acc);color:var(--ink)}.chip span:last-child{color:var(--teal)}
/* deadline strip */
.deadline{background:var(--ink);color:#fff;padding:36px 0}
.deadline .wrap{display:flex;align-items:center;justify-content:space-between;gap:32px}
.dl-l{display:flex;align-items:center;gap:24px}
.date{display:flex;flex-direction:column;align-items:center;width:84px;flex-shrink:0}
.date b{font-size:40px;line-height:1.05;color:var(--mint)}.date span{font-size:13px;color:#A9BDBB}
.vline{width:1px;align-self:stretch;background:#2C5256}
.dl-i{display:flex;flex-direction:column;gap:5px}
.dl-i .k{font-size:13px;font-weight:600;color:var(--mint)}.dl-i b{font-size:20px;line-height:1.45}.dl-i .m{font-size:13px;color:#A9BDBB}
.dl-i .x{font-size:13px;font-weight:600;color:var(--ink2);background:var(--mint);padding:2px 10px;border-radius:999px;align-self:flex-start}
.dl-r{display:flex;align-items:center;gap:12px;flex-shrink:0}
/* about */
.about .wrap{display:grid;grid-template-columns:7fr 5fr;gap:56px;align-items:center}
.about .txt{display:flex;flex-direction:column;gap:18px}
.quote{font-size:19px;color:var(--ink);border-inline-start:3px solid var(--acc);padding-inline-start:18px}
.founder{padding:36px 24px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.founder img,.founder .ph{width:140px;height:140px;border-radius:50%;object-fit:cover;background:#E6EFEE}
.founder b{font-size:20px}
/* contact */
.contact{padding:44px;display:grid;grid-template-columns:5fr 7fr;gap:48px;margin-bottom:88px}
.contact .l{display:flex;flex-direction:column;gap:18px}
.det{display:flex;flex-direction:column;gap:2px}.det span{font-size:13px;color:var(--muted)}.det a,.det p{font-size:16px;color:var(--ink)}
.form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--body)}
.form input,.form select,.form textarea{height:48px;border:1px solid #D5CFC3;border-radius:10px;padding:0 14px;font-size:16px;font-family:inherit;background:#FBFAF7;color:var(--ink)}
.form textarea{height:96px;padding:12px 14px;resize:vertical}
.form .full{grid-column:1/-1}
.form input:focus,.form select:focus,.form textarea:focus{outline:2px solid var(--acc);border-color:var(--acc)}
.hp{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);opacity:0;pointer-events:none}
.notice{padding:14px 18px;border-radius:10px;background:var(--soft);color:#1F5C5A;font-weight:600;grid-column:1/-1}
.notice.err{background:#F6EBDD;color:#8A4B12}
/* footer */
.site-footer{background:var(--ink2);color:#C9D6D5;padding:40px 0 32px;font-size:14px}
.site-footer .top{display:flex;justify-content:space-between;align-items:center;gap:48px}
.site-footer .d{max-width:640px;display:flex;flex-direction:column;gap:10px}
.site-footer .d b{font-size:17px;color:#fff}
.site-footer a{color:#C9D6D5}.site-footer .d a{color:var(--mint)}
.fnav{display:flex;gap:24px;flex-wrap:wrap}
.site-footer .bot{border-top:1px solid #1E3A3D;margin-top:24px;padding-top:18px;display:flex;justify-content:space-between;font-size:13px;color:#93A8A6;gap:16px;flex-wrap:wrap}
.site-footer .bot a{color:#93A8A6}.legal{display:flex;gap:20px}
.mob-cta{display:none}
/* inner pages */
.page-hero{padding:56px 0 40px;border-bottom:1px solid var(--line);background:#fff}
.page-hero .wrap{display:flex;flex-direction:column;gap:10px}
.content{padding:56px 0 88px}
.entry{max-width:820px;font-size:17px}
.entry h2{font-size:26px;margin:36px 0 12px}.entry h3{font-size:20px;margin:28px 0 10px}
.entry p{margin:0 0 16px}.entry ul,.entry ol{margin:0 0 16px;padding-inline-start:22px}
.entry table{width:100%;border-collapse:collapse;margin:16px 0;font-size:15px;background:#fff}
.entry th,.entry td{border:1px solid var(--line);padding:10px 12px;text-align:start}
.entry th{background:var(--soft)}
.post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.post-card{overflow:hidden;display:flex;flex-direction:column;color:var(--ink)}
.post-card .ph{aspect-ratio:16/10;background:#E6EFEE}.post-card .ph img{width:100%;height:100%;object-fit:cover}
.post-card .c{padding:18px;display:flex;flex-direction:column;gap:8px}.post-card b{font-size:17px;line-height:1.6}
.cal-table{width:100%;border-collapse:separate;border-spacing:0 10px}
.cal-table td{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px}
.cal-table td:first-child{border-inline-start:1px solid var(--line);border-start-start-radius:12px;border-end-start-radius:12px;width:130px}
.cal-table td:last-child{border-inline-end:1px solid var(--line);border-start-end-radius:12px;border-end-end-radius:12px}
.pager{display:flex;gap:8px;justify-content:center;margin-top:32px}
.pager .page-numbers{padding:8px 14px;border:1px solid var(--line);border-radius:8px;background:#fff}
/* responsive */
@media (max-width:1100px){.nav{gap:16px;font-size:14px}.hdr-r .nx{display:none}}
@media (max-width:900px){
 .wrap{padding:0 20px}.h1{font-size:32px}.h2{font-size:24px}.lead{font-size:16px}
 .topbar{display:none}.site-header .wrap{height:68px}.brand img{width:42px;height:42px}.brand b{font-size:15px}.brand span{display:none}
 .nav{display:none;position:absolute;top:68px;inset-inline:0;background:#fff;flex-direction:column;gap:0;padding:8px 20px 16px;border-bottom:1px solid var(--line)}
 .nav.open{display:flex}.nav a{padding:12px 0;border-bottom:1px solid #EEEAE2}
 .menu-btn{display:flex}.hdr-r .btn{display:none}.hdr-r .lsm{display:inline-flex}
 .hero{padding:32px 0}.hero .wrap,.about .wrap,.contact{grid-template-columns:1fr;gap:28px}
 .grid4{grid-template-columns:1fr;gap:10px}.svc{flex-direction:row;padding:16px}.grid3{grid-template-columns:1fr 1fr;gap:10px}
 .section{padding:44px 0}.sec-head{margin-bottom:18px}.sec-head .more{display:none}
 .deadline .wrap,.dl-r{flex-direction:column;align-items:stretch}.dl-l{gap:16px}.vline{display:none}.date b{font-size:30px}
 .contact{padding:22px 18px;margin-bottom:24px}.form{grid-template-columns:1fr}
 .site-footer .top{flex-direction:column;align-items:flex-start;gap:20px}
 .mob-cta{display:grid;grid-template-columns:1fr 1fr;gap:10px;position:sticky;bottom:0;padding:10px 20px;background:rgba(247,245,240,.96);border-top:1px solid var(--line);z-index:40}
 .post-list{grid-template-columns:1fr}.btns .btn{flex:1}
}
.lsm{display:none;font-size:13px;font-weight:600;color:var(--ink);border:1px solid #D5CFC3;border-radius:999px;padding:5px 12px}

/* marquees */
.marquee{overflow:hidden;position:relative;direction:ltr;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.marquee .track{display:flex;gap:16px;width:max-content;direction:ltr;animation:alw-scroll 70s linear infinite}
.marquee.rev .track{animation-duration:40s;animation-direction:reverse}
.marquee:hover .track,.marquee:focus-within .track{animation-play-state:paused}
@keyframes alw-scroll{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 8px))}}
.marquee .logo{flex:0 0 auto;width:150px;height:84px;background:#fff;border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;justify-content:center;padding:10px}
.marquee .logo img,.logo-grid img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.marquee .chip{flex:0 0 auto;min-width:230px;gap:24px;direction:rtl}
.lang-en .marquee .chip{direction:ltr}
.logo-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-top:24px}
.logo-grid .logo{height:110px;display:flex;align-items:center;justify-content:center;padding:14px}
@media (prefers-reduced-motion:reduce){.marquee .track{animation:none;flex-wrap:wrap;width:auto}.marquee [aria-hidden="true"]{display:none}}
@media (max-width:900px){.marquee .logo{width:120px;height:70px}.marquee .chip{min-width:190px}.logo-grid{grid-template-columns:repeat(3,1fr)}}

.sp{display:block}
.marquee .logo{width:156px;height:84px}

/* news cards: uniform image box, image anchored to top */
.post-card .ph,.news-item .ph{display:block;overflow:hidden;background:#E6EFEE}
.post-card .ph{aspect-ratio:16/10;width:100%}
.post-card .ph img,.news-item .ph img{width:100%;height:100%;object-fit:cover;object-position:top center}
.post-card .ph img.noimg,.news-item .ph img.noimg{object-fit:contain;object-position:center;padding:18%;opacity:.55}
.post-card .c{flex:1}
/* team / partners */
.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:20px 0 8px}
.member{background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px 22px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.member img{width:132px;height:132px;border-radius:50%;object-fit:cover;object-position:top;margin-bottom:6px;background:#E6EFEE}
.member b{font-size:19px}.member .role{color:var(--teal);font-weight:600;font-size:14px}
.member ul{text-align:start;font-size:14px;color:var(--body);margin:8px 0 0;padding-inline-start:18px;line-height:1.8}
.roles{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}
.roles div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}
.roles b{display:block;font-size:17px;margin-bottom:6px}.roles span{font-size:14px;color:var(--body)}
.nexia-box{background:var(--ink);color:#DCE7E6;border-radius:18px;padding:32px;margin:24px 0}
.nexia-box h2,.nexia-box h3{color:#fff;margin-top:0}.nexia-box a{color:var(--mint)}
.vals{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0}
.vals div{background:#16363A;border-radius:12px;padding:16px}.vals b{color:#fff;display:block;margin-bottom:4px}
.entry .wide{max-width:none}
@media (max-width:900px){.team-grid,.roles,.vals{grid-template-columns:1fr}}

/* header fit */
.brand{flex-shrink:0}.brand .n b,.brand .n span{white-space:nowrap}
.nav{gap:22px}.nav a{white-space:nowrap}
.site-header .wrap{gap:20px}
.hdr-r{gap:12px;flex-shrink:0}.hdr-r .btn{padding:0 18px}
@media (max-width:1250px){.hdr-r .nx{display:none}}
@media (max-width:1100px){.nav{gap:14px;font-size:14px}.brand .n span{display:none}}

.post-card .ph img,.news-item .ph img{object-position:top center!important}

/* inner pages: use the full centred container, readable paragraphs */
.entry{max-width:none}
.entry > p,.entry > ul,.entry > ol,.entry > h2,.entry > h3{max-width:1000px}
.team-grid{gap:28px}.member{padding:32px 28px}.member ul{font-size:15px}
.roles{gap:20px}.roles div{padding:24px}
.nexia-box{padding:40px 44px}.nexia-box p{max-width:1000px}
.vals{gap:18px}.vals div{padding:20px}
.page-hero .wrap,.content .wrap{max-width:var(--w)}
@media (max-width:1100px){.team-grid{grid-template-columns:1fr 1fr}.roles{grid-template-columns:1fr 1fr}}
@media (max-width:700px){.team-grid,.roles,.vals{grid-template-columns:1fr}}

/* hero credentials card */
.cred b img{width:72px;height:auto;display:block;margin:0 auto}
.creds{padding:10px 26px}
.cred{display:flex;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid #EEEAE2}.cred:last-child{border:0}
.cred b{min-width:72px;font-size:24px;color:var(--teal);text-align:center;line-height:1.2}
.cred span{font-size:16px;color:var(--ink);font-weight:500}
.band{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.clients{padding:8px 0 24px}

/* contact details: consistent alignment in both directions */
.det{align-items:flex-start;gap:4px}
.det > a,.det > p{align-self:flex-start;unicode-bidi:isolate;font-size:17px;font-weight:500}
.det > a[dir="ltr"]{direction:ltr;text-align:start}
.contact .l .det{padding-bottom:14px;border-bottom:1px solid #EEEAE2}.contact .l .det:last-child{border:0}

.careers{margin-top:32px;margin-bottom:0}
.careers input[type=file]{background:#fff}

/* even, justified paragraphs */
.entry > p,.entry li,.entry .nexia-box p,.lead,.about .txt p,.member ul li,.roles span{text-align:justify;text-justify:inter-word;hyphens:none}
.entry > p,.entry > ul,.entry > ol{max-width:none}
.entry > p{margin-bottom:18px}
.page-hero .lead,.hero .lead{text-align:start}

/* service pages */
.page-hero.has-img .wrap{display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:center}
.page-hero .ph-txt{display:flex;flex-direction:column;gap:14px}
.page-hero .ph-img img{width:100%;height:320px;object-fit:cover;border-radius:18px}
.svc-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:18px 0 8px}
.svc-cards > div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px}
.svc-cards b{display:block;font-size:17px;margin-bottom:6px;color:var(--ink)}
.svc-cards span{font-size:15px;color:var(--body);line-height:1.8}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:18px 0 8px;counter-reset:st}
.steps > div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;position:relative;counter-increment:st}
.steps > div::before{content:counter(st);display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--teal);color:#fff;font-weight:700;margin-bottom:12px}
.steps b{display:block;font-size:17px;margin-bottom:6px}.steps span{font-size:15px;color:var(--body)}
.cta-box{background:var(--ink);color:#DCE7E6;border-radius:18px;padding:32px 36px;margin:36px 0 0;display:flex;justify-content:space-between;align-items:center;gap:24px}
.cta-box b{font-size:22px;color:#fff;display:block;margin-bottom:6px}
.svc-list{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:8px}
.svc-item{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;color:var(--ink)}
.svc-item:hover{border-color:var(--acc);color:var(--ink)}
.svc-item img{width:100%;height:190px;object-fit:cover}
.svc-item .c{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}
.svc-item h3{font-size:20px;margin:0}.svc-item p{margin:0;font-size:15px;color:var(--body)}
.svc-item ul{margin:0;padding-inline-start:18px;font-size:14px;color:var(--body);line-height:1.9}
.svc-item .go{margin-top:auto;font-weight:600;color:var(--teal);font-size:14px}
@media (max-width:1000px){.page-hero.has-img .wrap{grid-template-columns:1fr}.svc-cards,.svc-list{grid-template-columns:1fr 1fr}.steps{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.svc-cards,.svc-list,.steps{grid-template-columns:1fr}.cta-box{flex-direction:column;align-items:flex-start}}

.svc-list{align-items:stretch}.svc-item img{display:block;height:200px}
.svc-item .c h3{line-height:1.4}

/* services overview: 5 compact cards in one row */
.svc-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.svc-item{border-radius:14px;transition:transform .2s,border-color .2s,box-shadow .2s}
.svc-item:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(16,40,43,.08)}
.svc-item img{height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center}
.svc-item .c{padding:16px 16px 18px;gap:8px}
.svc-item h3{font-size:17px}
.svc-item p{font-size:13.5px;line-height:1.7;text-align:start}
.svc-item ul{font-size:13px;line-height:1.8;padding-inline-start:16px}
.svc-item ul li{text-align:start}
.svc-item .go{font-size:13px;padding-top:4px}
@media (max-width:1250px){.svc-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.svc-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.svc-list{grid-template-columns:1fr}}

/* services overview: cleaner cards */
.svc-list .svc-item ul{display:none}
/* main navigation: even, consistent items */
.nav{gap:2px;align-items:center}
.nav a{padding:8px 12px;border-radius:8px;border-bottom:0!important;font-weight:500;line-height:1.4;transition:background .15s,color .15s}
.nav a:hover{background:#F1F6F5;color:var(--teal)}
.nav a.on{background:var(--soft);color:var(--teal);font-weight:600}
.nav a[target="_blank"]{margin-inline-start:8px;padding-inline-start:18px;border-radius:0;position:relative;color:var(--muted)}
.nav a[target="_blank"]::before{content:"";position:absolute;inset-inline-start:0;top:20%;bottom:20%;width:1px;background:var(--line)}
.nav a[target="_blank"]:hover{background:none;color:var(--teal)}
@media (max-width:900px){.nav a{padding:12px 4px;border-radius:0;border-bottom:1px solid #EEEAE2!important}.nav a[target="_blank"]{margin:0;padding-inline-start:4px}.nav a[target="_blank"]::before{display:none}.nav a.on{background:none}}

/* industries */
.ind-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:10px 0}
.ind-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:10px;color:var(--ink);transition:transform .2s,box-shadow .2s,border-color .2s}
.ind-card:hover{transform:translateY(-3px);border-color:var(--acc);box-shadow:0 10px 24px rgba(16,40,43,.08);color:var(--ink)}
.ind-card .ic{width:52px;height:52px;border-radius:14px;background:var(--soft);display:flex;align-items:center;justify-content:center;color:var(--teal)}
.ind-card h3{font-size:19px;margin:4px 0 0}.ind-card p{margin:0;font-size:14.5px;color:var(--body);line-height:1.8;text-align:start}
.ind-card .reg{font-size:13px;color:var(--teal);font-weight:600;background:#F1F6F5;border-radius:8px;padding:6px 10px;align-self:flex-start}
.ind-card .go{margin-top:auto;font-size:14px;font-weight:600;color:var(--teal)}
@media (max-width:1000px){.ind-grid{grid-template-columns:1fr 1fr}}@media (max-width:600px){.ind-grid{grid-template-columns:1fr}}

/* balanced line breaks: no single orphan words */
h2,h3,.eyebrow,.cta-box b{text-wrap:balance}
.lead{text-wrap:pretty}
p,li,.cred span,.dl-i b{text-wrap:pretty}
.hero .lead{max-width:600px;text-wrap:pretty}

/* short texts: natural alignment (justify only suits long paragraphs) */
.lead,.about .txt p,.quote,.member ul li,.roles span,.svc-cards span,.steps span,.vals div,.cred span{text-align:start!important;text-justify:auto}
.about .txt .lead{text-wrap:pretty}

/* hero: description on one line on desktop */
@media (min-width:1200px){.hero .wrap{grid-template-columns:8fr 4fr}.hero .lead{max-width:none;white-space:nowrap;font-size:18px}}

/* tighter, even vertical rhythm between home sections */
.section{padding:60px 0}
.hero{padding:56px 0 40px}
.clients{padding:0 0 12px}
.deadline{padding:32px 0}
#news{padding-bottom:40px}
.sec-head{margin-bottom:24px}
@media (max-width:900px){.section{padding:40px 0}.hero{padding:28px 0 24px}}

/* Nexia official stats */
.nx-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0 22px}
.nx-stats div{background:#16363A;border-radius:12px;padding:16px 12px;text-align:center}
.nx-stats b{display:block;font-size:30px;line-height:1.1;color:var(--mint);font-variant-numeric:tabular-nums}
.nx-stats span{font-size:13px;color:#C9D6D5}
.nexia-box .src{font-size:12px;color:#93A8A6;margin-top:6px}
@media (max-width:900px){.nx-stats{grid-template-columns:repeat(2,1fr)}}

/* official Arabic wordmark (from the firm's letterhead) */
.brand .wm{height:26px;width:auto;display:block;max-width:none}
.brand .wm.sm{height:14px;margin-top:4px}
.brand .n{gap:4px}
@media (max-width:900px){.brand .wm{height:19px}}

/* wordmark: only the Arabic name is smaller; logo and English line unchanged */
.brand .wm{height:16px}
.brand .n{gap:6px}
.brand .wm.sm{height:12px;margin-top:2px}
@media (max-width:900px){.brand .wm{height:13px}}

/* ---- compliance guide ---- */
.guide{max-width:1100px;margin-inline:auto}
.guide .g-lead{font-size:1.08rem;text-align:start;margin-bottom:18px}
.guide .g-upd{display:inline-block;font-size:.8rem;opacity:.65;margin-inline-start:6px}
.guide .g-toc{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 34px}
.guide .g-toc a{border:1px solid rgba(0,0,0,.12);border-radius:999px;padding:6px 14px;font-size:.88rem;text-decoration:none;color:inherit;background:#fff}
.guide .g-toc a:hover{border-color:currentColor}
.guide h2{font-size:1.3rem;margin:40px 0 14px;scroll-margin-top:110px}
.guide .g-table{overflow-x:auto;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:#fff}
.guide table{width:100%;border-collapse:collapse;font-size:.93rem;min-width:620px}
.guide th{background:rgba(0,0,0,.035);font-weight:700;text-align:start;padding:12px 14px;white-space:nowrap}
.guide td{padding:12px 14px;border-top:1px solid rgba(0,0,0,.07);vertical-align:top;text-align:start;line-height:1.7}
.guide td small{display:block;font-size:.76rem;opacity:.6;font-weight:400;margin-top:3px}
.guide td:first-child{min-width:170px}
.guide .g-note{font-size:.88rem;opacity:.8;margin-top:10px;text-align:start}
.guide .g-list{margin:0;padding-inline-start:20px;line-height:1.9}
.guide .g-list li{margin-bottom:6px;text-align:start}
.guide .g-help{margin-top:44px;padding:28px;border-radius:14px;background:rgba(0,0,0,.035)}
.guide .g-help h2{margin-top:0}
.guide .g-help p{text-align:start;margin-bottom:16px}
.guide .g-disc{font-size:.8rem;opacity:.6;margin-top:28px;text-align:start}
@media (max-width:700px){.guide .g-help{padding:20px}.guide h2{font-size:1.15rem}}

/* ---- mobile refinements (home) ---- */
.dl-more{display:none;list-style:none;margin:0;padding:0}
.dl-more li{display:flex;align-items:baseline;gap:12px;padding:10px 0;border-top:1px solid rgba(255,255,255,.14);font-size:14px;line-height:1.5}
.dl-more li b{flex:0 0 96px;color:var(--mint);font-size:13px;font-weight:600}
@media (max-width:900px){
.section{padding:30px 0}.hero{padding:20px 0 18px}
.h1{font-size:26px;line-height:1.35}.h2{font-size:21px}.lead{font-size:15px}
.sec-head{margin-bottom:12px}.hero .wrap,.about .wrap{gap:18px}
.about .txt > p.lead,.contact .l > p.muted{display:none}
.creds{display:grid;grid-template-columns:1fr 1fr;column-gap:14px;padding:4px 14px}
.cred{flex-direction:column;justify-content:center;gap:6px;padding:12px 0;text-align:center}
.cred:last-child{border-bottom:0}.cred:nth-last-child(2){border-bottom:0}
.cred b{min-width:0;font-size:21px}.cred b img{width:58px}
.cred span{font-size:13px;line-height:1.45;text-align:center!important}
.grid4,.post-list{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-inline:-20px;padding:2px 20px 12px;scroll-padding-inline:20px}
.grid4::-webkit-scrollbar,.post-list::-webkit-scrollbar{display:none}
.grid4>*,.post-list>*{flex:0 0 80%;max-width:320px;scroll-snap-align:start}
.svc{flex-direction:column;gap:10px;padding:18px}
.deadline{padding:24px 0}.deadline .wrap{gap:16px}.dl-i b{font-size:17px}
.dl-more{display:block}
}

/* ---- about: Dr. Ali quote, values, Nexia mini box; Nexia page intro ---- */
.aq{display:flex;align-items:center;gap:22px;margin:34px 0;padding:26px;background:var(--soft);border-radius:16px}
.aq img{width:96px;height:96px;border-radius:50%;object-fit:cover;flex-shrink:0}
.aq blockquote{margin:0;font-size:19px;line-height:1.8;color:var(--ink);font-weight:600;text-align:start}
.aq figcaption{margin-top:8px;font-size:14px;color:var(--muted)}
.aq figcaption b{color:var(--teal);margin-inline-end:8px}
.nx-mini{display:flex;align-items:center;gap:24px;margin-top:44px;padding:22px 26px;border:1px solid var(--line);border-radius:16px;background:#fff}
.nx-mini img{width:96px;height:auto;flex-shrink:0}
.nx-mini b{font-size:17px}
.nx-mini p{margin:4px 0 10px;text-align:start}
.nx-intro{margin-top:0}
.nx-intro .btn{margin-top:4px}
@media (max-width:700px){.aq,.nx-mini{flex-direction:column;align-items:flex-start;padding:20px}.aq blockquote{font-size:17px}}
.vals div span{color:#C9DAD8;display:block;line-height:1.7}

/* ---- nav dropdown: About ---- */
.dd{position:relative}
.dd-t{display:inline-flex;align-items:center;gap:6px;background:none;border:0;font:inherit;font-weight:500;line-height:1.4;color:var(--ink);padding:8px 12px;border-radius:8px;cursor:pointer;transition:background .15s,color .15s}
.dd-t:hover,.dd.open .dd-t{background:#F1F6F5;color:var(--teal)}
.dd.on .dd-t{background:var(--soft);color:var(--teal);font-weight:600}
.dd-c{font-size:11px;transition:transform .15s}
.dd.open .dd-c{transform:rotate(180deg)}
.dd-m{display:none;position:absolute;top:100%;inset-inline-start:0;min-width:220px;margin-top:6px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px rgba(16,40,43,.12);z-index:60}
.dd-m::before{content:"";position:absolute;inset-inline:0;top:-8px;height:8px}
.nav .dd-m a{display:block;margin:0;padding:10px 12px;border-radius:8px}
.dd.open .dd-m{display:block}
@media (min-width:901px){.dd:hover .dd-m,.dd:focus-within .dd-m{display:block}}
@media (max-width:900px){
.dd{width:100%}
.dd-t{width:100%;justify-content:space-between;padding:12px 4px;border-radius:0;border-bottom:1px solid #EEEAE2}
.dd.on .dd-t,.dd-t:hover,.dd.open .dd-t{background:none}
.dd-m{position:static;margin:0;padding:0 14px 4px 0;border:0;box-shadow:none;border-radius:0;min-width:0}
.dd-m::before{display:none}
.nav .dd-m a{padding:11px 4px;border-radius:0}
}
@media (max-width:900px){.nav.open{align-items:stretch}.nav.open > a{text-align:start}}

/* ---- page hero: image column ~40%, max 300px (desktop only) ---- */
@media (min-width:1001px){
.page-hero.has-img .wrap{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:40px}
.page-hero .ph-img img{height:auto;aspect-ratio:3/2;max-height:300px}
}

/* ---- Nexia box: text spans the same width as the cards above; Arabic disclaimer + smaller English original ---- */
.nexia-box p{max-width:none}
.nexia-box .nx-disc-en{font-size:.85em;opacity:.85;margin-top:-4px}

/* ---- Nexia box: tighter inner padding on phones ---- */
@media (max-width:700px){
.nexia-box{padding:28px 20px}
}

/* ---- Nexia box: 20px padding on phones ---- */
@media (max-width:700px){.nexia-box{padding:20px}}
