/*
Theme Name: الإنجاز لقص وتخريم الخرسانة
Theme URI: https://qaskharsana-ksa.com/
Author: Al Enjaz
Description: قالب ووردبريس عربي RTL لشركة الإنجاز لقص وتخريم الخرسانة، مبني على قالب "محمود اعلان 1" مع مدونة وشريط مقالات وقسم قبل وبعد، وكل المحتوى قابل للتعديل من المظهر > تخصيص.
Version: 2.5.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: al-enjaz-concrete-cutting
*/

:root{--navy:#0b1b33;--accent:#f26522;--accent-dark:#a04014;--light:#f2f4f7;--wa:#166534;--call:#B45309;--hero-bg:#0b1b33;--hero-bg-rgb:11,27,51;--hero-ov:#0b1b33;--hero-ov-rgb:11,27,51;--hero-title:#ffffff;--hero-desc:#eef2f8;--chip-bg:rgba(255,255,255,.14);--chip-text:#ffffff;--brand-name:#000000;--text:#101828;--muted:#4b5565;--radius:22px;--shadow:0 16px 40px rgba(11,27,51,.12);--font:'Tajawal','Segoe UI',Tahoma,Arial,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);direction:rtl;background:#fff;color:var(--text);line-height:1.7;font-size:17px}
body.menu-open{overflow:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
h1,h2,h3{line-height:1.3;margin:0}
.container{width:min(1120px,calc(100% - 32px));margin-inline:auto}
.container.narrow{width:min(820px,calc(100% - 32px))}
.skip-link{position:absolute;top:-60px;right:12px;background:var(--navy);color:#fff;padding:10px 16px;border-radius:0 0 10px 10px;z-index:3000}
.skip-link:focus{top:0}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.ico{flex-shrink:0}

/* Header */
.site-header{position:fixed;top:0;left:0;right:0;z-index:999;background:#fff;box-shadow:0 6px 22px rgba(11,27,51,.09)}
.nav{height:72px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.site-logo-img{height:48px;width:auto;flex-shrink:0}
.brand span{font-size:19px;font-weight:800;line-height:1.25;color:var(--brand-name);max-width:190px}
.desktop-menu{display:flex;gap:20px;align-items:center}
.desktop-menu a{font-weight:700;font-size:16px;color:#1f2d44;padding:6px 2px;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.desktop-menu a:hover{color:var(--accent-dark);border-color:var(--accent)}
.menu-toggle{border:0;background:var(--navy);color:#fff;width:46px;height:44px;border-radius:12px;font-size:25px;cursor:pointer;display:none;align-items:center;justify-content:center}
.close-menu{width:44px;height:44px;border:0;border-radius:12px;background:#e9edf3;font-size:26px;cursor:pointer;color:var(--navy)}
.mobile-menu{position:fixed;inset:0;background:rgba(9,18,31,.88);z-index:2000;opacity:0;visibility:hidden;transition:opacity .22s,visibility .22s}
.mobile-menu.active{opacity:1;visibility:visible}
.mobile-menu-panel{width:min(340px,88%);height:100%;background:#fff;padding:22px;overflow-y:auto}
.mobile-links{display:flex;flex-direction:column;gap:8px;margin-top:22px}
.mobile-links a{padding:15px 14px;border-radius:14px;background:var(--light);font-size:19px;font-weight:700;color:var(--navy)}

/* Buttons */
.cta-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.cta-row.center{justify-content:center}
.cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;min-width:170px;padding:0 26px;border-radius:999px;font-size:19px;font-weight:800;box-shadow:0 10px 24px rgba(0,0,0,.2);transition:transform .15s}
.cta:hover{transform:translateY(-2px)}
.cta{border:0;line-height:1}
.cta.call{background:var(--call);color:#fff}
.cta.wa{background:var(--wa);color:#fff}
.cta:hover{filter:brightness(1.12)}
.cta:active{transform:translateY(0) scale(.97);filter:brightness(.94)}
.btn-outline{display:inline-flex;align-items:center;min-height:48px;padding:0 24px;border-radius:999px;border:2px solid var(--navy);font-weight:800;color:var(--navy);margin:4px;transition:background .2s,color .2s}
.btn-outline:hover{background:var(--navy);color:#fff}
.center-link{text-align:center;margin:30px 0 0}

/* Hero */
.hero{position:relative;min-height:min(92vh,780px);padding-top:72px;display:grid;align-items:center;background:var(--hero-ov);color:#fff;overflow:hidden;isolation:isolate}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(270deg,var(--hero-ov) 0%,rgba(var(--hero-ov-rgb),.78) 45%,rgba(var(--hero-ov-rgb),.18) 100%)}
.hero-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center;padding:40px 0}
.hero-inner:not(:has(.hero-card)){grid-template-columns:minmax(0,760px)}
.chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:0}
.chips li{background:var(--chip-bg);color:var(--chip-text);border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:4px 14px;font-weight:700;font-size:15px}
.hero h1{font-size:clamp(34px,5.2vw,56px);font-weight:800;margin-bottom:14px;color:var(--hero-title)}
.hero .hero-desc{color:var(--hero-desc)}
.hero p.hero-more{color:#eef2f8}
.hero-more a{color:inherit}
.hero p{font-size:clamp(18px,2.2vw,22px);line-height:1.8;margin:0 0 24px;max-width:680px;color:#eef2f8}
.hero-more{margin-top:20px!important;font-weight:700;font-size:17px!important}
.hero-more a{border-bottom:2px solid var(--accent);padding-bottom:2px}
.hero-card{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:26px;padding:14px}
.hero-card img{width:100%;border-radius:18px}

/* Sections */
.section{padding:76px 0}
.section.alt{background:var(--light)}
.section-title{text-align:center;margin-bottom:36px}
.section-title.start{text-align:right;margin-bottom:18px}
.badge{display:inline-block;color:var(--accent-dark);background:#fde9dc;border-radius:999px;padding:5px 16px;font-weight:800;font-size:15px;margin-bottom:12px}
.section-title h2{font-size:clamp(28px,3.6vw,40px);font-weight:800;color:var(--navy)}
.section-title p{color:var(--muted);font-size:19px;line-height:1.85;max-width:740px;margin:14px auto 0}
.about-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:center}
.about-box{background:#fff;border-radius:var(--radius);padding:26px 28px;box-shadow:var(--shadow);border:1px solid #e8ecf2}
.about-box p{font-size:19px;line-height:2;color:#2f3b4e;margin:0 0 14px}
.about-box p:last-child{margin:0}
.stats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.stat{background:#fff;border-radius:18px;padding:20px 14px;text-align:center;box-shadow:0 8px 22px rgba(11,27,51,.08);border-top:4px solid var(--accent);display:flex;flex-direction:column;align-items:center;gap:8px}
.stat .ico{color:var(--accent-dark)}
.stat b{font-size:19px;font-weight:800;color:var(--navy);line-height:1.4}
.stat span{font-size:16px;color:var(--muted);font-weight:500}

/* Cards */
.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.service-card,.work-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid #e8ecf2;margin:0}
.service-card img,.work-card img{width:100%;aspect-ratio:900/650;object-fit:cover}
.service-card .card-body{padding:18px 20px 22px}
.service-card h3{font-size:22px;font-weight:800;color:var(--navy);margin-bottom:6px}
.service-card p{margin:0;color:var(--muted);font-size:17px;line-height:1.8}
.work-card{position:relative}
.work-card figcaption{position:absolute;inset:auto 0 0 0;background:rgba(11,27,51,.9);padding:14px 18px;border-top:3px solid var(--accent)}
.work-card h3{color:#fff;font-size:19px;font-weight:700}
.works-note{text-align:center;color:var(--muted);font-size:15px;margin:26px auto 0;max-width:700px}

/* Blog carousel */
.carousel{position:relative}
.carousel-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:6px 2px 14px;cursor:grab;overscroll-behavior-x:contain}
.carousel-track::-webkit-scrollbar{display:none}
.carousel-track.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto;user-select:none}
.carousel-item{flex:0 0 calc((100% - 40px)/3);scroll-snap-align:start;min-width:0}
.carousel-nav{display:flex;justify-content:center;gap:12px;margin-top:14px}
.carousel-btn{width:48px;height:48px;border-radius:50%;border:2px solid var(--navy);background:#fff;color:var(--navy);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s,color .2s}
.carousel-btn:hover:not(:disabled){background:var(--navy);color:#fff}
.carousel-btn:disabled{opacity:.35;cursor:default}
.post-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid #e8ecf2;height:100%}
.post-card-link{display:flex;flex-direction:column;height:100%}
.post-thumb{aspect-ratio:900/650;overflow:hidden;background:#d9dee6}
.post-thumb img{width:100%;height:100%;object-fit:cover;-webkit-user-drag:none;user-select:none}
.post-card h3{font-size:19px;font-weight:800;color:var(--navy);padding:16px 18px 6px;line-height:1.5}
.read-more{padding:0 18px 18px;color:var(--accent-dark);font-weight:800;font-size:15px;margin-top:auto}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}

/* FAQ */
.faq-wrap{max-width:850px;margin:auto}
details{background:#fff;border:1px solid #e1e6ee;border-radius:18px;padding:0 20px;margin-bottom:14px;box-shadow:0 8px 20px rgba(11,27,51,.05)}
summary{cursor:pointer;padding:18px 0;font-size:19px;font-weight:800;color:var(--navy);list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:26px;color:var(--accent-dark);line-height:1;flex-shrink:0}
details[open] summary::after{content:"−"}
details p{color:var(--muted);font-size:18px;line-height:1.9;margin:0 0 18px}

/* Contact */
.contact-section{background:linear-gradient(180deg,var(--navy),#06101f);color:#fff;text-align:center;padding:76px 0 70px}
.contact-section .badge{background:rgba(255,255,255,.14);color:#fff}
.contact-section .section-title h2{color:#fff}
.contact-section .section-title p{color:#d6deea}
.phone-big{margin:0 0 22px}
.phone-big a{display:inline-block;font-size:clamp(32px,6vw,48px);font-weight:800;color:#fff;letter-spacing:1px;border-bottom:3px solid var(--accent);padding-bottom:2px}

/* Footer + floating */
.footer{background:#06101f;color:#cfd8e6;text-align:center;padding:26px 0 34px;font-weight:500}
.footer-text{margin:0 0 12px}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;font-size:15px}
.footer-links a:hover{color:var(--accent)}
.floating-contact{position:fixed;left:0;top:calc(62vh - 40px);z-index:1500;display:flex;flex-direction:column;gap:10px}
.float-btn{min-width:157px;height:56px;display:flex;align-items:center;justify-content:center;gap:9px;color:#fff;border-radius:0 999px 999px 0;font-size:20px;font-weight:800;box-shadow:0 10px 24px rgba(0,0,0,.25)}
.float-btn{transition:filter .2s,transform .15s}
.float-btn:hover{filter:brightness(1.12)}
.float-btn:active{transform:scale(.96)}
.float-btn .ico{width:24px;height:24px}
.float-btn.call{background:var(--call);color:#fff}
.float-btn.wa{background:var(--wa);color:#fff}
.floating-contact{transition:opacity .2s,visibility .2s}

/* Inner pages */
.inner-main{padding-top:72px;min-height:70vh}
.page-banner{background:linear-gradient(180deg,var(--navy),#12294b);color:#fff;padding:46px 0 40px}
.page-banner h1{font-size:clamp(28px,4.4vw,42px);font-weight:800}
.page-banner p{margin:10px 0 0;color:#d6deea;font-size:18px;max-width:720px}
.breadcrumb{font-size:15px;color:#cdd7e6;margin-bottom:10px}
.breadcrumb a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.post-meta{font-size:15px!important}
.single-thumb{margin-bottom:28px;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.single-thumb img{width:100%}
.entry-content{font-size:19px;line-height:2.05;color:#1f2a3b}
.entry-content h2{font-size:28px;color:var(--navy);margin:34px 0 10px;font-weight:800}
.entry-content h3{font-size:22px;color:var(--navy);margin:26px 0 8px}
.entry-content p{margin:0 0 16px}
.entry-content ul,.entry-content ol{padding-inline-start:26px;margin:0 0 18px}
.entry-content li{margin-bottom:6px}
.entry-content a{color:var(--accent-dark);text-decoration:underline}
.article-cta{margin-top:44px;background:var(--light);border-radius:var(--radius);padding:28px 20px;text-align:center;border-top:4px solid var(--accent)}
.article-cta h2{font-size:24px;color:var(--navy);margin-bottom:18px}
.center-text{text-align:center}
.empty-note{text-align:center;color:var(--muted)}
.navigation.pagination{margin-top:34px;text-align:center}
.nav-links{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:46px;padding:0 16px;border-radius:12px;background:#fff;border:1px solid #d5dbe5;font-weight:800;color:var(--navy)}
.page-numbers.current{background:var(--navy);color:#fff;border-color:var(--navy)}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Tablet */
@media(max-width:900px){
	.desktop-menu{display:none}
	.menu-toggle{display:inline-flex}
	.hero-inner{grid-template-columns:1fr}
	.about-grid{grid-template-columns:1fr}
	.cards-grid,.post-grid{grid-template-columns:repeat(2,1fr)}
	.carousel-item{flex-basis:calc((100% - 20px)/2)}
	.section{padding:62px 0}
}
/* Mobile */
@media(max-width:620px){
	body{font-size:16px}
	.container{width:min(100% - 24px,1120px)}
	.nav{height:66px}
	.inner-main{padding-top:66px}
	.hero{padding-top:66px;min-height:auto}
	.site-logo-img{height:42px}
	.brand span{font-size:16px;max-width:170px}
	.cta{min-width:0;flex:1 1 150px;min-height:54px;font-size:18px;padding:0 18px}
	.cards-grid,.post-grid{grid-template-columns:1fr}
	.stats{grid-template-columns:1fr 1fr}
	.section{padding:52px 0}
	.float-btn{min-width:0;width:50px;border-radius:0 25px 25px 0}
	.float-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
	.entry-content{font-size:18px}
}
@media(max-width:479px){
	.carousel-item{flex-basis:86%}
}
@media(prefers-reduced-motion:reduce){
	html{scroll-behavior:auto}.carousel-track{scroll-behavior:auto}.cta{transition:none}
}

/* Before/After badge: centered over each complete work image */
.work-card .ba-badge{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:clamp(58px,20%,92px);height:auto;object-fit:contain;z-index:2;pointer-events:none;filter:drop-shadow(0 3px 8px rgba(0,0,0,.35))}

/* ===== Mobile refinements (desktop unchanged) ===== */
@media(max-width:900px){
	html{scroll-padding-top:76px}
	.floating-contact{left:max(12px,env(safe-area-inset-left,0px));right:auto;top:auto;bottom:max(56px,calc(env(safe-area-inset-bottom,0px) + 48px));flex-direction:column;gap:12px}
	.floating-contact.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
	.float-btn{width:52px;min-width:0;height:52px;border-radius:50%;padding:0;box-shadow:0 6px 16px rgba(0,0,0,.3)}
	.float-btn .ico{width:26px;height:26px}
	.float-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
}
@media(max-width:620px){
	html{scroll-padding-top:74px}
	body{line-height:1.7}
	.nav{height:64px;gap:10px}
	.inner-main{padding-top:64px}
	.site-logo-img{height:40px}
	.brand{gap:8px}
	.brand span{font-size:15px;max-width:150px;line-height:1.3}
	.menu-toggle{width:44px;height:44px;font-size:24px}
	.hero{display:block;padding-top:64px;min-height:0}
	.hero-bg{position:relative;inset:auto;display:block;width:100%;height:clamp(210px,60vw,300px);object-fit:cover;object-position:center 35%;z-index:auto}
	.hero::after{display:none}
	.hero-inner{padding:22px 0 30px}
	.chips{margin-bottom:14px;gap:6px}
	.chips li{font-size:14px;padding:3px 12px}
	.hero h1{font-size:clamp(28px,8vw,36px);line-height:1.35;margin-bottom:12px}
	.hero p{font-size:17px;line-height:1.8;margin-bottom:20px}
	.hero-actions{flex-wrap:nowrap;gap:10px}
	.hero-actions .cta{flex:1 1 0;min-width:0;padding:0 10px;font-size:17px;min-height:52px}
	.hero-more{margin-top:14px!important}
	.section{padding:44px 0}
	.section-title{margin-bottom:24px}
	.section-title h2{font-size:clamp(25px,7vw,30px)}
	.section-title p{font-size:17px;line-height:1.8;margin-top:10px}
	.badge{font-size:14px;margin-bottom:8px}
	.about-box{padding:18px 18px}
	.about-box p{font-size:17px;line-height:1.9}
	.stat{padding:14px 10px}
	.stat b{font-size:17px}
	.cards-grid,.post-grid{gap:16px}
	.service-card .card-body{padding:14px 16px 18px}
	.service-card h3{font-size:20px}
	.service-card p{font-size:16px;line-height:1.75}
	.work-card .ba-badge{width:clamp(56px,19%,76px)}
	.work-card h3{font-size:17px}
	.works-note{font-size:14px;margin-top:20px}
	details{padding:0 16px;margin-bottom:10px}
	summary{font-size:17px;padding:15px 0}
	details p{font-size:16px}
	.contact-section{padding:48px 0 44px}
	.phone-big{margin-bottom:18px}
	.phone-big a{font-size:34px}
	.contact-section .cta-row{gap:10px}
	.contact-section .cta{flex:1 1 140px;min-width:0}
	.footer{padding:24px 0 40px}
	.footer-links{font-size:15px;gap:8px 16px}
	.page-banner{padding:32px 0 28px}
	.entry-content h2{font-size:24px}
}

.carousel.no-scroll .carousel-nav{display:none}
.work-card img.ba-badge{height:auto;aspect-ratio:auto;object-fit:contain}

/* ===== Mobile hero + header redesign (<=900px only; desktop untouched) ===== */
.hero picture{display:contents}
@media(max-width:900px){
	.hero{display:block;padding-top:64px;min-height:0;background:var(--hero-bg)}
	.hero-bg{position:relative;inset:auto;display:block;width:100%;height:auto;aspect-ratio:4/3;max-height:420px;object-fit:cover;object-position:var(--hero-pos,50%) 40%;z-index:auto;opacity:1}
	.hero::after{display:none}
	.hero-card{display:none}
	.hero-inner{display:block;position:relative;padding:26px 0 32px}
	.hero-inner::before{content:"";position:absolute;top:-22px;left:0;right:0;height:22px;background:linear-gradient(180deg,rgba(var(--hero-bg-rgb),0),var(--hero-bg));pointer-events:none}
	.hero p.hero-more{color:#e6ebf3}
	.hero h1{font-size:clamp(27px,7.6vw,38px);line-height:1.4;text-wrap:balance;margin-bottom:12px}
	.hero p{font-size:16px;line-height:1.85;color:#e6ebf3;text-wrap:pretty;margin-bottom:20px}
	.chips{margin-bottom:14px}
}
@media(max-width:620px){
	.hero-bg{max-height:none}
	.nav{gap:8px}
	.brand{flex:1 1 auto;min-width:0;gap:8px}
	.brand span{max-width:none;font-size:clamp(14px,4.1vw,17px);line-height:1.3;white-space:normal;text-wrap:balance}
	.menu-toggle{flex:0 0 44px}
}

/* ===== One unified text colour for every section below the hero (--sec-text).
   Unset = the original colours (fallbacks). Buttons, badges, icons, hero and header are excluded. ===== */
#about .section-title h2,#services .section-title h2,#works .section-title h2,#blog .section-title h2,#faq .section-title h2{color:var(--sec-text,var(--navy))}
#about .about-box p{color:var(--sec-text,#2f3b4e)}
#about .stat b{color:var(--sec-text,var(--navy))}
#about .stat span{color:var(--sec-text,var(--muted))}
#services .section-title p,#works .section-title p,#blog .section-title p{color:var(--sec-text,var(--muted))}
#services .service-card h3{color:var(--sec-text,var(--navy))}
#services .service-card p{color:var(--sec-text,var(--muted))}
#works .work-card h3{color:var(--sec-text,#fff)}
#works .works-note{color:var(--sec-text,var(--muted))}
#blog .post-card h3{color:var(--sec-text,var(--navy))}
#faq summary{color:var(--sec-text,var(--navy))}
#faq details p{color:var(--sec-text,var(--muted))}
#contact .section-title h2{color:var(--sec-text,#fff)}
#contact .section-title p{color:var(--sec-text,#d6deea)}
.footer .footer-text,.footer .footer-links a{color:var(--sec-text,#cfd8e6)}
.footer .footer-links a:hover{color:var(--accent)}
