/* calmtech base: shared primitives only. Section styles live in each block's style.css. */
body{margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
a{color:inherit}
img{max-width:100%;height:auto}

/* Header heights (hero pulls up under the transparent header by --ct-hdr) */
:root{--ct-hdr:108px;--ct-hdr-solid:80px}
@media (max-width:1023px){:root{--ct-hdr:72px;--ct-hdr-solid:64px}}

/* Layout container */
.ct-wrap{max-width:1440px;margin-inline:auto;padding-inline:var(--wp--custom--gutter);box-sizing:border-box}

/* Riyal sign: official symbol, before the number (calmtech_price puts it on the right in Arabic) */
.ct-price{direction:ltr;unicode-bidi:isolate;white-space:nowrap}
.ct-price--ask{direction:inherit;white-space:normal}
.ct-riyal{display:inline;height:.8em;width:auto;vertical-align:baseline;fill:currentColor}

/* Floating shapes (hero, final call to action). Each rises from below its container and fades out at the top.
   One span runs two animations: ct-rise (translate, rotate, opacity) and ct-sway (transform). Opacity is 0 at the
   loop point, so no restart shows. The negative delay starts each shape part-way through, so the area is full from
   the first frame. Containers can scale every shape with --ct-shape-k. */
.ct-shapes{position:absolute;inset:0;overflow:hidden;pointer-events:none;container-type:size}
.ct-shapes__defs{position:absolute}
.ct-shape{position:absolute;top:0;inset-inline-start:calc(var(--x) * 1%);display:block;width:calc(var(--s) * var(--ct-shape-k,1) * 1px);height:calc(var(--s) * var(--ct-shape-k,1) * 1px);color:var(--c);fill:currentColor;opacity:0;
	animation:ct-rise calc(var(--t) * 1s) linear calc(var(--t) * var(--p) * -1s) infinite,ct-sway calc(var(--sw) * 1s) ease-in-out calc(var(--sw) * var(--p) * -1s) infinite alternate}
.ct-shape svg{display:block;width:100%;height:100%;overflow:visible}
.ct-shape--line{fill:none;stroke:currentColor;stroke-width:1.5px}
.is-paused .ct-shape{animation-play-state:paused}
@keyframes ct-rise{
	0%{translate:0 calc(100cqh + 40px);rotate:0deg;opacity:0}
	4%,82%{opacity:var(--o)}
	98%{opacity:0}
	100%{translate:0 -100%;rotate:calc(var(--rot) * 1deg);opacity:0}
}
@keyframes ct-sway{from{transform:translateX(calc(var(--dx) * -1px))}to{transform:translateX(calc(var(--dx) * 1px))}}
@media (prefers-reduced-motion:reduce){
	/* Static: each shape rests at its start point in the loop */
	.ct-shape{animation:none;opacity:var(--o);translate:0 calc((1 - var(--p)) * 100cqh);rotate:calc(var(--rot) * var(--p) * 1deg)}
}

/* Section spacing. Phones: 56px, set on the section itself so the shared-space rules (calc of half) follow. */
.ct-sec{padding-block:var(--wp--custom--section)}
@media (max-width:767px){.ct-sec{--wp--custom--section:56px}}

/* Image slot: shows a note until an image is added. No background, so images with transparent parts sit on the section colour. */
.ct-ph{display:flex;align-items:center;justify-content:center;text-align:center;font-size:14px;line-height:1.45;padding:20px;box-sizing:border-box;color:#5f5f5f;overflow:hidden}
.ct-ph.has-image{padding:0}
.ct-ph img{display:block;width:100%;height:100%;object-fit:cover}

/* Titles rise slightly as they scroll in (browsers without scroll timelines just show them) */
@supports (animation-timeline:view()){
	.ct-fu{animation:ct-fu linear both;animation-timeline:view();animation-range:entry 0% entry 40%}
}
@keyframes ct-fu{from{transform:translateY(28px)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.ct-fu{animation:none}}

/* Scroll reveal and load entrances (targets in inc/motion.php). They only run under .ct-rv-on, which is never set
   for reduced motion. "backwards" so nothing is held once a reveal ends, and hover effects keep working. */
@keyframes ct-rv-rise{from{opacity:0;translate:0 32px}to{opacity:1;translate:none}}
@keyframes ct-rv-zoom{from{opacity:0;scale:.96}to{opacity:1;scale:none}}
@keyframes ct-rv-pop{from{opacity:0;scale:.85}to{opacity:1;scale:none}}
@keyframes ct-rv-down{from{opacity:0;translate:0 -16px}to{opacity:1;translate:none}}

/* Columns of short points with a top rule (Why us, How we work). Each block sets --ct-cols. */
.ct-points{display:grid;grid-template-columns:repeat(var(--ct-cols,4),minmax(0,1fr));gap:40px}
.ct-point{border-top:1px solid #000;padding-top:28px}
.ct-point .ct-card-title{margin-bottom:14px}

/* Type scale (matches design) */
.ct-title{font-size:var(--wp--preset--font-size--title);font-weight:500;line-height:1.1;text-transform:uppercase;letter-spacing:-.01em;margin:0}
.ct-lead{font-size:var(--wp--preset--font-size--lead);font-weight:500;line-height:1.5;margin:0}
.ct-card-title{font-size:var(--wp--preset--font-size--card);font-weight:400;line-height:1.35;margin:0}
.ct-body{font-size:17px;font-weight:400;line-height:1.5;color:#767676;margin:0}
/* Phones: every section title starts at the reading side (right in Arabic) and is 20% smaller */
@media (max-width:767px){
	.ct-sec .ct-title{text-align:start}
	.ct-title{font-size:calc(var(--wp--preset--font-size--title) * .8)}
}

/* Buttons and links */
/* Pill button. Hover: a white disc blooms from the end of the pill until it fills it. The bloom is a
   transform on one pseudo-element, so it stays on the GPU. Full-width buttons raise --ct-bloom to reach the far end. */
.ct-btn{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:#00A6F8;color:#000;text-decoration:none;font-weight:600;font-size:16px;line-height:1.2;padding:20px 34px;border-radius:999px;text-align:center;transition:transform .35s cubic-bezier(.22,1,.36,1)}
.ct-btn:hover,.ct-btn:focus-visible{color:#000}
.ct-btn::before{content:"";position:absolute;z-index:-1;top:50%;inset-inline-end:8px;width:44px;height:44px;margin-top:-22px;border-radius:50%;background:#fff;transform:scale(0);transition:transform .75s cubic-bezier(.5,0,.15,1)}
.ct-btn:active{transform:scale(.97)}
.ct-btn:focus-visible::before{transform:scale(var(--ct-bloom,17))}
@media (hover:hover){
	.ct-btn:hover{transform:translateY(-2px)}
	.ct-btn:hover::before{transform:scale(var(--ct-bloom,17))}
}
@media (prefers-reduced-motion:reduce){
	.ct-btn,.ct-btn::before{transition:none}
	.ct-btn:hover{transform:none}
}
/* Secondary button on black: a thin white outline; the same white bloom fills it and the text turns black */
.ct-btn--line{background:transparent;color:#fff;font-weight:500;padding:18px 30px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}
.ct-lnk{display:inline-flex;align-items:center;gap:14px;text-decoration:none;font-weight:500;font-size:16px;transition:gap .3s}
.ct-lnk:hover{gap:20px}
.ct-lnk svg{flex:none}
[dir=rtl] .ct-lnk svg,[dir=rtl] .ct-arrow{transform:scaleX(-1)}

:focus-visible{outline:2px solid #00A6F8;outline-offset:3px}
.ct-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Anchor targets clear the sticky header */
html{scroll-behavior:smooth;scroll-padding-top:80px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Inner pages (privacy, terms, posts) */
.ct-page{padding-block:120px}
.ct-page .ct-title{margin-bottom:48px}
