/**
 * Turbo Solution — Editorial design system
 * Warm paper · charcoal type · one accent
 * Built for clarity in AR (default) and EN
 */

:root {
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #57534e;
  --line: #e7e5e4;
  --paper: #faf8f5;
  --paper-2: #f3f0eb;
  --white: #ffffff;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: rgba(194, 65, 12, 0.08);
  --nav-h: 72px;
  --max: 1120px;
  --max-narrow: 720px;
  --radius: 2px;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-display-en: "Fraunces", "Georgia", serif;
  --shadow: 0 1px 0 rgba(28, 25, 23, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.ts-body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

body.ts-body[dir="rtl"],
html[dir="rtl"] body.ts-body {
  font-family: var(--font-ar);
}

body.ts-body[data-page="home"],
body.ts-body[data-page="clients"] {
  padding-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent-hover);
}

/* —— Layout —— */
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(var(--max-narrow), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}
.section--tight {
  padding: 56px 0;
}
.section--paper2 {
  background: var(--paper-2);
}
.section--ink {
  background: var(--ink);
  color: #f5f5f4;
}
.section--ink a {
  color: #fdba74;
}
.section--ink a:hover {
  color: #fff;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 48px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head .label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
html[dir="rtl"] .section-head .label {
  letter-spacing: 0.04em;
}
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
body:not([dir="rtl"]) .section-head h2 {
  font-family: var(--font-display-en);
  font-weight: 500;
}
.section--ink .section-head h2 {
  color: #fafaf9;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.section--ink .section-head p {
  color: #d6d3d1;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff !important;
}
.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: #fff !important;
}
.btn--ghost-light {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost-light:hover {
  background: #fff;
  color: var(--ink) !important;
}
.btn--text {
  background: none;
  border: none;
  color: var(--ink) !important;
  min-height: auto;
  padding: 0;
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.btn--text:hover {
  color: var(--accent) !important;
}

/* —— Nav —— */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: none;
}
.nav-inner {
  height: 100%;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand img {
  height: 56px;
  width: auto;
  max-height: calc(var(--nav-h) - 10px);
  /* logo-nav is light — force dark on light/solid bars so it stays visible */
  filter: brightness(0);
  transition: filter 0.25s ease;
}
@media (min-width: 900px) {
  .nav-brand img {
    height: 62px;
  }
}
/* Home hero only: white logo over the dark header image */
body[data-page="home"] .nav:not(.is-solid) .nav-brand img {
  filter: brightness(0) invert(1);
}
/* Explicit solid state (after scroll / clients pages) */
.nav.is-solid .nav-brand img {
  filter: brightness(0);
}
body[data-page="home"] .nav:not(.is-solid) .nav-link {
  color: rgba(255, 255, 255, 0.88);
}
body[data-page="home"] .nav:not(.is-solid) .nav-link:hover,
body[data-page="home"] .nav:not(.is-solid) .nav-item.is-active .nav-link {
  color: #fff;
}
body[data-page="home"] .nav:not(.is-solid) .nav-toggle span {
  background: #fff;
}
body[data-page="home"] .nav:not(.is-solid) .lang {
  border-color: rgba(255, 255, 255, 0.3);
}
body[data-page="home"] .nav:not(.is-solid) .lang a {
  color: rgba(255, 255, 255, 0.85);
}
body[data-page="home"] .nav:not(.is-solid) .lang a.is-active {
  background: #fff;
  color: var(--ink);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px 6px;
}
.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none !important;
  border-radius: var(--radius);
}
.nav-link:hover,
.nav-item.is-active .nav-link {
  color: var(--ink);
}
.nav-item.is-active .nav-link {
  font-weight: 600;
}
.nav-cta .nav-link {
  background: var(--accent);
  color: #fff !important;
  padding-inline: 16px;
  margin-inline-start: 6px;
}
.nav-cta .nav-link:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-inline-start: 8px;
}
.lang a {
  min-width: 38px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none !important;
}
.lang a.is-active,
.lang a:hover {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    gap: 2px;
  }
  .nav-menu.is-open {
    display: flex;
  }
  .nav-link {
    padding: 14px 16px;
  }
  .nav-cta .nav-link {
    margin: 8px 0 0;
    text-align: center;
  }
  .lang {
    margin: 10px 16px 4px;
    align-self: flex-start;
  }
  body[data-page="home"] .nav:not(.is-solid) .nav-menu {
    background: var(--ink);
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  background: var(--ink);
  color: #fafaf9;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(28, 25, 23, 0.94) 0%, rgba(28, 25, 23, 0.75) 48%, rgba(28, 25, 23, 0.45) 100%),
    url("../img/slide_2.jpg") center / cover no-repeat;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    align-items: center;
    padding-bottom: 48px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
body:not([dir="rtl"]) .hero h1 {
  font-family: var(--font-display-en);
  font-weight: 500;
  max-width: 16ch;
}
html[dir="rtl"] .hero h1 {
  max-width: 18ch;
  line-height: 1.25;
}
.hero .lead {
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #d6d3d1;
  max-width: 38rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
}
/* Hero + shared social icon buttons */
.hero-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-bottom: 28px;
}
.hero-follow-label {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}
.social-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.social-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
.social-ico--fb {
  background: #1877f2;
}
.social-ico--fb:hover {
  background: #0d65d9;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}
.social-ico--yt {
  background: #ff0000;
}
.social-ico--yt:hover {
  background: #d40000;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.35);
}
.social-ico--wa {
  background: #25d366;
}
.social-ico--wa:hover {
  background: #1ebe57;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}
.social-ico--lg {
  width: 48px;
  height: 48px;
}
.social-ico--lg svg {
  width: 22px;
  height: 22px;
}
/* Demo: YouTube channel CTA under Launch demo / Video tour */
.demo-follow-yt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.22);
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 100%;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.demo-follow-yt:hover {
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 0, 0, 0.4);
  color: var(--ink) !important;
  transform: translateY(-1px);
}
.demo-follow-yt svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #ff0000;
}
.demo-follow-yt span {
  display: block;
}
.demo-follow-yt small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted, #78716c);
  margin-top: 2px;
}
body[dir="rtl"] .demo-follow-yt {
  text-align: right;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  color: #d6d3d1;
}
.hero-meta strong {
  display: block;
  color: #fafaf9;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.hero-aside {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(28, 25, 23, 0.35);
  backdrop-filter: blur(8px);
  padding: 20px;
}
.hero-aside img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #e8eef5;
}
.hero-aside figcaption {
  margin-top: 14px;
  font-size: 12.5px;
  color: #a8a29e;
  line-height: 1.5;
}

/* —— Stats —— */
.stats {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.stats-row {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 32px 20px;
  border-inline-end: 1px solid var(--line);
  text-align: start;
}
.stat:last-child {
  border-inline-end: none;
}
.stat .n {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
body:not([dir="rtl"]) .stat .n {
  font-family: var(--font-display-en);
  font-weight: 500;
}
.stat .n span {
  color: var(--accent);
}
.stat .l {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 14rem;
}
@media (max-width: 800px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border-inline-end: none;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

/* —— Modules (numbered list, not emoji cards) —— */
.modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.module {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 16px;
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  transition: background 0.2s ease;
}
.module:nth-child(2n) {
  border-inline-end: none;
  padding-inline-start: 24px;
  padding-inline-end: 0;
}
html[dir="rtl"] .module {
  padding: 28px 0 28px 24px;
}
html[dir="rtl"] .module:nth-child(2n) {
  padding-inline-start: 0;
  padding-inline-end: 24px;
}
.module:hover {
  background: var(--white);
}
.module .idx {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.module h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.module p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 700px) {
  .modules {
    grid-template-columns: 1fr;
  }
  .module,
  .module:nth-child(2n),
  html[dir="rtl"] .module,
  html[dir="rtl"] .module:nth-child(2n) {
    border-inline-end: none;
    padding-inline: 0;
  }
}

/* —— Split / Why —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.principles li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.principles li:first-child {
  border-top: 1px solid var(--line);
}
.principles .num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 2px;
}
.principles strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.principles span {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}
.panel {
  background: var(--ink);
  color: #f5f5f4;
  padding: 40px 36px;
}
.panel h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
body:not([dir="rtl"]) .panel h3 {
  font-family: var(--font-display-en);
  font-weight: 500;
}
.panel p {
  margin: 0 0 20px;
  color: #a8a29e;
  font-size: 15px;
  line-height: 1.65;
}
.panel ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.panel ul li {
  position: relative;
  padding: 8px 0 8px 0;
  padding-inline-start: 18px;
  font-size: 14.5px;
  color: #d6d3d1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.panel ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* —— Demo —— */
.demo-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}
@media (max-width: 800px) {
  .demo-box {
    grid-template-columns: 1fr;
  }
}
.demo-copy {
  padding: 40px 36px;
  border-inline-end: 1px solid var(--line);
}
@media (max-width: 800px) {
  .demo-copy {
    border-inline-end: none;
    border-bottom: 1px solid var(--line);
  }
}
.demo-copy h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
body:not([dir="rtl"]) .demo-copy h3 {
  font-family: var(--font-display-en);
  font-weight: 500;
}
.demo-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.demo-copy ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.demo-copy ul li {
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-inline-start: 16px;
  position: relative;
}
.demo-copy ul li::before {
  content: "—";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
}
.demo-creds {
  padding: 40px 36px;
  background: var(--paper-2);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.demo-creds .title {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
html[dir="rtl"] .demo-creds .title {
  font-family: var(--font-ar);
  letter-spacing: 0.04em;
}
.cred {
  margin-bottom: 14px;
}
.cred label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-family: var(--font-en);
}
html[dir="rtl"] .cred label {
  font-family: var(--font-ar);
}
.cred-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 12px;
}
.cred-row code {
  flex: 1;
  font-size: 13px;
  color: var(--ink);
  word-break: break-all;
  background: none;
}
.cred-row button {
  flex-shrink: 0;
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: var(--radius);
}
.cred-row button:hover,
.cred-row button.is-copied {
  background: var(--accent);
}
.demo-creds .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.demo-creds .note {
  margin: 16px 0 0;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
html[dir="rtl"] .demo-creds .note {
  font-family: var(--font-ar);
}

/* —— Clients strip —— */
.client-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.client-logos a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 12px 18px;
  background: var(--white);
  text-decoration: none !important;
  color: inherit;
  transition: background 0.2s;
  min-height: 160px;
}
.client-logos a:hover {
  background: var(--paper);
}
.client-logos img {
  width: 100%;
  height: 100px;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  filter: none;
}
.client-logos span {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 600;
}
@media (max-width: 700px) {
  .client-logos {
    grid-template-columns: 1fr 1fr;
  }
}
.section-foot {
  margin-top: 32px;
  text-align: center;
}

/* —— Events —— */
.events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.event {
  padding: 32px 28px 32px 0;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.event:last-child {
  border-inline-end: none;
}
html[dir="rtl"] .event {
  padding: 32px 0 32px 28px;
}
.event .when {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fdba74;
  margin-bottom: 10px;
}
.event h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fafaf9;
}
.event p {
  margin: 0;
  font-size: 14px;
  color: #d6d3d1;
  line-height: 1.55;
}
@media (max-width: 800px) {
  .events {
    grid-template-columns: 1fr;
  }
  .event,
  html[dir="rtl"] .event {
    border-inline-end: none;
    padding-inline: 0;
  }
}

/* —— Video —— */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
}
.video-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.video-links a:hover {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
}

/* —— Brochure —— */
.brochure {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}
@media (max-width: 800px) {
  .brochure {
    grid-template-columns: 1fr;
  }
}
.brochure-info {
  padding: 40px 36px;
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 800px) {
  .brochure-info {
    border-inline-end: none;
    border-bottom: 1px solid var(--line);
  }
}
.brochure-info .tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.brochure-info h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 600;
}
body:not([dir="rtl"]) .brochure-info h3 {
  font-family: var(--font-display-en);
  font-weight: 500;
}
.brochure-info p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.brochure-info .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brochure-view {
  background: #292524;
  min-height: 360px;
}
.brochure-view iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}
@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.about-prose h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 600;
}
.about-prose p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tags span {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--white);
}
.about-side {
  border-top: 2px solid var(--accent);
  padding-top: 24px;
}
.about-side dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.about-side dd {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child {
  padding-top: 0;
}
.contact-list li:last-child {
  border-bottom: 0;
}
.contact-list .ci {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--accent);
}
.contact-list .ci svg {
  display: block;
  width: 22px;
  height: 22px;
}
.contact-list .cc {
  min-width: 0;
}
.contact-list .k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
html[dir="rtl"] .contact-list .k {
  letter-spacing: normal;
}
.contact-list .v {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}
.contact-list a {
  color: var(--ink) !important;
  font-weight: 600;
  text-decoration: none !important;
}
.contact-list a:hover {
  color: var(--accent) !important;
}
.map {
  width: 100%;
  height: 260px;
  margin-top: 4px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 28px;
}
.form h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
}
.form .hint {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.form-assure {
  list-style: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: grid;
  gap: 9px;
}
.form-assure li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.form-assure .i {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
}
.form-assure .i svg {
  display: block;
  width: 18px;
  height: 18px;
}
.form-assure strong {
  color: var(--ink);
  font-weight: 600;
}
.form-promise {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.form-promise strong {
  color: var(--ink-soft);
  font-weight: 600;
}
.form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6b6560;
  opacity: 1;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.06);
}
.alert {
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  border-radius: var(--radius);
}
.alert--ok {
  background: #ecfdf5;
  color: #065f46;
}
.alert--err {
  background: #fef2f2;
  color: #991b1b;
}

/* —— CTA band —— */
.cta {
  padding: 72px 0;
  text-align: center;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
body:not([dir="rtl"]) .cta h2 {
  font-family: var(--font-display-en);
  font-weight: 500;
}
.cta p {
  margin: 0 auto 28px;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.cta .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* —— Footer —— */
.footer {
  background: var(--ink);
  color: #a8a29e;
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  margin: 0;
  max-width: 28rem;
  line-height: 1.65;
  font-size: 14px;
}
.footer h4 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fafaf9;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer a {
  color: #e7e5e4 !important;
  text-decoration: none !important;
}
.footer a:hover {
  color: #fdba74 !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social .social-ico {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.footer-social-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #a8a29e;
  margin-inline-end: 4px;
}

/* —— Floating social dock: FB + YT + WhatsApp —— */
.social-dock {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 16px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.social-dock-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
  user-select: none;
}
body[dir="rtl"] .social-dock-label {
  transform: none;
}
.social-dock .social-ico {
  width: 44px;
  height: 44px;
}
.social-dock .social-ico svg {
  width: 20px;
  height: 20px;
}
.social-dock .social-ico--wa {
  width: 50px;
  height: 50px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}
.social-dock .social-ico--wa svg {
  width: 24px;
  height: 24px;
}
/* Phone: one WhatsApp button. Footer already carries Facebook and YouTube,
   and a three-icon dock covers the contact form on small screens. */
@media (max-width: 720px) {
  .social-dock {
    bottom: 20px;
    inset-inline-start: auto;
    inset-inline-end: 16px;
    padding: 0;
    gap: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .social-dock-label,
  .social-dock .social-ico--fb,
  .social-dock .social-ico--yt {
    display: none;
  }
  .social-dock .social-ico--wa {
    width: 52px;
    height: 52px;
  }
  .back-to-top {
    bottom: 84px;
    inset-inline-end: 16px;
  }
  #contact {
    padding-bottom: 96px;
  }
}

/* —— Scroll progress —— */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 0%;
  z-index: 1100;
  background: var(--accent);
  pointer-events: none;
}

/* —— Back to top —— */
.back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 20px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.15s;
  border-radius: var(--radius);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* —— Reveal —— */
.js-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}
html:not(.js) .js-reveal {
  opacity: 1;
  transform: none;
}

/* —— Clients page —— */
.clients-hero {
  padding: calc(var(--nav-h) + 48px) 0 40px;
  background: var(--ink);
  color: #fafaf9;
  text-align: center;
}
.clients-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
body:not([dir="rtl"]) .clients-hero h1 {
  font-family: var(--font-display-en);
  font-weight: 500;
}
.clients-hero p {
  margin: 0 auto;
  max-width: 32rem;
  color: #d6d3d1;
  font-size: 15px;
  line-height: 1.6;
}

.clients-toolbar {
  width: min(var(--max), calc(100% - 40px));
  margin: 32px auto 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.clients-search {
  flex: 1 1 220px;
  max-width: 320px;
}
.clients-search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  border-radius: var(--radius);
}
.clients-search input:focus {
  outline: none;
  border-color: var(--ink);
}
.clients-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  min-height: 40px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}
html[dir="rtl"] .filter-chip {
  letter-spacing: normal;
}
.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.clients-count {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.clients-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 64px;
  display: grid;
  /* 3 cols = larger tiles so logos read clearly */
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: transparent;
  border: none;
}
@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}

.ts-client-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s, border-color 0.2s;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.ts-client-card.is-inview {
  opacity: 1;
  transform: none;
}
.ts-client-card:hover {
  border-color: rgba(28, 25, 23, 0.2);
  box-shadow: 0 8px 28px rgba(28, 25, 23, 0.08);
}
/*
 * Client JPGs are tall cards with large empty margins around the logo.
 * Tall frame + cover + center crop so the mark fills the tile.
 */
.ts-client-card .logo {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff;
  overflow: hidden;
}
.ts-client-card .logo img {
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.35s ease;
}
.ts-client-card:hover .logo img {
  transform: scale(1.04);
}
.ts-client-card .name {
  padding: 14px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--line);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
}
@media (max-width: 700px) {
  .ts-client-card .logo {
    height: 180px;
  }
}
@media (max-width: 480px) {
  .ts-client-card .logo {
    height: 200px;
  }
}
.ts-client-card.is-hidden {
  display: none !important;
}
.clients-empty {
  display: none;
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}
.clients-empty.is-visible {
  display: block;
}

/* Full client directory PDF CTA */
.clients-directory {
  padding: 48px 20px 64px;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(28, 25, 23, 0.03) 100%);
}
.clients-directory .wrap-narrow {
  max-width: 36rem;
  margin: 0 auto;
}
.clients-directory h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
body:not([dir="rtl"]) .clients-directory h2 {
  font-family: "Fraunces", Georgia, serif;
}
.clients-directory p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.clients-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Legacy class aliases used by older markup / JS */
.ts-body {
  /* already on body */
}
.ts-nav {
  /* mapped via .nav in new markup */
}
.ts-section-title {
  /* not used in new markup */
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal,
  .ts-client-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* —— Content completeness helpers —— */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 2000;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 12px;
}

.modules-close {
  margin: 36px 0 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.modules-close strong {
  color: var(--ink);
}

.product-strip {
  margin-top: 40px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.product-strip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-strip li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--white);
}

/* Focus visibility for keyboard users */
.btn:focus-visible,
.nav-link:focus-visible,
.nav-toggle:focus-visible,
.cred-row button:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.filter-chip:focus-visible,
.social-ico:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form {
  position: relative;
}
.captcha-field {
  margin-top: 4px;
}
.captcha-field .g-recaptcha {
  transform-origin: 0 0;
}
html[dir="rtl"] .captcha-field .g-recaptcha {
  transform-origin: 100% 0;
}
