/*
Theme Name: Anwar Alsulay Services
Theme URI: https://anwaralsulay.com
Author: Time Solution
Description: ثيم مخصص لموقع أنوار السلي للخدمات — خدمات المركبات والنقليات الثقيلة. تصميم عصري RTL متعدد الصفحات.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: anwar
*/

:root{--ink:#0E2438;--ink2:#16324B;--amber:#F5A623;--amber-d:#E0951A;--paper:#F5F7F9;--white:#fff;--line:#E3E8EC;--muted:#5C6B77;--text:#1B2B38;--wa:#25D366;--radius:14px;--maxw:1180px;--shadow:0 10px 30px rgba(14,36,56,.08);--shadow-lg:0 22px 50px rgba(14,36,56,.16);--fd:"Tajawal",system-ui,"Segoe UI",sans-serif;--fb:"IBM Plex Sans Arabic","Tajawal",system-ui,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--fb);color:var(--text);background:var(--white);line-height:1.8;font-size:17px;-webkit-font-smoothing:antialiased;overflow-x:clip}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:var(--fd);font-weight:800;line-height:1.3;margin:0;color:var(--ink)}
p{margin:0 0 14px}
.container{max-width:var(--maxw);margin:0 auto;padding:0 22px}
.section{padding:88px 0}
.section--paper{background:var(--paper)}
.eyebrow{display:inline-flex;align-items:center;gap:10px;font-family:var(--fd);font-weight:700;font-size:14px;color:var(--amber-d);margin-bottom:14px}
.eyebrow .chev{width:26px;height:12px;background:repeating-linear-gradient(-45deg,var(--amber) 0 5px,transparent 5px 10px);border-radius:2px;display:inline-block}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--fd);font-weight:700;font-size:16px;padding:12px 22px;border-radius:10px;border:2px solid transparent;cursor:pointer;transition:transform .15s,box-shadow .2s,background .2s;white-space:nowrap}
.btn:hover{transform:translateY(-2px)}
.btn--lg{padding:15px 30px;font-size:17px}
.btn--wa{background:var(--wa);color:#04321c;box-shadow:0 8px 20px rgba(37,211,102,.28)}
.btn--amber{background:var(--amber);color:#3a2600;box-shadow:0 8px 20px rgba(245,166,35,.3)}
.btn--dark{background:var(--ink);color:#fff}
.btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.btn--ghost:hover{background:rgba(255,255,255,.1)}
.topbar{background:var(--ink2);color:#cdd8e2;font-size:13.5px}
.topbar__in{display:flex;justify-content:space-between;align-items:center;height:40px;gap:12px}
.topbar__item{color:#cdd8e2}
.nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line);transition:box-shadow .25s}
.nav.scrolled{box-shadow:0 6px 22px rgba(14,36,56,.09)}
.nav__in{display:flex;align-items:center;gap:26px;height:74px;transition:height .25s}
.nav.scrolled .nav__in{height:64px}
.brand{display:flex;align-items:center;gap:11px}
.brand__mark{width:42px;height:42px;border-radius:11px;background:linear-gradient(135deg,var(--ink),var(--ink2));color:var(--amber);display:grid;place-items:center;font-family:var(--fd);font-weight:800;font-size:22px}
.brand__logo{height:46px;width:auto;display:block}
.brand__logo--foot{height:62px}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.brand__txt{display:flex;flex-direction:column;line-height:1.1}
.brand__txt b{font-family:var(--fd);font-size:19px;color:var(--ink)}
.brand__txt small{font-size:12.5px;color:var(--muted)}
.menu{display:flex;gap:26px;margin-inline-start:auto;list-style:none;padding:0}
.menu li{list-style:none}
.menu a{font-family:var(--fd);font-weight:600;color:#2a3d4c;font-size:16px;position:relative;padding:4px 0}
.menu a::after{content:"";position:absolute;bottom:-2px;inset-inline-start:0;width:0;height:2.5px;background:var(--amber);transition:width .25s;border-radius:2px}
.menu a:hover{color:var(--ink)}
.menu a:hover::after{width:100%}
.burger{display:none;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:none;border:0;cursor:pointer;width:44px;height:44px;padding:8px}
.burger span{width:24px;height:2.5px;background:var(--ink);border-radius:2px}
.hero{position:relative;background:linear-gradient(120deg,var(--ink),var(--ink2));color:#eaf1f7;overflow:hidden}
.hero__bg{position:absolute;inset:0;background:linear-gradient(120deg,rgba(14,36,56,.72),rgba(22,50,75,.55)),url('naql-thaqeel-riyadh.webp') center/cover no-repeat}
.hero__bg::after{content:"";position:absolute;inset:0;background:radial-gradient(620px 320px at 85% -10%,rgba(245,166,35,.15),transparent 60%)}
.hero__in{position:relative;padding:96px 22px 108px}
.hero__content{max-width:760px}
.hero .eyebrow{color:var(--amber)}
.hero__title{font-size:clamp(32px,5vw,54px);color:#fff;letter-spacing:-.5px}
.hero__sub{font-size:clamp(16px,2vw,20px);color:#c6d4e0;margin:18px 0 30px;max-width:660px}
.hero__actions{display:flex;gap:14px;flex-wrap:wrap}
.hero__trust{list-style:none;display:flex;gap:26px;flex-wrap:wrap;padding:0;margin:34px 0 0;color:#aebecb;font-size:15px}
.hero__trust li{position:relative;padding-inline-start:20px}
.hero__trust li::before{content:"";position:absolute;inset-inline-start:0;top:9px;width:9px;height:9px;background:var(--amber);border-radius:50%}
.hero__stripe{height:8px;background:repeating-linear-gradient(-45deg,var(--amber) 0 16px,#0e2438 16px 32px)}
.head{max-width:660px;margin-bottom:44px}
.head__title{font-size:clamp(25px,3.2vw,36px)}
.head__desc{color:var(--muted);font-size:17px;margin-top:12px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{position:relative;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:26px 22px;transition:transform .2s,box-shadow .2s,border-color .2s;overflow:hidden;display:block}
.card::before{content:"";position:absolute;top:0;inset-inline-end:0;width:100%;height:4px;background:var(--amber);transform:scaleX(0);transform-origin:right;transition:transform .25s}
.card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg);border-color:transparent}
.card:hover::before{transform:scaleX(1)}
.card__icon{width:52px;height:52px;border-radius:13px;background:#fff4e0;color:var(--amber-d);display:grid;place-items:center;margin-bottom:16px}
.card__icon svg{width:27px;height:27px}
.card__title{font-size:19px;margin-bottom:7px}
.card__desc{color:var(--muted);font-size:15px;margin-bottom:14px}
.card__link{display:inline-flex;align-items:center;gap:7px;font-family:var(--fd);font-weight:700;color:var(--ink);font-size:15px}
.card__link .arr{width:16px;height:9px;background:var(--amber);clip-path:polygon(0 40%,60% 40%,60% 0,100% 50%,60% 100%,60% 60%,0 60%);transform:scaleX(-1);transition:margin .2s}
.card:hover .card__link{color:var(--amber-d)}
.card:hover .card__link .arr{margin-inline-start:4px}
.about{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center}
.about__text p{color:#3a4a57;font-size:17px}
.about__text .btn{margin-top:10px}
.about__stats{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.stat{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px 18px;text-align:center}
.stat b{display:block;font-family:var(--fd);font-weight:800;font-size:30px;color:var(--ink)}
.stat span{color:var(--muted);font-size:14px}
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.gallery__item{margin:0;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);background:var(--white);aspect-ratio:4/3}
.gallery__item img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.gallery__item:hover img{transform:scale(1.06)}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.step{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 24px;position:relative}
.step__n{font-family:var(--fd);font-weight:800;font-size:20px;color:var(--amber-d);background:#fff4e0;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;margin-bottom:16px}
.step h3{font-size:18px;margin-bottom:8px}
.step p{color:var(--muted);font-size:15px;margin:0}
.why{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.why__item{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 22px}
.why__num{display:block;width:34px;height:10px;background:repeating-linear-gradient(-45deg,var(--amber) 0 5px,transparent 5px 10px);border-radius:2px;margin-bottom:16px}
.why__title{font-size:18px;margin-bottom:8px}
.why__item p{color:var(--muted);font-size:15px;margin:0}
.ctaband{background:linear-gradient(120deg,var(--ink),var(--ink2));color:#fff}
.ctaband__in{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:56px 22px;flex-wrap:wrap}
.ctaband__title{color:#fff;font-size:clamp(23px,3vw,31px)}
.ctaband__sub{color:#c6d4e0;margin:8px 0 0}
.ctaband__actions{display:flex;gap:14px;flex-wrap:wrap}
.contact{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.contact__card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px 20px;display:flex;flex-direction:column;gap:5px;transition:transform .2s,box-shadow .2s}
.contact__card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.contact__ic{width:46px;height:46px;border-radius:12px;background:var(--ink);color:var(--amber);display:grid;place-items:center;margin-bottom:6px}
.contact__ic svg{width:23px;height:23px}
.contact__card b{font-family:var(--fd);color:var(--ink);font-size:16px}
.contact__card span{color:var(--muted);font-size:14.5px}
.contact__meta{color:var(--amber-d)!important;font-size:13.5px;font-weight:600;font-family:var(--fd)}
.map{margin-top:26px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow)}
.map iframe{width:100%;height:380px;border:0;display:block}
/* page hero (sub pages) */
.pagehero{position:relative;background:linear-gradient(120deg,var(--ink),var(--ink2));color:#fff;overflow:hidden}
.pagehero .container{padding-top:72px;padding-bottom:80px;position:relative}
.pagehero .eyebrow{color:var(--amber)}
.pagehero__title{font-size:clamp(28px,4vw,46px);color:#fff;max-width:820px}
.pagehero__sub{color:#c6d4e0;font-size:clamp(16px,2vw,19px);max-width:720px;margin-top:16px}
/* services detail */
.svc-list{display:grid;gap:20px}
.svc{background:#fff;border:1px solid var(--line);border-radius:16px;padding:30px 28px;scroll-margin-top:110px;border-inline-start:5px solid var(--amber)}
.svc__head{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.svc__icon{width:52px;height:52px;border-radius:13px;background:#fff4e0;color:var(--amber-d);display:grid;place-items:center;flex:none}
.svc__icon svg{width:27px;height:27px}
.svc__title{font-size:23px}
.svc__lead{color:#3a4a57;font-size:16.5px}
.svc__points{margin:6px 0 20px;padding:0;list-style:none;display:grid;gap:8px}
.svc__points li{position:relative;padding-inline-start:24px;color:#2f3e4a;font-size:15.5px}
.svc__points li::before{content:"";position:absolute;inset-inline-start:0;top:9px;width:14px;height:8px;background:var(--amber);clip-path:polygon(0 40%,55% 40%,55% 0,100% 50%,55% 100%,55% 60%,0 60%);transform:scaleX(-1)}
.svc__extra{color:#3a4a57;font-size:15px;background:var(--paper);border-inline-start:3px solid var(--amber);border-radius:10px;padding:14px 16px;margin:0 0 20px}
/* faq */
.faq{display:grid;gap:12px;max-width:840px}
.faq__item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:4px 20px}
.faq__item summary{font-family:var(--fd);font-weight:700;color:var(--ink);font-size:17px;cursor:pointer;padding:16px 0;list-style:none;position:relative;padding-inline-end:28px}
.faq__item summary::-webkit-details-marker{display:none}
.faq__item summary::after{content:"+";position:absolute;inset-inline-end:0;top:14px;color:var(--amber-d);font-size:22px;font-weight:700}
.faq__item[open] summary::after{content:"−"}
.faq__a{color:#3a4a57;font-size:15.5px;padding:0 0 16px}
/* about prose */
.prose{max-width:900px}
.prose p{color:#3a4a57;font-size:17px}
.prose .head__title{margin-bottom:14px}
.mv{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}
.mv__card{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:26px 24px}
.mv__card h3{font-size:20px;margin-bottom:10px}
.mv__card p{margin:0;color:#3a4a57;font-size:16px}
.prose__ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.prose__ul li{position:relative;padding-inline-start:24px;color:#2f3e4a}
.prose__ul li::before{content:"";position:absolute;inset-inline-start:0;top:10px;width:14px;height:8px;background:var(--amber);clip-path:polygon(0 40%,55% 40%,55% 0,100% 50%,55% 100%,55% 60%,0 60%);transform:scaleX(-1)}
.values{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:8px}
.value{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px 22px}
.value h3{font-size:18px;margin-bottom:8px}
.value p{color:var(--muted);font-size:15px;margin:0}
/* footer */
.foot{background:var(--ink);color:#b9c7d4}
.foot__in{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:34px;padding:60px 22px 40px}
.brand--light .brand__txt b{color:#fff}
.brand--light .brand__txt small{color:#9fb0be}
.foot__brand p{margin:16px 0 18px;font-size:15px;max-width:300px}
.foot__col h4{color:#fff;font-size:16px;margin-bottom:16px}
.foot__col ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.foot__col a{color:#b9c7d4;font-size:15px;transition:color .2s}
.foot__col a:hover{color:var(--amber)}
.foot__bar{border-top:1px solid rgba(255,255,255,.09);padding:18px 0;font-size:13.5px;color:#8ea0af;text-align:center}
.wa-float{position:fixed;inset-inline-start:20px;bottom:20px;width:56px;height:56px;border-radius:50%;background:var(--wa);color:#fff;display:grid;place-items:center;box-shadow:0 10px 26px rgba(37,211,102,.4);z-index:60;transition:transform .2s}
.wa-float:hover{transform:scale(1.08)}
.wa-float svg{width:30px;height:30px}
.reveal{opacity:0;transform:translateY(22px);transition:opacity .6s,transform .6s}
.reveal.in{opacity:1;transform:none}
.page-wrap{max-width:860px;margin:60px auto;padding:0 22px}
.page-wrap h1{font-size:34px;margin-bottom:20px}
@media(max-width:960px){.grid,.why,.steps,.contact,.values{grid-template-columns:repeat(2,1fr)}.about,.mv{grid-template-columns:1fr;gap:30px}.foot__in{grid-template-columns:1fr 1fr}}
@media(max-width:720px){
.section{padding:60px 0}
.menu{position:fixed;inset:0 0 0 auto;top:0;height:100vh;width:80%;max-width:320px;background:#fff;flex-direction:column;gap:6px;padding:90px 26px;box-shadow:-10px 0 40px rgba(0,0,0,.15);transform:translateX(110%);visibility:hidden;transition:transform .28s,visibility .28s;margin:0}
.menu.open{transform:translateX(0);visibility:visible}
.menu a{font-size:19px;padding:10px 0;border-bottom:1px solid var(--line)}
.burger{display:flex;margin-inline-start:auto}
.nav__cta{display:none}
.grid,.why,.steps,.contact,.foot__in,.about__stats,.values{grid-template-columns:1fr}
.topbar__in{font-size:12px}
.hero__actions .btn,.ctaband__actions .btn{flex:1}
.ctaband__in{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.reveal{opacity:1;transform:none;transition:none}}
/* --- mobile polish --- */
body{overflow-x:clip}            /* clip the off-canvas drawer; on body (not html) so position:sticky nav keeps working — and clip, not hidden */
@media (max-width:720px){
  .hero__in{padding:64px 22px 72px}
  .hero__title{font-size:clamp(28px,7vw,40px)}
  .map iframe{height:300px}
  .topbar__in{flex-wrap:wrap;height:auto;padding:8px 0;gap:6px 12px}
  .contact__card{overflow-wrap:anywhere}
}
@media (max-width:380px){
  .container{padding:0 16px}
  .btn{padding:12px 16px;font-size:15px}
}
img{height:auto}
a,button{-webkit-tap-highlight-color:rgba(245,166,35,.25)}
