/*
Theme Name: The Guardians
Theme URI: https://guardians.ae
Author: The Guardians
Description: Custom theme for The Guardians — Impactful Consultancies. English, Arabic (RTL) and Spanish.
Version: 1.0.5
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: guardians
License: Proprietary
*/
body{margin:0;background:#ffffff;font-family:'Plus Jakarta Sans',system-ui,sans-serif;color:#2B2F2D}
a{color:#022715}a:hover{color:#7A5500}
*{box-sizing:border-box}
@keyframes gtick{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes gspin{to{transform:rotate(360deg)}}
@keyframes gdash{to{stroke-dashoffset:-48}}
@keyframes gpulse{0%{transform:scale(.6);opacity:.9}100%{transform:scale(2.6);opacity:0}}
@keyframes gkb{from{transform:scale(1)}to{transform:scale(1.09)}}
@keyframes grise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes gdrift{from{transform:translate(0,0)}to{transform:translate(-120px,-60px)}}
@keyframes gshine{to{background-position:200% center}}
@keyframes gfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.gtick{animation:gtick 48s linear infinite}
.gspin{animation:gspin 90s linear infinite}
.gspin-fast{animation:gspin 40s linear infinite}
.gdash{stroke-dasharray:6 10;animation:gdash 2.6s linear infinite}
.gpulse{transform-box:fill-box;transform-origin:center;animation:gpulse 2.4s ease-out infinite}
.gkb{animation:gkb 26s ease-in-out infinite alternate}
.grise{animation:grise .9s cubic-bezier(.2,.7,.2,1) both}
.gd1{animation-delay:.12s}.gd2{animation-delay:.24s}.gd3{animation-delay:.36s}.gd4{animation-delay:.5s}
.gdrift{animation:gdrift 60s linear infinite alternate}
.gfloat{animation:gfloat 6s ease-in-out infinite}
.gring{transform-box:view-box;transform-origin:100px 100px;animation:gspin 36s linear infinite}
.gshine{background:linear-gradient(90deg,#8A5F00 0%,#B98200 40%,#8A5F00 80%);background-size:200% auto;-webkit-background-clip:text;background-clip:text;color:transparent;animation:gshine 7s linear infinite}
.glift{transition:transform .28s ease,box-shadow .28s ease}
.glift:hover{transform:translateY(-6px);box-shadow:0 22px 48px rgba(60,40,10,.14)}
.gzoom img{transition:transform .8s ease}
.gzoom:hover img{transform:scale(1.06)}

@keyframes gtrack{0%,20%{transform:translateX(0)}25%,45%{transform:translateX(-400px)}50%,70%{transform:translateX(-800px)}75%,100%{transform:translateX(-1200px)}}
@keyframes gi0{0%{stroke-dashoffset:1}8%,96%{stroke-dashoffset:0}100%{stroke-dashoffset:1}}
@keyframes gi1{0%,25%{stroke-dashoffset:1}33%,96%{stroke-dashoffset:0}100%{stroke-dashoffset:1}}
@keyframes gi2{0%,50%{stroke-dashoffset:1}58%,96%{stroke-dashoffset:0}100%{stroke-dashoffset:1}}
@keyframes gi3{0%,75%{stroke-dashoffset:1}83%,96%{stroke-dashoffset:0}100%{stroke-dashoffset:1}}
@keyframes gc0{0%,18%{stroke-dashoffset:1}25%,96%{stroke-dashoffset:0}100%{stroke-dashoffset:1}}
@keyframes gc1{0%,43%{stroke-dashoffset:1}50%,96%{stroke-dashoffset:0}100%{stroke-dashoffset:1}}
@keyframes gc2{0%,68%{stroke-dashoffset:1}75%,96%{stroke-dashoffset:0}100%{stroke-dashoffset:1}}
.gtrack{animation:gtrack 12s cubic-bezier(.6,0,.3,1) infinite}
.gi0,.gi1,.gi2,.gi3,.gc0,.gc1,.gc2{stroke-dasharray:1;stroke-dashoffset:1}
.gi0{animation:gi0 12s linear infinite}.gi1{animation:gi1 12s linear infinite}.gi2{animation:gi2 12s linear infinite}.gi3{animation:gi3 12s linear infinite}
.gc0{animation:gc0 12s linear infinite}.gc1{animation:gc1 12s linear infinite}.gc2{animation:gc2 12s linear infinite}
@media (prefers-reduced-motion: reduce){.gtrack,.gi0,.gi1,.gi2,.gi3,.gc0,.gc1,.gc2{animation:none;stroke-dashoffset:0}}
@media (prefers-reduced-motion: reduce){.gtick,.gspin,.gspin-fast,.gdash,.gpulse,.gkb,.grise,.gdrift,.gshine,.gfloat,.gring{animation:none}.grise{opacity:1}}
/* Arabic */
html[lang="ar"] body{direction:rtl;font-family:'Noto Naskh Arabic','Noto Kufi Arabic',serif}html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,html[lang="ar"] button,html[lang="ar"] nav,html[lang="ar"] label,html[lang="ar"] legend{font-family:'Noto Kufi Arabic','Noto Naskh Arabic',sans-serif}html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3{line-height:1.6 !important}html[lang="ar"] p{text-align:justify;text-justify:kashida;text-align-last:start}html[lang="ar"] input,html[lang="ar"] select,html[lang="ar"] textarea{direction:rtl}
/* ---- WordPress integration, accessibility, forms, mobile ---- */
html{scroll-behavior:smooth}
html,body{overflow-x:clip}
body{margin:0}
img{max-width:100%}
/* keep logos and other auto-width images at their true proportions inside flex columns */
[style*="flex-direction: column"]>img[style*="width: auto"],footer img{align-self:flex-start;object-fit:contain}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.gskip{position:absolute;left:-9999px;top:8px;z-index:1000;background:#022715;color:#fff;padding:12px 18px;border-radius:8px;font-weight:700}
.gskip:focus{left:12px}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #D59501;outline-offset:2px}
.entry-content>*{margin:0}
.wp-block-html{margin:0}
/* search dropdown */
.gsearch{position:relative}
.gsearch summary{list-style:none}
.gsearch summary::-webkit-details-marker{display:none}
.gsearch-form{position:absolute;top:48px;inset-inline-end:0;z-index:50;display:flex;gap:8px;background:#fff;border:1px solid #E6DED2;border-radius:14px;padding:10px;box-shadow:0 18px 40px rgba(2,39,21,.12);width:min(360px,80vw)}
.gsearch-form input{flex:1;min-height:44px;border:1px solid #DCD3C6;border-radius:10px;padding:0 12px;font:inherit}
.gsearch-form button{min-height:44px;border:0;border-radius:10px;background:#022715;color:#fff;font-weight:700;padding:0 16px;cursor:pointer;font:inherit}
/* contact form (Contact Form 7) */
.gform-card .wpcf7 form{display:flex;flex-direction:column;gap:18px}
.gform-card .wpcf7 p{margin:0}
.gf-legend{display:block;font-size:14px;font-weight:600;color:#1E2321;margin-bottom:10px}
.gf-who .wpcf7-radio{display:flex;flex-wrap:wrap;gap:10px}
.gf-who .wpcf7-list-item{margin:0}
.gf-who .wpcf7-list-item label{display:inline-flex;gap:8px;align-items:center;border:1px solid #DCD3C6;border-radius:999px;padding:10px 16px;font-size:14px;min-height:44px;cursor:pointer}
.gf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.gf-field{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;color:#1E2321}
.gf-field input,.gf-field select,.gf-field textarea{width:100%;min-height:52px;border:1px solid #DCD3C6;border-radius:12px;padding:12px 14px;font:inherit;font-size:15px;font-weight:400;background:#fff;color:#2B2F2D}
.gf-field textarea{min-height:140px;resize:vertical}
.gf-consent{font-size:14px;color:#4A4F4C;line-height:1.5}
.gf-consent .wpcf7-list-item{margin:0}
.gf-submit input[type=submit]{background:#022715;color:#fff;border:0;border-radius:999px;font-weight:700;font-size:16px;padding:18px 30px;cursor:pointer;font-family:inherit}
.gf-submit input[type=submit]:hover{background:#0B3A25}
.wpcf7-not-valid-tip{font-size:13px;color:#A3261B;margin-top:4px}
.wpcf7 form .wpcf7-response-output{margin:4px 0 0;border-radius:12px;padding:12px 14px;font-size:15px}
/* generic pages (search, 404) */
.gplain{max-width:900px;margin:0 auto;padding:96px 32px}
.gplain h1{font-size:44px;color:#022715;margin:0 0 18px}
.gplain h2{font-size:24px;color:#022715;margin:34px 0 10px}
.gplain p{font-size:17px;line-height:1.75;color:#2B2F2D;margin:0 0 12px}
.gplain .glede{font-size:19px;color:#4A4F4C}
.gplain .gupdated{margin-top:34px;font-size:14px;color:#6B6F6C}
.gplain .gresult{padding:20px 0;border-top:1px solid #EFE9E0}
.gplain .gresult a{font-weight:700;font-size:20px}
/* mobile menu button (hidden on desktop) */
.gmenu-btn{display:none;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #E6DED2;border-radius:12px;background:#fff;color:#022715;cursor:pointer;margin-inline-start:auto}
.ghead.open .gm1{transform:translate(0,5px) rotate(45deg);transform-origin:12px 7px}
.ghead.open .gm2{opacity:0}
.ghead.open .gm3{transform:translate(0,-5px) rotate(-45deg);transform-origin:12px 17px}
.gm1,.gm2,.gm3{transition:transform .2s,opacity .2s}
@media (max-width:980px){
 .ghead-in{flex-wrap:nowrap!important;padding:10px 16px!important;gap:12px!important}
 .ghead-in>a img{height:58px!important}
 .gmenu-btn{display:inline-flex}
 .ghead nav{display:none!important;position:absolute;top:100%;left:0;right:0;z-index:80;background:#fff;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:8px 20px 22px;border-bottom:1px solid #EDE5DA;box-shadow:0 22px 40px rgba(2,39,21,.12)}
 .ghead.open nav{display:flex!important}
 .ghead nav>a[data-nav]{padding:14px 2px!important;font-size:17px;border-bottom:1px solid #F0EAE1!important}
 .ghead nav>a[data-nav][aria-current]{border-bottom:2px solid #D59501!important}
 .ghead nav>span[aria-hidden="true"]{display:none!important}
 .ghead nav .gsearch{margin-top:14px}
 .ghead nav .gsearch summary{display:none!important}
 .ghead nav .gsearch-form{position:static;width:auto;box-shadow:none;padding:0;border:0}
 .ghead nav>span[style*="inline-flex"]{justify-content:center;padding:16px 0 6px;font-size:16px}
 .ghead nav>a:last-child{justify-content:center;margin-top:10px}
}
/* mobile */
@media (max-width:820px){
 header img{height:76px!important}
 h1{font-size:40px!important;line-height:1.12!important}
 h2{font-size:32px!important}
 [style*="padding: 96px 32px"],[style*="padding: 88px 32px"],[style*="padding: 80px 32px"],[style*="padding: 72px 32px"]{padding:64px 20px!important}
 [style*="grid-template-columns: repeat(3, minmax(0, 1fr))"],[style*="grid-template-columns: repeat(2, minmax(0, 1fr))"],[style*="minmax(400px, 1fr)"],[style*="minmax(380px, 1fr)"],[style*="minmax(320px, 1fr)"],[style*="minmax(0, 5fr) minmax(0, 7fr)"]{grid-template-columns:1fr!important}
 [style*="left: -36px"]{left:12px!important}
 [style*="right: -36px"]{right:12px!important}
 [style*="height: 520px"],[style*="height: 460px"]{height:320px!important}
 [style*="min-height: 620px"]{min-height:auto!important}
 [style*="padding: 52px"]{padding:28px!important}
 [style*="padding: 48px"]{padding:28px!important}
 [style*="padding: 96px 32px"],[style*="padding: 88px 32px"],[style*="padding: 80px 32px"],[style*="padding: 72px 32px"]{padding:52px 18px!important}
 main [style*="gap: 56px"],main [style*="gap: 48px"],main [style*="gap: 44px"],main [style*="gap: 40px"]{gap:24px!important}
 h1{font-size:36px!important}
 h2{font-size:28px!important}
 html[lang="ar"] h1{font-size:32px!important}
 html[lang="ar"] p{text-align:start!important}
 [style*="calc(-100% - 22px)"] img{width:84px!important}
 [data-gsectors] div:has(> button[data-i]){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;overflow-x:auto;gap:8px!important;padding-bottom:6px;scrollbar-width:none}
 [data-gsectors] button[data-i]{flex:0 0 auto!important;width:auto!important;padding:10px 14px!important;min-height:44px}
 .gform-card{padding:24px!important}
 .gtick span{font-size:11px!important}
 [style*="px, 1fr)"]{grid-template-columns:1fr!important}
 [style*="max-width: 1320px"],[style*="max-width: 1200px"],[style*="max-width: 1100px"]{padding-left:18px!important;padding-right:18px!important}
}
@media print{.gtick,header nav,.gsearch{display:none}}
