/* =========================================================================
   Dynamic Translation — site chrome + section components
   Layout parity with the approved Lovable build.
   ========================================================================= */

/* ======================================================= HEADER ======= */

.d4t-header { position: sticky; top: 0; z-index: 50; }

/* --- top utility bar (desktop only) --- */
.d4t-topbar { display: none; background: var(--deep); color: var(--navy-foreground); }
@media (min-width: 1024px) { .d4t-topbar { display: block; } }

.d4t-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 2.5rem; font-size: 0.8rem;
}
.d4t-topbar__group { display: flex; align-items: center; gap: 1.25rem; }
.d4t-topbar__item {
  display: inline-flex; align-items: center; gap: 0.375rem;
  opacity: 0.9; transition: opacity 0.2s;
}
a.d4t-topbar__item:hover { opacity: 1; }
.d4t-topbar__hours { opacity: 0.8; }
.d4t-topbar__sep { color: rgba(251, 252, 254, 0.3); }
.d4t-topbar .ico { color: var(--bright); width: 0.875rem; height: 0.875rem; }
.d4t-topbar .ico-wa { color: var(--whatsapp); }
.d4t-lang-switch { font-weight: 600; color: var(--bright); transition: opacity 0.2s; }
.d4t-lang-switch:hover { opacity: 0.8; }

/* --- main bar --- */
.d4t-navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
  position: relative;
}
.d4t-header.is-scrolled .d4t-navbar { box-shadow: var(--shadow-soft); }

.d4t-navbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 80px; transition: height 0.3s;
}
.d4t-header.is-scrolled .d4t-navbar__inner { height: 68px; }

/* --- logo --- */
.d4t-logo { display: inline-flex; align-items: center; gap: 0.625rem; }
.d4t-logo__mark {
  position: relative; display: grid; place-items: center; flex-shrink: 0;
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius-md);
  background: var(--gradient-brand); color: var(--navy-foreground);
}
.d4t-logo__mark svg { width: 1.25rem; height: 1.25rem; }
.d4t-logo__text { display: flex; flex-direction: column; line-height: 1; }
.d4t-logo__name {
  font-family: var(--font-display); font-size: 0.98rem;
  font-weight: 800; letter-spacing: -0.02em; color: var(--navy);
}
.d4t-logo__sub {
  margin-top: 0.25rem; font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-foreground);
}
.d4t-logo--light .d4t-logo__name { color: var(--navy-foreground); }
.d4t-logo--light .d4t-logo__sub { color: var(--bright); }
[dir="rtl"] .d4t-logo__name, [dir="rtl"] .d4t-logo__sub { letter-spacing: 0; }

/* --- desktop nav --- */
.d4t-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1280px) { .d4t-nav { display: flex; } }

.d4t-nav__link {
  display: inline-flex; align-items: center; gap: 0.25rem;
  border-radius: var(--radius-md); padding: 0.5rem 0.75rem;
  font-size: 0.875rem; font-weight: 500; color: var(--foreground);
  transition: color 0.2s;
}
.d4t-nav__link:hover, .d4t-nav__link.is-active { color: var(--brand); }
.d4t-nav__chev { width: 0.875rem; height: 0.875rem; transition: transform 0.2s; }
.d4t-nav__item.is-open .d4t-nav__chev { transform: rotate(180deg); }

/* --- header actions --- */
.d4t-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.d4t-header__cta { display: none; }
@media (min-width: 768px) { .d4t-header__cta { display: inline-flex; } }
.d4t-icon-btn {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-md); border: 1px solid var(--border);
  color: var(--navy); transition: border-color 0.2s, color 0.2s;
}
.d4t-icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.d4t-icon-btn--wa { color: var(--whatsapp); }
@media (min-width: 1280px) { .d4t-icon-btn { display: none; } }

/* --- mega menu --- */
.d4t-mega {
  position: absolute; inset-inline: 0; top: 100%;
  display: none; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--background); box-shadow: var(--shadow-lift);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
}
@media (min-width: 1280px) { .d4t-mega { display: block; } }
.d4t-mega.is-open { visibility: visible; opacity: 1; transform: none; }

.d4t-mega__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem; padding-block: 2.25rem;
}
.d4t-mega__list { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 1rem; }
.d4t-mega__link { font-size: 0.875rem; color: var(--foreground); transition: color 0.2s; }
.d4t-mega__link:hover { color: var(--brand); }

.d4t-mega__promo {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--surface); padding: 1.5rem;
}
.d4t-mega__bars { display: flex; gap: 0.375rem; margin-bottom: 0.75rem; }
.d4t-mega__bars span { height: 0.375rem; border-radius: 999px; }
.d4t-mega__bars span:first-child { width: 2.5rem; background: var(--brand); }
.d4t-mega__bars span:last-child { width: 1.25rem; background: var(--bright); }
.d4t-mega__promo-title {
  font-family: var(--font-display); font-size: 1.125rem;
  font-weight: 700; color: var(--navy);
}

/* --- mobile drawer --- */
.d4t-drawer-root { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.d4t-drawer-root.is-open { pointer-events: auto; }
@media (min-width: 1280px) { .d4t-drawer-root { display: none; } }

.d4t-drawer__scrim {
  position: absolute; inset: 0; background: rgba(27, 48, 73, 0.6);
  opacity: 0; transition: opacity 0.3s;
}
.d4t-drawer-root.is-open .d4t-drawer__scrim { opacity: 1; }

.d4t-drawer {
  position: absolute; inset-block: 0; inset-inline-end: 0;
  display: flex; flex-direction: column;
  width: 88%; max-width: 24rem; background: var(--background);
  transform: translateX(100%); transition: transform 0.3s;
}
[dir="rtl"] .d4t-drawer { transform: translateX(-100%); }
.d4t-drawer-root.is-open .d4t-drawer { transform: translateX(0); }

.d4t-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); padding: 1rem 1.25rem;
}
.d4t-drawer__close {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.d4t-drawer__nav { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.d4t-drawer__link {
  display: block; padding-block: 0.75rem; font-weight: 500;
  border-top: 1px solid var(--border);
}
.d4t-drawer__link.is-first { border-top: 0; }
.d4t-drawer__acc-btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding-block: 0.75rem; font-weight: 500; border-top: 1px solid var(--border);
}
.d4t-drawer__acc-btn .ico { transition: transform 0.2s; }
.d4t-drawer__acc.is-open .d4t-drawer__acc-btn .ico { transform: rotate(180deg); }
.d4t-drawer__acc-panel { display: none; padding-bottom: 0.75rem; padding-inline-start: 0.75rem; }
.d4t-drawer__acc.is-open .d4t-drawer__acc-panel { display: block; }
.d4t-drawer__acc-group { margin-bottom: 0.75rem; }
.d4t-drawer__acc-link {
  display: block; padding-block: 0.375rem;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.d4t-drawer__foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  border-top: 1px solid var(--border); padding: 1rem;
}

/* ============================================== MOBILE ACTION BAR ===== */

.d4t-actionbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 768px) { .d4t-actionbar { display: none; } }
.d4t-actionbar a {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding-block: 0.625rem; font-size: 0.7rem; font-weight: 600; color: var(--navy);
}
.d4t-actionbar a + a { border-inline-start: 1px solid var(--border); }
.d4t-actionbar .ico { width: 1rem; height: 1rem; color: var(--brand); }
.d4t-actionbar .ico-wa { color: var(--whatsapp); }

body.d4t .d4t-main { padding-bottom: 3.5rem; }
@media (min-width: 768px) { body.d4t .d4t-main { padding-bottom: 0; } }

/* ======================================================= FOOTER ======= */

.d4t-footer { background: var(--gradient-navy); color: var(--navy-foreground); }
.d4t-footer__grid {
  display: grid; gap: 2.5rem; padding-block: 4rem;
}
@media (min-width: 768px) { .d4t-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .d4t-footer__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.d4t-footer__about { max-width: 20rem; margin-top: 1.25rem; font-size: 0.875rem; color: rgba(251, 252, 254, 0.7); }
.d4t-footer__contacts { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.d4t-footer__contacts a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: rgba(251, 252, 254, 0.8); transition: color 0.2s;
}
.d4t-footer__contacts a:hover { color: var(--bright); }
.d4t-footer__contacts .ico { color: var(--bright); width: 1rem; height: 1rem; flex-shrink: 0; }
.d4t-footer__contacts .ico-wa { color: var(--whatsapp); }

.d4t-footer__heading {
  margin-bottom: 1rem; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--bright);
}
[dir="rtl"] .d4t-footer__heading { letter-spacing: 0; }
.d4t-footer__links { display: flex; flex-direction: column; gap: 0.625rem; }
.d4t-footer__links a { font-size: 0.875rem; color: rgba(251, 252, 254, 0.75); transition: color 0.2s; }
.d4t-footer__links a:hover { color: var(--bright); }

.d4t-footer__bottom { border-top: 1px solid rgba(251, 252, 254, 0.1); }
.d4t-footer__bottom-inner {
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 0.75rem;
  padding-block: 1.25rem; font-size: 0.75rem; color: rgba(251, 252, 254, 0.6);
}
@media (min-width: 640px) { .d4t-footer__bottom-inner { flex-direction: row; } }
.d4t-footer__bottom-links { display: flex; align-items: center; gap: 1.25rem; }
.d4t-footer__bottom-links a:hover { color: var(--bright); }

/* ========================================================= HERO ======= */

.d4t-hero { position: relative; overflow: hidden; background: var(--gradient-navy); color: var(--navy-foreground); }
.d4t-hero__inner {
  position: relative; display: grid; align-items: center; gap: 3rem;
  padding-block: 4rem;
}
@media (min-width: 1024px) {
  .d4t-hero__inner { grid-template-columns: 1.05fr 0.95fr; padding-block: 6rem; }
}
.d4t-hero__kicker {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--bright);
}
[dir="rtl"] .d4t-hero__kicker { letter-spacing: 0; }
.d4t-hero h1 { margin-top: 1rem; color: var(--navy-foreground); }
.d4t-hero__lede { margin-top: 1.25rem; max-width: 36rem; font-size: 1.125rem; color: rgba(251, 252, 254, 0.85); }
.d4t-hero__sub { margin-top: 0.75rem; max-width: 36rem; color: rgba(251, 252, 254, 0.65); }
.d4t-hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.d4t-hero__phones {
  margin-top: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: rgba(251, 252, 254, 0.6);
}
.d4t-hero__phones .ico { color: var(--bright); }

.d4t-hero__media { position: relative; }
.d4t-hero__glow {
  position: absolute; inset: -1.5rem; border-radius: 2rem;
  opacity: 0.4; filter: blur(48px); background: var(--gradient-brand); pointer-events: none;
}
.d4t-hero__frame {
  position: relative; overflow: hidden; border-radius: var(--radius-2xl);
  border: 1px solid rgba(251, 252, 254, 0.15); box-shadow: var(--shadow-glow);
}
.d4t-hero__frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.d4t-hero__caption {
  position: absolute; inset-inline: 1rem; bottom: 1rem;
  border-radius: var(--radius-xl); border: 1px solid rgba(251, 252, 254, 0.15);
  background: rgba(27, 48, 73, 0.8); padding: 1rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.d4t-hero__caption-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(251, 252, 254, 0.7);
}
.d4t-hero__caption-row .mid { color: var(--bright); }
.d4t-hero__meter {
  margin-top: 0.5rem; height: 0.25rem; width: 100%; overflow: hidden;
  border-radius: 999px; background: rgba(251, 252, 254, 0.15);
}
.d4t-hero__meter span {
  display: block; height: 100%; width: 66%; border-radius: 999px;
  background: var(--gradient-brand);
}

.d4t-hero__trust { position: relative; border-top: 1px solid rgba(251, 252, 254, 0.1); background: rgba(27, 48, 73, 0.6); }
.d4t-hero__trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  column-gap: 2rem; row-gap: 0.75rem; padding-block: 1rem;
  font-size: 0.875rem; color: rgba(251, 252, 254, 0.8);
}
.d4t-hero__trust-inner span.item { display: inline-flex; align-items: center; gap: 0.5rem; }
.d4t-hero__trust-inner .dot { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--bright); }

/* ================================================ SECTION HEADING ===== */

.d4t-sechead { max-width: 42rem; }
.d4t-sechead.is-center { margin-inline: auto; text-align: center; }
.d4t-sechead h2 { margin-top: 0.75rem; }
.d4t-sechead.on-dark h2 { color: var(--navy-foreground); }
.d4t-sechead .lede { margin-top: 1rem; }
.d4t-sechead.is-center .lede { margin-inline: auto; }

/* ===================================================== AUDIENCES ====== */

.d4t-grid-3 { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 1024px) { .d4t-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.d4t-audience { height: 100%; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--card); transition: transform 0.3s, box-shadow 0.3s; }
.d4t-audience:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.d4t-audience__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.d4t-audience__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.d4t-audience:hover .d4t-audience__media img { transform: scale(1.05); }
.d4t-audience__body { padding: 1.5rem; }
.d4t-audience__title { display: flex; align-items: center; gap: 0.625rem; }
.d4t-audience__list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.875rem; color: var(--muted-foreground); }
.d4t-audience__list li { display: flex; align-items: center; gap: 0.5rem; }
.d4t-audience__list .ico { width: 0.875rem; height: 0.875rem; color: var(--brand); flex-shrink: 0; }
.d4t-audience__cta { margin-top: 1.25rem; }

/* ======================================================= SERVICES ===== */

.d4t-services { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 768px) { .d4t-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .d4t-services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .d4t-service--large { grid-column: span 2 / span 2; } }

.d4t-service {
  display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--card); padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
@media (min-width: 1024px) { .d4t-service--large .d4t-service { padding: 2rem; } }
.d4t-service:hover { transform: translateY(-4px); border-color: rgba(61, 122, 184, 0.4); box-shadow: var(--shadow-lift); }
.d4t-service__num { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: var(--bright); }
.d4t-service__title { margin-top: 0.5rem; font-size: 1.25rem; }
@media (min-width: 1024px) { .d4t-service--large .d4t-service__title { font-size: 1.5rem; } }
.d4t-service__summary { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.d4t-service__points { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.875rem; color: var(--muted-foreground); }
@media (min-width: 1024px) {
  .d4t-service--large .d4t-service__points {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem;
  }
}
.d4t-service__points li { display: flex; align-items: center; gap: 0.5rem; }
.d4t-service__points .dot { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--brand); flex-shrink: 0; }
.d4t-service__more { margin-top: auto; padding-top: 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--brand); }
.d4t-service__more .ico { transition: transform 0.25s; }
.d4t-service:hover .d4t-service__more .ico { transform: translateX(4px); }

/* ======================================================== JOURNEY ===== */

.d4t-journey { position: relative; overflow: hidden; background: var(--gradient-navy); color: var(--navy-foreground); }
.d4t-journey__grid { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 1024px) { .d4t-journey__grid { grid-template-columns: 0.9fr 1.1fr; } }

.d4t-journey__steps { position: relative; display: flex; flex-direction: column; gap: 0.75rem; }
.d4t-journey__rail {
  position: absolute; inset-block: 0.5rem; inset-inline-start: 19px;
  width: 1px; background: rgba(251, 252, 254, 0.15);
}
.d4t-journey__step {
  position: relative; display: flex; width: 100%; align-items: flex-start; gap: 1rem;
  border-radius: var(--radius-xl); border: 1px solid transparent; padding: 1rem;
  text-align: start; transition: background-color 0.25s, border-color 0.25s;
}
.d4t-journey__step:hover { background: rgba(251, 252, 254, 0.05); }
.d4t-journey__step.is-active { border-color: rgba(82, 174, 222, 0.4); background: rgba(251, 252, 254, 0.08); }
.d4t-journey__num {
  position: relative; z-index: 1; display: grid; place-items: center; flex-shrink: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid rgba(251, 252, 254, 0.25); background: var(--deep);
  font-family: var(--font-display); font-size: 0.875rem; font-weight: 700;
  color: rgba(251, 252, 254, 0.7); transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.d4t-journey__step.is-active .d4t-journey__num { border-color: var(--bright); background: var(--bright); color: var(--navy); }
.d4t-journey__step-title { display: block; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--navy-foreground); }
.d4t-journey__step-copy { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: rgba(251, 252, 254, 0.65); }

.d4t-journey__panel {
  border-radius: var(--radius-2xl); border: 1px solid rgba(251, 252, 254, 0.15);
  background: rgba(27, 48, 73, 0.6); padding: 1.5rem;
}
@media (min-width: 640px) { .d4t-journey__panel { padding: 2.25rem; } }
.d4t-journey__panel-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: rgba(251, 252, 254, 0.6);
}
[dir="rtl"] .d4t-journey__panel-head { letter-spacing: 0; }
.d4t-journey__panel-head .cur { color: var(--bright); }
.d4t-journey__progress {
  margin-top: 1rem; height: 0.25rem; width: 100%; overflow: hidden;
  border-radius: 999px; background: rgba(251, 252, 254, 0.15);
}
.d4t-journey__progress span {
  display: block; height: 100%; border-radius: 999px;
  background: var(--gradient-brand); transition: width 0.5s;
}
.d4t-journey__docs { margin-top: 1.75rem; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .d4t-journey__docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.d4t-journey__doc {
  border-radius: var(--radius-xl); border: 1px solid rgba(251, 252, 254, 0.15);
  background: rgba(251, 252, 254, 0.05); padding: 1.25rem;
}
.d4t-journey__doc.is-output { border-color: rgba(82, 174, 222, 0.3); }
.d4t-journey__doc-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(251, 252, 254, 0.5); }
.d4t-journey__doc.is-output .d4t-journey__doc-label { color: rgba(82, 174, 222, 0.8); }
.d4t-journey__lines { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.d4t-journey__lines span { display: block; height: 0.375rem; border-radius: 999px; background: rgba(251, 252, 254, 0.2); }
.d4t-journey__lines.is-output span { background: var(--gradient-brand); width: 0; transition: width 0.7s; }
.d4t-journey__delivery { margin-top: 1rem; display: none; flex-wrap: wrap; gap: 0.5rem; font-size: 0.7rem; font-weight: 600; color: rgba(251, 252, 254, 0.8); }
.d4t-journey__delivery.is-shown { display: flex; }
.d4t-journey__delivery span { border: 1px solid rgba(82, 174, 222, 0.4); border-radius: 999px; padding: 0.25rem 0.75rem; }

/* =========================================================== WHY ====== */

.d4t-why { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .d4t-why { grid-template-columns: 0.85fr 1.15fr; } }
.d4t-why__grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .d4t-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.d4t-why__item {
  display: flex; height: 100%; align-items: center; gap: 0.75rem;
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: var(--card); padding: 1rem; transition: border-color 0.25s;
}
.d4t-why__item:hover { border-color: rgba(61, 122, 184, 0.4); }
.d4t-why__item .ico { width: 1.125rem; height: 1.125rem; flex-shrink: 0; color: var(--brand); }
.d4t-why__item span { font-size: 0.875rem; font-weight: 500; color: var(--navy); }

/* ========================================================= TRUST ====== */

.d4t-trust { position: relative; overflow: hidden; background: var(--deep); color: var(--navy-foreground); }
.d4t-trust__grid { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 768px) { .d4t-trust__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.d4t-trust__card {
  height: 100%; border-radius: var(--radius-2xl);
  border: 1px solid rgba(251, 252, 254, 0.12);
  background: rgba(251, 252, 254, 0.05); padding: 2rem;
}
.d4t-trust__card h3 { margin-top: 1.25rem; font-size: 1.25rem; color: var(--navy-foreground); }
.d4t-trust__card p { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(251, 252, 254, 0.7); }

/* =============================================== ACCREDITATIONS ======= */

.d4t-orgs { display: grid; gap: 0.75rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .d4t-orgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .d4t-orgs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.d4t-org {
  display: flex; height: 100%; flex-direction: column; justify-content: space-between;
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: var(--card); padding: 1.25rem;
}
.d4t-org__name { font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.d4t-org__rel {
  margin-top: 0.75rem; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-foreground);
}
[dir="rtl"] .d4t-org__rel { letter-spacing: 0; }

/* ===================================================== LANGUAGES ====== */

.d4t-marquee { position: relative; margin-top: 2.5rem; overflow: hidden; padding-block: 0.5rem; }
.d4t-marquee__track {
  display: flex; width: max-content; gap: 1rem;
  animation: d4t-marquee-x 48s linear infinite;
}
.d4t-marquee:hover .d4t-marquee__track { animation-play-state: paused; }
.d4t-marquee__item {
  display: flex; flex-direction: column; min-width: 10rem;
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: var(--card); padding: 1rem 1.5rem;
}
.d4t-marquee__native { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.d4t-marquee__en { margin-top: 0.25rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-foreground); }
[dir="rtl"] .d4t-marquee__en { letter-spacing: 0; }

/* Full language grid (Languages page) */
.d4t-langs { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .d4t-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .d4t-langs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ==================================================== INDUSTRIES ====== */

.d4t-industries { display: grid; gap: 0.75rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .d4t-industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .d4t-industries { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.d4t-industry {
  position: relative; height: 100%; overflow: hidden;
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: var(--card); padding: 1.25rem; transition: border-color 0.25s;
}
.d4t-industry:hover { border-color: rgba(61, 122, 184, 0.5); }
.d4t-industry__name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--navy); }
.d4t-industry__docs {
  margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.875rem; color: var(--muted-foreground);
  opacity: 1; transition: opacity 0.3s;
}
@media (min-width: 1024px) {
  .d4t-industry__docs { opacity: 0; }
  .d4t-industry:hover .d4t-industry__docs,
  .d4t-industry:focus-within .d4t-industry__docs { opacity: 1; }
}

/* ===================================================== CORPORATE ====== */

.d4t-corporate {
  position: relative; overflow: hidden; border-radius: var(--radius-3xl);
  background: var(--gradient-navy); color: var(--navy-foreground); padding: 2rem;
}
@media (min-width: 640px) { .d4t-corporate { padding: 3.5rem; } }
.d4t-corporate__grid { position: relative; display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .d4t-corporate__grid { grid-template-columns: 1fr 1fr; } }
.d4t-corporate h2 { margin-top: 0.75rem; color: var(--navy-foreground); }
.d4t-corporate__lede { margin-top: 1rem; max-width: 32rem; color: rgba(251, 252, 254, 0.7); }
.d4t-corporate__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.d4t-corporate__list { display: grid; gap: 0.75rem; align-content: start; }
@media (min-width: 640px) { .d4t-corporate__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.d4t-corporate__list li {
  display: flex; align-items: center; gap: 0.625rem;
  border-radius: var(--radius-xl); border: 1px solid rgba(251, 252, 254, 0.12);
  background: rgba(251, 252, 254, 0.05); padding: 0.875rem 1rem;
  font-size: 0.875rem; color: rgba(251, 252, 254, 0.85);
}
.d4t-corporate__list .ico { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--bright); }

/* ======================================================= REVIEWS ====== */

.d4t-reviews { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 1024px) { .d4t-reviews { grid-template-columns: 1.3fr 1fr; } }
.d4t-review-feature {
  height: 100%; border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--card); padding: 2rem;
}
@media (min-width: 640px) { .d4t-review-feature { padding: 2.5rem; } }
.d4t-review-feature .quote-ico { width: 2rem; height: 2rem; color: var(--bright); }
.d4t-review-feature blockquote {
  margin: 1rem 0 0; font-family: var(--font-display);
  font-size: 1.25rem; line-height: 1.375; color: var(--navy);
}
@media (min-width: 640px) { .d4t-review-feature blockquote { font-size: 1.5rem; } }
.d4t-review__col { display: grid; gap: 1.25rem; align-content: start; }
.d4t-review-small {
  height: 100%; border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--card); padding: 1.5rem;
}
.d4t-review-small blockquote { margin: 0; font-size: 0.875rem; color: var(--muted-foreground); }
.d4t-review__meta { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.d4t-review__avatar {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 999px; background: var(--surface);
  font-family: var(--font-display); font-weight: 700; color: var(--brand);
}
.d4t-review__avatar.is-sm { width: 2.25rem; height: 2.25rem; font-size: 0.875rem; }
.d4t-review__name { display: block; font-weight: 600; color: var(--navy); }
.d4t-review-small .d4t-review__name { font-size: 0.875rem; }
.d4t-review__source { font-size: 0.75rem; color: var(--muted-foreground); }

/* ===================================================== LOCATIONS ====== */

.d4t-locations { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 1024px) { .d4t-locations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.d4t-location {
  height: 100%; overflow: hidden; border-radius: var(--radius-2xl);
  border: 1px solid var(--border); background: var(--card);
  display: flex; flex-direction: column;
}
.d4t-location__body { padding: 1.75rem; flex: 1; }
.d4t-location__title { display: flex; align-items: center; gap: 0.5rem; }
.d4t-location__title .ico { width: 1.125rem; height: 1.125rem; color: var(--brand); }
.d4t-location__address { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.d4t-location__address span { display: block; }
.d4t-location__contact { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.375rem; font-size: 0.875rem; }
.d4t-location__contact a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--navy); transition: color 0.2s; }
.d4t-location__contact a:hover { color: var(--brand); }
.d4t-location__contact .ico { width: 1rem; height: 1rem; color: var(--brand); }
.d4t-location__contact .ico-wa { color: var(--whatsapp); }
.d4t-location__actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.d4t-map { position: relative; border-top: 1px solid var(--border); background: var(--surface); }
.d4t-map__placeholder { display: grid; height: 14rem; place-items: center; }
.d4t-map__btn {
  border-radius: var(--radius-md); background: var(--card);
  padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 600;
  color: var(--navy); box-shadow: var(--shadow-soft);
}
.d4t-map iframe { height: 14rem; width: 100%; border: 0; display: block; }

/* =========================================================== FAQ ====== */

.d4t-faq-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .d4t-faq-wrap { grid-template-columns: 0.8fr 1.2fr; } }
.d4t-accordion {
  border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--card); padding-inline: 1.25rem;
}
.d4t-accordion__item { border-bottom: 1px solid var(--border); }
.d4t-accordion__item:last-child { border-bottom: 0; }
.d4t-accordion__trigger {
  display: flex; width: 100%; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding-block: 1rem; text-align: start;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy);
}
[dir="rtl"] .d4t-accordion__trigger { font-family: var(--font-arabic); }
.d4t-accordion__trigger .ico { flex-shrink: 0; margin-top: 0.25rem; transition: transform 0.25s; color: var(--brand); }
.d4t-accordion__item.is-open .d4t-accordion__trigger .ico { transform: rotate(180deg); }
.d4t-accordion__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.d4t-accordion__item.is-open .d4t-accordion__panel { grid-template-rows: 1fr; }
.d4t-accordion__panel > div { overflow: hidden; }
.d4t-accordion__panel p { padding-bottom: 1rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ===================================================== FINAL CTA ====== */

.d4t-finalcta { position: relative; overflow: hidden; background: var(--gradient-navy); color: var(--navy-foreground); }
.d4t-finalcta__inner { position: relative; padding-block: 5rem; text-align: center; }
.d4t-finalcta__icon { margin-inline: auto; }
.d4t-finalcta h2 { margin-top: 1.5rem; color: var(--navy-foreground); }
.d4t-finalcta__lede { margin-inline: auto; margin-top: 1rem; max-width: 36rem; color: rgba(251, 252, 254, 0.7); }
.d4t-finalcta__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.d4t-finalcta__note {
  margin-top: 1.5rem; display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; font-size: 0.75rem; color: rgba(251, 252, 254, 0.5);
}
.d4t-finalcta__note .ico { color: var(--bright); }

/* =================================================== PAGE HEADER ====== */

.d4t-pagehead { position: relative; overflow: hidden; background: var(--gradient-navy); color: var(--navy-foreground); }
.d4t-pagehead__inner { position: relative; padding-block: 4rem; }
@media (min-width: 1024px) { .d4t-pagehead__inner { padding-block: 5rem; } }
.d4t-pagehead h1 { margin-top: 0.75rem; max-width: 48rem; color: var(--navy-foreground); }
.d4t-pagehead__lede { margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; color: rgba(251, 252, 254, 0.75); }

.d4t-breadcrumbs { position: relative; font-size: 0.8125rem; color: rgba(251, 252, 254, 0.6); margin-bottom: 1rem; }
.d4t-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.d4t-breadcrumbs a:hover { color: var(--bright); }
.d4t-breadcrumbs .sep { opacity: 0.5; }

/* ==================================================== ANSWER BLOCK ==== */
/* AEO: question -> direct answer -> deeper explanation */

.d4t-answer {
  border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--surface); padding: 1.5rem 1.75rem;
  border-inline-start: 3px solid var(--brand);
}
.d4t-answer + .d4t-answer { margin-top: 1rem; }
.d4t-answer__q { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--navy); }
.d4t-answer__short { margin-top: 0.5rem; font-weight: 600; color: var(--foreground); }
.d4t-answer__long { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--muted-foreground); }

/* ======================================================= PROSE ======== */

.d4t-prose { max-width: 68ch; }
.d4t-prose > * + * { margin-top: 1.25rem; }
.d4t-prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2.5rem; }
.d4t-prose h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin-top: 2rem; }
.d4t-prose p, .d4t-prose li { color: var(--muted-foreground); }
.d4t-prose ul { list-style: disc; padding-inline-start: 1.25rem; }
.d4t-prose ol { list-style: decimal; padding-inline-start: 1.25rem; }
.d4t-prose li + li { margin-top: 0.5rem; }
.d4t-prose a { color: var(--brand); font-weight: 500; }
.d4t-prose a:hover { text-decoration: underline; }
.d4t-prose strong { color: var(--navy); }
.d4t-prose blockquote {
  border-inline-start: 3px solid var(--brand); padding-inline-start: 1.25rem;
  font-style: italic; color: var(--foreground);
}

/* ===================================================== UTILITIES ====== */

.d4t-grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .d4t-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.d4t-grid-3-sm { display: grid; gap: 1rem; }
@media (min-width: 640px) { .d4t-grid-3-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.d4t-stack { display: flex; flex-direction: column; gap: 1rem; }
.d4t-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }

.d4t-tile {
  border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--surface); padding: 1.5rem;
}
.d4t-tile__title { font-family: var(--font-display); font-weight: 700; color: var(--navy); }

/* ========================================================= 404 ======== */

.d4t-404 {
  display: flex; min-height: 60vh; align-items: center;
  justify-content: center; padding-inline: 1rem; text-align: center;
}
.d4t-404__code { font-size: 4.5rem; font-weight: 800; color: var(--navy); font-family: var(--font-display); }

/* ======================================================== ARTICLE ===== */

.d4t-article__meta {
  margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.5rem; font-size: 0.8125rem; color: rgba(251, 252, 254, 0.7);
}
.d4t-article__author { display: inline-flex; align-items: center; gap: 0.625rem; }
.d4t-article__avatar { border-radius: 999px; }
.d4t-article__author .name { display: block; font-weight: 600; color: var(--navy-foreground); }
.d4t-article__author .role { display: block; font-size: 0.75rem; opacity: 0.75; }
.d4t-article__dates { display: flex; flex-wrap: wrap; gap: 1rem; }

.d4t-article__hero { margin-top: -3rem; position: relative; z-index: 1; }
.d4t-article__hero-img {
  width: 100%; border-radius: var(--radius-2xl);
  border: 1px solid var(--border); box-shadow: var(--shadow-lift);
  aspect-ratio: 16 / 8; object-fit: cover;
}

.d4t-article__layout { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) {
  .d4t-article__layout { grid-template-columns: 17rem 1fr; }
}
.d4t-article__side { position: static; }
@media (min-width: 1024px) {
  .d4t-article__side { position: sticky; top: 6.5rem; }
}

.d4t-toc {
  border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--surface); padding: 1.25rem 1.5rem;
}
.d4t-toc__title {
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--brand);
}
[dir="rtl"] .d4t-toc__title { letter-spacing: 0; text-transform: none; }
.d4t-toc ol { margin-top: 0.875rem; display: flex; flex-direction: column; gap: 0.5rem; counter-reset: toc; }
.d4t-toc a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s; }
.d4t-toc a:hover { color: var(--brand); }
.d4t-toc .lvl-3 { padding-inline-start: 0.875rem; font-size: 0.8125rem; }

.d4t-toc-cta {
  margin-top: 1.25rem; border-radius: var(--radius-2xl);
  border: 1px solid var(--border); background: var(--card); padding: 1.5rem;
}

.d4t-prose h2, .d4t-prose h3 { scroll-margin-top: 7rem; }
.d4t-anchor { opacity: 0; margin-inline-start: 0.5rem; color: var(--brand); font-weight: 400; transition: opacity 0.2s; }
h2:hover .d4t-anchor, h3:hover .d4t-anchor { opacity: 1; }

/* ---------------------------------------------------- post cards ----- */

.d4t-postcard {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: var(--card); transition: transform 0.3s, box-shadow 0.3s;
}
.d4t-postcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.d4t-postcard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.d4t-postcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.d4t-postcard:hover .d4t-postcard__media img { transform: scale(1.05); }
.d4t-postcard__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.d4t-postcard__cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brand); }
[dir="rtl"] .d4t-postcard__cat { letter-spacing: 0; text-transform: none; }
.d4t-postcard__title { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--navy); }
.d4t-postcard__excerpt { margin-top: 0.625rem; font-size: 0.875rem; color: var(--muted-foreground); }
.d4t-postcard__foot { margin-top: auto; padding-top: 1.25rem; font-size: 0.75rem; color: var(--muted-foreground); }

/* -------------------------------------------------- pagination ------- */

.d4t .pagination, .d4t .nav-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.d4t .page-numbers {
  display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem;
  padding-inline: 0.75rem; border-radius: var(--radius-md);
  border: 1px solid var(--border); font-size: 0.875rem; font-weight: 600; color: var(--navy);
}
.d4t .page-numbers.current { background: var(--gradient-brand); color: var(--brand-foreground); border-color: transparent; }
.d4t .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.d4t .page-numbers.current:hover { color: var(--brand-foreground); }

/* ================================================== FORMINATOR SKIN === */
/* Bring Forminator's default form into the design system rather than
   letting a second visual language onto the page. */

.d4t-formwrap { max-width: 48rem; margin-inline: auto; }

.d4t-formwrap .forminator-ui.forminator-custom-form {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) { .d4t-formwrap .forminator-ui.forminator-custom-form { padding: 2.25rem; } }

.d4t-formwrap .forminator-label {
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--navy) !important;
}
[dir="rtl"] .d4t-formwrap .forminator-label { font-family: var(--font-arabic) !important; }

.d4t-formwrap .forminator-input,
.d4t-formwrap .forminator-textarea,
.d4t-formwrap .forminator-select,
.d4t-formwrap .forminator-select2 .select2-selection {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--input) !important;
  background: var(--background) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.9375rem !important;
  color: var(--foreground) !important;
  height: auto !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.d4t-formwrap .forminator-input:focus,
.d4t-formwrap .forminator-textarea:focus,
.d4t-formwrap .forminator-select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(61, 122, 184, 0.18) !important;
  outline: none !important;
}

.d4t-formwrap .forminator-button-submit {
  border-radius: var(--radius) !important;
  background: var(--gradient-brand) !important;
  color: var(--brand-foreground) !important;
  padding: 0.875rem 1.75rem !important;
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border: 0 !important;
  box-shadow: var(--shadow-soft) !important;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
[dir="rtl"] .d4t-formwrap .forminator-button-submit { font-family: var(--font-arabic) !important; }
.d4t-formwrap .forminator-button-submit:hover { transform: translateY(-2px); }

.d4t-formwrap .forminator-error-message { color: var(--destructive) !important; font-size: 0.8125rem !important; }
.d4t-formwrap .forminator-response-message.forminator-success {
  border-radius: var(--radius-md) !important;
  border-inline-start: 3px solid var(--success) !important;
  background: rgba(44, 157, 104, 0.08) !important;
  color: var(--navy) !important;
}
.d4t-formwrap .forminator-response-message.forminator-error {
  border-radius: var(--radius-md) !important;
  border-inline-start: 3px solid var(--destructive) !important;
  background: rgba(214, 69, 59, 0.06) !important;
}

@media (prefers-reduced-motion: reduce) {
  .d4t-formwrap .forminator-button-submit:hover { transform: none !important; }
}

/* ============================================ DARK-SECTION HEADINGS === */
/*
 * The base rule `body.d4t h1..h4 { color: var(--navy) }` outranks a plain
 * `.d4t-hero h1` selector on specificity, which rendered navy text on a navy
 * background. These selectors carry the same weight as the base rule and
 * restore the light heading colour everywhere the section is dark.
 */
body.d4t .d4t-hero h1,
body.d4t .d4t-hero h2,
body.d4t .d4t-pagehead h1,
body.d4t .d4t-pagehead h2,
body.d4t .d4t-journey h2,
body.d4t .d4t-journey h3,
body.d4t .d4t-trust h2,
body.d4t .d4t-trust h3,
body.d4t .d4t-corporate h2,
body.d4t .d4t-corporate h3,
body.d4t .d4t-finalcta h2,
body.d4t .surface-navy h1,
body.d4t .surface-navy h2,
body.d4t .surface-navy h3,
body.d4t .bg-deep h2,
body.d4t .bg-deep h3,
body.d4t .d4t-sechead.on-dark h2,
body.d4t .d4t-sechead.on-dark h3 {
  color: var(--navy-foreground);
}

/* Logo lockup must stay on one line at every width. */
.d4t-logo__name,
.d4t-logo__sub { white-space: nowrap; }
.d4t-logo { flex-shrink: 0; }

/* ============================================ HEADER FIT (1280–1440) === */
/*
 * The full nav appears at 1280px, where logo + ten links + the quote CTA
 * overflowed the viewport by ~50px. The row now shrinks instead of pushing:
 * tighter link padding and a slightly smaller CTA between 1280 and 1440,
 * returning to the intended spacing above that.
 */
.d4t-navbar__inner { min-width: 0; }
.d4t-nav { flex-shrink: 1; min-width: 0; }
.d4t-header__actions { flex-shrink: 0; }

/*
 * The page container is capped at 80rem (1280px) at every viewport, so the
 * header always has the same 1280px to fit the logo, ten navigation links and
 * the quote CTA. At the roomier default spacing that needs ~1281px, so the
 * last link sat under the CTA. Tighter link padding applies wherever the
 * desktop nav is shown, not just in a narrow band.
 */
@media (min-width: 1280px) {
  .d4t-nav { gap: 0; }
  .d4t-nav__link { padding-inline: 0.5rem; font-size: 0.8125rem; }
  .d4t-header__cta { padding: 0.625rem 0.9rem; font-size: 0.8125rem; }
  .d4t-navbar__inner { gap: 0.75rem; }
}

/* The marquee is a decorative overflow: keep it from extending the document. */
.d4t-marquee { max-width: 100%; }

/* ================================================ DRAWER CONTAINMENT === */
/*
 * The closed drawer sits at the right edge translated 100% off-screen, which
 * extended the document to ~705px on a 375px viewport. Clipping it inside its
 * own fixed, full-viewport root contains the slide entirely: the animation is
 * unchanged, but the panel can no longer widen the page.
 * `body { overflow-x: hidden }` alone was not enough — several mobile browsers
 * still allow the pan.
 */
.d4t-drawer-root { overflow: hidden; }

/*
 * Horizontal clipping is handled by `body.d4t { overflow-x: hidden }` in
 * design-system.css and nothing more.
 *
 * `overflow-x: clip` was tried here and had to be reverted: CSS propagates a
 * non-visible overflow from body up to the viewport, and a clipped viewport
 * breaks IntersectionObserver's implicit root in Chromium — which silently
 * left every scroll-reveal section invisible forever. `hidden` propagates too
 * but keeps the viewport a scroll container, so the observer still fires.
 *
 * The actual overflow sources are fixed at source: the drawer is contained
 * above, and the Elementor flex wrappers are constrained below.
 */

/* ============================================ ELEMENTOR CONTAINMENT === */
/*
 * Elementor wraps every widget in flex containers. A flex item defaults to
 * `min-width: auto`, so a wide grid child (the FAQ accordion, the services
 * bento) could push its column past the viewport instead of wrapping. The
 * page did not visibly scroll because the body clips, which meant the real
 * layout overflow was hidden rather than fixed. These rules restore the
 * normal shrink behaviour so sections wrap as designed.
 */
.d4t .elementor,
.d4t .elementor-section,
.d4t .elementor-container,
.d4t .elementor-column,
.d4t .elementor-widget-wrap,
.d4t .elementor-widget,
.d4t .elementor-element,
.d4t .e-con,
.d4t .e-con-inner {
  min-width: 0;
  max-width: 100%;
}

.d4t section { max-width: 100%; }
.d4t .container-page { max-width: min(80rem, 100%); }

/* Grid children must be allowed to shrink below their content width. */
.d4t-faq-wrap > *,
.d4t-why > *,
.d4t-journey__grid > *,
.d4t-corporate__grid > *,
.d4t-article__layout > *,
.d4t-reviews > * { min-width: 0; }

/* Long unbroken strings (emails, URLs, reference numbers) must not stretch a card. */
.d4t-prose,
.d4t-answer,
.d4t-tile,
.d4t-postcard__body,
.d4t-review-feature blockquote,
.d4t-review-small blockquote { overflow-wrap: anywhere; }

/* ============================================== PROSE LIST MARKERS === */
/*
 * `body.d4t ul { list-style: none }` in the reset outranks a plain
 * `.d4t-prose ul` selector, so editorial lists lost their bullets. Matching the
 * reset's specificity restores them inside prose only.
 */
body.d4t .d4t-prose ul { list-style: disc; padding-inline-start: 1.25rem; }
body.d4t .d4t-prose ol { list-style: decimal; padding-inline-start: 1.25rem; }
body.d4t .d4t-prose ul ul { list-style: circle; }
body.d4t .d4t-prose li { display: list-item; }
body.d4t .d4t-prose li::marker { color: var(--brand); }

/* ================================================= SERVICE / OFFICE == */

.d4t-detail { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .d4t-detail { grid-template-columns: 1fr 20rem; } }
.d4t-detail > * { min-width: 0; }

.d4t-detail__aside { position: static; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) { .d4t-detail__aside { position: sticky; top: 6.5rem; } }

.d4t-detail__card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
}
.d4t-detail__card h2,
.d4t-detail__card h3 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
}
[dir="rtl"] .d4t-detail__card h2,
[dir="rtl"] .d4t-detail__card h3 { letter-spacing: 0; text-transform: none; }
.d4t-detail__list { margin-top: 0.875rem; display: flex; flex-direction: column; gap: 0.625rem; }
.d4t-detail__list li { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.d4t-detail__list .d4t-ico { margin-top: 0.2rem; color: var(--brand); }

.d4t-steps { counter-reset: d4t-step; margin-top: 1.5rem; display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .d4t-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.d4t-steps li {
  counter-increment: d4t-step;
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.25rem 1.25rem 1.25rem 3.25rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}
[dir="rtl"] .d4t-steps li { padding: 1.25rem 3.25rem 1.25rem 1.25rem; }
.d4t-steps li::before {
  content: counter(d4t-step);
  position: absolute;
  inset-inline-start: 1.25rem;
  top: 1.1rem;
  display: grid;
  place-items: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: var(--brand-foreground);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ================================================= NAV DROPDOWNS ====== */
/*
 * Lighter sibling of the services mega menu, used by Languages, Industries,
 * Corporate and Accreditations. Same panel chrome and motion so the header
 * reads as one system, but a narrower content grid.
 */

.d4t-dropdown {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  display: none;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  box-shadow: var(--shadow-lift);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  z-index: 40;
}
@media (min-width: 1280px) { .d4t-dropdown { display: block; } }
.d4t-dropdown.is-open { visibility: visible; opacity: 1; transform: none; }

.d4t-dropdown__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 2.5rem;
  padding-block: 2.25rem;
  align-items: start;
}

.d4t-dropdown__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 2rem;
}
.d4t-dropdown__col { min-width: 0; }

.d4t-dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-top: 0.75rem;
}
.d4t-dropdown__col .eyebrow + .d4t-dropdown__list { margin-top: 1rem; }

.d4t-dropdown__link {
  display: block;
  border-radius: var(--radius-md);
  padding: 0.4rem 0.6rem;
  margin-inline-start: -0.6rem;
  transition: background-color 0.18s, color 0.18s;
}
.d4t-dropdown__link:hover,
.d4t-dropdown__link:focus-visible {
  background: var(--surface);
  color: var(--brand);
}

.d4t-dropdown__label {
  display: block;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: color 0.18s;
}
.d4t-dropdown__link:hover .d4t-dropdown__label { color: var(--brand); }

/* The secondary line carries the native language name, or the organisation's
   relationship label — so the menu never over-claims. */
.d4t-dropdown__note {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.7rem;
  color: var(--muted-foreground);
}

/* Arabic and other non-Latin native names keep their own direction. */
.d4t-dropdown__note { unicode-bidi: isolate; }

@media (max-width: 1439.98px) {
  .d4t-dropdown__grid { grid-template-columns: minmax(0, 1fr) 16rem; gap: 1.75rem; }
}

/* The drawer's link back to the section landing page sits above its children. */
.d4t-drawer__acc-link.is-parent {
  font-weight: 600;
  color: var(--brand);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

/* ------------------------------------------------- deep-link anchors -- */
/*
 * Cards linked from a dropdown must not land under the sticky header.
 */
.d4t-marquee__item[id],
.d4t-industry[id],
.d4t-org[id],
.d4t-location[id] { scroll-margin-top: 7.5rem; }

/* Briefly mark whichever card the visitor was sent to. */
.d4t-marquee__item:target,
.d4t-industry:target,
.d4t-org:target {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(61, 122, 184, 0.15);
}
