/* ===== QAID — PHP/SQLite rebuild ===== */
:root {
  --dark: #18111c;
  --dark-2: #1f1625;
  --accent: #4a2f45;
  --accent-hover: #633f5d;
  --bg: #f8f6f4;
  --text: #18111c;
  --muted: #6d5f6b;
  --border: #e6dbe2;
  --light-icon-bg: #f3ecef;
  --footer-muted: #bcaeb9;
  --footer-text: #d0c2cd;
  --heading: 'Space Grotesk', 'Tajawal', sans-serif;
  --body: 'Space Grotesk', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

/* Light, slim scrollbar site-wide */
:root { scrollbar-width: thin; scrollbar-color: #cfc4cc var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #cfc4cc;
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
.prose a:hover, .service-body a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.2; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--heading);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.2);
  transition: all .2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-sm { font-size: 13px; padding: 10px 20px; }
.btn-dark { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-dark:hover { background: var(--accent-hover); color: #fff; }

/* ===== Header ===== */
.site-header {
  background: var(--dark);
  color: #fff;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo img { display: block; height: 38px; width: auto; }
.main-nav { display: flex; gap: 28px; align-items: center; position: relative; }
.main-nav > a,
.has-dropdown > a {
  color: #e6dbe2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  transition: color .2s ease;
}
.main-nav > a:hover, .has-dropdown > a:hover { color: #fff; }

.nav-toggle-btn, .nav-drawer-head, .nav-overlay { display: none; }
.nav-toggle-btn {
  background: none; border: none; color: #fff; font-size: 24px;
  cursor: pointer; padding: 4px 8px; line-height: 1;
}
body.nav-locked { overflow: hidden; }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lang-switch {
  color: #e6dbe2;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  transition: all .2s ease;
  white-space: nowrap;
}
.lang-switch:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }

/* Dropdown */
.has-dropdown { position: static; }
.dropdown-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 580px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  transition: all .25s ease-in-out;
  z-index: 1001;
  pointer-events: none;
}
.has-dropdown.open .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown-menu a {
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .2s ease, transform .2s ease;
}
.dropdown-menu a:hover { color: #fff; }
.dropdown-menu.more-menu {
  width: 200px;
  padding: 12px;
  inset-inline-end: 0;
  inset-inline-start: auto;
  transform: translateY(10px);
  display: flex;
  flex-direction: column;
}
.has-dropdown.open .dropdown-menu.more-menu { transform: translateY(0); }
.dropdown-menu.more-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
}
.dropdown-menu.more-menu a:hover { background: rgba(255,255,255,.07); transform: none !important; }
.dropdown-arrow { display: inline-block; margin-inline-start: 4px; font-size: 10px; transition: transform .2s ease; }
.has-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

/* Megamenu: unified compact icon grid — all menus anchor to .main-nav */
.dropdown-menu.megamenu {
  width: min(880px, calc(100vw - 2rem));
  padding: 20px 20px 18px;
  border-radius: 16px;
  top: calc(100% + 14px);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.55), 0 4px 16px rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.16);
  overflow: hidden;
}
.dropdown-menu.megamenu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #a05a8c 50%, var(--accent) 100%);
}
.megamenu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.megamenu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.megamenu-item:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.4);
  transform: none;
}
.has-dropdown.open .megamenu-item { animation: mmItemIn .32s cubic-bezier(.21,.61,.35,1) both; }
.has-dropdown.open .megamenu-item:nth-child(1) { animation-delay: .02s; }
.has-dropdown.open .megamenu-item:nth-child(2) { animation-delay: .04s; }
.has-dropdown.open .megamenu-item:nth-child(3) { animation-delay: .06s; }
.has-dropdown.open .megamenu-item:nth-child(4) { animation-delay: .08s; }
.has-dropdown.open .megamenu-item:nth-child(5) { animation-delay: .1s; }
.has-dropdown.open .megamenu-item:nth-child(6) { animation-delay: .12s; }
.has-dropdown.open .megamenu-item:nth-child(7) { animation-delay: .14s; }
.has-dropdown.open .megamenu-item:nth-child(8) { animation-delay: .16s; }
.has-dropdown.open .megamenu-item:nth-child(9) { animation-delay: .18s; }
.has-dropdown.open .megamenu-item:nth-child(10) { animation-delay: .2s; }
.has-dropdown.open .megamenu-item:nth-child(n+11) { animation-delay: .22s; }
@keyframes mmItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .has-dropdown.open .megamenu-item { animation: none; }
}
.megamenu-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  color: var(--accent-soft, #d9a8cc);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.megamenu-icon svg { width: 19px; height: 19px; }
.megamenu-item:hover .megamenu-icon { background: var(--accent); color: #fff; transform: scale(1.06); }
.megamenu-icon.mi-img { background: #fff; padding: 5px; }
.megamenu-icon.mi-img img { width: 26px; height: 26px; object-fit: contain; display: block; }
.megamenu-item:hover .megamenu-icon.mi-img { background: #fff; transform: none; }

/* Integrations page grid */
.intg-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.intg-search, .intg-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.intg-search { flex: 1 1 280px; }
.intg-filter { flex: 0 1 260px; }
.intg-search:focus-within, .intg-filter:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,47,69,.08);
}
.intg-search svg, .intg-filter svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.intg-search input, .intg-filter select {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  width: 100%;
  height: 100%;
}
.intg-filter select { cursor: pointer; appearance: none; padding-inline-end: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d5f6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 16px;
}
html[dir="rtl"] .intg-filter select { background-position: left center; }
.intg-count { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.intg-count b { color: var(--accent); }
.intg-group { margin-bottom: 34px; }
.intg-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.intg-group-head::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--grad, linear-gradient(135deg,#633f5d,#d9a8cc));
  flex-shrink: 0;
}
.intg-group-n {
  background: rgba(74,47,69,.08);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.intg-cat {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  background: rgba(74,47,69,.06);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: -6px;
}
.intg-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.intg-empty p { margin: 0 0 18px; font-size: 1.05rem; }
.intg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}
.intg-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.intg-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -12px rgba(74,47,69,.22);
}
.intg-card img { width: 56px; height: 56px; object-fit: contain; }
.intg-card h3 { font-size: 15px; font-weight: 600; margin: 0; }
a.intg-card { text-decoration: none; color: var(--text); }
.svc-track .intg-mini {
  flex: 0 0 190px;
  padding: 24px 16px;
  gap: 14px;
}
.intg-mini img { width: 64px; height: 64px; }
.intg-mini h3 { font-size: 14px; }
@media (max-width: 560px) {
  .intg-grid { grid-template-columns: repeat(2, 1fr); }
}
.megamenu-text { flex: 1; min-width: 0; }
.megamenu-all {
  display: inline-block !important;
  margin-top: 16px;
  padding: 9px 24px !important;
  background: var(--accent);
  color: #fff !important;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px !important;
  transition: opacity .2s ease, transform .2s ease;
}
.megamenu-all:hover { opacity: .9; transform: translateX(0) !important; }
[dir="rtl"] .megamenu-item:hover { transform: none; }

/* ===== Hero ===== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.hero {
  min-height: calc(100svh - 76px);
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  padding: 40px 20px 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero-img {
  position: absolute;
  inset: -6%;
  background: linear-gradient(180deg, rgba(24,17,28,.82) 0%, rgba(24,17,28,.92) 100%), url('../img/hero.webp');
  background-size: cover;
  background-position: center;
  animation: hero-zoom 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-zoom {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-partner {
  display: block;
  height: clamp(56px, 11vh, 92px);
  width: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.45));
}
.hero-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 26px);
  padding: clamp(13px, 2vh, 20px) clamp(26px, 4vw, 46px);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  margin-bottom: 26px;
  box-shadow: 0 20px 54px -20px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-lockup img { display: block; width: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.hero-lockup .hl-qaid { height: clamp(30px, 5.6vh, 46px); }
.hero-lockup .hl-odoo { height: clamp(23px, 4.4vh, 36px); }
.hero-lockup .hl-x {
  color: #c9a3bd;
  font-size: clamp(19px, 3.4vh, 28px);
  font-weight: 300;
  line-height: 1;
  opacity: .9;
}
.hero-badge span { font-size: 13px; font-weight: 600; color: #e6dbe2; text-transform: uppercase; letter-spacing: .05em; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; margin: 0 0 18px; letter-spacing: -.02em; }
.hero-typed-line {
  font-family: var(--heading);
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 600;
  color: rgba(255,255,255,.72);
  margin: 0 auto 20px;
  min-height: 1.4em;
}
.hero-typed-line .typed {
  color: #fff;
  position: relative;
}
.hero-typed-line .typed::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-inline-start: 4px;
  background: var(--accent);
  vertical-align: -0.12em;
  animation: caret-blink 1s step-end infinite;
}
@keyframes caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero p { font-size: clamp(15px, 1.9vw, 18px); color: #d0c2cd; line-height: 1.6; margin: 0 auto 30px; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Scroll-down cue */
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s ease;
}
.scroll-cue-text { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue svg { animation: cue-bounce 1.8s ease-in-out infinite; }
.scroll-cue:hover { color: #fff; }
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%      { transform: translateY(7px); opacity: 1; }
}
@media (max-height: 640px) {
  .hero-partner { height: 48px; margin-bottom: 10px; }
  .hero-badge { margin-bottom: 16px; }
  .hero h1 { margin-bottom: 12px; }
  .hero p { margin-bottom: 20px; }
}

/* ===== Sections ===== */
.section { padding: 80px 20px; }
.section-light { background: var(--bg); }
.section-white { background: #fff; }
.section-dark { background: var(--dark); color: #fff; }
.container { max-width: 1100px; margin: 0 auto; }
.container-wide { max-width: 1200px; margin: 0 auto; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: 32px; font-weight: 700; margin: 0 0 12px; position: relative; padding-bottom: 16px; }
.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-head.center h2::after {
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
[dir="rtl"] .section-head.center h2::after { transform: translateX(50%); }
.section-head p { font-size: 16px; color: var(--muted); margin: 0; max-width: 650px; }
.section-head.center p { margin: 0 auto; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: var(--footer-muted); }
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--light-icon-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ===== Service cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 28px -12px rgba(74,47,69,.25); }
.icon-box {
  width: 54px; height: 54px;
  background: #efe0ea;
  border: 1px solid rgba(74,47,69,.12);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.service-card:hover .icon-box, .sector-card:hover .icon-box {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08);
}
.service-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.service-card p { font-size: 14px; color: var(--muted); margin: 0 0 20px; line-height: 1.5; }

/* Services carousel */
.svc-carousel { position: relative; }
.svc-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  direction: ltr; /* normalize scrollLeft across LTR/RTL */
  cursor: grab;
  padding: 8px 48px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.svc-track::-webkit-scrollbar { display: none; }
.svc-track.dragging { cursor: grabbing; }
.svc-track .service-card, .svc-track .sector-card { flex: 0 0 300px; }
.svc-track .post-card { flex: 0 0 340px; }
.svc-track .client-logo-card { flex: 0 0 230px; }
[dir="rtl"] .svc-track .service-card, [dir="rtl"] .svc-track .sector-card, [dir="rtl"] .svc-track .post-card { direction: rtl; text-align: right; }
.svc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;
  box-shadow: 0 4px 14px rgba(24,17,28,.12);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.svc-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.svc-prev { left: 0; }
.svc-next { right: 0; }
@media (max-width: 700px) {
  .svc-track { padding: 8px 6px; }
  .svc-track .service-card, .svc-track .sector-card { flex-basis: 265px; }
  .svc-arrow { width: 34px; height: 34px; font-size: 19px; }
  .svc-prev { left: 2px; }
  .svc-next { right: 2px; }
}
.card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { color: var(--accent-hover); }

/* "View all" section buttons */
.viewall-wrap { text-align: center; margin-top: 36px; }
.btn-viewall {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-family: var(--heading);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-viewall:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(74,47,69,.45);
}
.btn-viewall:active { transform: translateY(0); }
.btn-viewall:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===== Process tabs ===== */
.tab-bar {
  display: flex; gap: 8px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  overflow-x: auto;
}
.tab-btn {
  background: none; border: none;
  padding: 10px 16px;
  font-family: var(--body);
  font-size: 15px; font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  border-radius: 4px 4px 0 0;
  white-space: nowrap;
  transition: all .2s ease;
}
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: #fff; }
.tab-panel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  min-height: 220px;
  box-shadow: 0 4px 20px rgba(0,0,0,.02);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h3 { font-size: 24px; font-weight: 600; margin: 0 0 12px; }
.tab-panel p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0 0 20px; max-width: 800px; }
.tab-panel ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.8; }

/* ===== Industries ===== */
.industries-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
.industry-list { display: flex; flex-direction: column; gap: 10px; }
.industry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all .2s ease;
  display: flex; align-items: center; justify-content: space-between;
}
.industry-card.active { border-color: var(--accent); }
.industry-card-inner { display: flex; align-items: center; gap: 14px; }
.industry-card h3 { font-size: 16px; font-weight: 600; margin: 0; }
.industry-card .arrow { font-weight: 700; font-size: 18px; color: var(--muted); }
.industry-card.active .arrow { color: var(--accent); }
.industry-panel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  min-height: 380px;
  box-shadow: 0 4px 24px rgba(0,0,0,.03);
  display: flex; flex-direction: column; justify-content: space-between;
}
.industry-panel { display: none; }
.industry-panel.active { display: block; }
.industry-panel h3 { font-size: 24px; font-weight: 600; margin: 0 0 12px; }
.industry-panel p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0 0 24px; }
.industry-panel ul { margin: 0 0 24px; padding-left: 20px; font-size: 14px; line-height: 1.8; }
.panel-cta { border-top: 1px solid var(--border); padding-top: 20px; }

/* ===== Partner cards ===== */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 32px; }
.partner-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(24,17,28,.08);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  display: flex; flex-direction: column;
}
.partner-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -12px rgba(74,47,69,.18); border-color: var(--accent); }
.partner-num {
  font-family: var(--heading);
  font-size: 28px; font-weight: 700;
  color: var(--accent);
  background: var(--light-icon-bg);
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 28px 28px 0;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.partner-card:hover .partner-num { background: var(--accent); color: #fff; transform: scale(1.05); }
.partner-body { padding: 20px 28px 28px; }
.partner-body h3 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.partner-body p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }

/* ===== Clients ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 24px;
  align-items: center;
}
.client-logo-card {
  width: 100%; height: 112px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  transition: transform .2s ease, border-color .2s ease;
}
.client-logo-card img {
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity .2s ease, filter .2s ease;
}
@media (hover: hover) {
  .client-logo-card:hover img { opacity: 1; }
}

/* ===== FAQ accordion ===== */
.faq-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto 18px;
}
.faq-tools .intg-search { flex: 1 1 260px; }
.faq-ctabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto 22px;
}
.faq-ctab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
}
.faq-ctab span {
  background: rgba(74,47,69,.08);
  color: var(--accent);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  padding: 1px 8px;
  transition: all .18s ease;
}
.faq-ctab:hover { border-color: var(--accent); color: var(--accent); }
.faq-ctab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.faq-ctab.active span { background: rgba(255,255,255,.2); color: #fff; }
.faq-catbadge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  background: rgba(74,47,69,.07);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.02);
  transition: border-color .2s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: var(--accent); }
.faq-item.open { border-color: var(--accent); box-shadow: 0 10px 26px -12px rgba(74,47,69,.2); }
.faq-q {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--heading);
  font-size: 16.5px; font-weight: 600;
  color: var(--text);
  background: none; border: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
}
.faq-icon { font-size: 22px; color: var(--accent); font-weight: 700; margin-left: 16px; transition: transform .2s ease; }
.faq-a {
  display: none;
  padding: 14px 20px 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid var(--light-icon-bg);
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* ===== Page hero (subpages) ===== */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 72px 20px;
  text-align: center;
}
.page-hero .badge { background: rgba(255,255,255,.08); color: #e6dbe2; border: 1px solid rgba(255,255,255,.15); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin: 0 0 16px; }
.page-hero p { font-size: 17px; color: var(--footer-muted); max-width: 700px; margin: 0 auto; line-height: 1.65; }

/* ===== Service detail ===== */
.service-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.service-body h2 { font-size: 24px; margin: 0 0 16px; }
.service-body p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.service-body h3 { font-size: 18px; margin: 28px 0 10px; }
.service-body ul:not(.check-list) { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 16px; padding-inline-start: 22px; }
.service-body ul:not(.check-list) li { margin-bottom: 6px; }
.service-body ul:not(.check-list) strong { color: var(--text, inherit); }
/* LLM/AI-answer optimization: direct answer + visible Q&A (includes/llmo.php) */
.service-body .answer-lead { font-size: 16.5px; color: var(--text, inherit); line-height: 1.7; margin: 18px 0 20px; padding-inline-start: 14px; border-inline-start: 3px solid var(--accent); }
.page-faq { margin: 40px 0 28px; }
.page-faq-item { border-top: 1px solid var(--border, rgba(0,0,0,.08)); padding: 4px 0 2px; }
.service-body .page-faq-item h3 { margin: 16px 0 6px; font-size: 17px; }
.service-body .page-faq-item p { margin: 0 0 12px; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  font-size: 15px;
  border-bottom: 1px solid var(--light-icon-bg);
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  position: sticky;
  top: 90px;
}
.sidebar-card h3 { font-size: 18px; margin: 0 0 16px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.sidebar-card li { font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--light-icon-bg); color: var(--muted); }
.sidebar-card li:last-child { border-bottom: none; }
.other-services { margin-top: 24px; }
.other-services a {
  display: block;
  font-size: 14px;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--light-icon-bg);
}
.other-services a:hover { color: var(--accent); }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--body);
  font-size: 15px;
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,47,69,.1);
}
.field textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 15px;
}
.alert-success { background: #e9f7ef; border: 1px solid #a9dfbf; color: #1e8449; }
.alert-error { background: #fdedec; border: 1px solid #f5b7b1; color: #c0392b; }
.contact-info-card {
  background: var(--dark);
  color: #fff;
  border-radius: 10px;
  padding: 32px;
}
.contact-info-card h3 { margin: 0 0 20px; }
.contact-line { font-size: 14px; color: var(--footer-text); margin-bottom: 16px; }
.contact-line strong { color: #fff; display: block; margin-bottom: 4px; }
.contact-line a { color: #fff; }

/* ===== Static pages ===== */
.prose { max-width: 820px; margin: 0 auto; overflow-wrap: break-word; }
.prose img, .prose video { max-width: 100%; height: auto; }
.prose h2 { font-size: 22px; margin: 32px 0 12px; }
.prose p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.prose a { color: var(--accent); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 20px; margin-top: 40px; }
.about-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.about-brand-logo {
  width: 150px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 26px -10px rgba(74,47,69,.35);
}
.about-brand-partner {
  width: 150px;
  height: auto;
  display: block;
  background: #fff;
  border: 1px solid rgba(74,47,69,.1);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 10px 26px -10px rgba(74,47,69,.22);
}
.mvv-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .mvv-grid { grid-template-columns: 1fr; }
  .about-brand { gap: 16px; }
  .about-brand-partner { width: 120px; }
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.intro-logo {
  width: 140px;
  height: auto;
  border-radius: 14px;
  display: block;
  margin-bottom: 18px;
  box-shadow: 0 10px 26px -10px rgba(74,47,69,.35);
}
.intro-copy h2 { margin: 14px 0 16px; }
.intro-copy p { color: var(--muted); line-height: 1.75; margin: 0 0 26px; max-width: 56ch; }
.intro-stats { margin-top: 0; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.stat-card .num { font-family: var(--heading); font-size: 34px; font-weight: 700; color: var(--accent); }
.stat-card .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }
.office-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.office-card h3 { margin: 0 0 8px; font-size: 18px; }
.office-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ===== CTA band ===== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, #2e1c2c 55%, var(--dark) 100%);
  color: #fff;
  padding: 72px 20px;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(155,94,140,.28) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: 30px; margin: 0 0 12px; }
.cta-band p { color: var(--footer-muted); max-width: 560px; margin: 0 auto 28px; }

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, #201626 0%, var(--dark) 34%);
  color: #fff;
  padding: 70px 20px 30px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, #a05a8c 50%, var(--accent) 80%, transparent);
}
.site-footer::after {
  content: '';
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  bottom: -420px; inset-inline-end: -180px;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.015);
  pointer-events: none;
}
.footer-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.15fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand .social-group { margin-top: 22px; }
.footer-contact li { line-height: 1.9; }
.footer-contact-item { display: inline-flex; align-items: flex-start; gap: 8px; white-space: normal; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 4px; color: var(--footer-muted); }
.footer-addr { display: block; margin-top: 10px; font-size: 13px; color: var(--footer-muted); line-height: 1.6; }
.footer-col ul { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 2.2; }
.company-desc { font-size: 14px; color: var(--footer-muted); line-height: 1.65; margin: 16px 0 20px; }
.footer-email { margin-bottom: 20px; font-size: 14px; color: #e6dbe2; }
.footer-email a { color: #fff; text-decoration: none; }
a[href^="mailto:"], a[href^="tel:"], a[href*="wa.me"] { text-decoration: none; }
.contact-line a { text-decoration: none; }
.address-box { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 14px 16px; }
.address-item { font-size: 13px; color: #e6dbe2; line-height: 1.5; }
.address-item:not(:last-child) { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.partner-badge-img {
  display: block;
  width: 150px;
  height: auto;
  margin-top: 20px;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
}
.address-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: .05em;
}
.footer-col h4, .footer-col .footer-h { font-size: 14px; font-weight: 700; margin: 0 0 20px; text-transform: uppercase; letter-spacing: .07em; color: #fff; position: relative; padding-bottom: 10px; }
.footer-col h4::after, .footer-col .footer-h::after {
  content: '';
  position: absolute;
  bottom: 0; inset-inline-start: 0;
  width: 26px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #a05a8c);
}
.footer-heading-link { color: #fff; text-decoration: none; }
.footer-heading-link:hover { color: var(--footer-muted); }
.footer-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
.footer-services-grid ul { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 2.2; }
.footer-link {
  color: var(--footer-muted);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: color .2s ease, transform .2s ease, gap .2s ease;
}
.footer-link::before {
  content: '';
  width: 0; height: 1.5px;
  background: #a05a8c;
  border-radius: 2px;
  transition: width .2s ease;
  flex-shrink: 0;
}
.footer-link:hover { color: #fff; gap: 8px; transform: translateX(3px); }
.footer-link:hover::before { width: 10px; }
[dir="rtl"] .footer-link:hover { transform: translateX(-3px); }
.social-desc { font-size: 13px; color: var(--footer-muted); line-height: 1.6; margin: 0 0 20px; }

/* ===== Sitemap ===== */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sitemap-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 28px;
}
.sitemap-card h3 { font-size: 17px; margin: 0 0 16px; }
.sitemap-head-link { color: var(--dark); text-decoration: none; transition: color .2s ease; }
.sitemap-head-link:hover { color: var(--accent); }
.sitemap-card ul { list-style: none; margin: 0; padding: 0; }
.sitemap-card li { margin-bottom: 4px; }
.sitemap-card li a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  margin-inline-start: -10px;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease, padding-inline-start .15s ease;
}
.sitemap-card li a:hover {
  color: var(--accent);
  background: rgba(74,47,69,.06);
  padding-inline-start: 14px;
}
@media (max-width: 1000px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .sitemap-grid { grid-template-columns: 1fr; } }
.social-group { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.social-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--footer-muted);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.social-icon:hover {
  transform: translateY(-4px);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.soc-fb { background: rgba(24,119,242,.16); border-color: rgba(24,119,242,.3); color: #7db4f7; }
.soc-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.soc-wa { background: rgba(37,211,102,.14); border-color: rgba(37,211,102,.3); color: #5eead4; }
.soc-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.soc-ig { background: rgba(228,64,95,.14); border-color: rgba(228,64,95,.3); color: #f2708f; }
.soc-ig:hover { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); border-color: transparent; color: #fff; }
.soc-yt { background: rgba(255,0,0,.13); border-color: rgba(255,0,0,.3); color: #ff7a7a; }
.soc-yt:hover { background: #f00; border-color: #f00; color: #fff; }
.soc-li { background: rgba(10,102,194,.16); border-color: rgba(10,102,194,.3); color: #6fb2f0; }
.soc-li:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.soc-em { background: rgba(160,90,140,.16); border-color: rgba(160,90,140,.35); color: #d9a8cc; }
.soc-em:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--footer-muted);
  gap: 16px;
}
.footer-legal { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.footer-legal a { color: var(--footer-muted); text-decoration: none; }
.footer-legal a:hover { color: #fff; }
.footer-legal .sep { color: rgba(255,255,255,.2); }
.footer-credit { color: #8c7b89; }
.footer-credit strong { color: var(--footer-muted); font-weight: 600; }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 9999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ee06f 0%, #1eb356 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(32,186,90,.38), 0 4px 10px rgba(0,0,0,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(46,224,111,.55);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { transform: scale(.92); opacity: .9; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
.wa-float:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 18px 36px rgba(32,186,90,.5), 0 6px 14px rgba(0,0,0,.22);
}
.wa-float:active { transform: translateY(-2px) scale(1.02); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; position: relative; z-index: 1; }
.wa-tip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--dark-2);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--body);
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.wa-tip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--dark-2);
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
[dir="rtl"] .wa-tip::after { border-left-color: transparent; border-right-color: var(--dark-2); }

/* ===== Odoo apps ===== */
.apps-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.app-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.app-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 14px 28px -12px rgba(74,47,69,.22);
}
.app-tile img { width: 44px; height: 44px; display: block; }
.app-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }

/* ===== LinkedIn feed ===== */
.svc-track .li-card { flex: 0 0 360px; }
.li-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.li-card:hover {
  border-color: #0A66C2;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -12px rgba(10,102,194,.22);
}
.li-card-head { display: flex; align-items: center; gap: 12px; }
.li-avatar { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; }
.li-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.li-meta strong { font-size: 15px; font-weight: 700; color: var(--dark); }
.li-meta span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-glyph { flex-shrink: 0; }
.li-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.li-media {
  margin: 2px -20px;
  background: #0d0d12;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.li-media-obj {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.li-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.li-stats { font-size: 12px; color: var(--muted); }
.li-view { font-size: 13px; font-weight: 600; color: #0A66C2; text-decoration: none; white-space: nowrap; }
.li-view:hover { text-decoration: underline; }

/* Integration hover explainer — anchored popover (desktop) / centered modal (touch) */
.intg-pop {
  position: fixed;
  z-index: 1000;
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--border, #eadceb);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(44, 18, 61, .18), 0 4px 14px rgba(44, 18, 61, .08);
  padding: 18px 20px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.96);
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.3,1.2), visibility 0s .22s;
  pointer-events: none;
}
.intg-pop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.3,1.2), visibility 0s;
}
.intg-pop.below { transform: translateY(-8px) scale(.96); }
.intg-pop.below.show { transform: translateY(0) scale(1); }
.intg-pop-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.intg-pop-head img {
  width: 40px; height: 40px; object-fit: contain; flex-shrink: 0;
}
.intg-pop-head b {
  font-size: 16px; color: var(--ink, #2C123D); font-weight: 600; line-height: 1.3;
}
.intg-pop-desc {
  font-size: 13.5px; line-height: 1.65; color: var(--muted, #6b5a73); margin: 0;
}
.intg-pop-arrow {
  position: absolute; left: var(--ax, 50%); transform: translateX(-50%);
  width: 12px; height: 12px; background: #fff;
  border-left: 1px solid var(--border, #eadceb); border-top: 1px solid var(--border, #eadceb);
}
.intg-pop:not(.below) .intg-pop-arrow { bottom: -7px; transform: translateX(-50%) rotate(-135deg); }
.intg-pop.below .intg-pop-arrow { top: -7px; transform: translateX(-50%) rotate(45deg); }
/* touch/keyboard: same popover as a centered card over a dim layer */
.intg-pop-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(44, 18, 61, .45); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s;
}
.intg-pop-overlay.show { opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s; }
.intg-pop.modal {
  top: 50% !important; left: 50% !important;
  transform: translate(-50%, -46%) scale(.94);
  pointer-events: auto;
}
.intg-pop.modal.show { transform: translate(-50%, -50%) scale(1); }
.intg-pop.modal .intg-pop-arrow { display: none; }
.intg-card:focus-visible { outline: 2px solid var(--accent, #A54A7B); outline-offset: 2px; }

/* LinkedIn post modal */
.li-card { cursor: pointer; }
.li-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.li-modal.open { display: flex; }
.li-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,10,18,.72);
  backdrop-filter: blur(4px);
}
.li-modal-box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: min(620px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  animation: li-modal-in .25s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes li-modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.li-modal-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  z-index: 2;
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform .15s ease;
}
.li-modal-close:hover { transform: scale(1.1); }
.li-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 12px;
}
.li-modal-head .li-meta { flex: 1; }
.li-modal-head .li-meta b { font-weight: 500; }
.li-modal-scroll {
  overflow-y: auto;
  padding: 0 22px;
}
.li-modal-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-line;
  margin: 0 0 16px;
}
.li-modal-media { margin: 0 -22px 16px; }
.li-modal-media .li-media { margin: 0; aspect-ratio: auto; max-height: 400px; }
.li-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 14px 22px;
}
.li-modal-stats { font-size: 13.5px; color: var(--muted); }
body.modal-open { overflow: hidden; }
[dir="rtl"] .li-text { -webkit-box-orient: vertical; }
@media (max-width: 700px) {
  .svc-track .li-card { flex-basis: 290px; }
}

/* ===== Methodology timeline ===== */
.m-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}
.m-timeline::before {
  content: '';
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 27px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(74,47,69,.12));
  border-radius: 2px;
}
.m-step {
  position: relative;
  display: flex;
  gap: 26px;
  padding-block: 18px;
  align-items: flex-start;
}
.m-num {
  flex: 0 0 56px;
  position: relative;
  z-index: 1;
}
.m-num span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head, 'Space Grotesk', sans-serif);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(74,47,69,.3), 0 0 0 6px #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.m-step:hover .m-num span {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(74,47,69,.38), 0 0 0 6px #fff;
}
.m-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.m-step:hover .m-card {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(74,47,69,.12);
  transform: translateY(-2px);
}
.m-phase {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74,47,69,.07);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.m-card h2 { font-size: 21px; margin: 0 0 10px; }
.m-card p { font-size: 15px; line-height: 1.75; color: var(--muted); margin: 0; }
@media (max-width: 700px) {
  .m-timeline::before { inset-inline-start: 21px; }
  .m-step { gap: 16px; padding-block: 14px; }
  .m-num { flex-basis: 44px; }
  .m-num span { width: 44px; height: 44px; font-size: 15px; box-shadow: 0 6px 18px rgba(74,47,69,.3), 0 0 0 4px #fff; }
  .m-card { padding: 20px; }
  .m-card h2 { font-size: 18px; }
}

/* ===== Products ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(74,47,69,.12);
  transform: translateY(-3px);
}
.product-card .icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(74,47,69,.08);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: background .3s ease, color .3s ease;
}
.product-card:hover .icon-box { background: var(--accent); color: #fff; }
.product-card h3 { font-size: 20px; margin: 4px 0 0; letter-spacing: .4px; }
.product-card p { font-size: 15px; line-height: 1.75; color: var(--muted); margin: 0; flex: 1; }
.product-odoo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #714B67;
  background: rgba(113,75,103,.1);
  border: 1px solid rgba(113,75,103,.25);
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 6px;
}
.hero-odoo {
  margin-top: 20px;
  color: #f0e6ee;
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.25);
}
.storeapp-link { text-decoration: none; transition: background .2s ease, color .2s ease; }
.storeapp-link:hover { background: #714B67; color: #fff; }
@media (max-width: 700px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ===== Odoo store apps — marketplace-style cards ===== */
.storeapps-author-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 22px;
}
.storeapps-odoo-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
}
.storeapps-odoo-chip img { display: block; height: 15px; width: auto; }
.storeapps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.storeapp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.storeapp-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(74,47,69,.14);
  transform: translateY(-4px);
}
.storeapp-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9.5;
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(113,75,103,.14), transparent 55%),
    linear-gradient(160deg, #f6f2f5 0%, #ece4ec 100%);
}
.storeapp-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,47,69,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,47,69,.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25));
}
.storeapp-logo {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(24,17,28,.25);
  z-index: 1;
}
.storeapp-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.storeapp-covericon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  opacity: .16;
  z-index: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.storeapp-card:hover .storeapp-covericon { opacity: .28; transform: scale(1.06); }
.storeapp-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
  flex: 1;
}
.storeapp-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.storeapp-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.storeapp-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.storeapp-author { font-size: 13px; color: var(--muted); }
.storeapp-author strong { color: var(--dark); font-weight: 700; }
.storeapp-price { font-size: 17px; font-weight: 800; color: var(--dark); letter-spacing: .2px; }
.storeapp-body .product-odoo { align-self: flex-start; margin-top: auto; }

/* ===== Blog ===== */
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 40px;
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.featured-post:hover { box-shadow: 0 24px 48px -16px rgba(74,47,69,.22); border-color: var(--accent); transform: translateY(-4px); }
.featured-cover {
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.featured-icon, .post-cover-icon, .post-hero-icon { color: rgba(255,255,255,.9); display: flex; }
.featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 14px; }
.featured-body p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 0 20px; }

.blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.blog-search input {
  width: min(340px, 100%);
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-family: var(--body);
  font-size: 15px;
  background: #fff;
}
.blog-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,47,69,.1); }
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s ease;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -14px rgba(24,17,28,.14); border-color: var(--accent); }
.post-cover {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  transition: filter .3s ease;
}
.post-card:hover .post-cover { filter: brightness(1.1); }
.post-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-cover:has(.post-cover-img), .featured-cover:has(.post-cover-img) { display: block; overflow: hidden; }
.post-cover .post-cover-img { height: 180px; }
.featured-cover .post-cover-img { height: 100%; min-height: 300px; position: absolute; inset: 0; }
.featured-cover:has(.post-cover-img) { position: relative; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.post-body h3 { font-size: 18px; font-weight: 600; margin: 10px 0 10px; line-height: 1.35; }
.post-body h3 a { color: inherit; text-decoration: none; }
.post-body h3 a:hover { color: var(--accent); }
.post-body > p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; flex-grow: 1; }
.post-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.post-views { display: inline-flex; align-items: center; gap: 5px; }

/* HR apps suite (product pages) */
.hr-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  margin: 18px 0 30px;
}
.hr-app-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 10px 14px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--dark);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hr-app-tile:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 10px 24px -10px rgba(24,17,28,.16); }
.hr-app-tile img { width: 48px; height: 48px; display: block; }
.post-views svg { opacity: .7; }
.post-cat {
  background: var(--light-icon-bg);
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 12px;
}
.blog-empty { text-align: center; color: var(--muted); font-size: 16px; padding: 40px 0; }

/* Blog pagination — windowed: Prev  1 … 4 5 [6] 7 8 … 28  Next */
.blog-pagination { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pager-row {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px; border: 1px solid var(--border); border-radius: 16px;
  background: #fff; box-shadow: 0 6px 22px rgba(74, 47, 69, .07);
  max-width: 100%;
}
.pager-nums { display: flex; align-items: center; gap: 4px; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 0; border-radius: 11px; background: transparent;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--muted);
  cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.page-btn:hover:not(:disabled):not(.active) { background: #f6eff4; color: var(--accent); }
.page-btn:active:not(:disabled):not(.active) { transform: scale(.95); }
.page-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.page-btn.active {
  background: var(--accent); color: #fff; cursor: default;
  box-shadow: 0 4px 12px rgba(74, 47, 69, .28);
}
.page-btn:disabled { opacity: .35; cursor: not-allowed; }
.page-btn.page-arrow { padding: 0 16px; color: var(--accent); }
.page-prev { margin-inline-end: 4px; }
.page-next { margin-inline-start: 4px; }
.page-next .page-chev { transform: scaleX(-1); }
[dir="rtl"] .page-prev .page-chev { transform: scaleX(-1); }
[dir="rtl"] .page-next .page-chev { transform: none; }
.page-gap { min-width: 24px; text-align: center; color: var(--muted); opacity: .7; letter-spacing: 1px; user-select: none; }
.pager-info { margin: 0; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .pager-row { gap: 2px; padding: 4px; border-radius: 14px; }
  .pager-nums { gap: 2px; }
  .page-btn { min-width: 38px; height: 40px; padding: 0 8px; font-size: 14px; }
  .page-btn.page-arrow { padding: 0 10px; }
  .page-arrow-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .page-gap { min-width: 16px; }
}

/* Post detail */
.post-hero { padding: 90px 20px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.post-hero .container { position: relative; z-index: 2; }
.post-hero-plain::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 38%, #000 25%, transparent 72%);
}
.post-hero-plain::after {
  content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.09);
  top: -190px; inset-inline-end: -110px;
  box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 140px rgba(255,255,255,.03);
  pointer-events: none;
}
.post-hero-icon { justify-content: center; margin: 0 auto 20px; }
.post-cat-hero { background: rgba(255,255,255,.15); color: #fff; margin-bottom: 16px; display: inline-block; }
.post-hero h1 { font-size: clamp(28px, 4vw, 44px); max-width: 820px; margin: 0 auto 20px; }
.post-meta-hero { justify-content: center; color: rgba(255,255,255,.85); font-size: 14px; }
.post-content { max-width: 780px; margin: 0 auto; }
.post-content h2 { font-size: 24px; margin: 36px 0 14px; }
.post-content p { font-size: 16px; line-height: 1.8; }
.post-content ul { color: var(--muted); font-size: 15px; line-height: 1.8; padding-inline-start: 22px; }
.post-content li { margin-bottom: 6px; }

/* ===== Post tags + engagement ===== */
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; max-width: 780px; }
.post-tag { background: var(--light-icon-bg); border: 1px solid var(--border); color: var(--accent); font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.post-body-sec { padding-top: 0; }
.post-shell { max-width: 860px; margin: -64px auto 0; position: relative; z-index: 5; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(24,17,28,.22); padding: 40px 48px 32px; }
.post-crumb { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 13.5px; }
.post-back { display: inline-flex; align-items: center; color: var(--accent); font-weight: 700; text-decoration: none; }
.post-back:hover { text-decoration: underline; }
.post-crumb-sep { color: var(--border); font-weight: 400; }
.post-crumb-cat { color: var(--muted); font-weight: 600; }
.post-shell .post-content, .post-shell .post-tags { max-width: none; }
.post-engage { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.engage-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.engage-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .18s; font-family: inherit; }
.engage-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.engage-like.liked { color: #c0392b; border-color: rgba(192,57,43,.35); background: rgba(192,57,43,.06); }
.engage-like.liked svg { fill: #c0392b; }
.engage-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.engage-share-lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-inline-start: auto; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.sh-wa { background: rgba(37,211,102,.14); color: #1da851; } .sh-wa:hover { background: #25d366; }
.sh-x  { background: rgba(15,15,20,.08); color: #14141a; }  .sh-x:hover  { background: #000; }
.sh-li { background: rgba(10,102,194,.1); color: #0a66c2; } .sh-li:hover { background: #0a66c2; }
.sh-fb { background: rgba(24,119,242,.1); color: #1877f2; } .sh-fb:hover { background: #1877f2; }
.sh-tg { background: rgba(34,158,217,.12); color: #229ed9; } .sh-tg:hover { background: #229ed9; }
.sh-tt { background: rgba(15,15,20,.08); color: #14141a; } .sh-tt:hover { background: #000; }
.sh-pin { background: rgba(230,0,35,.1); color: #e60023; } .sh-pin:hover { background: #e60023; }
.sh-ig { background: rgba(228,64,95,.1); color: #e4405f; } .sh-ig:hover { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.sh-em { background: rgba(109,95,107,.1); color: var(--muted); } .sh-em:hover { background: var(--accent); }

/* Prev / next post navigation */
.post-nav { max-width: 860px; margin: 24px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-nav-card {
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 16px 12px 12px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-nav-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 auto; }
.post-nav-thumb { flex: 0 0 112px; width: 112px; height: 72px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; }
.post-nav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-nav-card.next { flex-direction: row-reverse; padding: 12px 12px 12px 16px; }
@media (max-width: 640px) { .post-nav-thumb { flex-basis: 88px; width: 88px; height: 60px; } }
.post-nav-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 28px -14px rgba(74,47,69,.3); }
.post-nav-dir { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.post-nav-arr { font-size: 15px; line-height: 1; transition: transform .2s ease; }
.post-nav-card.prev:hover .post-nav-arr { transform: translateX(-3px); }
.post-nav-card.next:hover .post-nav-arr { transform: translateX(3px); }
[dir="rtl"] .post-nav-arr { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .post-nav-card.prev:hover .post-nav-arr { transform: scaleX(-1) translateX(-3px); }
[dir="rtl"] .post-nav-card.next:hover .post-nav-arr { transform: scaleX(-1) translateX(3px); }
.post-nav-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-card.next { text-align: end; }
.post-nav-card.next .post-nav-dir { justify-content: flex-end; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav-card.next { text-align: start; } .post-nav-card.next .post-nav-dir { justify-content: flex-start; } }
.sh-cp { width: auto; border-radius: 20px; padding: 0 16px; gap: 6px; background: rgba(74,47,69,.08); color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; }
.sh-cp:hover { background: var(--accent); }
.engage-comments h3 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-bottom: 16px; }
.engage-cnum { background: var(--light-icon-bg); color: var(--accent); border-radius: 12px; font-size: 13px; padding: 2px 10px; }
.comment-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.comment-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #714b67); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.comment-date { font-size: 12px; color: var(--muted); margin-inline-start: 8px; }
.comment-item p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--text); }
.comment-empty { color: var(--muted); font-size: 14px; background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 18px; text-align: center; }
.comment-form { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.comment-form input[type=text], .comment-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 14px; margin-bottom: 12px; background: var(--bg); color: var(--text); }
.comment-form input[type=text]:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,47,69,.1); }
.comment-form-row { display: flex; gap: 12px; }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.comment-note { font-size: 12.5px; color: var(--muted); }
.comment-msg { margin-top: 12px; font-size: 14px; padding: 10px 14px; border-radius: 10px; }
.comment-msg.ok { background: rgba(16,185,129,.1); color: #0e9f6e; }
.comment-msg.err { background: rgba(239,68,68,.08); color: #b03030; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 640px) {
  .post-shell { margin-top: -40px; padding: 26px 20px 24px; border-radius: 16px; }
  .engage-bar { gap: 6px; }
  .engage-sep { display: none; }
  .share-row { margin-inline-start: 0; margin-top: 4px; width: 100%; }
}

/* ===== RTL overrides ===== */
[dir="rtl"] .section-head,
[dir="rtl"] .section-head p { text-align: start; }
[dir="rtl"] .section-head.center,
[dir="rtl"] .section-head.center p { text-align: center; }
[dir="rtl"] .faq-q { text-align: start; }
[dir="rtl"] .faq-icon { margin-left: 0; margin-inline-start: 16px; }
[dir="rtl"] .check-list li { padding: 8px 30px 8px 0; padding-inline-start: 30px; padding-inline-end: 0; }
[dir="rtl"] .check-list li::before { left: auto; inset-inline-start: 0; }
[dir="rtl"] .industry-card .arrow,
[dir="rtl"] .other-services a { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .other-services a { display: block; transform: none; }
[dir="rtl"] .dropdown-menu a:hover { transform: translateX(-3px); }
[dir="rtl"] .wa-float { left: auto; right: 1.4rem; }
[dir="rtl"] .chat-fab, [dir="rtl"] .qchat-modal { right: auto; left: 1.4rem; }
[dir="rtl"] .icon-box { margin-inline-end: 0; }
[dir="rtl"] .dropdown-menu { direction: rtl; }
[dir="rtl"] .post-meta { direction: rtl; }
[dir="rtl"] .footer-legal { direction: rtl; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .main-nav { gap: 16px; }
  .main-nav > a, .has-dropdown > a { font-size: 13px; }
  .header-cta { display: none; }
  .industries-layout, .service-layout, .contact-layout, .about-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .dropdown-menu, .dropdown-menu.megamenu { width: min(780px, calc(100vw - 2rem)); }
  .megamenu-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-post { grid-template-columns: 1fr; }
  .featured-cover { min-height: 200px; }
  .featured-body { padding: 28px; }
}
@media (max-width: 700px) {
  .nav-toggle-btn { display: block; }
  .nav-overlay {
    display: block;
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(24,17,28,.55);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, visibility 0s .25s;
  }
  .nav-overlay.show {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .25s ease, visibility 0s;
  }
  .main-nav {
    position: fixed;
    top: 0; bottom: 0; inset-inline-end: 0;
    width: min(330px, 86vw);
    height: 100dvh;
    background: var(--dark-2);
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 28px;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.32,.72,.28,1), visibility 0s .32s;
    z-index: 1101;
    box-shadow: -18px 0 48px rgba(0,0,0,.4);
  }
  [dir="rtl"] .main-nav { transform: translateX(-105%); box-shadow: 18px 0 48px rgba(0,0,0,.4); }
  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .32s cubic-bezier(.32,.72,.28,1), visibility 0s;
  }
  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    position: sticky; top: 0;
    background: var(--dark-2);
    z-index: 2;
    margin-bottom: 8px;
  }
  .nav-close-btn {
    background: none; border: none; color: rgba(255,255,255,.75);
    font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px;
    transition: color .2s ease;
  }
  .nav-close-btn:hover { color: #fff; }
  .main-nav > a, .has-dropdown > a { padding: 13px 20px; display: block; }
  .has-dropdown { border-bottom: 1px solid rgba(255,255,255,.05); }
  .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; width: 100%; box-shadow: none; border: none; border-radius: 0; padding: 4px 8px 10px; display: none; overflow: hidden; transition: height .34s cubic-bezier(.32,.72,.28,1), padding-top .34s cubic-bezier(.32,.72,.28,1), padding-bottom .34s cubic-bezier(.32,.72,.28,1), opacity .24s ease; }
  .has-dropdown.open .dropdown-menu { display: block; transform: none; }
  .megamenu-grid { grid-template-columns: 1fr; gap: 2px; }
  .megamenu-item { padding: 10px 14px; gap: 0; font-size: 14px; border-radius: 8px; }
  .megamenu-icon { display: none; }
  .megamenu-all { margin-top: 12px; }
  .has-dropdown.no-mobile-dd .dropdown-menu { display: none !important; }
  .has-dropdown.no-mobile-dd .dropdown-arrow { display: none; }
  .dropdown-menu.more-menu { display: none; }
  .has-dropdown.open .dropdown-menu.more-menu { display: flex; }
  .header-cta { display: none; }
  .section { padding: 56px 16px; }
  .section-head h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .footer-services-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-link { white-space: normal; }
  .hero { padding: 20px 16px 60px; min-height: calc(100svh - 76px); }
  .hero-partner { height: clamp(64px, 10vh, 84px); margin-bottom: 12px; }
  /* vh-sized logos overflow narrow phones — cap by width instead */
  .hero-lockup { max-width: 100%; box-sizing: border-box; gap: 10px; padding: 10px 18px; border-radius: 16px; margin-bottom: 14px; }
  .hero-lockup .hl-qaid { height: 24px; max-width: 46vw; object-fit: contain; }
  .hero-lockup .hl-odoo { height: 19px; max-width: 26vw; object-fit: contain; }
  .hero-lockup .hl-x { font-size: 15px; }
  .hero-badge { margin-bottom: 12px; padding: 5px 14px 5px 8px; }
  .hero-badge span { font-size: 11px; }
  .hero h1 { font-size: clamp(24px, 7vw, 34px); margin-bottom: 12px; }
  .hero-typed-line { font-size: 15px; margin-bottom: 12px; }
  .hero p { font-size: 14px; margin-bottom: 20px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; padding: 12px 20px; font-size: 14px; }
  .scroll-cue { bottom: 10px; }
  .scroll-cue svg { width: 20px; height: 20px; }
  .industry-panel-card { min-height: 0; padding: 24px; }
  .tab-panel-card { padding: 24px; }
  .page-hero { padding: 56px 16px; }
  .post-hero { padding: 64px 16px; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search input { width: 100%; }
  .contact-form, .contact-info-card { padding: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .services-grid, .posts-grid, .partner-grid { grid-template-columns: 1fr; }
  .tab-bar { gap: 4px; }
  .tab-btn { padding: 8px 12px; font-size: 14px; }
  .stats-grid { grid-template-columns: 1fr; }
  .intro-stats { grid-template-columns: 1fr 1fr; }
  .li-modal { padding: 12px; }
  .li-modal-box { border-radius: 10px; }
  .li-modal-head, .li-modal-scroll { padding-left: 16px; padding-right: 16px; }
  .li-modal-media { margin: 0 -16px 16px; }
  .li-modal-foot { padding: 12px 16px; }
  .hero-typed-line { overflow-wrap: break-word; }
  .faq-q { font-size: 16px; padding: 16px 18px; }
  .cta-band { padding: 48px 16px; }
  .cta-band h2 { font-size: 24px; }
}

/* ===== Sectors ===== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.sector-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.sector-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 28px -12px rgba(74,47,69,.25); }
.sector-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.sector-card p { font-size: 14px; color: var(--muted); margin: 0 0 18px; line-height: 1.5; flex: 1; }
.sector-card .card-link { margin-top: auto; }

/* ===== Sector detail: linked Odoo apps ===== */
.sector-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin: 8px 0 32px;
}
.sector-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease;
}
.sector-app:hover { border-color: var(--accent); transform: translateY(-3px); }
.sector-app span { font-size: 12px; font-weight: 600; }
.sector-challenges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin: 10px 0 34px;
}
.sector-challenge {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; font-size: 13.5px; line-height: 1.55; color: var(--text);
  border-inline-start: 3px solid rgba(74,47,69,.35);
}
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }

/* ===== 404 ===== */
.nf-section {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(155,94,140,.25) 0%, transparent 60%),
    var(--dark);
  color: #fff;
  padding: 80px 20px;
}
.nf-logo {
  width: 150px;
  height: auto;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.5);
}
.nf-code {
  font-family: var(--heading);
  font-size: clamp(90px, 18vw, 150px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, #fff 30%, #d9a8cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.nf-section h1 { font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 12px; }
.nf-section p { color: var(--footer-muted); font-size: 16px; max-width: 440px; margin: 0 auto 34px; line-height: 1.65; }
.nf-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Scroll-reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.2,.6,.2,1), transform .65s cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal.reveal-left { transform: translateX(-32px); }
.reveal.reveal-right { transform: translateX(32px); }
.reveal.reveal-zoom { transform: scale(.94); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Hero entrance ===== */
@keyframes qaid-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero-inner > * { animation: qaid-rise .7s cubic-bezier(.2,.6,.2,1) both; }
.hero-inner > .hero-badge { animation-delay: .05s; }
.hero-inner > h1 { animation-delay: .15s; }
.hero-inner > p { animation-delay: .28s; }
.hero-inner > .hero-actions { animation-delay: .4s; }
.page-hero > * { animation: qaid-rise .6s cubic-bezier(.2,.6,.2,1) both; }
.page-hero > h1 { animation-delay: .1s; }
.page-hero > p { animation-delay: .2s; }

/* ===== Chat widget ===== */
.chat-fab {
  position: fixed;
  left: 1.4rem; bottom: 1.4rem;
  z-index: 10000;
  width: 56px; height: 56px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(74,47,69,.4), 0 0 0 5px rgba(74,47,69,.08);
  transition: transform .2s ease, box-shadow .2s ease, border-radius .25s ease;
}
.chat-fab:hover { transform: scale(1.08); border-radius: 50%; box-shadow: 0 12px 28px rgba(74,47,69,.48), 0 0 0 7px rgba(74,47,69,.1); }
.chat-fab .chat-fab-ico { display: flex; align-items: center; justify-content: center; }
.chat-fab .chat-fab-close-ic { display: none; font-size: 26px; line-height: 1; font-weight: 300; }
.chat-fab.open .chat-fab-open-ic { display: none; }
.chat-fab.open .chat-fab-close-ic { display: flex; }

/* hover-only hint, same pattern as the WhatsApp tooltip (never shown on touch, hidden while the chat is open) */
.chat-tip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: var(--dark-2);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--body);
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.chat-tip::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--dark-2);
}
[dir="rtl"] .chat-tip { left: auto; right: calc(100% + 14px); transform: translateY(-50%) translateX(8px); }
[dir="rtl"] .chat-tip::after { right: auto; left: 100%; border-right-color: transparent; border-left-color: var(--dark-2); }
@media (hover: hover) {
  .chat-fab:hover .chat-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.chat-fab:focus-visible .chat-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
.chat-fab.open .chat-tip { display: none; }
.chat-fab:focus-visible { outline: 3px solid rgba(74,47,69,.45); outline-offset: 3px; }

/* in-chat language switch */
.qchat-langs { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; z-index: 1; }
.qchat-langs button { border: 0; background: none; color: rgba(255,255,255,.85); font: inherit; font-size: 11.5px; font-weight: 700; padding: 4px 10px; cursor: pointer; line-height: 1.4; }
.qchat-langs button.on { background: #fff; color: var(--accent); }
.qchat-langs button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* call-back card (phone first; name + email optional, collapsed) */
.qchat-chip-call { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; }
.qchat-chip-call:hover { filter: brightness(1.12); }
.qchat-lead-row { align-items: flex-start; }
.qchat-lead {
  flex: 1; max-width: 86%;
  background: #fff;
  border: 1px solid #eadfe7;
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 8px 22px -12px rgba(74,47,69,.35);
  display: flex; flex-direction: column; gap: 8px;
  animation: qchat-msg-in .25s ease both;
}
.qchat-lead-lbl { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.qchat-lead-lbl small, .qchat-more small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.qchat-lead-phone { position: relative; display: flex; align-items: center; }
.qchat-lead-phone svg { position: absolute; left: 12px; color: var(--accent); pointer-events: none; }
.qchat-lead input:not(.qchat-hp) {
  width: 100%; box-sizing: border-box;
  font: inherit; font-size: 14px;
  padding: 10px 12px;
  border: 1.5px solid #e6dbe2; border-radius: 11px;
  background: #fbf8fa; color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.qchat-lead-phone input { padding-left: 36px !important; padding-right: 12px !important; font-weight: 600; letter-spacing: .02em; }
[dir="rtl"] .qchat-lead input[dir="ltr"] { text-align: right; }
.qchat-lead input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(74,47,69,.12); }
.qchat-lead input[aria-invalid="true"] { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,.14); }
.qchat-more {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  border: 1px dashed #d9c6d4; background: none; border-radius: 999px;
  padding: 5px 12px 5px 8px; font: inherit; font-size: 12px; font-weight: 600; color: var(--accent);
  cursor: pointer; transition: background .15s, border-color .15s;
}
[dir="rtl"] .qchat-more { padding: 5px 8px 5px 12px; }
.qchat-more:hover { background: #f6eff4; border-color: var(--accent); }
.qchat-more-ic { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #f0e6ee; font-size: 14px; line-height: 1; }
.qchat-more.open .qchat-more-ic { background: var(--accent); color: #fff; }
.qchat-extra { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; animation: qchat-msg-in .2s ease both; }
.qchat-extra[hidden] { display: none; }
/* honeypot: visually hidden in place — a far-off left offset becomes real scroll width in RTL */
.qchat-lead { position: relative; }
.qchat-hp { position: absolute !important; top: 0; inset-inline-start: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.qchat-lead-err { margin: 0; color: #b03030; background: #fde8e8; border-radius: 8px; padding: 7px 10px; font-size: 12px; font-weight: 600; }
.qchat-lead-actions { display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.qchat-lead-send {
  flex: 1; border: 0; border-radius: 11px; padding: 10px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: #fff;
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(74,47,69,.6); transition: filter .15s, transform .15s;
}
.qchat-lead-send:hover { filter: brightness(1.12); transform: translateY(-1px); }
.qchat-lead-send:disabled { opacity: .65; cursor: default; transform: none; }
.qchat-lead-skip { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 8px 6px; cursor: pointer; }
.qchat-lead-skip:hover { color: var(--accent); text-decoration: underline; }
.qchat-lead-fine { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 11px; color: var(--muted); }
.qchat-lead-fine svg { flex-shrink: 0; }
#qchat-send:disabled { opacity: .55; cursor: default; }
@media (max-width: 480px) {
  .qchat-lead { max-width: 100%; }
  .qchat-lead input:not(.qchat-hp), #qchat-input { font-size: 16px; }   /* no iOS zoom on focus */
}

.qchat-modal {
  position: fixed;
  left: 1.4rem; bottom: calc(1.4rem + 68px);
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transform-origin: bottom left;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.7,.3,1), visibility .22s;
  pointer-events: none;
}
.qchat-modal.open {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.qchat-card {
  width: min(390px, calc(100vw - 2.6rem));
  height: min(600px, calc(100dvh - 130px));
  min-height: min(420px, calc(100dvh - 110px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: none;
  box-shadow: 0 28px 70px rgba(24,17,28,.36), 0 4px 16px rgba(24,17,28,.12);
}
.qchat-head {
  position: relative;
  background:
    radial-gradient(120px 60px at 85% -20%, rgba(255,255,255,.14), transparent 70%),
    linear-gradient(150deg, var(--dark) 0%, var(--accent) 60%, #5c3a55 100%);
  padding: 14px 16px 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-align: center;
}
.qchat-head::after {
  content: "";
  position: absolute;
  inset-inline: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c98fb9 30%, #e8b7d9 50%, #c98fb9 70%, transparent);
}
.qchat-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 4px 14px rgba(0,0,0,.3);
}
.qchat-avatar img { width: 30px; height: 30px; object-fit: contain; }
.qchat-head-text strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.qchat-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: #efdfeb;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 3px 10px;
  margin-top: 4px;
}
.qchat-status i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block; box-shadow: 0 0 0 2px rgba(74,222,128,.25); }
.qchat-status em { font-style: normal; }
.qchat-close {
  position: absolute;
  top: 10px; inset-inline-end: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #efdfeb; font-size: 19px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.qchat-close:hover { background: rgba(255,255,255,.25); color: #fff; transform: rotate(90deg); }

.qchat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.qchat-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 16px;
  padding: 22px;
  text-align: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@supports not (justify-content: safe center) {
  .qchat-screen > *:first-child { margin-top: auto; }
  .qchat-screen > *:last-child { margin-bottom: auto; }
}
.qchat-screen[hidden], .qchat-main[hidden], .qchat-inputbar[hidden] { display: none !important; }
.qchat-screen-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(74,47,69,.28);
}
.qchat-screen-title { font-size: 15.5px; font-weight: 700; color: var(--text); margin: 0; }
.qchat-lang-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 300px; }
.qchat-lang-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: #faf7f9;
  font: inherit; font-weight: 700; font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.qchat-lang-btn:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, #f9f1f7, #f4e9f2);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(74,47,69,.14);
}
.qchat-flag {
  width: 40px; height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(24,17,28,.18);
}

.qchat-info-card { width: 100%; max-width: 300px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qchat-info-card h4 { font-size: 16.5px; margin: 0; color: var(--text); }
.qchat-info-card > p { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.qchat-info-card form { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: start; }
.qchat-info-card label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.qchat-info-card label b { color: #c0392b; }
.qchat-info-card label small { font-weight: 500; text-transform: none; letter-spacing: 0; }
.qchat-info-card input {
  font: inherit; font-size: 13.5px;
  padding: 11px 16px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: #f4eef2;
  color: var(--text);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.qchat-info-card input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(74,47,69,.1); }
.qchat-form-err { color: #c0392b; font-size: 12px; font-weight: 600; margin: 0; text-transform: none; letter-spacing: 0; }
.qchat-submit {
  margin-top: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff; border: none; border-radius: 999px;
  padding: 13px;
  font: inherit; font-weight: 700; font-size: 13.5px;
  letter-spacing: .02em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 18px rgba(74,47,69,.28);
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
.qchat-submit:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(74,47,69,.34); }
.qchat-submit i { font-style: normal; }
[dir="rtl"] .qchat-submit i { transform: scaleX(-1); display: inline-block; }

.qchat-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.qchat-msgs {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.qchat-row { display: flex; gap: 8px; align-items: flex-end; }
.qchat-row.user { justify-content: flex-end; }
.qchat-msg-av {
  width: 26px; height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.qchat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: break-word;
  animation: qchat-msg-in .2s ease both;
}
@keyframes qchat-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.qchat-msg.bot {
  background: #f6f0f5; color: var(--text);
  border-radius: 16px 16px 16px 6px;
  border-inline-start: 3px solid var(--accent);
}
.qchat-msg.user {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border-radius: 16px 16px 6px 16px;
}
[dir="rtl"] .qchat-msg.bot { border-radius: 16px 16px 6px 16px; }
[dir="rtl"] .qchat-msg.user { border-radius: 16px 16px 16px 6px; }
.qchat-msg a, .qchat-msg .qchat-link { color: var(--accent-hover); font-weight: 600; }
.qchat-msg.user a { color: #fff; }
.qchat-msg p { margin: 0 0 8px; }
.qchat-msg p:last-child { margin-bottom: 0; }
.qchat-msg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.qchat-msg.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #a08a9b;
  animation: qchat-dot 1.2s infinite ease-in-out;
}
.qchat-msg.typing span:nth-child(2) { animation-delay: .15s; }
.qchat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes qchat-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.qchat-chips {
  display: flex; gap: 7px;
  padding: 9px 12px;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  scrollbar-width: none;
  flex-shrink: 0;
}
.qchat-chips::-webkit-scrollbar { display: none; }
.qchat-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: #f0e6ee;
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.qchat-chip:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

.qchat-inputbar {
  display: flex; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: #fdfbfc;
  flex-shrink: 0;
}
#qchat-input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 13.5px;
  padding: 10px 16px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: #f4eef2;
  color: var(--text);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
#qchat-input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(74,47,69,.1); }
#qchat-send {
  width: 40px; height: 40px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter .18s ease, transform .18s ease, border-radius .2s ease;
}
#qchat-send:hover { filter: brightness(1.12); transform: scale(1.06); border-radius: 50%; }
[dir="rtl"] #qchat-send svg { transform: scaleX(-1); }

@media (max-width: 480px) {
  .qchat-modal { left: .75rem; bottom: calc(.75rem + 62px); }
  .qchat-card { height: min(72dvh, 600px); }
  .chat-fab { left: .75rem; bottom: .75rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img, .hero-inner > *, .page-hero > *, .qchat-modal, .qchat-msg, .qchat-lead, .qchat-extra, .chat-tip, .wa-float::after { animation: none !important; transition: none !important; }
}

/* ===== Subscribe band ===== */
.subscribe-band {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  padding: 64px 20px;
}
.subscribe-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.subscribe-text { flex: 1; min-width: 260px; }
.subscribe-text h2 { color: #fff; font-size: 26px; margin: 0 0 10px; }
.subscribe-text p { color: var(--footer-muted); font-size: 14.5px; margin: 0; line-height: 1.6; }
.subscribe-form { flex: 1; min-width: 280px; }
.subscribe-row { display: flex; gap: 10px; }
.subscribe-row input {
  flex: 1; min-width: 0;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.subscribe-row input::placeholder { color: var(--footer-muted); }
.subscribe-row input:focus { border-color: #fff; background: rgba(255,255,255,.16); }
.subscribe-msg { width: 100%; font-size: 13.5px; font-weight: 600; margin: 0 0 10px; }
.subscribe-msg.ok { color: #4ade80; }
.subscribe-msg.err { color: #fca5a5; }

/* ===== White papers — listing cards ===== */
.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wp-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.wp-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 28px -12px rgba(74,47,69,.25); }
.wp-card-cover { display: block; aspect-ratio: 1024 / 572; overflow: hidden; background: var(--dark); }
.wp-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.wp-card:hover .wp-card-cover img { transform: scale(1.04); }
.wp-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex-grow: 1; }
.wp-card-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.wp-card h3 { font-size: 18px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.wp-card p { font-size: 14px; color: var(--muted); margin: 0 0 20px; line-height: 1.5; flex-grow: 1; }
.wp-card .card-link { margin-top: auto; }
.wp-card-logos { display: flex; align-items: center; gap: 10px; margin: 24px 22px 0; }
.wp-hero-cover { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 16px 40px -18px rgba(24,17,28,.28); margin-bottom: 34px; }
.wp-hero-cover img { width: 100%; display: block; }
.wp-logo-circle { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10px; color: #fff; text-align: center; line-height: 1.15; padding: 5px; border: 1px solid rgba(74,47,69,.12); flex-shrink: 0; transition: transform .25s ease; }
.wp-card:hover .wp-logo-circle { transform: scale(1.08); }
.wp-logo-odoo { background: #fff; }
.wp-logo-circle img { max-width: 86%; max-height: 72%; object-fit: contain; display: block; }
.wp-logo-circle.wp-logo-img { background: #fff; }
.wp-logo-vs { color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: .5px; user-select: none; }

/* ===== White papers — comparison table ===== */
.compare-wrap { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px; max-width: 960px; margin-inline: auto; }
.compare-wrap h2 { text-align: center; color: var(--text); margin: 0 0 26px; font-size: 24px; }
.table-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 620px; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; line-height: 1.6; }
.compare-table th { font-size: 16px; font-weight: 700; }
.compare-table td.feature-title { text-align: start; font-weight: 600; color: var(--text); width: 28%; }
.compare-table .odoo-col { background: rgba(74,47,69,.05); color: var(--text); font-weight: 600; width: 36%; }
.compare-table .comp-col { color: var(--muted); width: 36%; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .comp-head { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.compare-table .comp-dot { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; }
.compare-table .comp-dot-img { width: auto; min-width: 42px; height: 30px; padding: 3px 8px; background: #fff; border: 1px solid rgba(74,47,69,.14); }
.compare-table .comp-dot-img img { max-width: 74px; max-height: 22px; object-fit: contain; display: block; }
.badge-winner { display: inline-block; background: var(--accent); color: #fff; padding: 3px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-top: 8px; }

/* ===== White papers — insight cards ===== */
.wp-insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1080px; margin: 0 auto; }
.wp-insight-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 26px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.wp-insight-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 28px -12px rgba(74,47,69,.2); }
.wp-insight-card h3 { font-size: 17px; margin: 0 0 10px; color: var(--text); }
.wp-insight-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .wp-grid, .wp-insights { grid-template-columns: 1fr; }
  .compare-wrap { padding: 22px 16px; }
}

/* ===== Company profile PDF viewer ===== */
.pdf-viewer-wrap { max-width: 960px; margin: 0 auto; }
.pdf-viewer { display: block; width: 100%; height: 78vh; min-height: 560px; border: 0; border-radius: 16px; box-shadow: 0 18px 48px rgba(35,16,40,.14); }
@media (max-width: 700px) {
  .pdf-viewer { height: 64vh; min-height: 0; }
}
.pdf-fallback { display: none; text-align: center; padding: 48px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.pdf-fallback p { color: var(--muted); margin: 0 0 18px; }
.pdf-js-viewer { display: none; }
.pdf-page { margin: 0 auto 14px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(35,16,40,.16); overflow: hidden; }
.pdf-page canvas { display: block; width: 100%; height: auto; }
.pdf-js-loading { text-align: center; padding: 48px 24px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 16px; }
@media (max-width: 768px) {
  .pdf-viewer { display: none; }
  .pdf-js-viewer { display: block; }
}

/* ===== Prevent horizontal page scroll ===== */
html, body { overflow-x: hidden; overflow-x: clip; }

/* Contact page — office maps inside the "Reach us directly" card */
.office-map { margin-top: 12px; }
.office-map iframe { display: block; width: 100%; height: 220px; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); }
.contact-line a.office-map-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: #fff; opacity: .85; }
.contact-line a.office-map-link:hover { opacity: 1; text-decoration: underline; }

/* Mobile: lighter hero photo (it sits under a ~90% dark overlay) */
@media (max-width: 800px) {
  .hero-img { background-image: linear-gradient(180deg, rgba(24,17,28,.82) 0%, rgba(24,17,28,.92) 100%), url('../img/hero-800.webp'); }
}

/* Homepage: skip style/layout/paint of below-the-fold sections until they near the viewport */
.hero ~ .section { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* Footer badges: Saudi Vision 2030 */
.footer-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 20px; }
.footer-badges .partner-badge-img { margin-top: 0; }
.vision-badge-img { display: block; width: 104px; height: auto; opacity: .92; }

/* ============================================================
   Homepage polish — intro, services, process, sectors, partner
   ============================================================ */

/* --- Intro: stat cards with animated counters --- */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.stat-card::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a05a8c);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .35s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -14px rgba(74,47,69,.25); border-color: var(--accent); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-card .num { font-variant-numeric: tabular-nums; }
.stat-card .num .stat-suffix { font-size: .6em; margin-inline-start: 1px; }
.intro-logo-wrap { position: relative; display: inline-block; }
.intro-logo-wrap::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 18px;
  border: 2px solid rgba(74,47,69,.14);
  pointer-events: none;
}
.intro-copy .badge { letter-spacing: .04em; }

/* --- Service / sector / product cards: accent reveal + arrow slide --- */
.svc-track .service-card, .svc-track .sector-card {
  position: relative;
  overflow: hidden;
}
.svc-track .service-card::before, .svc-track .sector-card::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a05a8c);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .35s ease;
}
.svc-track .service-card:hover::before, .svc-track .sector-card:hover::before { transform: scaleX(1); }
.svc-track .card-link { display: inline-flex; align-items: center; gap: 6px; transition: transform .2s ease, color .2s ease; }
.svc-track .service-card:hover .card-link, .svc-track .sector-card:hover .card-link { transform: translateX(6px); }
[dir="rtl"] .svc-track .service-card:hover .card-link, [dir="rtl"] .svc-track .sector-card:hover .card-link { transform: translateX(-6px); }
.svc-track .icon-box { transition: background .25s ease, color .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1); }
.svc-track .service-card:hover .icon-box, .svc-track .sector-card:hover .icon-box {
  transform: scale(1.1) rotate(-6deg);
}
[dir="rtl"] .svc-track .service-card:hover .icon-box, [dir="rtl"] .svc-track .sector-card:hover .icon-box { transform: scale(1.1) rotate(6deg); }

/* --- Process: numbered stepper rail --- */
.stepper {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.stepper::-webkit-scrollbar { display: none; }
.stepper::before {
  content: '';
  position: absolute;
  top: 21px;
  inset-inline: 24px;
  height: 2px;
  background: var(--border);
}
.stepper-fill {
  position: absolute;
  top: 21px;
  inset-inline-start: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #a05a8c);
  width: 0;
  transition: width .45s ease;
  z-index: 1;
}
.stepper-item {
  flex: 1;
  min-width: 120px;
  background: none;
  border: 0;
  padding: 0 8px;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.stepper-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease;
}
.stepper-item:hover .stepper-dot { border-color: var(--accent); color: var(--accent); }
.stepper-item.done .stepper-dot { border-color: var(--accent); color: var(--accent); background: var(--light-icon-bg); }
.stepper-item.active .stepper-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(74,47,69,.12);
}
.stepper-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
  transition: color .2s ease;
}
.stepper-item.active .stepper-lbl { color: var(--accent); }
.stepper-item:hover .stepper-lbl { color: var(--accent); }

/* Panel transition */
.tab-panel.active { animation: panelIn .4s ease; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel.active { animation: none; }
}

/* Stepper autoplay progress inside the active dot */
.stepper-item.active .stepper-dot { position: relative; overflow: hidden; }
.stepper-item.active .stepper-dot::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.25);
  transform: translateX(-101%);
}
.stepper.autoplay .stepper-item.active .stepper-dot::after { animation: dotFill var(--step-dur, 6s) linear forwards; }
@keyframes dotFill { to { transform: translateX(0); } }

/* --- Partner cards: gradient stripe + connected flow --- */
.partner-card { position: relative; overflow: hidden; }
.partner-card::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #a05a8c);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .4s ease;
}
.partner-card:hover::before { transform: scaleX(1); }
.partner-num { position: relative; }
.partner-card .partner-check {
  position: absolute;
  bottom: -4px; inset-inline-end: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  opacity: 0;
  transform: scale(.5);
  transition: all .25s ease;
}
.partner-card:hover .partner-check { opacity: 1; transform: scale(1); }

/* Section-head eyebrow alignment for badge inside head */
.section-head .badge { margin-bottom: 10px; }

@media (max-width: 700px) {
  .stepper-item { min-width: 96px; }
  .stepper-dot { width: 34px; height: 34px; font-size: 12px; }
  .stepper::before, .stepper-fill { top: 18px; }
  .stepper-lbl { font-size: 11px; }
}
/* Footer + subscribe band are below the fold on every page: render them only when near */
.subscribe-band, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* chat header: compact on phones (kept last so it wins over the base header rules) */
@media (max-width: 480px) {
  .qchat-head { flex-direction: row; justify-content: center; padding: 10px 56px 12px; gap: 10px; text-align: start; }
  .qchat-avatar { width: 36px; height: 36px; }
  .qchat-avatar img { width: 24px; height: 24px; }
  .qchat-head-text strong { font-size: 15px; }
  .qchat-status { margin-top: 2px; }
  .qchat-langs { top: 50%; transform: translateY(-50%); }
  .qchat-close { top: 50%; transform: translateY(-50%); }
  .qchat-close:hover { transform: translateY(-50%) rotate(90deg); }
}

/* chat: never scroll sideways; long words / links wrap inside bubbles */
.qchat-msgs { overflow-x: hidden; }
.qchat-row { min-width: 0; max-width: 100%; }
.qchat-msg, .qchat-lead { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.qchat-lead input:not(.qchat-hp) { min-width: 0; }

/* suggestion row: draggable with the mouse, swipeable on touch, arrows + fades when more is hidden */
.qchat-chips-wrap { position: relative; flex-shrink: 0; border-top: 1px solid var(--border); }
.qchat-chips-wrap .qchat-chips { border-top: 0; cursor: grab; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.qchat-chips.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.qchat-chips.dragging .qchat-chip { pointer-events: none; }
.qchat-chips-wrap.can-end .qchat-chips { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.qchat-chips-wrap.can-start .qchat-chips { -webkit-mask-image: linear-gradient(to right, transparent, #000 18%); mask-image: linear-gradient(to right, transparent, #000 18%); }
.qchat-chips-wrap.can-start.can-end .qchat-chips { -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); }
[dir="rtl"] .qchat-chips-wrap.can-end .qchat-chips { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); }
[dir="rtl"] .qchat-chips-wrap.can-start .qchat-chips { -webkit-mask-image: linear-gradient(to left, transparent, #000 18%); mask-image: linear-gradient(to left, transparent, #000 18%); }
[dir="rtl"] .qchat-chips-wrap.can-start.can-end .qchat-chips { -webkit-mask-image: linear-gradient(to left, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to left, transparent, #000 18%, #000 82%, transparent); }
.qchat-chips-nav {
  position: absolute; top: 50%; z-index: 2;
  width: 26px; height: 26px; margin-top: -13px;
  border: 1px solid #e6dbe2; border-radius: 50%;
  background: #fff; color: var(--accent);
  font: 700 17px/1 var(--body); padding: 0 0 2px;
  display: none; place-items: center; cursor: pointer;
  box-shadow: 0 3px 10px rgba(24,17,28,.16);
  transition: background .15s, color .15s;
}
.qchat-chips-nav:hover { background: var(--accent); color: #fff; }
.qchat-chips-nav.prev { inset-inline-start: 6px; }
.qchat-chips-nav.next { inset-inline-end: 6px; }
[dir="rtl"] .qchat-chips-nav { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) {
  .qchat-chips-wrap.can-start .qchat-chips-nav.prev, .qchat-chips-wrap.can-end .qchat-chips-nav.next { display: grid; }
}

/* ===== Local search (Saudi cities): statement block, city links, footer row ===== */
.geo-block { padding: 44px 0; background: var(--light-bg, #faf7fa); text-align: center; border-top: 1px solid #efe7f1; border-bottom: 1px solid #efe7f1; }
.geo-claim { max-width: 820px; margin: 0 auto 18px; font-size: 1rem; line-height: 1.75; color: var(--text, #2a1f29); }
.geo-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.geo-links a { display: inline-block; padding: 7px 14px; border: 1px solid #e5d7e2; border-radius: 999px; font-size: .9rem; text-decoration: none; color: var(--accent); }
.geo-links a:hover { background: var(--accent); color: #fff; }
.geo-h { font-size: clamp(20px, 2.6vw, 26px); margin: 40px 0 16px; text-align: center; }
.footer-geo { padding: 14px 0 6px; font-size: .85rem; text-align: center; border-top: 1px solid rgba(255,255,255,.08); margin-top: 18px; }
.footer-geo a { color: inherit; opacity: .85; text-decoration: none; }
.footer-geo a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 640px) { .geo-block { padding: 32px 16px; } .geo-links a { font-size: .85rem; } }

/* ===== Breadcrumbs (visible trail; matching BreadcrumbList JSON-LD) ===== */
/* Breadcrumbs: a visible bar under the header on every page, easy to scan and to click */
.breadcrumbs { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 6px 18px -14px rgba(24,17,28,.35); }
.breadcrumbs .container { padding-top: 11px; padding-bottom: 11px; }
.crumb-list { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.crumb-list::-webkit-scrollbar { display: none; }
.crumb-item { display: flex; align-items: center; min-width: 0; flex-shrink: 0; }
.crumb-item:last-child { flex-shrink: 1; }
.crumb-link, .crumb-current { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.crumb-link { color: var(--accent); font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.crumb-link:hover { background: rgba(74,47,69,.08); border-color: rgba(74,47,69,.18); color: var(--accent-hover, #633f5d); text-decoration: none; }
.crumb-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.crumb-link .crumb-home-ico { flex-shrink: 0; }
.crumb-current { background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 6px 14px -8px rgba(74,47,69,.6); }
.crumb-current .crumb-text { overflow: hidden; text-overflow: ellipsis; max-width: 46ch; }
.crumb-sep { display: inline-flex; align-items: center; color: var(--muted); opacity: .75; flex-shrink: 0; padding: 0 1px; }
[dir="rtl"] .crumb-chev { transform: scaleX(-1); }
@media (max-width: 640px) {
  .crumb-link, .crumb-current { padding: 6px 10px; font-size: 13px; }
  .crumb-home .crumb-text { display: none; }
  .crumb-current .crumb-text { max-width: 30ch; }
}

/* ---- Solution brochure previews ---- */
.brochure-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.brochure-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.brochure-dlg { border: 0; border-radius: 16px; padding: 0; margin: auto; width: min(980px, 94vw); height: min(86vh, 900px); box-shadow: 0 30px 70px rgba(36,27,42,.35); background: #fff; }
.brochure-dlg::backdrop { background: rgba(36,27,42,.55); }
.brochure-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #ece7f0; }
.brochure-head strong { font-size: 15px; color: #241b2a; }
.brochure-actions { display: inline-flex; align-items: center; gap: 12px; }
.brochure-dl { font-weight: 700; font-size: 14px; color: #714b67; text-decoration: none; }
.brochure-dl:hover { text-decoration: underline; }
.brochure-x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #6d6276; padding: 2px 8px; }
.brochure-frame { width: 100%; height: calc(100% - 52px); border: 0; display: block; border-radius: 0 0 16px 16px; }
@media (max-width: 640px) { .brochure-dlg { height: 80vh; } .brochure-btn { width: 100%; justify-content: center; } }

.product-brochure { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 700; color: #714b67; }

/* ---- Request a demo (solution pages) ---- */
.demo-dlg { border: 0; border-radius: 18px; padding: 0; margin: auto; width: min(560px, 94vw); max-height: 92vh; overflow: auto; box-shadow: 0 30px 70px rgba(36,27,42,.35); background: #fff; }
.demo-dlg::backdrop { background: rgba(36,27,42,.55); }
.demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 10px; border-bottom: 1px solid #ece7f0; }
.demo-head strong { display: block; font-size: 18px; color: #241b2a; }
.demo-sub { font-size: 13px; color: #6d6276; }
.demo-body { padding: 18px 22px 22px; }
.demo-form { display: grid; gap: 12px; }
.demo-form .field { display: grid; gap: 5px; margin: 0; }
.demo-form .field > span { font-size: 13px; font-weight: 700; color: #33263b; }
.demo-form input, .demo-form textarea { width: 100%; border: 1px solid #ddd3e1; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14.5px; background: #fff; }
.demo-form input[readonly] { background: #f6f2f7; color: #4a3d52; font-weight: 600; }
.demo-form input:focus, .demo-form textarea:focus { outline: none; border-color: #714b67; box-shadow: 0 0 0 3px rgba(113,75,103,.15); }
.demo-form textarea { resize: vertical; min-height: 96px; }
.demo-auto, .demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-err { margin: 0; font-size: 13.5px; font-weight: 600; color: #b42318; background: #fef3f2; border-radius: 10px; padding: 9px 12px; }
.demo-submit { width: 100%; justify-content: center; }
.demo-done { text-align: center; padding: 12px 6px 6px; }
.demo-done p { color: #5f5068; margin: 8px 0 18px; }
.demo-tick { width: 54px; height: 54px; border-radius: 50%; background: #e7f7ef; color: #16724e; font-size: 28px; display: grid; place-items: center; margin: 0 auto 12px; font-weight: 800; }
@media (max-width: 560px) { .demo-auto, .demo-grid { grid-template-columns: 1fr; } }

/* ---- Explore QAID: internal-link section on static pages ---- */
.explore { padding: 56px 0 64px; background: #faf7fb; border-top: 1px solid #ece7f0; }
.explore h2 { font-size: 26px; margin: 0 0 8px; color: #241b2a; }
.explore-claim { font-size: 15px; line-height: 1.7; color: #4a3d52; max-width: 860px; margin: 0 0 28px; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 26px; }
.explore-col { background: #fff; border: 1px solid #ece7f0; border-radius: 14px; padding: 18px 18px 14px; }
.explore-col h3 { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #714b67; margin: 0 0 10px; }
.explore-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.explore-col a { color: #33263b; text-decoration: none; font-size: 14px; line-height: 1.4; }
.explore-col a:hover { color: #714b67; text-decoration: underline; }
.explore-col a.explore-more { color: #714b67; font-weight: 700; }

/* Related services under blog articles */
.post-services-band { padding: 28px 0; }
.post-services-title { font-size: 1.25rem; margin: 0 0 12px; }
.post-services-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.post-services-list a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid #e6dbe2; background: #fff; color: #4a2f45; text-decoration: none; font-weight: 600; }
.post-services-list a:hover, .post-services-list a:focus-visible { background: #4a2f45; color: #fff; }
.intg-more{display:inline-block;margin-top:6px;font-size:.85rem;font-weight:600;color:inherit;text-decoration:underline;position:relative;z-index:1}

/* Apps: category jump links, category sections, image tiles, single app page */
.app-cat-jump { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 28px; }
.app-cat-jump a { padding:7px 14px; border-radius:999px; border:1px solid rgba(0,0,0,.12); text-decoration:none; color:inherit; font-size:.9rem; }
.app-cat-jump a:hover { border-color:currentColor; }
.app-cat { margin:0 0 40px; scroll-margin-top:96px; }
.app-cat-title { margin:0 0 16px; font-size:1.35rem; }
.app-cat-n { font-size:.8rem; opacity:.6; font-weight:500; margin-inline-start:6px; }
.app-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; }
.app-grid-small { grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); }
.app-card { display:flex; flex-direction:column; align-items:center; gap:10px; padding:18px 12px; border-radius:14px; background:#fff; border:1px solid rgba(0,0,0,.08); text-decoration:none; color:inherit; text-align:center; transition:transform .15s, box-shadow .15s; }
.app-card:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(0,0,0,.08); }
.app-card-img img, .app-card-icon { width:64px; height:64px; display:inline-flex; align-items:center; justify-content:center; }
.app-card-img img { width:64px; height:64px; object-fit:contain; }
.app-card-name { font-size:.92rem; font-weight:600; line-height:1.3; }
.app-detail-head { display:flex; gap:24px; align-items:flex-start; margin-bottom:28px; }
.app-detail-icon { flex:0 0 auto; width:88px; height:88px; display:inline-flex; align-items:center; justify-content:center; }
.app-detail-icon img { width:88px; height:88px; object-fit:contain; }
.app-detail-lead { margin:0 0 14px; font-size:1.05rem; }
.app-detail-price { margin:0 0 14px; }
.app-features { padding-inline-start:20px; line-height:1.8; }
.app-note { font-size:.9rem; opacity:.75; margin-top:20px; }
@media (max-width:600px) { .app-detail-head { flex-direction:column; } }

/* Clickable app images on home, sector, quote and product pages */
a.app-tile, a.sector-app, a.hr-app-tile, a.mod-tile-link { color: inherit; text-decoration: none; }
a.app-tile:hover, a.sector-app:hover, a.hr-app-tile:hover { opacity: .85; }

/* Integration single page: photo and clickable related logos */
.intg-photo { display:flex; justify-content:center; margin:0 0 24px; }
.intg-photo img { width:160px; height:160px; object-fit:contain; background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:18px; padding:16px; }
.intg-related-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:14px; margin:12px 0 24px; }
a.intg-related { display:flex; flex-direction:column; align-items:center; gap:10px; padding:16px 10px; border-radius:14px; background:#fff; border:1px solid rgba(0,0,0,.08); text-decoration:none; color:inherit; text-align:center; transition:transform .15s, box-shadow .15s; }
a.intg-related:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(0,0,0,.08); }
a.intg-related img { width:56px; height:56px; object-fit:contain; }
a.intg-related span { font-size:.9rem; font-weight:600; line-height:1.3; }

/* ===== Integration and app pages: hero, cards, chips, internal-link sections ===== */
.int-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(138,90,126,.45), transparent 60%), linear-gradient(135deg, #1f1620 0%, #4a2f45 100%); color: #fff; padding: 64px 0 56px; }
.int-hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.int-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin: 14px 0 14px; }
.int-hero .badge { background: rgba(255,255,255,.14); color: #f3e8f0; border: 1px solid rgba(255,255,255,.22); }
.int-hero-lead { color: #e6dbe2; font-size: 17px; line-height: 1.7; max-width: 640px; margin: 0 0 24px; }
.int-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.int-hero-ctas .btn-viewall { color: #fff; border-color: rgba(255,255,255,.5); }
.int-hero-art { display: flex; justify-content: center; }
.int-hero-art img { width: 200px; height: 200px; object-fit: contain; background: #fff; border-radius: 28px; padding: 22px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.55); }
@media (max-width: 860px) { .int-hero-grid { grid-template-columns: 1fr; text-align: start; } .int-hero-art img { width: 140px; height: 140px; } }

.seo-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 14px 0 28px; }
.seo-step { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; position: relative; }
.seo-step h3 { margin: 6px 0 6px; font-size: 17px; }
.seo-step p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted, #5b5360); }
.seo-step-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent, #714b67); color: #fff; font-weight: 700; }

.seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 14px 0 28px; }
.seo-svc { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.seo-svc:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(74,47,69,.35); border-color: var(--accent, #714b67); }
.seo-svc-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(113,75,103,.1); display: inline-flex; align-items: center; justify-content: center; color: var(--accent, #714b67); }
.seo-svc-title { font-weight: 700; font-size: 16px; line-height: 1.35; }
.seo-svc-cta { font-size: 13px; font-weight: 700; color: var(--accent, #714b67); margin-top: auto; }

.seo-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.seo-post:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(74,47,69,.35); }
.seo-post-img { display: flex; align-items: center; justify-content: center; height: 140px; color: #fff; overflow: hidden; }
.seo-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seo-post-title { display: block; padding: 14px 16px 6px; font-weight: 700; line-height: 1.4; font-size: 15px; }
.seo-post-cta { display: block; padding: 0 16px 16px; font-size: 13px; font-weight: 700; color: var(--accent, #714b67); }

.seo-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 28px; }
.seo-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); text-decoration: none; color: inherit; font-size: 14px; font-weight: 600; transition: all .2s ease; }
.seo-chip:hover { border-color: var(--accent, #714b67); background: rgba(113,75,103,.06); }
.seo-chip-city { color: var(--accent, #714b67); }

/* Integration listing: Details as a button; popup button */
.intg-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 16px; border-radius: 999px; background: var(--accent, #714b67); color: #fff !important; font-size: .85rem; font-weight: 700; text-decoration: none !important; position: relative; z-index: 1; }
.intg-more:hover { filter: brightness(1.1); }
.intg-pop-btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; padding: 10px 18px; border-radius: 999px; background: var(--accent, #714b67); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.intg-pop-btn:hover { filter: brightness(1.1); color: #fff; }

/* ===== Solutions: listing and detail pages ===== */
.sol-hero { position: relative; overflow: hidden; }
.sol-hero::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(184,134,170,.35), transparent 65%); pointer-events: none; }
.sol-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sol-hero-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #f3e8f0; font-size: 13px; font-weight: 600; }
.sol-search { display: flex; align-items: center; gap: 12px; margin-top: 26px; max-width: 620px; background: #fff; border-radius: 16px; padding: 6px 18px; box-shadow: 0 22px 50px -20px rgba(0,0,0,.6); color: var(--muted); }
.sol-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 12px 0; background: transparent; color: #1f1620; min-width: 0; }
.sol-search:focus-within { box-shadow: 0 0 0 3px rgba(184,134,170,.5), 0 22px 50px -20px rgba(0,0,0,.6); }

.sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.sol-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--border); text-decoration: none; color: inherit; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.sol-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #4a2f45, #b886aa); transform: scaleX(.25); transform-origin: left; transition: transform .35s ease; }
.sol-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -24px rgba(74,47,69,.45); border-color: rgba(74,47,69,.3); }
.sol-card:hover::before { transform: scaleX(1); }
.sol-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sol-card-ico { width: 58px; height: 58px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f1620, #4a2f45); color: #fff; box-shadow: 0 12px 24px -12px rgba(74,47,69,.7); transition: transform .3s ease; }
.sol-card:hover .sol-card-ico { transform: rotate(-6deg) scale(1.06); }
.sol-card-odoo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #22683a; background: #e9f6ec; padding: 5px 10px; border-radius: 999px; }
.sol-card-body { display: flex; flex-direction: column; gap: 8px; }
.sol-card-title { font-size: 20px; line-height: 1.25; color: #1f1620; }
.sol-card-desc { font-size: 14.5px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sol-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--border); }
.sol-card-doc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sol-card-cta { font-size: 14px; font-weight: 800; color: var(--accent); white-space: nowrap; transition: transform .25s ease; }
.sol-card:hover .sol-card-cta { transform: translateX(4px); }
[dir="rtl"] .sol-card:hover .sol-card-cta { transform: translateX(-4px); }
.sol-empty { text-align: center; padding: 40px 20px; }
.sol-empty p { color: var(--muted); margin: 0 0 16px; }

.sol-explore { background: linear-gradient(180deg, #fff, #faf7fa); }
.sol-explore-title { font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.sol-explore-sub { color: var(--muted); margin: 0 0 22px; }

.sol-detail-hero .sol-hero-art { }
.sol-hero-ico { width: 180px; height: 180px; border-radius: 40px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; box-shadow: 0 30px 70px -26px rgba(0,0,0,.7); backdrop-filter: blur(6px); }
@media (max-width: 860px) { .sol-hero-ico { width: 130px; height: 130px; border-radius: 30px; } }

.sol-tabs { position: sticky; top: 72px; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px -18px rgba(24,17,28,.4); }
.sol-tabs-in { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.sol-tabs-in::-webkit-scrollbar { display: none; }
.sol-tabs-in a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; transition: background .18s ease, color .18s ease; }
.sol-tabs-in a:hover { background: rgba(74,47,69,.08); }
.sol-tabs-in a.sol-tab-cta { margin-inline-start: auto; background: var(--accent); color: #fff; }
.sol-tabs-in a.sol-tab-cta:hover { background: var(--accent-hover, #633f5d); }
@media (max-width: 640px) { .sol-tabs { top: 60px; } }
html { scroll-padding-top: 130px; }

.sol-lead { font-size: 18px; line-height: 1.75; color: #2b2330; }
.sol-features { list-style: none; margin: 14px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.sol-features li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; line-height: 1.6; font-size: 15px; transition: transform .2s ease, box-shadow .2s ease; }
.sol-features li:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(74,47,69,.4); }
.sol-feature-n { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #4a2f45, #8a5a7e); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.sol-faq { margin-top: 10px; }

.sol-demo-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 34px 0 10px; padding: 22px 26px; border-radius: 20px; background: linear-gradient(135deg, #1f1620, #4a2f45); color: #fff; box-shadow: 0 24px 50px -28px rgba(24,17,28,.8); }
.sol-demo-cta strong { display: block; font-size: 19px; margin-bottom: 4px; }
.sol-demo-cta span { color: #e6dbe2; font-size: 14.5px; }
.sol-demo-cta .btn-dark { background: #fff; color: #1f1620; }

.sol-aside { position: sticky; top: 150px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.sol-aside-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: 0 18px 40px -28px rgba(24,17,28,.35); }
.sol-aside-kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.sol-aside-card h3 { font-size: 19px; margin: 0 0 14px; }
.sol-aside-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sol-aside-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.sol-aside-list li svg { color: #22683a; flex-shrink: 0; margin-top: 3px; }
.sol-aside-btn { width: 100%; justify-content: center; margin-top: 8px; text-align: center; }
.sol-others h3 { margin-bottom: 10px; }
.sol-other { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-decoration: none; color: inherit; font-weight: 700; font-size: 14.5px; transition: background .18s ease; }
.sol-other:hover { background: rgba(74,47,69,.07); }
.sol-other-ico { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(74,47,69,.1); color: var(--accent); flex-shrink: 0; }
.sol-other span:nth-child(2) { flex: 1; }
.sol-other-arrow { color: var(--accent); }
@media (max-width: 960px) { .sol-aside { position: static; } }

/* Integration popup: category chip and previous/next navigation (modal mode only) */
.intg-pop-titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.intg-pop-cat { display: inline-flex; align-self: flex-start; align-items: center; padding: 4px 11px; border-radius: 999px; background: rgba(74,47,69,.1); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.intg-pop-cat:empty { display: none; }
.intg-pop-nav { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.intg-pop.modal .intg-pop-nav { display: flex; }
.intg-pop-prev, .intg-pop-next { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--accent); font-size: 22px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .18s ease, color .18s ease, transform .18s ease; }
.intg-pop-prev:hover, .intg-pop-next:hover { background: var(--accent); color: #fff; transform: scale(1.06); }
.intg-pop-prev:focus-visible, .intg-pop-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.intg-pop-pos { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
[dir="rtl"] .intg-pop-prev, [dir="rtl"] .intg-pop-next { transform: scaleX(-1); }
[dir="rtl"] .intg-pop-prev:hover, [dir="rtl"] .intg-pop-next:hover { transform: scaleX(-1) scale(1.06); }

/* Integration page: no hover movement or shadows on its cards and chips */
.int-page .seo-svc:hover, .int-page .seo-post:hover, .int-page a.intg-related:hover { transform: none !important; box-shadow: none !important; }
.int-page .seo-svc:hover { border-color: var(--border); }
.int-page .seo-chip:hover { background: #fff; border-color: var(--border); }
.int-page .seo-chip-city:hover { color: var(--accent, #714b67); }

/* Details button on the integrations list: soft tinted pill, no underline */
.intg-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(74,47,69,.08); border: 1px solid rgba(74,47,69,.14); color: var(--accent, #714b67) !important; font-size: .82rem; font-weight: 600; text-decoration: none !important; position: relative; z-index: 1; transition: background .2s ease, border-color .2s ease; }
.intg-more:hover { background: rgba(74,47,69,.14); border-color: rgba(74,47,69,.24); }
