/*
Theme Name: Jidoka
Theme URI: https://jidoka.example.com
Author: Jidoka
Author URI: https://jidoka.example.com
Description: Bilingual (Arabic/English) enterprise digital-transformation theme. Dark SaaS aesthetic with client logo marquee, solutions cards, services grid, capability grid, compliance block, hosting tiers and testimonials. Full RTL support.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jidoka
Tags: business, corporate, rtl-language-support, translation-ready, custom-logo, custom-menu, featured-images, two-columns, block-styles, wide-blocks
*/

/* ==========================================================================
   0. Design tokens
   --------------------------------------------------------------------------
   Change the brand colours here and the whole site follows.
   ========================================================================== */
:root {
  /* Brand */
  --brand: #3b5bff;
  --brand-600: #2f4ae0;
  --brand-2: #00d4c8;
  --brand-grad: linear-gradient(120deg, #3b5bff 0%, #6f5bff 55%, #00d4c8 130%);
  --brand-soft: rgba(59, 91, 255, .1);

  /* Dark surfaces */
  --bg: #070c1a;
  --bg-2: #0a1024;
  --surface: #101a33;
  --surface-2: #16224180;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eaeef9;
  --muted: #9aa6c4;

  /* Light surfaces */
  --light: #ffffff;
  --light-2: #f4f7fd;
  --light-line: #e5eaf5;
  --ink: #0a1024;
  --ink-muted: #55617e;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", Tahoma, sans-serif;

  /* Metrics */
  --maxw: 1200px;
  --gap: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --pad-section: 104px;
  --shadow-sm: 0 2px 8px rgba(10, 16, 36, .06);
  --shadow: 0 18px 50px -20px rgba(10, 16, 36, .28);
  --shadow-brand: 0 20px 50px -18px rgba(59, 91, 255, .5);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   1. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.jd-ar, body.rtl { font-family: var(--font-ar); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease), opacity .2s var(--ease); }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-weight: 700; line-height: 1.16; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.85rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-inline-start: 1.2em; }
blockquote { margin: 0 0 1.2em; padding-inline-start: 20px; border-inline-start: 3px solid var(--brand); color: var(--ink-muted); font-size: 1.1rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
pre { padding: 18px; background: var(--bg); color: var(--text); border-radius: var(--radius-sm); overflow: auto; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--light-line); text-align: start; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; inset-inline-start: 16px; top: 16px; z-index: 999;
  width: auto; height: auto; clip: auto; padding: 12px 20px;
  background: var(--brand); color: #fff; border-radius: 8px;
}

/* ==========================================================================
   2. Layout primitives
   ========================================================================== */
.jd-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.jd-wrap--narrow { max-width: 840px; }
.jd-section { padding-block: var(--pad-section); position: relative; }
.jd-section--tight { padding-block: 68px; }
.jd-section--light { background: var(--light); }
.jd-section--light-2 { background: var(--light-2); }
.jd-section--dark { background: var(--bg-2); color: var(--text); }
.jd-section--dark h1, .jd-section--dark h2, .jd-section--dark h3, .jd-section--dark h4 { color: #fff; }
.jd-grid { display: grid; gap: var(--gap); }
.jd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Section heading block */
.jd-head { max-width: 760px; margin-bottom: 56px; }
.jd-head--center { margin-inline: auto; text-align: center; }
.jd-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.jd-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.jd-section--dark .jd-eyebrow { color: var(--brand-2); }
.jd-section--dark .jd-eyebrow::before { background: var(--brand-2); }
.jd-head h1 span,
.jd-head h2 span,
.jd-head h3 span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.jd-head--tight { margin-bottom: 30px; }
.jd-head--inline { margin-bottom: 56px; max-width: 620px; }
.jd-head--form { margin-bottom: 34px; }
.jd-lead { font-size: 1.12rem; color: var(--ink-muted); margin-bottom: 0; }
.jd-section--dark .jd-lead { color: var(--muted); }

/* ==========================================================================
   3. Buttons & pills
   ========================================================================== */
.jd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border: 1px solid transparent; border-radius: 999px;
  font-size: .97rem; font-weight: 600; line-height: 1; cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
  white-space: nowrap;
}
.jd-btn:hover { transform: translateY(-2px); }
.jd-btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.jd-btn--primary:hover { background: var(--brand-600); color: #fff; }
.jd-btn--ghost { background: transparent; color: var(--ink); border-color: var(--light-line); }
.jd-btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.jd-section--dark .jd-btn--ghost, .jd-hero .jd-btn--ghost { color: #fff; border-color: var(--line-2); }
.jd-section--dark .jd-btn--ghost:hover, .jd-hero .jd-btn--ghost:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.jd-btn--light { background: #fff; color: var(--ink); }
.jd-btn--light:hover { color: var(--brand); }
.jd-btn--sm { padding: 11px 20px; font-size: .88rem; }
.jd-btn__arrow { transition: transform .22s var(--ease); }
.jd-btn:hover .jd-btn__arrow { transform: translateX(3px); }
.rtl .jd-btn__arrow, .jd-ar .jd-btn__arrow { transform: scaleX(-1); }
.rtl .jd-btn:hover .jd-btn__arrow, .jd-ar .jd-btn:hover .jd-btn__arrow { transform: scaleX(-1) translateX(3px); }

.jd-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2);
  color: #fff; font-size: .86rem; font-weight: 500; margin-bottom: 26px;
}
.jd-pill b { color: var(--brand-2); font-weight: 700; }
.jd-pill__tag {
  padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.jd-tag {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}

/* ==========================================================================
   4. Header / navigation
   ========================================================================== */
.jd-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(7, 12, 26, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.jd-header.is-stuck { background: rgba(7, 12, 26, .96); }
.jd-header__inner { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.jd-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.jd-brand:hover { color: #fff; opacity: .85; }
.jd-brand img { max-height: 42px; width: auto; }
.jd-brand__mark { width: 34px; height: 34px; flex: 0 0 34px; }
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { max-height: 44px; width: auto; }
.jd-footer .custom-logo { max-height: 40px; }

.jd-nav { margin-inline-start: auto; }
.jd-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.jd-nav li { position: relative; }
.jd-nav a {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  color: rgba(234, 238, 249, .82); font-size: .95rem; font-weight: 500; border-radius: 10px;
}
.jd-nav a:hover, .jd-nav .current-menu-item > a, .jd-nav .current_page_item > a { color: #fff; background: rgba(255, 255, 255, .06); }
.jd-nav .menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px; margin-inline-start: 2px;
  border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .7;
}
.jd-nav .sub-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0;
  min-width: 262px; padding: 10px; flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.jd-nav li:hover > .sub-menu, .jd-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.jd-nav .sub-menu a { padding: 11px 14px; font-size: .92rem; }
.jd-header__actions { display: flex; align-items: center; gap: 10px; }

/* Language switcher */
.jd-lang { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.jd-lang a { padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.jd-lang a:hover { color: #fff; }
.jd-lang a.is-active { background: #fff; color: var(--ink); }

/* Mobile toggle */
.jd-burger {
  display: none; width: 44px; height: 44px; padding: 0; background: transparent;
  border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer;
}
.jd-burger span { display: block; width: 18px; height: 2px; margin: 3px auto; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.jd-burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.jd-burger.is-open span:nth-child(2) { opacity: 0; }
.jd-burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.jd-hero {
  position: relative; overflow: hidden; color: var(--text);
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(59, 91, 255, .34), transparent 60%),
    radial-gradient(700px 420px at 8% 8%, rgba(0, 212, 200, .17), transparent 62%),
    var(--bg);
  padding-block: 104px 92px;
}
.jd-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 78%);
}
.jd-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.jd-hero h1 { color: #fff; margin-bottom: 22px; }
.jd-hero h1 span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.jd-hero__sub { font-size: 1.14rem; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.jd-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }
.jd-hero__stats { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.jd-stat__num { display: block; font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -.03em; }
.jd-stat__num span { color: var(--brand-2); }
.jd-stat__label { font-size: .88rem; color: var(--muted); }

/* Hero visual */
.jd-hero__art { position: relative; }
.jd-hero__card {
  position: relative; padding: 22px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
  backdrop-filter: blur(8px);
}
.jd-hero__card img { border-radius: var(--radius); }
.jd-hero__float {
  position: absolute; inset-inline-end: -18px; bottom: 34px;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
  animation: jd-float 5s ease-in-out infinite;
}
.jd-hero__float b { display: block; color: #fff; font-size: 1.02rem; line-height: 1.2; }
.jd-hero__float small { color: var(--muted); font-size: .8rem; }
.jd-hero__float-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; background: var(--brand); color: #fff; }
@keyframes jd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@media (prefers-reduced-motion: reduce) { .jd-hero__float { animation: none; } }

/* Page hero (inner pages) */
.jd-phero {
  position: relative; padding-block: 88px 78px; color: var(--text); text-align: center;
  background: radial-gradient(760px 380px at 50% -20%, rgba(59, 91, 255, .3), transparent 62%), var(--bg);
}
.jd-phero h1 { color: #fff; margin-bottom: 16px; }
.jd-phero p { color: var(--muted); max-width: 660px; margin-inline: auto; margin-bottom: 0; }
.jd-crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.jd-crumbs a { color: var(--muted); }
.jd-crumbs a:hover { color: #fff; }
.jd-crumbs span { opacity: .5; margin-inline: 8px; }

/* ==========================================================================
   6. Client logo marquee
   ========================================================================== */
.jd-marquee { padding-block: 46px; background: var(--light); border-block: 1px solid var(--light-line); overflow: hidden; }
.jd-marquee--dark { background: var(--bg-2); border-color: var(--line); }
.jd-marquee__label { text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 30px; }
.jd-marquee--dark .jd-marquee__label { color: var(--muted); }
.jd-marquee__viewport { position: relative; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.jd-marquee__track { display: flex; align-items: center; gap: 68px; width: max-content; animation: jd-scroll 42s linear infinite; }
.jd-marquee__track--rev { animation-direction: reverse; margin-top: 34px; }
.jd-marquee__viewport:hover .jd-marquee__track { animation-play-state: paused; }
.jd-marquee__track img, .jd-marquee__track svg { height: 42px; width: auto; max-width: 160px; object-fit: contain; opacity: .55; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.jd-marquee--dark .jd-marquee__track img { filter: grayscale(1) brightness(2.4); opacity: .5; }
.jd-marquee__track img:hover { opacity: 1; filter: none; }
.jd-marquee__text { font-size: 1.05rem; font-weight: 700; color: var(--ink-muted); opacity: .5; white-space: nowrap; }
@keyframes jd-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rtl .jd-marquee__track, .jd-ar .jd-marquee__track { animation-direction: reverse; }
.rtl .jd-marquee__track--rev, .jd-ar .jd-marquee__track--rev { animation-direction: normal; }
@media (prefers-reduced-motion: reduce) { .jd-marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; gap: 40px; } }

/* ==========================================================================
   7. Cards — solutions / services / capabilities
   ========================================================================== */
.jd-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 32px; background: var(--light); border: 1px solid var(--light-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.jd-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(59, 91, 255, .35); }
.jd-card h3 { margin-bottom: 10px; }
.jd-card p { color: var(--ink-muted); font-size: .98rem; margin-bottom: 20px; }
.jd-card__icon {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 22px;
  border-radius: 16px; background: var(--brand-soft); color: var(--brand);
}
.jd-card__icon svg { width: 27px; height: 27px; }
.jd-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .94rem; }
.jd-card__badge { position: absolute; top: 22px; inset-inline-end: 22px; }
.jd-card__shot { margin: 0 -32px -32px; padding: 24px 32px 0; border-top: 1px solid var(--light-line); }
.jd-card__shot img { border-radius: 12px 12px 0 0; box-shadow: 0 -8px 30px -12px rgba(10, 16, 36, .2); }
.jd-card--dark { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: none; }
.jd-card--dark h3 { color: #fff; }
.jd-card--dark p { color: var(--muted); }
.jd-card--dark .jd-card__icon { background: rgba(59, 91, 255, .18); color: var(--brand-2); }
.jd-card--flush { padding: 0; border: 0; background: transparent; box-shadow: none; }
.jd-card--flush:hover { transform: none; box-shadow: none; }

/* Feature (capability) grid */
.jd-feat { padding: 30px; border-radius: var(--radius); background: var(--light-2); border: 1px solid transparent; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.jd-feat:hover { background: var(--light); border-color: var(--light-line); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.jd-feat__icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 13px; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.jd-feat__icon svg { width: 23px; height: 23px; }
.jd-feat h4 { margin-bottom: 8px; font-size: 1.08rem; }
.jd-feat p { margin: 0; font-size: .95rem; color: var(--ink-muted); }
.jd-section--dark .jd-feat { background: rgba(255, 255, 255, .04); }
.jd-section--dark .jd-feat:hover { background: rgba(255, 255, 255, .07); border-color: var(--line-2); }
.jd-section--dark .jd-feat__icon { background: rgba(59, 91, 255, .2); color: var(--brand-2); box-shadow: none; }
.jd-section--dark .jd-feat p { color: var(--muted); }

/* Numbered process list */
.jd-steps { counter-reset: jd-step; display: grid; gap: 20px; padding: 0; margin: 0; list-style: none; }
.jd-steps li { position: relative; padding: 26px 26px 26px 82px; background: var(--light); border: 1px solid var(--light-line); border-radius: var(--radius); }
.rtl .jd-steps li, .jd-ar .jd-steps li { padding: 26px 82px 26px 26px; }
.jd-steps li::before {
  counter-increment: jd-step; content: counter(jd-step, decimal-leading-zero);
  position: absolute; inset-inline-start: 26px; top: 26px;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; background: var(--brand-soft); color: var(--brand);
  font-size: .95rem; font-weight: 800;
}
.jd-steps h4 { margin-bottom: 6px; }
.jd-steps p { margin: 0; color: var(--ink-muted); font-size: .96rem; }

/* Split media + text */
.jd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.jd-split--flip > *:first-child { order: 2; }
.jd-split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.jd-checks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 13px; }
.jd-checks li { position: relative; padding-inline-start: 34px; color: var(--ink-muted); }
.jd-checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 6px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b5bff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.jd-section--dark .jd-checks li { color: var(--muted); }

/* ==========================================================================
   8. Stats strip
   ========================================================================== */
.jd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.jd-stats__item { padding: 38px 26px; text-align: center; background: var(--bg-2); }
.jd-stats__num { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.jd-stats__num em { font-style: normal; color: var(--brand-2); }
.jd-stats__label { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* ==========================================================================
   9. Compliance / security band
   ========================================================================== */
.jd-compliance { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 46px; padding: 26px 34px; margin-bottom: 52px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: var(--radius); }
.jd-compliance__item { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 600; color: #fff; }
.jd-compliance__item svg { width: 22px; height: 22px; color: var(--brand-2); flex: 0 0 22px; }

/* Hosting / pricing tiers */
.jd-tier { position: relative; display: flex; flex-direction: column; padding: 34px; background: var(--light); border: 1px solid var(--light-line); border-radius: var(--radius-lg); }
.jd-tier--featured { border-color: var(--brand); box-shadow: var(--shadow-brand); }
.jd-tier__flag { position: absolute; top: -13px; inset-inline-start: 34px; padding: 5px 14px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.jd-tier h3 { margin-bottom: 6px; }
.jd-tier__meta { font-size: .93rem; color: var(--ink-muted); margin-bottom: 24px; }
.jd-tier ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; font-size: .95rem; color: var(--ink-muted); }
.jd-tier ul li { position: relative; padding-inline-start: 26px; }
.jd-tier ul li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b3a8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.jd-tier .jd-btn { margin-top: auto; }

/* ==========================================================================
   10. Testimonials
   ========================================================================== */
.jd-quotes { position: relative; }
.jd-quotes__viewport { overflow: hidden; }
.jd-quotes__track { display: flex; transition: transform .5s var(--ease); }
.jd-quote { flex: 0 0 100%; padding-inline: 4px; }
.jd-quote__inner { padding: 44px; background: var(--light); border: 1px solid var(--light-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.jd-section--dark .jd-quote__inner { background: var(--surface); border-color: var(--line); }
.jd-quote__mark { width: 42px; height: 42px; color: var(--brand); opacity: .28; margin-bottom: 18px; }
.jd-quote__text { font-size: clamp(1.08rem, 1.7vw, 1.32rem); line-height: 1.62; font-weight: 500; margin-bottom: 28px; }
.jd-quote__who { display: flex; align-items: center; gap: 15px; }
.jd-quote__who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.jd-quote__who b { display: block; font-size: 1rem; }
.jd-quote__who small { color: var(--ink-muted); font-size: .88rem; }
.jd-section--dark .jd-quote__who small { color: var(--muted); }
.jd-quotes__nav { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.jd-quotes__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--light-line); cursor: pointer; transition: width .25s var(--ease), background .25s; }
.jd-quotes__dot.is-active { width: 30px; border-radius: 999px; background: var(--brand); }
.jd-section--dark .jd-quotes__dot { background: var(--line-2); }
.jd-arrows { display: flex; gap: 10px; }
.jd-arrows button {
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--light-line); border-radius: 50%; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.jd-arrows button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.jd-section--dark .jd-arrows button { border-color: var(--line-2); color: #fff; }
.rtl .jd-arrows svg, .jd-ar .jd-arrows svg { transform: scaleX(-1); }

/* ==========================================================================
   11. CTA band
   ========================================================================== */
.jd-cta {
  position: relative; overflow: hidden; padding: 68px 56px; border-radius: 34px; text-align: center;
  background: radial-gradient(700px 320px at 50% -30%, rgba(0, 212, 200, .32), transparent 65%), linear-gradient(120deg, #2b3fd6, #4a2fd8 70%, #1a1f5c);
  color: #fff;
}
.jd-cta h2 { color: #fff; max-width: 720px; margin-inline: auto; }
.jd-cta p { color: rgba(255, 255, 255, .82); max-width: 600px; margin-inline: auto; margin-bottom: 32px; }
.jd-cta__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ==========================================================================
   12. Forms
   ========================================================================== */
.jd-form { display: grid; gap: 18px; }
.jd-field { display: grid; gap: 8px; }
.jd-field--half { grid-column: span 1; }
.jd-form--2 { grid-template-columns: 1fr 1fr; }
.jd-form--2 .jd-field--full { grid-column: 1 / -1; }
.jd-field label { font-size: .89rem; font-weight: 600; }
.jd-field .req { color: #e0455a; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: .97rem; color: var(--ink);
  background: var(--light); border: 1px solid var(--light-line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 148px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.jd-form__hp { position: absolute !important; left: -9999px; }
.jd-notice { padding: 15px 18px; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 22px; }
.jd-notice--ok { background: rgba(0, 179, 168, .12); border: 1px solid rgba(0, 179, 168, .4); color: #06705f; }
.jd-notice--err { background: rgba(224, 69, 90, .1); border: 1px solid rgba(224, 69, 90, .35); color: #a01f31; }
.jd-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-muted); }
.jd-consent input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 18px; }

/* Contact info cards */
.jd-info { display: grid; gap: 16px; }
.jd-info__item { display: flex; gap: 16px; padding: 22px; background: var(--light-2); border-radius: var(--radius); }
.jd-info__item svg { width: 22px; height: 22px; color: var(--brand); flex: 0 0 22px; margin-top: 4px; }
.jd-info__item b { display: block; margin-bottom: 3px; }
.jd-info__item span, .jd-info__item a { color: var(--ink-muted); font-size: .96rem; }

/* ==========================================================================
   13. Blog / archive
   ========================================================================== */
.jd-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.jd-post { display: flex; flex-direction: column; background: var(--light); border: 1px solid var(--light-line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .26s var(--ease), box-shadow .26s var(--ease); }
.jd-post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.jd-post__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--light-2); }
.jd-post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.jd-post:hover .jd-post__thumb img { transform: scale(1.05); }
.jd-post__body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.jd-post__meta { font-size: .82rem; color: var(--ink-muted); margin-bottom: 10px; }
.jd-post h3 { font-size: 1.2rem; margin-bottom: 10px; }
.jd-post h3 a { color: var(--ink); }
.jd-post h3 a:hover { color: var(--brand); }
.jd-post p { font-size: .95rem; color: var(--ink-muted); }
.jd-entry { max-width: 780px; margin-inline: auto; }
.jd-entry img { border-radius: var(--radius); }
.jd-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 54px; }
.jd-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 12px; border: 1px solid var(--light-line); border-radius: 12px; color: var(--ink); font-size: .93rem; font-weight: 600; }
.jd-pagination .page-numbers.current, .jd-pagination .page-numbers:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.jd-footer { background: var(--bg); color: var(--muted); padding-block: 78px 0; border-top: 1px solid var(--line); }
.jd-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 46px; padding-bottom: 56px; }
.jd-footer h4 { color: #fff; font-size: .84rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 20px; }
.jd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.jd-footer a { color: var(--muted); font-size: .95rem; }
.jd-footer a:hover { color: #fff; }
.jd-footer__about p { font-size: .95rem; max-width: 330px; margin-block: 20px; }
.jd-social { display: flex; gap: 10px; }
.jd-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.jd-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.jd-social svg { width: 18px; height: 18px; }
.jd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-block: 26px; border-top: 1px solid var(--line); font-size: .88rem; }
.jd-footer__bottom ul { display: flex; gap: 22px; }

/* Floating WhatsApp / back-to-top */
.jd-float-actions { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 180; display: grid; gap: 12px; }
.jd-float-actions a, .jd-float-actions button {
  width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 50%; background: var(--brand); color: #fff;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .5); transition: transform .2s var(--ease);
}
.jd-float-actions a:hover, .jd-float-actions button:hover { transform: translateY(-3px); color: #fff; }
.jd-float-actions .jd-wa { background: #25d366; }
.jd-float-actions .jd-top { background: var(--surface); border: 1px solid var(--line-2); opacity: 0; visibility: hidden; }
.jd-float-actions .jd-top.is-on { opacity: 1; visibility: visible; }
.jd-float-actions svg { width: 24px; height: 24px; }

/* ==========================================================================
   15. Scroll reveal
   ========================================================================== */
/* Only hide when JS is available (html.jd-js is set from wp_head), so the page
   is never permanently blank if scripts fail or are disabled. */
.jd-js .jd-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.jd-js .jd-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .jd-js .jd-reveal { opacity: 1; transform: none; transition: none; } }

/* Search form + comments wrappers */
.jd-searchform input[type="search"] { flex: 1 1 auto; }
.jd-comments { border-top: 1px solid var(--light-line); padding-top: 32px; }
.jd-comments ol ol { padding-inline-start: 26px; }
.jd-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--light-line); }
.jd-comments .comment-author img { border-radius: 50%; margin-inline-end: 10px; vertical-align: middle; }

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  :root { --pad-section: 80px; --gap: 22px; }
  .jd-hero__inner { grid-template-columns: 1fr; gap: 52px; }
  .jd-hero__sub { max-width: none; }
  .jd-grid--4, .jd-posts, .jd-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jd-split { gap: 40px; }
}
@media (max-width: 900px) {
  .jd-burger { display: block; }
  .jd-nav {
    position: fixed; inset: 76px 0 auto; max-height: calc(100dvh - 76px); overflow-y: auto;
    padding: 18px 24px 30px; background: var(--bg-2); border-bottom: 1px solid var(--line);
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .jd-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .jd-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .jd-nav a { padding: 13px 14px; font-size: 1rem; }
  .jd-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; display: none;
    margin: 4px 0 8px; padding: 6px; background: rgba(255, 255, 255, .04); box-shadow: none;
  }
  .jd-nav li.is-expanded > .sub-menu { display: flex; }
  .jd-nav .menu-item-has-children > a::after { margin-inline-start: auto; }
  .jd-header__actions .jd-btn { display: none; }
  .jd-grid--3, .jd-grid--2, .jd-split, .jd-form--2 { grid-template-columns: 1fr; }
  .jd-split--flip > *:first-child { order: 0; }
  .jd-stats { grid-template-columns: repeat(2, 1fr); }
  .jd-cta { padding: 48px 26px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --pad-section: 64px; }
  .jd-hero { padding-block: 64px 72px; }
  .jd-hero__stats { gap: 26px; }
  .jd-grid--4, .jd-posts, .jd-footer__top { grid-template-columns: 1fr; }
  .jd-quote__inner, .jd-card, .jd-tier { padding: 26px; }
  .jd-card__shot { margin: 0 -26px -26px; padding-inline: 26px; }
  .jd-hero__float { inset-inline-end: 8px; }
  .jd-btn { width: 100%; }
  .jd-hero__cta, .jd-cta__row { flex-direction: column; }
}

/* ==========================================================================
   17. WordPress core / editor classes
   ========================================================================== */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--ink-muted); text-align: center; margin-top: 10px; }
.sticky .jd-post { border-color: var(--brand); }
.wp-block-image { margin-bottom: 1.4em; }
.jd-entry > * { margin-bottom: 1.2em; }
