/*
Theme Name: DPC - Digital Point Company
Theme URI: https://dpc-it.com
Author: Digital Point Company
Author URI: https://dpc-it.com
Description: Bilingual (Arabic RTL default / English LTR) multi-page corporate theme for Digital Point Company. Server-side language switching with no plugin required; Polylang/WPML compatible for production multilingual.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.5
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: dpc
Tags: corporate, business, rtl-language-support, custom-colors, translation-ready
*/

/* =====================================================================
   DPC — Digital Point Company
   Brand stylesheet · bilingual (AR default / EN) · RTL + LTR aware
   Palette sampled from the official company profile + logo.
   ===================================================================== */

:root {
  /* Brand */
  --purple:        #8674B3;   /* primary, sampled from profile */
  --purple-deep:   #5f4f8c;
  --purple-soft:   #b6a8dc;
  --lavender:      #f4f1fa;   /* wash / promise box */
  --lavender-2:    #ece6f7;
  --ink:           #1b1a1b;   /* near-black from logo */
  --ink-2:         #2c2b30;
  --muted:         #6b6b73;
  --line:          #e7e3ef;
  --bg:            #ffffff;
  --bg-alt:        #faf9fd;

  /* Typography */
  --font: "Inter", "Tajawal", "Segoe UI", system-ui, -apple-system, sans-serif;
  --track: .18em;             /* tracked caps label spacing */

  /* Layout */
  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(27,26,27,.04), 0 14px 40px -18px rgba(95,79,140,.28);
  --shadow-sm: 0 1px 2px rgba(27,26,27,.05), 0 8px 24px -16px rgba(95,79,140,.25);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* RTL font preference: load Tajawal first for Arabic */
[dir="rtl"] { --font: "Tajawal", "Inter", "Segoe UI", system-ui, sans-serif; }

*,*::before,*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1,h2,h3,h4 { margin: 0; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }

p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---- Utility: tracked uppercase eyebrow label ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--purple-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
[dir="rtl"] .eyebrow { letter-spacing: .08em; }
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--purple);
  display: inline-block;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--purple-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--purple); color: var(--purple-deep); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--lavender); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(27,26,27,.4); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.brand .brand-logo--dark { display: none; }   /* shown only in dark theme */
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px;
  background: var(--purple); transform: scaleX(0); transform-origin: inline-start;
  transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--purple-deep); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Language switch */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 100px; overflow: hidden;
  font-weight: 700; font-size: 13px;
}
.lang-toggle button,
.lang-toggle a {
  border: 0; background: transparent; cursor: pointer;
  padding: 8px 14px; color: var(--muted); font-family: var(--font); font-weight: 700;
  line-height: 1; display: inline-flex; align-items: center;
  transition: all .2s;
}
.lang-toggle button.active,
.lang-toggle a.active { background: var(--ink); color: #fff; }

/* Theme scheme switcher (light / dark / profile) */
.theme-switch {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 100px; overflow: hidden;
}
.theme-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 9px; color: var(--muted); display: inline-flex; align-items: center;
  font-family: var(--font); transition: all .2s;
}
.theme-switch button svg { width: 16px; height: 16px; display: block; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button.active { background: var(--ink); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* =====================================================================
   HERO
   ===================================================================== */
/* Full-canvas hero: a soft brand gradient with a drifting geometric motif on
   the decorative (inline-end) side, content on the reading-start side. */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 14% 10%, rgba(134,116,179,.18), transparent 60%),
    linear-gradient(135deg, #f7f4fc 0%, #ece6f7 55%, #e5ddf4 100%);
}
.hero-inner { position: relative; z-index: 2; min-height: 540px; display: flex; flex-direction: column; justify-content: flex-start; padding: 56px 0 72px; }
.hero-content { max-width: 640px; }

/* Floating geometric tiles (decorative side only — kept clear of the text) */
.hero-tiles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-tiles .ht { position: absolute; border-radius: 16px; will-change: transform; animation: heroDrift 7s ease-in-out infinite; }
.ht1 { width: 168px; height: 168px; inset-inline-end: 7%;  top: 13%; background: #cdbff0; opacity: .55; }
.ht2 { width: 118px; height: 118px; inset-inline-end: 23%; top: 44%; background: #2c2440; opacity: .85; animation-delay: -3s; }
.ht3 { width: 92px;  height: 92px;  inset-inline-end: 29%; top: 15%; background: var(--purple); opacity: .55; animation-delay: -6s; }
.ht4 { width: 188px; height: 188px; inset-inline-end: 2%;  top: 52%; background: #ded3f4; opacity: .5;  animation-delay: -9s; }
.ht5 { width: 68px;  height: 68px;  inset-inline-end: 21%; top: 72%; background: var(--purple-soft); opacity: .7; animation-delay: -2s; }
@keyframes heroDrift { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .hero-tiles .ht { animation: none; } }

.hero-content .eyebrow { margin-bottom: 18px; }
.hero-title { font-size: clamp(64px, 10vw, 132px); font-weight: 900; letter-spacing: -.05em; line-height: .92; }
[dir="rtl"] .hero-title { letter-spacing: -.02em; }
.hero-title .dot { color: var(--purple); }
.hero-sub { font-size: clamp(20px,2.6vw,30px); font-weight: 800; margin-top: 12px; color: var(--ink); }
.hero-tags { color: var(--muted); font-size: 18px; font-weight: 500; max-width: 52ch; margin-top: 14px; line-height: 1.7; }
.hero-tags .accent { color: var(--purple-deep); font-weight: 700; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; flex-wrap: wrap; margin-top: 36px; border-top: 1px solid var(--line); padding-top: 22px; gap: 4px 0; }
.hero-stats .s { padding-inline: 26px; border-inline-start: 1px solid var(--line); }
.hero-stats .s:first-child { padding-inline-start: 0; border-inline-start: 0; }
.hero-stats .n { font-size: 30px; font-weight: 800; color: var(--purple-deep); letter-spacing: -.02em; }
.hero-stats .l { font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 2px; }

@media (max-width: 1100px) { .ht2, .ht3, .ht5 { display: none; } .hero-content { max-width: 62%; } }
@media (max-width: 760px)  { .hero-tiles { display: none; } .hero-content { max-width: none; } .hero-stats .s { padding-inline: 16px; } }

/* =====================================================================
   GENERIC SECTION
   ===================================================================== */
section { padding: 92px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(30px,4vw,46px); }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 16px; }
.bg-alt { background: var(--bg-alt); }
.bg-ink { background: var(--ink); color: #fff; }

/* ---- Overview / stats ---- */
.overview-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 34px; font-weight: 800; color: var(--purple-deep); letter-spacing: -.02em; }
.stat .lbl { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
[dir="rtl"] .stat .lbl { letter-spacing: 0; }
.stat .desc { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---- Core business areas (9 cards) ---- */
.areas-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.area-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: all .3s var(--ease); position: relative; overflow: hidden;
}
.area-card::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px;
  background: var(--purple); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease);
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.area-card:hover::before { transform: scaleY(1); }
.area-card .idx { font-size: 13px; font-weight: 800; color: var(--purple); letter-spacing: .1em; }
.area-card .ic { width: 46px; height: 46px; margin: 14px 0 18px; color: var(--purple-deep); }
.area-card .ic svg { width: 100%; height: 100%; }
.area-card h3 { font-size: 20px; }
.area-card p { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* ---- Practice areas (solutions detail) ---- */
.practice { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.pillar .tag { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
[dir="rtl"] .pillar .tag { letter-spacing: .04em; }
.pillar h4 { font-size: 18px; margin: 12px 0 16px; }
.pillar ul li {
  font-size: 14.5px; color: var(--ink-2); padding: 8px 0; border-top: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 9px;
}
.pillar ul li:first-child { border-top: 0; }
.pillar ul li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 2px; background: var(--purple-soft); }

.practice-block { margin-bottom: 64px; }
.practice-block:last-child { margin-bottom: 0; }
.practice-block .pa-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.practice-block .pa-head .pa-num { font-size: 13px; font-weight: 800; color: var(--purple); letter-spacing: .12em; }
.practice-block .pa-head h3 { font-size: clamp(24px,3vw,32px); }
.practice-block .pa-head .pa-sub { color: var(--muted); font-size: 16px; width: 100%; }

/* ---- Why DPC ---- */
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.why-item {
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 24px; transition: all .3s var(--ease); background: rgba(255,255,255,.02);
}
.why-item:hover { background: rgba(255,255,255,.06); border-color: var(--purple-soft); transform: translateY(-4px); }
.why-item .n { font-size: 13px; font-weight: 800; color: var(--purple-soft); letter-spacing: .1em; }
.why-item p { font-weight: 700; font-size: 17px; margin-top: 12px; }

/* ---- Partners ---- */
.partners-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.partner-cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.partner-cat h4 { font-size: 17px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--lavender-2); }
.partner-cat .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--lavender); border: 1px solid var(--lavender-2); border-radius: 100px; padding: 6px 13px;
}
.partner-note {
  margin-top: 26px; background: linear-gradient(120deg, var(--ink), var(--ink-2));
  color: #fff; border-radius: var(--radius-lg); padding: 30px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.partner-note .tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--purple-soft); font-weight: 700; }
.partner-note h4 { font-size: 24px; margin: 8px 0; }
.partner-note p { color: rgba(255,255,255,.7); font-size: 15px; max-width: 52ch; }

/* ---- Industries ---- */
.industries { display: flex; flex-wrap: wrap; gap: 12px; }
.industry {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 12px 22px; font-weight: 600; font-size: 15px; transition: all .25s var(--ease);
}
.industry:hover { border-color: var(--purple); color: var(--purple-deep); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.industry .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }

/* ---- Values strip ---- */
.values { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.value-pill { font-size: 14px; font-weight: 700; color: var(--purple-deep); background: var(--lavender); border-radius: 100px; padding: 10px 20px; }

/* =====================================================================
   CONTACT / CTA
   ===================================================================== */
.contact-wrap {
  background: linear-gradient(155deg, #9a89c4 0%, var(--purple) 45%, #604f8e 100%);
  border-radius: var(--radius-lg); padding: 64px; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 34px 80px -44px rgba(95,79,140,.5);
}
.contact-wrap::after {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size: 48px 48px; opacity:.5; pointer-events:none;
}
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-grid h2 { font-size: clamp(30px,4vw,46px); }
.contact-grid .lead { color: rgba(255,255,255,.85); font-size: 18px; margin-top: 16px; max-width: 40ch; }
.contact-list { display: grid; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 18px 22px; transition: all .25s var(--ease);
}
.contact-item:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.contact-item .ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; font-weight: 700; }
.contact-item .v { font-weight: 700; font-size: 16px; }
[dir="rtl"] .contact-item .v[dir="ltr"] { text-align: right; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 30px; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; max-width: 38ch; }
.footer-col h5 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
[dir="rtl"] .footer-col h5 { letter-spacing: .04em; }
.footer-col a { display: block; padding: 6px 0; font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--purple-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 14px; flex-wrap: wrap; gap: 12px; }
.footer-bottom .promise { color: var(--purple-soft); font-weight: 700; }

/* =====================================================================
   MULTI-PAGE COMPONENTS
   ===================================================================== */

/* Active nav item (current page) */
.nav-links a.active,
.nav-links a[aria-current="page"] { color: var(--purple-deep); }
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Inner-page banner */
.page-hero {
  background: linear-gradient(160deg, var(--lavender) 0%, #ffffff 70%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 60px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(134,116,179,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(134,116,179,.05) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .7; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.03em; }
[dir="rtl"] .page-hero h1 { letter-spacing: 0; line-height: 1.2; }
.page-hero p { color: var(--muted); font-size: 19px; margin-top: 18px; max-width: 62ch; }

/* About — merged intro (page banner + overview in one section) */
.about-intro { padding-bottom: 80px; }
.about-intro .overview-grid { margin-top: 50px; align-items: start; }
.about-lead { font-size: 21px; color: var(--ink); font-weight: 600; line-height: 1.6; margin-bottom: 18px; }
.about-body { color: var(--muted); font-size: 18px; line-height: 1.75; }

/* Vision / Mission cards */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mission-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; background: #fff; position: relative; overflow: hidden;
}
.mission-card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 5px; height: 100%; background: var(--purple);
}
.mission-card.alt { background: var(--ink); color: #fff; border-color: transparent; }
.mission-card .eyebrow { margin-bottom: 16px; }
.mission-card.alt .eyebrow { color: var(--purple-soft); }
.mission-card h3 { font-size: 26px; margin-bottom: 14px; }
.mission-card p { font-size: 18px; color: var(--muted); line-height: 1.7; }
.mission-card.alt p { color: rgba(255,255,255,.82); }

/* Home closing CTA band */
.cta-band {
  background: linear-gradient(155deg, #9a89c4 0%, var(--purple) 45%, #604f8e 100%);
  border-radius: var(--radius-lg); padding: 72px 64px; color: #fff;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 34px 80px -44px rgba(95,79,140,.5);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .5; pointer-events: none;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band .eyebrow { color: #fff; justify-content: center; display: inline-flex; margin-bottom: 18px; }
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); }
.cta-band p { color: rgba(255,255,255,.85); font-size: 19px; margin: 16px auto 30px; max-width: 52ch; }
.cta-band .hero-cta { justify-content: center; }

@media (max-width: 860px) {
  .mission-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cta-band { padding: 48px 24px; }
  .mission-card { padding: 30px 24px; }
}

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .areas-grid { grid-template-columns: repeat(2,1fr); }
  .practice { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .partners-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; inset-inline: 0; top: 74px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 20px 24px; gap: 6px; align-items: flex-start;
    box-shadow: var(--shadow);
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { min-height: 280px; padding: 40px; }
  .hero-right { padding: 44px 24px; }
  .overview-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .contact-wrap { padding: 40px 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .areas-grid, .practice, .why-grid, .partners-grid, .stats { grid-template-columns: 1fr; }
  .partner-note { flex-direction: column; align-items: flex-start; }
  /* Make room for the theme + language switches in the header bar */
  .nav-actions .btn--primary { display: none; }
}

/* =====================================================================
   PRODUCTS — live-preview platforms (grid cards + embedded demo)
   ===================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 44px; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.product-card:hover { transform: translateY(-6px); border-color: var(--purple); box-shadow: var(--shadow); }
.product-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.product-card__badge {
  font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  padding: 6px 13px; border-radius: 8px; white-space: nowrap;
}
[dir="rtl"] .product-card__badge { letter-spacing: 0; }
.product-card__live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.product-card__live .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.product-card h3 { font-size: 24px; margin-bottom: 6px; }
.product-card__tag { color: var(--purple-deep); font-weight: 600; margin-bottom: 12px; }
.product-card__desc { color: var(--muted); font-size: 15.5px; }
.product-features { padding: 0; margin: 20px 0 26px; display: grid; gap: 9px; }
.product-features li { position: relative; padding-inline-start: 24px; color: var(--muted); font-size: 15px; }
.product-features li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .58em; width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(135deg, var(--purple), var(--purple-soft));
}
.product-card__actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* Embedded product app (live preview) */
.embed-bar { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 18px 0; }
.embed-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.embed-bar h1 { font-size: clamp(21px, 3vw, 30px); margin: 4px 0 0; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.embed-bar__actions { display: flex; gap: 11px; flex-wrap: wrap; }
.breadcrumb { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--purple-deep); }
.demo-pill {
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #16a34a; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35);
  padding: 3px 9px; border-radius: 999px; vertical-align: middle;
}
[dir="rtl"] .demo-pill { letter-spacing: 0; }
.embed-frame { width: 100%; height: 82vh; min-height: 560px; background: #fff; }
.embed-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 760px) { .product-grid { grid-template-columns: 1fr; } }
