/* WordPress additions on top of the static site's styles.css / pages.css / motion.css */

/* Language switch is now a link to the other-language URL */
a.language{display:inline-flex;align-items:center;gap:8px;text-decoration:none}

/* Vehicles strip: four items now */
.vehicle-items{grid-template-columns:repeat(4,1fr)}
@media(max-width:800px){.vehicle-items{grid-template-columns:repeat(4,1fr)}}
@media(max-width:480px){.vehicle-items{grid-template-columns:repeat(2,1fr)}}

/* Truck makes logo strip */
.makes-strip{background:#fff;border-bottom:1px solid var(--line);overflow:hidden}
.makes-inner{display:flex;align-items:center;gap:32px;padding-block:22px}
.makes-title{flex-shrink:0;margin:0;font-size:13px;font-weight:700;color:var(--red);letter-spacing:.5px}
.makes-track{flex:1;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.makes-row{display:flex;width:max-content;animation:aker-makes 38s linear infinite}
html[dir=rtl] .makes-row{animation-name:aker-makes-rtl}
.makes-track:hover .makes-row{animation-play-state:paused}
.make{display:flex;align-items:center;justify-content:center;height:64px;padding-inline:34px}
.make img{height:44px;width:auto;max-width:150px;object-fit:contain;transition:transform .25s}
.make:hover img{transform:scale(1.06)}
@keyframes aker-makes{to{transform:translateX(-50%)}}
@keyframes aker-makes-rtl{to{transform:translateX(50%)}}
@media(prefers-reduced-motion:reduce){.makes-row{animation:none;flex-wrap:wrap;width:auto;justify-content:center}.make[aria-hidden]{display:none}}
@media(max-width:800px){.makes-inner{flex-direction:column;gap:12px;padding-block:18px}.make{padding-inline:22px;height:54px}.make img{height:36px}}

/* Group tiles */
.all-groups-link{text-align:center;margin:36px 0 0}
.category-tile img{object-fit:contain;background:#fff}
.category-tile h3 small{display:block;font-size:13px;font-weight:500;color:var(--muted);margin-top:2px}
.motion-site .group-grid{grid-template-columns:repeat(4,1fr);gap:22px}
.motion-site .group-grid .category-tile img{height:190px;padding:10px}
.motion-site .group-grid .category-tile h3{font-size:19px;padding:15px 18px}
@media(max-width:1150px){.motion-site .group-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.motion-site .group-grid{grid-template-columns:repeat(2,1fr);gap:16px}.motion-site .group-grid .category-tile img{height:150px}}

/* Catalogue search (single field) */

/* Product cards */
.product-picture{background:#fff}
.product-card{scroll-margin-top:24px}
.product-card:target{outline:3px solid var(--red);outline-offset:3px}
.product-body .brand-chips{margin-bottom:16px}
.image-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:repeating-linear-gradient(135deg,#f3f5f8 0 14px,#eaeef3 14px 28px);color:#7c8d9f;font-size:14px;font-weight:700}
.image-placeholder img{width:70px!important;height:auto!important;opacity:.35;filter:grayscale(1)}

/* Group page */
.group-hero-grid{display:grid;grid-template-columns:1fr 340px;gap:50px;align-items:center}
.group-cover{background:#fff;border:1px solid var(--line);height:240px;display:flex;align-items:center;justify-content:center;padding:14px}
.group-cover img{max-width:100%;max-height:100%;object-fit:contain}
.group-links{display:flex;flex-wrap:wrap;gap:10px}
.group-links a{border:1px solid var(--line);background:#fff;padding:8px 15px;font-size:15px;color:var(--navy)}
.group-links a:hover,.group-links a[aria-current=page]{border-color:var(--red);color:var(--red)}
@media(max-width:800px){.group-hero-grid{grid-template-columns:1fr;gap:25px}.group-cover{height:200px;max-width:420px}}

/* Brand grid: 11 brands */
.brand-image img{object-fit:contain}

.not-found{padding-block:90px}

/* Hero slider (Customizer → البانر → سلايدر) */
.hero-slider{display:grid}
.hero-slide{grid-area:1/1;position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;opacity:0;visibility:hidden;transition:opacity .8s,visibility .8s}
.hero-slide.is-active{opacity:1;visibility:visible}
.hero-slide-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.hero-slider .video-bottom{grid-area:1/1;align-self:end;justify-self:center;position:relative;z-index:2}
.slider-dots{display:flex;gap:8px}
.slider-dot{width:12px;height:12px;border-radius:50%;border:1px solid #fff;background:transparent;padding:0;cursor:pointer}
.slider-dot[aria-current]{background:var(--red);border-color:var(--red)}
.hero-title{font-size:clamp(46px,5.2vw,78px);font-weight:800;line-height:1.3;margin:15px 0 18px;color:#fff}
.hero-line{display:block}

/* Vehicles from the list can use an uploaded image as icon */
.vehicle-items img.icon{width:38px;height:38px;object-fit:contain}

/* Contact form */
.enquiry-panel .inline-actions .button{gap:10px}
.form-status[data-kind=ok]{color:#1e7b34;font-weight:700}
.form-status[data-kind=error]{color:var(--red);font-weight:700}
.hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:-1px;padding:0;border:0}
.contact-card .inline-actions{margin-top:6px}
.contact-card .inline-actions .button{padding:11px 18px;font-size:14px}
.map-embed{width:100%;height:260px;border:0;margin-top:18px}
.social-icons{flex-wrap:wrap}
.motion-copy h1 .hero-line{white-space:normal}
.product-body bdi{white-space:nowrap}
.check-field input{max-width:140px}

/* Contact page: contact cards beside the form, full-width map below */
.contact-layout{display:grid;grid-template-columns:minmax(280px,360px) 1fr;gap:32px;align-items:start}
.contact-aside{display:grid;gap:18px;position:sticky;top:130px}
.contact-aside .contact-card{background:#fff;border:1px solid var(--line);padding:24px 24px 22px;margin:0;display:flex;flex-direction:column;align-items:flex-start;box-shadow:0 2px 16px #1228470b}
html[dir=ltr] .contact-aside .contact-card{padding:24px 24px 22px}
.contact-aside .contact-icon{position:static;margin-bottom:12px}
.contact-aside .contact-card h2{font-size:21px;margin:0 0 4px}
.contact-aside .contact-card p{margin:0 0 14px;font-size:15px}
.contact-aside .social-card{padding-inline-start:24px!important}
.contact-aside .inline-actions{gap:10px}
.contact-layout .enquiry-panel{padding:40px}
.contact-map iframe{display:block;width:100%;height:420px;border:0;filter:grayscale(.15)}
@media(max-width:1000px){.contact-layout{grid-template-columns:1fr}.contact-aside{position:static;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}
@media(max-width:800px){.contact-layout .enquiry-panel{padding:28px 20px}.contact-map iframe{height:320px}}
/* Contact page: location card lines (address, phone, email) */
.location-since{display:inline-block;margin:2px 0 6px;padding:2px 10px;border-radius:999px;background:var(--pale);color:var(--red);font-size:13px;font-weight:700}
.location-lines{display:flex;flex-direction:column;gap:6px;font-style:normal;color:var(--muted);margin:10px 0 20px;line-height:1.6}
.location-lines a{color:var(--blue);unicode-bidi:isolate}
.location-lines a:hover{color:var(--red)}
/* Contact page: WhatsApp / Messenger rows in the direct-contact card */
.direct-links{display:grid;gap:12px;align-self:stretch}
.direct-link{--c:#168a45;--tint:#eaf6ef;display:flex;align-items:center;gap:14px;padding:12px 14px;background:var(--tint);border:1px solid color-mix(in srgb,var(--c) 22%,transparent);border-radius:10px;color:var(--navy);transition:background .2s,border-color .2s,color .2s,transform .2s}
.direct-link.is-messenger{--c:#0a66e8;--tint:#eaf1fd}
.direct-link-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:50%;background:var(--c);color:#fff}
.direct-link-icon .icon{width:21px;height:21px}
.direct-link-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.4}
.direct-link-text strong{font-size:15px}
.direct-link-text small{font-size:13px;color:var(--muted);unicode-bidi:isolate;text-align:start}
html[dir=rtl] .direct-link-text small[dir=ltr]{text-align:right}
.direct-link::after{content:'←';font-size:18px;color:var(--c);transition:transform .2s}
html[dir=ltr] .direct-link::after{content:'→'}
.direct-link:hover{background:var(--c);border-color:var(--c);color:#fff}
.direct-link:hover small,.direct-link:hover::after{color:#ffffffd9}
.direct-link:hover .direct-link-icon{background:#ffffff26}
/* Footer: heading accents, round contact icons, brand-coloured social hovers */
.rich-footer .footer-columns{grid-template-columns:1.4fr .9fr 1fr 1.3fr;gap:48px;padding-block:64px 52px}
.rich-footer .footer-columns h3{position:relative;font-size:18px;padding-bottom:14px;margin-bottom:22px}
.rich-footer .footer-columns h3::after{content:'';position:absolute;bottom:0;inset-inline-start:0;width:32px;height:3px;background:var(--red)}
.rich-footer .footer-columns nav{gap:13px}
.rich-footer .footer-columns nav a{color:#c3cfdf;transition:color .2s,padding .2s}
.rich-footer .footer-columns nav a:hover{color:#fff;padding-inline-start:5px}
.rich-footer .footer-columns nav a.footer-more{color:#fff;font-weight:700;margin-top:4px}
.rich-footer .footer-more::after{content:' ←'}
html[dir=ltr] .rich-footer .footer-more::after{content:' →'}
.rich-footer .footer-brand img{width:66px;height:auto;padding:5px;border-radius:8px}
.rich-footer .footer-intro p{line-height:1.85;margin:22px 0 24px}
.rich-footer .social-icons a{width:40px;height:40px;border-radius:50%;background:#ffffff0d;border-color:#ffffff26}
.social-icons a.is-whatsapp:hover{background:#168a45;border-color:#168a45;color:#fff}
.social-icons a.is-messenger:hover{background:#0a66e8;border-color:#0a66e8;color:#fff}
.social-icons a.is-facebook:hover{background:#1877f2;border-color:#1877f2;color:#fff}
.rich-footer .footer-contact-row{gap:14px;margin-bottom:18px}
.rich-footer .footer-contact-row:last-child{margin-bottom:0}
.footer-contact-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:50%;background:#ffffff0d;border:1px solid #ffffff1f;color:#8eaed7;transition:background .2s,border-color .2s,color .2s}
.footer-contact-icon .icon{width:19px;height:19px}
.footer-contact-row:hover .footer-contact-icon{background:var(--red);border-color:var(--red);color:#fff}
.rich-footer .footer-contact-row strong{display:inline-block;color:#fff;font-weight:600;unicode-bidi:isolate}
.rich-footer .footer-contact-row small{display:block}
.rich-footer .footer-bottom{padding-block:22px;font-size:13px}
@media(max-width:1000px){.rich-footer .footer-columns{grid-template-columns:1fr 1fr;gap:40px}}
html[dir=rtl] .rich-footer .footer-bottom>span:last-child{direction:rtl;letter-spacing:0}
.rich-footer .footer-bottom>span:last-child{font-size:12px}
@media(max-width:640px){.rich-footer .footer-intro,.rich-footer .footer-columns>div:last-child{grid-column:1/-1}}
@media(max-width:480px){.rich-footer .footer-columns{gap:34px 20px;padding-block:44px 36px}.rich-footer .footer-bottom{flex-direction:column;gap:6px}}
/* Contact map: our own label above Google's centred pin (Google ignores labels in plain embeds) */
.contact-map{position:relative}
.map-pin-label{position:absolute;left:50%;top:50%;transform:translate(-50%,calc(-100% - 46px));display:flex;flex-direction:column;align-items:center;gap:1px;padding:9px 16px;background:#fff;border-radius:10px;box-shadow:0 8px 24px #12284733;text-align:center;white-space:nowrap;pointer-events:none;transition:opacity .25s}
.map-pin-label::after{content:'';position:absolute;bottom:-7px;left:50%;margin-left:-7px;border:7px solid transparent;border-bottom:0;border-top-color:#fff}
.map-pin-label strong{font-size:15px;color:var(--navy);line-height:1.4}
.map-pin-label span{font-size:12px;color:var(--muted);line-height:1.4}
.contact-map.is-moved .map-pin-label{opacity:0}
/* Home: contact section tiles (WhatsApp, Messenger, phone, location) */
.contact .contact-grid{grid-template-columns:1fr 1.15fr;gap:70px;align-items:center}
.contact-tiles{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.contact-tile{--c:#2f5d93;display:flex;align-items:center;gap:14px;min-width:0;padding:18px;background:#ffffff0a;border:1px solid #ffffff1f;border-radius:12px;color:#fff;transition:background .2s,border-color .2s,transform .2s}
.contact-tile:hover{background:#ffffff14;border-color:var(--c);transform:translateY(-3px)}
.contact-tile.is-whatsapp{--c:#168a45}
.contact-tile.is-messenger{--c:#0a66e8}
.contact-tile.is-phone{--c:var(--red)}
.contact-tile-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:48px;height:48px;border-radius:50%;background:var(--c);color:#fff}
.contact-tile-icon .icon{width:23px;height:23px}
.contact-tile-icon .icon-facebook{fill:currentColor}
.contact-tile-text{display:flex;flex-direction:column;min-width:0;line-height:1.45}
.contact-tile-text strong{font-size:18px}
.contact-tile-text small{font-size:14px;color:#b9c6d8;margin-top:2px;unicode-bidi:isolate}
html[dir=rtl] .contact-tile-text small[dir=ltr]{text-align:right}
@media(max-width:1000px){.contact .contact-grid{grid-template-columns:1fr;gap:40px}}
@media(max-width:480px){.contact-tiles{grid-template-columns:1fr;gap:12px}.contact-tile{padding:14px}}
