/* ARTECH 1.3 — experience layer: motion, contact, sign-in, floating actions. */

/* ---------- Arabic typography ---------- */
html[dir=rtl] body.artech-premium,html[dir=rtl] .artech-home,html[dir=rtl] .artech-header-wrap,html[dir=rtl] .artech-footer,html[dir=rtl] .artech-service-strip,html[dir=rtl] .artech-info{font-family:"IBM Plex Sans Arabic",Tahoma,Arial,sans-serif}

/* ---------- Eight categories: 4 per row on desktop ---------- */
@media(min-width:1100px){.artech-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ---------- Reading progress ---------- */
.artech-progress{position:fixed;top:0;inset-inline:0;height:2px;z-index:9999;pointer-events:none;background:linear-gradient(90deg,var(--ar-gold),#f3d9a4 45%,var(--ar-blue));transform:scaleX(var(--artech-p,0));transform-origin:0 50%;box-shadow:0 0 10px #3ac9f580}
html[dir=rtl] .artech-progress{transform-origin:100% 50%;background:linear-gradient(270deg,var(--ar-gold),#f3d9a4 45%,var(--ar-blue))}
.admin-bar .artech-progress{top:32px}@media(max-width:782px){.admin-bar .artech-progress{top:46px}}

/* ---------- Header shrinks after scrolling ---------- */
.artech-header-wrap{transition:background .3s,box-shadow .3s}
.artech-header-row{transition:min-height .3s}
.artech-brand img{transition:transform .3s}
.artech-sticky.artech-scrolled{background:#0b0e13e6;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 10px 30px #0007}
.artech-sticky.artech-scrolled .artech-header-row{min-height:66px}
.artech-sticky.artech-scrolled .artech-brand img{transform:scale(.86);transform-origin:center}

/* ---------- Hero circuit & shimmer ---------- */
.artech-hero .artech-circuit{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;opacity:.5}
.artech-trace{stroke-width:1.6;stroke-dasharray:900;stroke-dashoffset:900;animation:artech-draw 3.2s cubic-bezier(.4,0,.2,1) forwards}
.artech-trace-gold{stroke:var(--ar-gold)}.artech-trace-blue{stroke:var(--ar-blue);animation-delay:.5s}
.artech-nodes circle{fill:var(--ar-blue);opacity:0;animation:artech-node 3s 2.4s ease-in-out infinite}
.artech-nodes circle:nth-child(2n){fill:var(--ar-gold);animation-delay:3s}
@keyframes artech-draw{to{stroke-dashoffset:0}}
@keyframes artech-node{0%,100%{opacity:.25}50%{opacity:1}}
.artech-motion-plus .artech-home .artech-hero h1{background:linear-gradient(100deg,#fff 0%,#fff 38%,#f3d9a4 47%,var(--ar-gold) 50%,#fff 60%,#fff 100%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:artech-shine 7s 1.2s ease-in-out infinite}
@keyframes artech-shine{0%{background-position:100% 0}40%,100%{background-position:0 0}}

/* ---------- Staggered reveal (only when JS is running) ---------- */
html.artech-js .artech-motion [data-artech-reveal]{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.2,.8,.2,1),transform .7s cubic-bezier(.2,.8,.2,1);transition-delay:var(--artech-d,0s)}
html.artech-js .artech-motion [data-artech-reveal].is-visible{opacity:1;transform:none}

/* ---------- Spotlight on cards ---------- */
.artech-motion-plus :is(.artech-category-card,.artech-care-card,.artech-value-card){position:relative;overflow:hidden}
.artech-motion-plus :is(.artech-category-card,.artech-care-card,.artech-value-card):after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .3s;background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%),#d6ae6c24,transparent 60%)}
.artech-motion-plus :is(.artech-category-card,.artech-care-card,.artech-value-card):hover:after{opacity:1}
.artech-motion-plus .artech-category-card:is(a):hover .artech-category-icon{box-shadow:0 0 0 1px var(--ar-gold),0 0 22px #d6ae6c40}
.artech-category-icon{transition:box-shadow .3s}

/* ---------- About & contact ---------- */
.artech-info .artech-lead{font-size:clamp(16px,1.6vw,19px);color:var(--ar-text)}
.artech-value-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:14px;margin:30px 0}
.artech-value-card{background:linear-gradient(140deg,#1b222b,var(--ar-panel));border:1px solid var(--ar-line);border-radius:14px;padding:20px;transition:border-color .25s,transform .25s}
.artech-value-card:hover{border-color:var(--ar-gold);transform:translateY(-3px)}
.artech-value-card h3{margin:14px 0 6px;font-size:16px;color:var(--ar-text)}
.artech-value-card p{margin:0;font-size:13px;line-height:1.6}
.artech-offer-list{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:10px}
.artech-offer-list li{position:relative;padding-inline-start:28px}
.artech-offer-list li:before{content:"";position:absolute;inset-inline-start:0;top:.55em;width:14px;height:8px;border-inline-start:2px solid var(--ar-gold);border-bottom:2px solid var(--ar-gold);transform:rotate(-45deg)}
html[dir=rtl] .artech-offer-list li:before{transform:rotate(45deg) scaleX(-1)}
.artech-info-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.artech-contact-grid>div{position:relative}
.artech-contact-grid>div>svg{width:22px;height:22px;color:var(--ar-gold);margin-bottom:10px;display:block}
.artech-contact-grid a{color:var(--ar-text);font-weight:600;text-decoration:none}
.artech-contact-grid a:hover{color:var(--ar-gold)}

/* ---------- Built-in contact form ---------- */
.artech-builtin-form{margin-top:34px;padding:clamp(20px,4vw,34px);background:linear-gradient(150deg,#161c25,#10141b);border:1px solid var(--ar-line);border-radius:16px}
.artech-builtin-form h3{margin:0 0 18px;font-size:20px;color:var(--ar-text)}
.artech-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}
.artech-form-grid p{margin:0 0 12px}
.artech-form-grid .artech-span-2{grid-column:1/-1}
.artech-builtin-form label{display:block;font-size:12px;font-weight:600;color:#c8d0db;margin-bottom:6px}
.artech-builtin-form :is(input,select,textarea){width:100%;box-sizing:border-box;min-height:46px;padding:11px 14px;background:#0d1117;color:var(--ar-text);border:1px solid var(--ar-line);border-radius:9px;font:inherit;transition:border-color .2s,box-shadow .2s}
.artech-builtin-form :is(input,select,textarea):focus{outline:none;border-color:var(--ar-gold);box-shadow:0 0 0 3px #d6ae6c26}
.artech-builtin-form textarea{min-height:140px;resize:vertical}
.artech-form-hint{font-size:12px;color:var(--ar-muted);margin:2px 0 16px}
.artech-form-notice{padding:13px 16px;border-radius:10px;margin-bottom:18px;font-size:14px;font-weight:500}
.artech-form-success{background:#0f2a22;border:1px solid #2f8f6d;color:#a9f0d2}
.artech-form-error{background:#2b1416;border:1px solid #9c3f47;color:#ffc9cd}
.artech-hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.artech-builtin-form button[disabled]{opacity:.65;cursor:progress}
@media(max-width:640px){.artech-form-grid{grid-template-columns:1fr}}

/* ---------- Floating WhatsApp & back to top ---------- */
.artech-whatsapp{position:fixed;z-index:90;bottom:22px;inset-inline-end:22px;display:flex;align-items:center;gap:10px;height:56px;min-width:56px;padding:0 16px;box-sizing:border-box;border-radius:30px;background:#25d366;color:#fff!important;text-decoration:none!important;box-shadow:0 10px 28px #0007;font-weight:600;font-size:14px}
.artech-whatsapp svg{width:26px;height:26px;flex:none}
.artech-whatsapp:before{content:"";position:absolute;inset:0;border-radius:inherit;border:2px solid #25d366;animation:artech-ping 2.6s ease-out infinite;pointer-events:none}
.artech-whatsapp-label{max-width:0;overflow:hidden;white-space:nowrap;transition:max-width .4s}
.artech-whatsapp:hover .artech-whatsapp-label,.artech-whatsapp:focus-visible .artech-whatsapp-label{max-width:220px}
@keyframes artech-ping{0%{transform:scale(1);opacity:.7}80%,100%{transform:scale(1.35);opacity:0}}
.artech-to-top{position:fixed;z-index:89;bottom:92px;inset-inline-end:28px;width:44px;height:44px;display:grid;place-items:center;padding:0;border-radius:50%;background:#11161ee6;border:1px solid var(--ar-gold);color:var(--ar-gold);cursor:pointer;opacity:0;transform:translateY(10px);transition:opacity .3s,transform .3s}
.artech-to-top.is-on{opacity:1;transform:none}
.artech-to-top svg{width:18px;height:18px}
.artech-to-top:hover{background:var(--ar-gold);color:#111318}
body:not(:has(.artech-whatsapp)) .artech-to-top{bottom:24px}

/* ---------- Premium sign-in / create account ---------- */
.artech-auth .woocommerce{max-width:620px;margin-inline:auto}
.artech-auth .artech-account-intro{text-align:center;border-radius:18px 18px 0 0;margin-bottom:0;border-bottom:0;background:linear-gradient(160deg,#fff,#faf6ef);position:relative;overflow:hidden}
.artech-auth .artech-account-intro:before{content:"";position:absolute;inset-inline:0;top:0;height:4px;background:linear-gradient(90deg,var(--ar-gold),var(--ar-blue))}
.artech-auth .artech-account-tabs{justify-content:center;background:#f1ece3;padding:5px;border-radius:12px;display:inline-flex;gap:4px}
.artech-auth .artech-account-tabs a{border:0;border-radius:9px;padding:10px 22px;text-decoration:none;color:#6b5734!important}
.artech-auth .artech-account-tabs a[aria-selected=true]{background:#fff;color:#17212e!important;box-shadow:0 2px 8px #0000001a}
.artech-auth #customer_login,.artech-auth .woocommerce-form-login:only-of-type{background:#fff;border:1px solid #d3d9e0;border-top:0;border-radius:0 0 18px 18px;padding:8px 28px 26px;margin:0;display:block}
.artech-auth #customer_login .u-column1,.artech-auth #customer_login .u-column2{width:100%!important;float:none!important;max-width:none;padding:0!important;margin:0!important}
.artech-auth #customer_login h2{display:none}
.artech-auth #customer_login form{border:0!important;padding:0!important;margin:12px 0 0!important}
html.artech-js .artech-auth-has-register #customer_login .u-column2{display:none}
html.artech-js .artech-auth-has-register.artech-auth-register #customer_login .u-column2{display:block}
html.artech-js .artech-auth-has-register.artech-auth-register #customer_login .u-column1{display:none}
.artech-auth .woocommerce form .form-row input.input-text{min-height:48px;border-radius:10px}
.artech-auth .woocommerce form .woocommerce-button,.artech-auth .woocommerce form button[type=submit]{width:100%;min-height:50px;border-radius:10px;background:#111318!important;color:#fff!important;font-weight:650}
.artech-auth .woocommerce form button[type=submit]:hover{background:var(--ar-gold)!important;color:#111318!important}
.artech-social-label{margin:18px 0 10px;font-size:12px;font-weight:600;color:#6b7380}
.artech-or{display:flex;align-items:center;gap:12px;margin:18px 0 0;font-size:12px;color:#8a919c}
.artech-or:before,.artech-or:after{content:"";flex:1;height:1px;background:#e1e5ea}
.artech-auth-benefits{list-style:none;margin:18px auto 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 22px;max-width:620px}
.artech-auth-benefits li{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ar-muted)}
.artech-auth-benefits svg{width:16px;height:16px;color:var(--ar-gold)}

/* ---------- Social login on checkout ---------- */
.artech-checkout-social{max-width:620px;margin:0 0 24px;padding:18px 20px;border:1px solid #d3d9e0;border-radius:14px;background:#fff}
.artech-checkout-social>p{margin:0 0 10px;font-size:13px;font-weight:600;color:#17212e}

/* ---------- Accessibility ---------- */
@media(prefers-reduced-motion:reduce){
  .artech-progress,.artech-hero .artech-circuit{display:none}
  .artech-motion-plus .artech-home .artech-hero h1{animation:none;background:none;-webkit-text-fill-color:currentColor}
  html.artech-js .artech-motion [data-artech-reveal]{opacity:1;transform:none;transition:none}
  .artech-whatsapp:before{animation:none}
  .artech-value-card:hover{transform:none}
}
