/*
Theme Name: UpgradeMade Technology
Theme URI: https://upgrademade.qa
Author: UpgradeMade Technology
Description: Native WordPress theme for UpgradeMade Technology — Smart Home (IoT), Electrical Work, and AI Development, Doha, Qatar. Home page routes to three fully editable solution pages, built entirely with core Gutenberg blocks.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: upgrademade
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root{
  --ink:#0B2530;
  --ink-soft:#4E7079;
  --bg:#F7FBFB;
  --bg-alt:#EDF4F4;
  --card:#FFFFFF;
  --blue:#4F8BBE;
  --teal:#6FB09E;
  --cyan:#8FC9B4;
  --line: rgba(11,37,48,.10);
  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(11,37,48,.28);
  --accent: var(--teal);
  --accent2: var(--cyan);
  --grad2: linear-gradient(120deg, var(--blue), var(--teal));
  --maxw: 1180px;
}

/* per-vertical accent overrides, applied via body class (see functions.php) */
body.accent-smart-home{ --accent:#6FB09E; --accent2:#8FC9B4; --grad2:linear-gradient(120deg,#6FB09E,#8FC9B4); }
body.accent-electrical{ --accent:#4F8BBE; --accent2:#6FA8D0; --grad2:linear-gradient(120deg,#4F8BBE,#6FA8D0); }
body.accent-ai{ --accent:#6FB09E; --accent2:#4F8BBE; --grad2:linear-gradient(120deg,#6FB09E,#4F8BBE); }

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4,.wp-block-heading{
  font-family:'Space Grotesk',sans-serif;
  letter-spacing:-0.01em;
  margin:0 0 .5em;
  font-weight:700;
  color:var(--ink);
}
p{margin:0 0 1em;line-height:1.65;color:var(--ink-soft);}
a{color:inherit;text-decoration:none;}
img{max-width:100%;height:auto;display:block;}
ul{margin:0;padding:0;}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:3px solid var(--cyan);
  outline-offset:2px;
}

.container{max-width:var(--maxw);margin:0 auto;padding:0 28px;}
.eyebrow{
  display:inline-block;
  font-family:'Space Grotesk',sans-serif;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:14px;
}

/* =========================================================
   3. BUTTONS (core/button block output)
   ========================================================= */
.wp-block-button__link,
.wp-element-button{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 26px !important;
  border-radius:999px !important;
  font-weight:600;
  font-size:15px;
  font-family:'Inter',sans-serif;
  background:var(--grad2);
  color:#fff !important;
  border:none;
  box-shadow:0 14px 30px -10px rgba(30,111,168,.5);
  transition:transform .18s ease, box-shadow .18s ease;
  cursor:pointer;
}
.wp-block-button__link:hover{transform:translateY(-2px);box-shadow:0 18px 36px -10px rgba(30,111,168,.55);}
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-ghost .wp-block-button__link{
  background:#fff !important;
  color:var(--ink) !important;
  border:1px solid var(--line);
  box-shadow:none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-ghost .wp-block-button__link:hover{
  border-color:var(--accent);color:var(--accent) !important;
}
.hero-block .wp-block-buttons{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px;}
.hero-home .wp-block-buttons{justify-content:center;}

/* =========================================================
   4. HEADER
   ========================================================= */
#site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(247,251,251,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.headbar{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:20px;}
.brand{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.brand img{height:34px;width:auto;}
.brand-text{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:15px;line-height:1.15;color:var(--ink);}
.brand-text span{display:block;font-family:'Inter',sans-serif;font-weight:500;font-size:10px;letter-spacing:.12em;color:var(--ink-soft);text-transform:uppercase;}

.crumb{
  display:none;align-items:center;gap:6px;
  font-size:13px;font-weight:600;color:var(--ink-soft);
  padding:8px 14px 8px 10px;border-radius:999px;border:1px solid var(--line);background:#fff;
  transition:color .15s ease, border-color .15s ease;
  flex-shrink:0;
}
.crumb:hover{color:var(--accent);border-color:var(--accent);}
body:not(.route-home) .crumb{display:inline-flex;}

.vertical-tag{
  display:none;align-items:center;gap:8px;
  font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:14px;
  color:var(--accent);
  padding-left:14px;margin-left:2px;border-left:1px solid var(--line);
  white-space:nowrap;
}
.vertical-tag .dot{width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0;}
body:not(.route-home) .vertical-tag{display:inline-flex;}

#primary-menu{list-style:none;display:flex;align-items:center;gap:4px;margin:0;padding:0;}
#primary-menu li{position:relative;}
#primary-menu a{
  font-size:14px;font-weight:600;color:var(--ink-soft);
  padding:9px 14px;border-radius:999px;display:block;
  transition:color .15s ease, background .15s ease;
}
#primary-menu a:hover{color:var(--ink);background:var(--bg-alt);}
#primary-menu li.current-menu-item > a{color:var(--accent);}
.headnav{display:flex;align-items:center;gap:14px;}
.headnav .btn-contact{
  background:var(--grad2);color:#fff;padding:10px 20px;border-radius:999px;font-weight:600;font-size:13.5px;
  box-shadow:0 12px 26px -10px rgba(30,111,168,.5);
}

.menu-toggle{display:none;background:none;border:1px solid var(--line);border-radius:10px;padding:8px 10px;cursor:pointer;}
.menu-toggle span{display:block;width:20px;height:2px;background:var(--ink);margin:4px 0;}

.subnav{display:none;gap:22px;padding:12px 0;border-top:1px solid var(--line);overflow-x:auto;}
body:not(.route-home) .subnav{display:flex;}
.subnav button{
  background:none;border:none;font-family:'Inter',sans-serif;font-size:13.5px;font-weight:600;
  color:var(--ink-soft);cursor:pointer;padding:4px 2px;white-space:nowrap;
}
.subnav button:hover{color:var(--accent);}

/* =========================================================
   5. HERO
   ========================================================= */
.hero-block{
  position:relative;overflow:hidden;
  padding:96px 0 84px;
  background:
    radial-gradient(60% 55% at 85% -10%, color-mix(in srgb, var(--accent2) 32%, transparent), transparent 60%),
    radial-gradient(50% 45% at -10% 110%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%),
    var(--bg);
}
.hero-block .container{position:relative;z-index:2;}
.hero-block .wp-block-heading{font-size:clamp(32px,4.4vw,52px);line-height:1.08;margin:12px 0 18px;max-width:760px;}
.hero-block p:not(.eyebrow){font-size:17px;max-width:600px;margin-bottom:10px;color:var(--ink-soft);}

.hero-home{padding:120px 0 30px;text-align:center;}
.hero-home .wp-block-heading{margin-left:auto;margin-right:auto;max-width:760px;}
.hero-home p:not(.eyebrow){margin-left:auto;margin-right:auto;}

/* decorative wave, injected by template (not editable content) */
.wave-divider{display:block;width:100%;height:36px;}
.wave-divider path{stroke:var(--accent);stroke-opacity:.3;fill:none;stroke-width:1.4;}

/* =========================================================
   6. GENERIC SECTION WRAPPERS
   ========================================================= */
.section{padding:80px 0;}
.section-alt{background:var(--bg-alt);}
.section .eyebrow + .wp-block-heading{font-size:28px;margin-bottom:16px;}
.section-head{max-width:620px;margin-bottom:44px;}

/* =========================================================
   7. GRID SYSTEM (Group > Group cards, CSS Grid — no Columns block)
   ========================================================= */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.grid-2{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center;}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:0;position:relative;}

/* ---- pack cards (home hub) ---- */
.pack-card{
  position:relative;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:20px;
  padding:32px 26px 28px;
  box-shadow:var(--shadow);
  transition:transform .22s ease, box-shadow .22s ease;
  overflow:hidden;
}
.pack-card::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:var(--card-grad);}
.pack-card:hover{transform:translateY(-6px);box-shadow:0 30px 70px -24px rgba(11,37,48,.35);}
.pack-card::after{
  content:"";display:block;width:52px;height:52px;border-radius:14px;margin-bottom:20px;
  background:var(--card-grad) center/contain no-repeat;
}
.pack-card .wp-block-heading{font-size:20px;margin-bottom:8px;}
.pack-card p{font-size:14.5px;margin-bottom:4px;}
.pack-card .wp-block-buttons{margin-top:14px;}
.pack-card .wp-block-button__link{
  background:none !important;box-shadow:none;padding:0 !important;color:var(--card-accent) !important;
  font-family:'Space Grotesk',sans-serif;font-size:13.5px;font-weight:700;
}
.pack-card .wp-block-button__link:hover{transform:none;text-decoration:underline;}

.pack-card--smart{--card-grad: linear-gradient(120deg,#6FB09E,#8FC9B4);--card-accent:#6FB09E;}
.pack-card--electrical{--card-grad: linear-gradient(120deg,#4F8BBE,#6FA8D0);--card-accent:#4F8BBE;}
.pack-card--ai{--card-grad: linear-gradient(120deg,#4F8BBE,#6FB09E,#8FC9B4);--card-accent:#6FB09E;}

.pack-card::after{
  -webkit-mask:var(--icon) center/26px no-repeat;
  mask:var(--icon) center/26px no-repeat;
}
.pack-card--smart::after{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v9a1 1 0 001 1h4v-6h4v6h4a1 1 0 001-1v-9'/%3E%3C/svg%3E");}
.pack-card--electrical::after{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L3 14h7l-1 8 10-12h-7l1-8z'/%3E%3C/svg%3E");}
.pack-card--ai::after{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v4M12 18v4M4.9 4.9l2.8 2.8M16.3 16.3l2.8 2.8M2 12h4M18 12h4M4.9 19.1l2.8-2.8M16.3 7.7l2.8-2.8'/%3E%3C/svg%3E");}

/* ---- trust strip ---- */
.trust-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;}
.trust-item{background:var(--card);padding:22px 18px;text-align:center;}
.trust-item .wp-block-heading{font-size:14.5px;margin-bottom:2px;}
.trust-item p{font-size:12.5px;margin:0;}

/* ---- overview (2-col) ---- */
.overview-visual{
  aspect-ratio:4/3;border-radius:20px;
  background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, black), var(--accent2));
  display:flex;align-items:center;justify-content:center;
}
.overview-visual svg{width:55%;opacity:.9;}

/* ---- service cards ---- */
.svc-card{
  background:var(--card);border:1px solid var(--line);border-radius:16px;padding:26px 22px;
  transition:border-color .15s ease, transform .15s ease;
}
.svc-card:hover{border-color:var(--accent);transform:translateY(-3px);}
.svc-card::before{
  content:"";display:block;width:40px;height:40px;border-radius:10px;margin-bottom:16px;
  background:color-mix(in srgb, var(--accent) 14%, white);
  -webkit-mask:var(--icon) center/20px no-repeat;mask:var(--icon) center/20px no-repeat;
  background-color:var(--accent);
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
}
.svc-card .wp-block-heading{font-size:16px;margin-bottom:6px;}
.svc-card p{font-size:13.5px;margin:0;}

/* service icon set (reused across verticals by meaning) */
.icon-bolt::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L3 14h7l-1 8 10-12h-7l1-8z'/%3E%3C/svg%3E");}
.icon-shield::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4.5 8-11V5l-8-3-8 3v6c0 6.5 8 11 8 11z'/%3E%3C/svg%3E");}
.icon-lock::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 018 0v4'/%3E%3C/svg%3E");}
.icon-blinds::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18M3 12h18M3 17h12'/%3E%3C/svg%3E");}
.icon-voice::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3 7h7l-5.5 4.5L18 21l-6-4-6 4 1.5-7.5L2 9h7z'/%3E%3C/svg%3E");}
.icon-meter::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M9 21v-6h6v6'/%3E%3C/svg%3E");}
.icon-wire::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M4 6h16M4 18h16'/%3E%3C/svg%3E");}
.icon-panel::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='3' width='12' height='18' rx='2'/%3E%3Cpath d='M10 8h4M10 12h4M10 16h4'/%3E%3C/svg%3E");}
.icon-bulb::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a6 6 0 00-4 10.5c.6.6 1 1.4 1 2.5h6c0-1.1.4-1.9 1-2.5A6 6 0 0012 2z'/%3E%3C/svg%3E");}
.icon-building::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18'/%3E%3Cpath d='M9 8h1M14 8h1M9 12h1M14 12h1M9 16h1M14 16h1'/%3E%3C/svg%3E");}
.icon-wrench::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");}
.icon-cpu::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 18v3'/%3E%3C/svg%3E");}
.icon-flow::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 1l4 4-4 4M3 11V9a4 4 0 014-4h14M7 23l-4-4 4-4M21 13v2a4 4 0 01-4 4H3'/%3E%3C/svg%3E");}
.icon-chat::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z'/%3E%3C/svg%3E");}
.icon-grid::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4zM4 9h16M9 4v16'/%3E%3C/svg%3E");}
.icon-analytics::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18M7 15l4-6 4 3 4-8'/%3E%3C/svg%3E");}
.icon-eye::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");}
.icon-sun::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");}
.icon-link::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 007.54.54l3-3a5 5 0 00-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 00-7.54-.54l-3 3a5 5 0 007.07 7.07l1.71-1.71'/%3E%3C/svg%3E");}
.icon-check::before{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M9 14l2 2 4-4'/%3E%3C/svg%3E");}

/* ---- process steps ---- */
.process-steps{counter-reset:step;}
.proc-step{position:relative;padding-right:16px;}
.proc-step::before{
  counter-increment:step;content:counter(step);
  width:40px;height:40px;border-radius:50%;
  background:var(--grad2);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:14px;
  margin-bottom:18px;
}
.process-steps::after{
  content:"";position:absolute;top:19px;left:6%;right:6%;height:2px;
  background:repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  z-index:0;
}
.proc-step .wp-block-heading{font-size:15.5px;margin-bottom:6px;}
.proc-step p{font-size:13px;margin:0;}

/* =========================================================
   8. CTA / CONTACT (shortcode output, see inc/contact.php)
   ========================================================= */
.cta-block{
  padding:80px 0 100px;
  background:linear-gradient(160deg, var(--ink) 0%, #103642 60%, var(--ink) 100%);
  color:#fff;position:relative;overflow:hidden;
}
.cta-block::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(45% 60% at 90% 10%, color-mix(in srgb, var(--accent2) 28%, transparent), transparent 70%);
}
.cta-block .container{position:relative;z-index:1;}
.cta-block .eyebrow{color:var(--accent2);}
.cta-block .wp-block-heading{color:#fff;font-size:28px;margin-bottom:14px;}
.cta-block p{color:rgba(255,255,255,.68);}

.cta-widget{display:grid;grid-template-columns:.85fr 1.15fr;gap:48px;align-items:start;margin-top:36px;}
.cta-info{display:flex;flex-direction:column;gap:10px;font-size:14px;color:rgba(255,255,255,.85);}
.cta-info span{display:flex;align-items:center;gap:8px;}

form.um-contact-form{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;padding:28px;
  display:grid;grid-template-columns:1fr 1fr;gap:14px;
}
form.um-contact-form .full{grid-column:1/-1;}
form.um-contact-form label{display:block;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-bottom:6px;}
form.um-contact-form input, form.um-contact-form textarea{
  width:100%;padding:12px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.05);color:#fff;font-family:'Inter',sans-serif;font-size:14px;
}
form.um-contact-form input::placeholder, form.um-contact-form textarea::placeholder{color:rgba(255,255,255,.35);}
form.um-contact-form input:focus, form.um-contact-form textarea:focus{outline:2px solid var(--cyan);border-color:transparent;}
form.um-contact-form textarea{min-height:90px;resize:vertical;}
form.um-contact-form button{grid-column:1/-1;justify-self:start;margin-top:4px;}
.form-note{grid-column:1/-1;font-size:12px;color:rgba(255,255,255,.45);margin:-4px 0 0;}
.form-alert{grid-column:1/-1;padding:12px 16px;border-radius:10px;font-size:13.5px;margin-bottom:4px;}
.form-alert.success{background:rgba(58,197,214,.16);border:1px solid rgba(58,197,214,.4);color:#fff;}
.form-alert.error{background:rgba(220,80,80,.16);border:1px solid rgba(220,80,80,.4);color:#fff;}

/* =========================================================
   9. FOOTER
   ========================================================= */
#site-footer{padding:44px 0;border-top:1px solid var(--line);}
.foot-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;}
.foot-links{display:flex;gap:22px;font-size:13.5px;color:var(--ink-soft);list-style:none;padding:0;margin:0;}
.foot-links a:hover{color:var(--accent);}
.foot-copy{font-size:12.5px;color:var(--ink-soft);}

/* =========================================================
   10. RESPONSIVE
   ========================================================= */
@media (max-width:900px){
  .grid-3, .grid-4{grid-template-columns:1fr 1fr;}
  .grid-2, .cta-widget{grid-template-columns:1fr;gap:32px;}
  .trust-strip{grid-template-columns:1fr 1fr;}
  #primary-menu, .headnav .btn-contact{display:none;}
  .menu-toggle{display:block;}
  .process-steps::after{display:none;}
  form.um-contact-form{grid-template-columns:1fr;}
}
@media (max-width:600px){
  .grid-3, .grid-4, .trust-strip{grid-template-columns:1fr;}
  .hero-block{padding:64px 0 56px;}
  .hero-home{padding:80px 0 20px;}
  .container{padding:0 18px;}
  .section{padding:56px 0;}
}
@media (prefers-reduced-motion: reduce){
  *{animation:none !important;transition:none !important;}
  html{scroll-behavior:auto;}
}

/* =========================================================
   11. TECH / COMPONENT TRUST STRIP (vendor-neutral credibility)
   ========================================================= */
.tech-strip-label{font-size:12.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:14px;}
.tech-strip{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;}
.tech-chip{
  padding:9px 18px;border-radius:999px;border:1px solid var(--line);background:#fff;
  font-family:'Space Grotesk',sans-serif;font-size:13px;font-weight:600;color:var(--ink-soft);
  transition:transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  cursor:default;margin:0;display:inline-block;
}
.tech-chip:hover{
  border-color:var(--accent);color:var(--accent);transform:translateY(-3px);
  box-shadow:0 10px 24px -10px rgba(11,37,48,.25);
}

/* =========================================================
   12. CATEGORY BADGE (on service cards)
   ========================================================= */
.cat-badge{
  display:inline-block;font-family:'Space Grotesk',sans-serif;font-size:11px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:var(--accent);
  margin:0 0 10px;
}

/* =========================================================
   13. FILTER TABS (AI services)
   ========================================================= */
.svc-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:36px;}
.svc-tab{
  padding:10px 20px;border-radius:999px;border:1px solid var(--line);background:#fff;
  font-family:'Inter',sans-serif;font-weight:600;font-size:13.5px;color:var(--ink-soft);
  cursor:pointer;transition:all .2s ease;
}
.svc-tab:hover{border-color:var(--accent);color:var(--accent);}
.svc-tab.is-active{background:var(--grad2);color:#fff;border-color:transparent;box-shadow:0 10px 24px -10px rgba(30,111,168,.5);}
.svc-card{transition:border-color .15s ease, transform .15s ease, opacity .3s ease, box-shadow .2s ease;}
.svc-card.is-hidden{display:none;}
.svc-card:hover{box-shadow:0 20px 40px -20px rgba(11,37,48,.25);}

/* =========================================================
   14. SCROLL-REVEAL ANIMATION SYSTEM (progressive enhancement)
   ========================================================= */
.js-reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease, transform .6s ease;}
.js-reveal.is-visible{opacity:1;transform:translateY(0);}

/* =========================================================
   15. ANIMATED PROCESS TIMELINE
   ========================================================= */
.process-steps::after{transform-origin:left center;transform:scaleX(0);transition:transform 1.1s cubic-bezier(.22,.61,.36,1);}
.process-steps.is-visible::after{transform:scaleX(1);}
.proc-step::before{transform:scale(.6);opacity:0;transition:transform .5s ease, opacity .5s ease;}
.process-steps.is-visible .proc-step::before{transform:scale(1);opacity:1;}
.proc-step:nth-child(1)::before{transition-delay:.15s;}
.proc-step:nth-child(2)::before{transition-delay:.4s;}
.proc-step:nth-child(3)::before{transition-delay:.65s;}
.proc-step:nth-child(4)::before{transition-delay:.9s;}

/* =========================================================
   16. AMBIENT MOTION on overview visual
   ========================================================= */
.overview-visual{position:relative;overflow:hidden;}
.overview-visual::before{
  content:"";position:absolute;inset:-30%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 55%);
  animation:driftglow 9s ease-in-out infinite;
}
@keyframes driftglow{
  0%,100%{transform:translate(0,0) scale(1);}
  50%{transform:translate(6%,8%) scale(1.15);}
}
.overview-visual svg{position:relative;z-index:1;}

/* =========================================================
   17. SCROLL-SPY SUBNAV ACTIVE STATE
   ========================================================= */
.subnav button{position:relative;}
.subnav button.is-active{color:var(--accent);}
.subnav button.is-active::after{
  content:"";position:absolute;left:2px;right:2px;bottom:-13px;height:2px;background:var(--accent);
  border-radius:2px;
}

/* =========================================================
   18. BUTTON MICRO-INTERACTION POLISH
   ========================================================= */
.pack-card, .svc-card{will-change:transform;}
.wp-block-button__link{position:relative;overflow:hidden;}

@media (max-width:900px){
  .tech-strip{gap:8px;}
  .svc-tabs{gap:8px;}
}

/* =========================================================
   19. LANGUAGE SWITCHER
   ========================================================= */
.lang-switch{
  padding:9px 16px;border-radius:999px;border:1px solid var(--line);
  font-weight:600;font-size:13.5px;color:var(--ink-soft);
  transition:color .15s ease, border-color .15s ease;
}
.lang-switch:hover{color:var(--accent);border-color:var(--accent);}

/* =========================================================
   20. RTL / ARABIC SUPPORT
   ========================================================= */
body.rtl{
  direction:rtl;
  font-family:'Tajawal',sans-serif;
}
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl .wp-block-heading,
body.rtl .eyebrow, body.rtl .brand-text, body.rtl .cat-badge, body.rtl .lang-switch,
body.rtl .wp-block-button__link, body.rtl .svc-tab, body.rtl .tech-chip,
body.rtl .um-contact-form label, body.rtl form.um-contact-form button,
body.rtl .tech-strip-label, body.rtl #primary-menu a, body.rtl .crumb,
body.rtl .vertical-tag, body.rtl .subnav button, body.rtl .btn-contact,
body.rtl .foot-links, body.rtl .foot-copy{
  font-family:'Tajawal',sans-serif;
}
body.rtl p, body.rtl li, body.rtl input, body.rtl textarea{
  font-family:'Tajawal',sans-serif;
}

/* Arabic script has no letter-casing and reads poorly with tracking/kerning
   pulled apart — reset the uppercase+letter-spacing treatment used for EN. */
body.rtl .eyebrow, body.rtl .brand-text span, body.rtl .cat-badge,
body.rtl .tech-strip-label, body.rtl form.um-contact-form label{
  text-transform:none;
  letter-spacing:normal;
}

/* direction:rtl on body auto-mirrors flexbox/grid main-axis ordering
   (header layout, grid-2 overview columns, footer, button groups, etc.)
   — only a few hard-coded physical (left/right) values need correcting. */
body.rtl .vertical-tag{
  border-left:none;border-right:1px solid var(--line);
  padding-left:0;padding-right:14px;margin-left:0;margin-right:2px;
}
body.rtl .crumb{padding:8px 10px 8px 14px;}
body.rtl .proc-step{padding-right:0;padding-left:16px;}
body.rtl .pack-card{text-align:right;}
body.rtl .svc-card{text-align:right;}
body.rtl .cta-info span{flex-direction:row-reverse;justify-content:flex-end;}
body.rtl .hero-block:not(.hero-home) .wp-block-heading,
body.rtl .hero-block:not(.hero-home) p:not(.eyebrow){
  margin-left:0;
}

@media (max-width:900px){
  body.rtl #primary-menu, body.rtl .headnav .btn-contact{display:none;}
}


