/*
Theme Name: Sathat Qatar Recovery
Version: 7.6.0
Description: Responsive bilingual roadside assistance theme with Elementor page support and RTL.
Text Domain: qatar-recovery
Requires at least: 6.0
Requires PHP: 7.4
*/
:root{--navy:#0e1b26;--red:#c71919;--yellow:#ffc400;--green:#13772f;--shade:#edf0f2;--line:#e1e5e9;--muted:#52606b}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;font:16px/1.6 system-ui,"Segoe UI",Roboto,Arial,sans-serif;color:#101b27;background:#fff;overflow-wrap:break-word}
.qr-lang-ar{direction:rtl;font-family:"Segoe UI",Tahoma,"Noto Sans Arabic",Arial,sans-serif;line-height:1.8}
h1,h2,h3{line-height:1.2;margin:0 0 12px}.qr-lang-ar h1,.qr-lang-ar h2{line-height:1.45}
h2{font-size:clamp(23px,2.6vw,34px);font-weight:800}
p{margin:0 0 14px}a{color:inherit;text-underline-offset:3px}img{max-width:100%;height:auto}
ul{margin:0;padding:0;list-style:none}
.wrap{width:min(1240px,100% - 48px);margin-inline:auto}
:focus-visible{outline:3px solid #e29a00;outline-offset:3px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.screen-reader-text:focus{width:auto;height:auto;clip-path:none;background:#fff;color:#000;padding:10px;z-index:99;inset:8px auto auto 8px}
.ico{width:1.2em;height:1.2em;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.row{display:flex;align-items:center;gap:10px;margin:0 0 8px}.row a{overflow-wrap:anywhere;min-width:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:8px 20px;border-radius:8px;background:var(--red);color:#fff;font-weight:750;line-height:1.3;text-decoration:none}
.btn .ico{width:24px;height:24px}.btn small{display:block;font-size:13px;font-weight:500}
.btn.wa{background:var(--green)}.btn:hover{filter:brightness(1.1)}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.outline{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:6px 16px;border:1px solid var(--red);border-radius:7px;color:var(--red);font-weight:750;text-decoration:none;background:#fff}
.outline:hover{background:var(--red);color:#fff}
.label{margin:0 0 4px;color:var(--red);font-size:13px;font-weight:800}
.center{text-align:center}

.top{background:var(--navy);color:#fff;font-size:13px}
.top .wrap{display:flex;align-items:center;gap:22px;min-height:36px}
.top a,.top span.topmore,.topnote{display:flex;align-items:center;gap:7px;text-decoration:none}
.topnote{margin-inline-end:auto}
.header{position:sticky;top:0;z-index:50;background:#fff;box-shadow:0 3px 14px #10182014}
.admin-bar .header{top:32px}
.header .wrap{display:flex;align-items:center;gap:16px;min-height:74px}
.brand{display:flex;align-items:center;gap:10px;margin-inline-end:auto;color:var(--red);text-decoration:none;line-height:1.25}
.brand span b{display:block;font-size:17px;white-space:nowrap;text-align:center}
.logo-art{width:92px;height:auto}.custom-logo{width:auto;max-width:150px;max-height:56px}
.nav ul{display:flex;gap:4px}.nav{margin-inline-end:auto}
.nav a{display:block;padding:7px 11px;border-radius:4px;font-size:14px;font-weight:750;text-decoration:none;white-space:nowrap}
.nav a:hover{color:var(--red)}
.nav a[aria-current=page],.nav .current-menu-item>a{background:var(--red);color:#fff}
.menu-toggle{display:none}

.hero{position:relative;overflow:hidden;isolation:isolate;background:var(--navy);color:#fff}
.hero-photo{position:absolute;z-index:-1;top:0;bottom:0;right:0;width:min(64%,900px);height:100%;object-fit:cover;-webkit-mask-image:linear-gradient(90deg,transparent,#000 42%);mask-image:linear-gradient(90deg,transparent,#000 42%)}
.qr-lang-ar .hero-photo{right:auto;left:0;-webkit-mask-image:linear-gradient(270deg,transparent,#000 42%);mask-image:linear-gradient(270deg,transparent,#000 42%)}
.hero-copy{max-width:520px;padding:48px 0 84px;min-height:430px;text-shadow:0 1px 8px #0009}
.hero h1{font-size:clamp(34px,4.2vw,54px);font-weight:850;margin:14px 0}
.hero h1 em{display:block;font-style:normal;color:var(--yellow)}
.hero .btn{text-shadow:none}
.tag{display:inline-block;margin:0;padding:3px 10px;background:var(--red);font-size:13px;font-weight:800}

.trust{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:-36px;padding:18px 10px;background:#fff;border-radius:12px;box-shadow:0 5px 22px #15233326}
.trust li{display:flex;align-items:center;gap:12px;padding-inline:14px;border-inline-end:1px solid var(--line)}
.trust li:last-child{border:0}
.trust .ico{width:36px;height:36px;color:var(--red)}
.trust strong,.card strong{display:block;line-height:1.35}
.trust small,.card small{display:block;margin-top:3px;font-size:12.5px;line-height:1.45;color:var(--muted)}

.about{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;padding-block:44px}
.about img{width:100%;aspect-ratio:2.13;object-fit:cover;border-radius:12px}
.shade{background:var(--shade);padding:34px 0}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}
.cards.four{grid-template-columns:repeat(4,minmax(0,1fr));margin:8px 0 0}
.card{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 3px 10px #0000000d;text-decoration:none}
.card:hover{border-color:var(--red)}
.card .ico{width:36px;height:36px;color:var(--red)}
.card>span{min-width:0}

.why{background:#8c1010 linear-gradient(110deg,#a51010,#620e0e);color:#fff;padding:28px 0}
.why .wrap{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,5fr);gap:28px;align-items:center}
.why .label{color:var(--yellow)}.why h2{margin:0;font-size:clamp(22px,2.3vw,30px)}
.why ul{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.why li{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;font-size:14px;font-weight:700;line-height:1.4}
.why li .ico{width:32px;height:32px;color:var(--yellow)}

.areas,.blogrow{padding-block:36px}
.chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.chips a{display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 18px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 2px 8px #0000000f;font-weight:600;text-decoration:none}
.chips a:hover{border-color:var(--red)}.chips .ico{color:var(--red)}
.heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:6px}
.heading .outline{margin-bottom:12px;font-size:13px;white-space:nowrap}
.posts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.post{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#fff;text-decoration:none}
.post:hover{border-color:var(--red)}
.post img,.noimg{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:2.6;object-fit:cover}
.noimg{background:var(--shade);color:var(--red)}.noimg .ico{width:38px;height:38px}
.post strong{padding:12px;font-size:14px;line-height:1.45}

.band{background:var(--navy);color:#fff;padding:34px 0;border-bottom:1px solid #ffffff1f}
.band .wrap{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px}
.band h2{margin-bottom:4px}.band p{margin:0;color:#c9d2da}.band .actions{margin:0}

.pagehead{background:var(--navy);color:#fff;padding:30px 0;border-bottom:4px solid var(--red)}
.pagehead h1{margin:0;font-size:clamp(27px,3.6vw,42px)}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px;font-size:13px;color:#c9d2da}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:48px;align-items:start;padding-block:40px;min-height:45vh}
.layout.wide{display:block}
.prose{max-width:760px}.wide .prose{max-width:none}.wide .prose>p{max-width:760px}
.prose>p{font-size:17px}.prose .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.wide .prose .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.prose .chips{justify-content:flex-start;margin:20px 0}.prose .posts{margin-top:20px}
.feature{display:block;margin:16px 0;border-radius:10px}
.prose h2{font-size:22px;margin:30px 0 8px}.prose>ul:not([class]){list-style:disc;margin:0 0 16px;padding-inline-start:22px}.prose>ul:not([class]) li{margin-bottom:6px}
.aside{padding:22px;background:var(--shade);border-radius:12px}
.aside h2{font-size:20px}.aside h3{font-size:16px;margin:24px 0 6px}
.aside .actions{display:grid;margin-top:0}
.aside li a{display:block;padding:8px 0;border-bottom:1px solid #d5dbe0;text-decoration:none}.aside li a:hover{color:var(--red)}
.faq{border:1px solid var(--line);border-radius:10px;padding:14px 18px;margin-bottom:12px}
.faq summary{cursor:pointer;font-weight:700}.faq p{margin:10px 0 0;color:var(--muted)}
.content{min-height:55vh;padding-block:40px}

.footer{background:var(--navy);color:#fff;padding:38px 0 22px;font-size:14px}
.footer .cols{display:flex;flex-wrap:wrap;gap:36px}.footer .cols>div{flex:1 1 280px;min-width:0}
.footer h2{font-size:17px}
.footer .brand{color:#fff;margin-bottom:12px;justify-content:flex-start}
.footer a{text-decoration:none}.footer a:hover{text-decoration:underline}
.links{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}
.legal{margin-top:24px;padding-top:16px;border-top:1px solid #ffffff26;font-size:13px}
.fixed{display:none}

/* Inside Elementor */
.qr-el .e-con,.qr-el .e-con-inner{--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;--row-gap:0px;--widgets-spacing:0px;gap:0}
.qr-el .elementor-widget{width:100%;max-width:100%;margin:0}
.qr-el .elementor-widget-qr-trust{position:relative;z-index:2}
.elementor .hero img.hero-photo{height:100%;max-width:none}
.elementor .about img{height:auto;border-radius:12px}
.elementor .hero h1,.elementor .qr-el h2{color:inherit}
@media(max-width:600px){.elementor .hero img.hero-photo{height:auto;max-width:100%}}

@media(max-width:1160px){.topmore{display:none!important}.brand span b{font-size:15px}.logo-art{width:72px}.nav a{padding:6px 7px;font-size:13px}}
@media(max-width:960px){
 .menu-toggle{display:flex;align-items:center;gap:6px;min-height:42px;padding:6px 12px;border:0;border-radius:7px;background:var(--red);color:#fff;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
 .nav{display:none;position:absolute;inset:100% 0 auto;max-height:70vh;overflow:auto;padding:8px 24px 16px;background:#fff;border-bottom:3px solid var(--red)}
 .nav.open{display:block}.nav ul{flex-direction:column}.nav a{padding:11px 12px;font-size:16px}
 .trust,.cards.four,.posts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .trust{gap:14px 0}.trust li:nth-child(2){border:0}
 .why .wrap{grid-template-columns:1fr}
 .layout{grid-template-columns:minmax(0,1fr)}
 .wide .prose .cards,.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:782px){.admin-bar .header{top:46px}}
@media(max-width:600px){
 body{padding-bottom:72px}
 .admin-bar .header{top:0}
 .wrap{width:calc(100% - 28px)}
 .top .wrap{justify-content:space-between;gap:10px;font-size:12px}.topnote .ico{display:none}.topnote{margin:0}.top .ico{width:14px;height:14px}
 .header .wrap{gap:8px;min-height:64px}.logo-art{width:56px}.brand{gap:6px}.brand span b{font-size:13px}
 .lang{padding:4px 8px;font-size:13px}.lang .ico,.menu-toggle span{display:none}
 .hero{display:flex;flex-direction:column}
 .hero-photo,.qr-lang-ar .hero-photo{position:static;order:2;width:100%;height:auto;aspect-ratio:576/330;-webkit-mask-image:linear-gradient(transparent,#000 22%);mask-image:linear-gradient(transparent,#000 22%)}
 .hero-copy{min-height:0;padding:28px 0 8px}
 .hero h1{font-size:33px}
 .hero .actions,.band .actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
 .actions .btn{padding-inline:8px;gap:7px}
 .trust{margin-top:-18px;padding:14px 4px}.trust li{gap:8px;padding-inline:8px;font-size:13.5px}.trust .ico{width:26px;height:26px}
 .about{grid-template-columns:1fr;gap:18px;padding-block:30px}
 .cards,.cards.four,.prose .cards,.wide .prose .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .card{flex-direction:column;align-items:flex-start;gap:8px;padding:12px;font-size:14px}.card .ico{width:30px;height:30px}
 .why ul{grid-template-columns:repeat(2,minmax(0,1fr))}.why li:last-child{grid-column:1/-1}
 .aside .actions{grid-template-columns:1fr}
 .footer .cols>div{flex-basis:100%}
 .fixed{display:flex;gap:10px;position:fixed;inset:auto 0 0;z-index:60;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--navy)}
 .fixed .btn{flex:1;min-height:48px}
}
@media(max-width:360px){.brand span b:last-child{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Job photos: always 4:3, never stretched */
.cards.shots{grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0 0}.cards.plain{margin:14px 0 0}
.card.shot{flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden}
.card.shot img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}.card.shot>span{padding:13px 16px}
img.feature.job{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:12px;margin:0 0 22px}
.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.gallery img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:9px}
@media(max-width:700px){.cards.shots,.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card.shot{padding:0;gap:0}.card.shot>span{padding:10px}}

/* Phone header: any uploaded logo shrinks so the language and menu buttons stay on screen */
.brand{min-width:0}.brand img{flex:0 1 auto;min-width:0}.header .lang,.header .menu-toggle{flex:none}
.btn small[dir=ltr]{white-space:nowrap}
@media(max-width:600px){
 .header .wrap{gap:8px}.brand{flex:1 1 0}
 .header .brand .custom-logo{width:auto;height:auto;max-width:min(104px,27vw);max-height:44px}
 .header .brand span{flex:none}
 .top .wrap a{white-space:nowrap;flex:none}.topnote{min-width:0;line-height:1.3}
 .actions .btn{min-width:0}.actions .btn small[dir=ltr]{font-size:12px}
 /* The theme's bottom bar already has Call and WhatsApp; other floating buttons would cover it */
 #callnowbutton,.joinchat,div:has(>.stech-lang-switcher){display:none!important}
}
@media(max-width:400px){.header .brand span b[lang=en]{display:none}}
@media(max-width:600px){.hero .actions.one{grid-template-columns:1fr}}

/* Install-app banner */
.install{position:fixed;left:10px;right:10px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:70;display:flex;align-items:center;gap:10px;max-width:480px;margin-inline:auto;padding:10px 12px;background:#fff;color:#101820;border:1px solid #d5dbe0;border-radius:12px;box-shadow:0 10px 30px #10182040}
.install[hidden],.install [hidden]{display:none}
.install img{flex:none;border-radius:9px;border:1px solid #e3e7ea}
.install div{flex:1;min-width:0;line-height:1.35}.install strong{display:block;font-size:14px}.install small{display:block;font-size:12px;color:#55626d}
.install button{flex:none;font-family:inherit;cursor:pointer;border:0}
.install-yes{min-height:40px;padding:6px 14px;border-radius:8px;background:#c8171c;color:#fff;font-weight:700;font-size:14px}
.install-no{width:32px;height:40px;background:none;color:#55626d;font-size:24px;line-height:1}
@media print{.install{display:none}}
