/*
Theme Name: Tri-Scope
Theme URI: https://www.trigroups.com
Description: Tri-Scope Engineers & Contractors website (English + Arabic). Child theme of Kadence. After activating, open Tools → Tri-Scope Setup.
Author: Tri-Scope
Template: kadence
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: tri-scope
*/

/* ---- from the design ---- */
body{margin:0;background:#FFFFFF}
a{color:#24578A;text-decoration:none}a:hover{color:#0E2A47}
@media (max-width: 900px){.tsq-nav,.tsq-hcta{display:none !important}.tsq-burger{display:flex !important}}
.tsq-mask{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%)}
.tsq-track{display:flex;width:max-content;padding:6px 0;will-change:transform}
/* ---- site ---- */
html{scroll-behavior:smooth}
body{margin:0;background:#FFFFFF}
.tsq-root{min-height:100vh}
.tsq-root img{max-width:100%}
.tsq-root *, .tsq-root *::before, .tsq-root *::after{box-sizing:border-box}
.tsq-root h1,.tsq-root h2,.tsq-root h3,.tsq-root h4{letter-spacing:normal}
.tsq-root button{font-family:inherit}
.tsq-root input,.tsq-root select,.tsq-root textarea{font-family:inherit;color:#13202F;width:100%}
.tsq-root a:focus-visible,.tsq-root button:focus-visible{outline:3px solid #F2B705;outline-offset:2px}

/* mobile menu */
@media (max-width: 900px){
  .tsq-header.tsq-open .tsq-nav{display:flex !important;flex-direction:column;gap:0 !important;width:100%;order:3;border-top:1px solid #E3E8EF;padding-top:8px}
  .tsq-header.tsq-open .tsq-nav a{padding:14px 4px !important;border-bottom:1px solid #EEF2F6 !important;font-size:17px}
  .tsq-header.tsq-open .tsq-hcta{display:flex !important;width:100%;justify-content:center;order:4}
}

/* text pages and new blog posts */
.tsq-prose{max-width:780px;margin:0 auto;padding:clamp(40px,6vw,72px) clamp(20px,3vw,32px) clamp(56px,8vw,96px);font-size:17px;line-height:1.75;color:#13202F}
.tsq-prose h2{font-family:Archivo,sans-serif;font-weight:800;font-size:clamp(24px,3vw,32px);line-height:1.2;color:#0E2A47;margin:1.6em 0 .5em}
.tsq-prose h3{font-family:Archivo,sans-serif;font-weight:700;font-size:21px;color:#0E2A47;margin:1.4em 0 .4em}
.tsq-prose p,.tsq-prose ul,.tsq-prose ol{margin:0 0 1.1em}
.tsq-prose img{height:auto;border-radius:8px}
.tsq-prose a{color:#24578A;text-decoration:underline;text-underline-offset:3px}
.tsq-prose table{width:100%;border-collapse:collapse;margin:0 0 1.4em;font-size:15px}
.tsq-prose th,.tsq-prose td{border:1px solid #E3E8EF;padding:10px 12px;text-align:start;vertical-align:top}
.tsq-prose th{background:#F4F6F9;color:#0E2A47}
.tsq-prose blockquote{margin:0 0 1.2em;padding:12px 20px;border-inline-start:4px solid #F2B705;background:#F4F6F9}
.tsq-feat{margin:0 0 32px}.tsq-feat img{width:100%;display:block}
.tsq-cta{margin-top:48px;padding:28px;border-radius:12px;background:#0E2A47;color:#C3D1E1;display:flex;flex-direction:column;gap:10px}
.tsq-cta strong{color:#FFFFFF;font-family:Archivo,sans-serif;font-size:22px}
.tsq-cta a,.tsq-btn{align-self:flex-start;display:inline-flex;margin-top:8px;background:#F2B705;color:#0E2A47 !important;font-weight:700;padding:13px 22px;border-radius:6px;text-decoration:none !important}
.tsq-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:24px}
.tsq-list li{display:flex;flex-direction:column;gap:4px;border-bottom:1px solid #E3E8EF;padding-bottom:20px}
.tsq-list a{font-family:Archivo,sans-serif;font-weight:800;font-size:21px;color:#0E2A47;text-decoration:none}
.tsq-list span{color:#4A5868}

/* Arabic */
html[dir="rtl"] .tsq-prose h2,html[dir="rtl"] .tsq-prose h3,html[dir="rtl"] .tsq-list a,html[dir="rtl"] .tsq-cta strong{font-family:Cairo,Archivo,sans-serif}
html[dir="rtl"] .tsq-prose{font-family:'IBM Plex Sans Arabic',Inter,sans-serif}

/* compact top bar on phones */
@media (max-width: 640px){
  .tsq-topbar span:first-child{display:none}
  .tsq-topbar > div{padding-top:8px !important;padding-bottom:8px !important}
  .tsq-topbar > div > div:first-child{gap:14px !important}
}

/* cookie banner */
.tsq-cookies{position:fixed;z-index:70;bottom:16px;left:50%;transform:translateX(-50%);width:min(620px,calc(100% - 32px));background:#FFFFFF;color:#13202F;border:1px solid #E3E8EF;border-top:4px solid #F2B705;border-radius:10px;box-shadow:0 10px 30px rgba(14,42,71,.22);padding:18px 20px;display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;font-size:14px;line-height:1.6}
.tsq-cookies[hidden]{display:none}
.tsq-cookies p{margin:0;flex:1 1 320px}
.tsq-cookies a{color:#24578A;font-weight:600;text-decoration:underline}
.tsq-cookies-btns{display:flex;gap:10px}
.tsq-cookies button{min-height:44px;padding:0 20px;border-radius:6px;border:1px solid #24578A;background:#24578A;color:#FFFFFF;font-weight:700;font-size:15px;cursor:pointer}
.tsq-cookies button.tsq-ghost{background:#FFFFFF;color:#24578A;border-color:#C9D3DF}
