/* ===== Global overrides: loads on every page, after all other CSS ===== */

/* Colors: blue header line, directions button and active-menu underline; yellow menu hover. */
.hd{border-bottom-color:#0370C7!important}
.hd .tb a.dir{background:#0370C7!important;color:#fff!important}
.hd .tb a.dir svg{stroke:#fff!important}
.hd nav a::after{background:#0370C7!important}
.hd nav a:hover{color:#F7C902!important}
.hd nav a:hover::after{background:#F7C902!important}
.hd nav a[aria-current]:not(:hover),.hd nav .current-menu-item>a:not(:hover),.hd nav .current_page_item>a:not(:hover){color:var(--lk,#0370C7)!important}
.notice{color:var(--fg,#1a1a1a)!important}

/* Remove the yellow underline under section headings on all pages (eyebrow lines stay). */
.ct h2::after{display:none!important}

/* Shared "separated block" (products guide + about QC protocols). */
.gd{background:#e9f1fb;border:1px solid #c9dcf2;border-radius:12px;padding:28px 20px;margin-top:40px}
.gd>h3:first-child{margin-top:0}
.gd .c{background:var(--bg);box-shadow:var(--sh)}
@media(prefers-color-scheme:dark){.gd{background:#12263d;border-color:#1f3d5e}}
.alt{--gl:color-mix(in srgb,var(--line) 40%,transparent);background-image:linear-gradient(var(--gl) 1px,transparent 1px),linear-gradient(90deg,var(--gl) 1px,transparent 1px)!important}

/* Hero: transparent eyebrow, blue subtitle, justified paragraphs. */
.hero .bd{background:transparent!important;color:#6bb4f2!important;border:1px solid #6bb4f2!important}
.hero h2{color:#6bb4f2!important}
.hero p,.hero .note{text-align:justify!important}
.hero .pr p{text-align:start!important}

/* Main header: logo + call button on one row. */
@media(max-width:899px){
.hd .hm{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important}
.hd .hm>a.btn{flex:0 0 auto!important;width:auto!important;max-width:max-content!important;min-height:40px!important;padding:6px 14px!important;font-size:.85rem!important;white-space:nowrap!important;margin:0!important}
.hd .hm>a.btn::after{display:none!important}
}

/* Top bar: working hours and address aligned from the right edge. */
@media(max-width:760px){
.tb .w{display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;justify-content:stretch!important;text-align:start!important;gap:4px 12px!important}
.tb .w>span:first-child{grid-column:1/-1!important}
.tb .w>span{justify-self:start!important}
.tb .w>a.dir{justify-self:end!important}
}

/* Desktop: top bar shares the same 3 columns as the header row. */
@media(min-width:1100px){
.hd .hm,.hd .tb .w{display:grid!important;grid-template-columns:84px 1fr 210px!important;align-items:center!important;column-gap:0!important;max-width:1210px!important}
.hd .hm .logo{justify-self:start!important;margin-inline-start:0!important}
.hd .hm>nav{justify-self:center!important}
.hd .hm>a.btn{justify-self:center!important}
.hd .tb .w>span:nth-child(1){justify-self:start!important;white-space:nowrap!important}
.hd .tb .w>span:nth-child(2){justify-self:center!important}
.hd .tb .w>a.dir{justify-self:center!important}
}

/* Eyebrow text: yellow line on both sides. */
.ey{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important}
.ey::before,.ey::after{content:""!important;display:block!important;flex:none!important;position:static!important;transform:none!important;width:48px!important;height:2px!important;margin:0!important;background:#F7C902!important}
.g2 .ey,.lt .ey{justify-content:flex-start!important}


/* ===== About page only (body.pg-about) ===== */
.pg-about .fin .btn.o,.pg-about .hero .btn.o{color:#6bb4f2!important;border-color:#6bb4f2!important}
.pg-about .tlx{list-style:none;margin:48px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:28px;position:relative;text-align:center}
.pg-about .tlx::before{content:"";position:absolute;top:28px;inset-inline:calc((100% - 56px)/6);height:4px;border-radius:2px;background:linear-gradient(to left,#F7C902,#0370C7)}
.pg-about .tlx>li{position:relative;display:flex;flex-direction:column;align-items:center;margin:0;padding:0}
.pg-about .tx-n{position:relative;z-index:1;display:grid;place-items:center;width:60px;height:60px;box-sizing:border-box;border-radius:50%;border:6px solid #F7C902;background:var(--bg);color:var(--fg);box-shadow:0 0 0 8px var(--bg);transition:transform .25s}
.pg-about .tx-n svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pg-about .tx-n::after{content:"";position:absolute;top:calc(100% + 6px);left:50%;width:2px;height:24px;margin-left:-1px;background:var(--line)}
.pg-about .tlx>li:nth-child(2) .tx-n{border-color:#F7C902 #F7C902 #0370C7 #0370C7}
.pg-about .tlx>li:nth-child(3) .tx-n{border-color:#0370C7}
.pg-about .tx-c{position:relative;overflow:hidden;box-sizing:border-box;width:100%;flex:1;margin-top:30px;padding:36px 22px 24px;background:var(--card);border:1px solid var(--line);border-radius:6px;box-shadow:var(--sh);transition:transform .25s,box-shadow .25s,border-color .25s}
.pg-about .tx-c::before{content:"";position:absolute;inset-inline:0;top:0;height:4px;background:#F7C902}
.pg-about .tlx>li:nth-child(2) .tx-c::before{background:linear-gradient(to left,#F7C902,#0370C7)}
.pg-about .tlx>li:nth-child(3) .tx-c::before{background:#0370C7}
.pg-about .tx-c::after{content:attr(data-k);position:absolute;left:-4px;bottom:-14px;font-size:5rem;font-weight:800;line-height:1;direction:ltr;color:var(--lk);opacity:.07;pointer-events:none}
.pg-about .tx-c>*{position:relative;z-index:1}
.pg-about .tx-era{display:inline-block;margin-bottom:10px;padding:2px 14px;border:1px solid currentColor;border-radius:999px;font-size:.82rem;font-weight:800;color:var(--lk)}
.pg-about .tx-c h3{margin:0 0 10px;font-size:1.15rem;font-weight:800;color:var(--lk)}
.pg-about .tx-c p{margin:0 auto;font-size:.95rem}
.pg-about .tx-tag{display:inline-block;margin-top:14px;padding:3px 12px;border-radius:3px;background:var(--soft);color:var(--fg);font-size:.8rem;font-weight:700}
@media(hover:hover){.pg-about .tlx>li:hover .tx-c{transform:translateY(-4px);box-shadow:var(--shh);border-color:var(--b)}.pg-about .tlx>li:hover .tx-n{transform:scale(1.07)}}
@media(max-width:899px){
.pg-about .tlx{grid-template-columns:1fr;gap:18px}
.pg-about .tlx::before{top:30px;bottom:30px;height:auto;width:4px;inset-inline-start:28px;inset-inline-end:auto;background:linear-gradient(to bottom,#F7C902,#0370C7)}
.pg-about .tlx>li{flex-direction:row;align-items:flex-start;gap:16px}
.pg-about .tx-n{flex:none}
.pg-about .tx-n::after{display:none}
.pg-about .tx-c{margin-top:0;text-align:start}
.pg-about .tx-c p{margin:0}
}
.pg-about section[aria-labelledby="pil"] .c h3{color:var(--lk)}
.pg-about section[aria-labelledby="pil"] .c::after{transition:background-color .25s}
.pg-about section[aria-labelledby="pil"] .c:hover::after{background-color:#F7C902}
@media(min-width:1000px){.pg-about .gd.q .c p{min-height:9.75em}}
.pg-about .gd.q>h3{font-size:clamp(1.35rem,3vw,1.85rem);font-weight:800;line-height:1.6;margin-bottom:12px;text-align:center}
.pg-about .gd.q>p{max-width:none;margin:0 auto 12px;text-align:center;text-wrap:wrap}
.pg-about .qi{width:46px;height:46px;flex:none;margin-bottom:12px;fill:none;stroke:var(--lk);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:stroke .25s}
.pg-about .qi text{fill:var(--lk);stroke:none;font-family:inherit;font-size:7.6px;font-weight:800;transition:fill .25s}
.pg-about .gd.q .c:hover .qi{stroke:#F7C902}
.pg-about .gd.q .c:hover .qi text{fill:#F7C902}
@media(min-width:1260px){.pg-about .gd.q{margin-inline:-40px;padding-inline:60px}}

/* About: pillar icons */
.pg-about section[aria-labelledby="pil"] .c::after{content:"";order:-1;align-self:center;flex:none;width:44px;height:44px;margin-bottom:12px;background-color:var(--lk,#0370C7);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}
.pg-about section[aria-labelledby="pil"] .c:nth-child(1)::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E")}
.pg-about section[aria-labelledby="pil"] .c:nth-child(2)::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.2 8.2-8 9-4.8-.8-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.2 8.2-8 9-4.8-.8-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E")}
.pg-about section[aria-labelledby="pil"] .c:nth-child(3)::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h12v10H2zM14 9h4.5l3.5 3.5V16h-8z'/%3E%3Ccircle cx='6.5' cy='17.5' r='2'/%3E%3Ccircle cx='17.5' cy='17.5' r='2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h12v10H2zM14 9h4.5l3.5 3.5V16h-8z'/%3E%3Ccircle cx='6.5' cy='17.5' r='2'/%3E%3Ccircle cx='17.5' cy='17.5' r='2'/%3E%3C/svg%3E")}


/* ===== KPI boxes: about + products (body.pg-kpi) ===== */
.pg-kpi .hero .kpi{border-inline-start-color:#6bb4f2!important;transition:border-color .2s}
.pg-kpi .hero .kpi b{color:#6bb4f2!important;transition:color .2s}
.pg-kpi .hero .prs .kpi:first-child{border-inline-start-color:#F7C902!important}
.pg-kpi .hero .prs .kpi:first-child b{color:#F7C902!important}
.pg-kpi .hero .prs .kpi:hover{border-inline-start-color:#F7C902!important}
.pg-kpi .hero .prs .kpi:hover b{color:#F7C902!important}
.pg-kpi .hero .prs:has(.kpi:not(:first-child):hover) .kpi:first-child:not(:hover){border-inline-start-color:#6bb4f2!important}
.pg-kpi .hero .prs:has(.kpi:not(:first-child):hover) .kpi:first-child:not(:hover) b{color:#6bb4f2!important}


/* ===== Products page only (body.pg-products) ===== */
.pg-products .hero .kpi{display:grid!important;grid-template-columns:clamp(6.5rem,26vw,8.5rem) 1fr!important;align-items:center!important;gap:12px!important}
.pg-products .hero .kpi b{white-space:nowrap!important;text-align:center!important;justify-self:center!important;width:auto!important}
.pg-products .grid.pc .btn.y{background:transparent!important;border:2px solid #F7C902!important;color:var(--fg)!important;width:auto!important;max-width:100%!important;align-self:center!important;padding-inline:28px!important}
.pg-products .call p{text-align:justify!important}
.pg-products h3.sub:has(+ .grid.pc){font-size:clamp(1.35rem,3vw,1.85rem)!important;font-weight:800!important;line-height:1.6!important;margin-top:48px!important;margin-bottom:8px!important}
.pg-products .gd h3.sub:has(+ .grid.pc){margin-top:0!important}

/* ===== Dark mode: readable headings and labels ===== */
@media(prefers-color-scheme:dark){
/* dark headings on dark backgrounds → light */
html body .ds-about h2,
html body .ds-location h2{color:#e8ecef!important}
/* «درباره ما» history section: dark background instead of light blue */
html body .tl-sec{background-color:#12263d!important}
html body .tl-sec .ey{color:#6bb4f2!important}
html body .tl-sec h2{color:#e8ecef!important}
/* light-blue eyebrow on the white brands strip → brand blue */
html body section.trust .ey{color:#0370C7!important}
/* brand blue (#0370C7) on dark cards → lighter blue */
html body .daal-advantages .ey,
html body .daal-advantages .da-row h3,
html body .prc-sec h3,
html body .ds-location .dsl-card-heading span,
html body section[aria-labelledby="cats"] dt,
html body section[aria-labelledby="std"] h4,
html body section[aria-labelledby="std"] .gdc-t li,
html body section[aria-labelledby="std"] .gdc-l,
html body section[aria-labelledby="std"] .mb-r b,
html body section[aria-labelledby="tri"] b,
html body section[aria-labelledby="tri"] .trx-tag,
html body .pq-p h4,
html body .hr-c h3,
html body .hc2 h3,
html body section[aria-labelledby="loc"]:not(.ds-location) small{color:#5FB0F2!important}
/* grey descriptions in the working-hours boxes */
html body .hr-c p,
html body .hc2 p{color:#aab4bd!important}
}


/* ===== Dark mode: extra fixes ===== */
@media(prefers-color-scheme:dark){
html body .prc-sec .prc h3{color:#5FB0F2!important}
html body section[aria-labelledby="tri"] .trx-tag b{color:#fff!important}
html body section[aria-labelledby="tri"] .trx-u .trx-tag b{color:#2A2F33!important}
html body .hst small{color:#aab4bd!important}
}

/* Paragraph width (site-wide): paragraphs use the full width of their box.
   Removes the generic 70ch cap and the balanced line-wrapping that made centered text look narrow. */
html body p { max-width: none; }
html body .svx-p p, html body .kn-slide p, html body .ar-box p { max-width: none; }
html body .ct > .w > p, html body .fin small { text-wrap: pretty; }

/* Anti-spam trap field ("website"): never visible to visitors, only bots fill it. */
.hp-trap, div:has(> label > input[name="website"]) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; margin: 0 !important; padding: 0 !important; border: 0 !important; white-space: nowrap !important; }
