/* ==========================================================================
   Corporate Bilingual — Design polish layer (v2)
   Loaded after style.css. Refines typography, spacing, buttons, hovers,
   the partners section, contact page and motion hooks used by main.js.
   ========================================================================== */

:root {
  --primary-color: #2d3393;
  --primary-dark: #1a1f6e;
  --primary-mid: #3d44a8;
  --primary-soft: #eef0ff;
  --accent-color: #7f86e8;
  --heading-color: var(--primary-color);
  --primary-gradient: linear-gradient(120deg, #2d3393 0%, #4b51b0 55%, #2d3393 100%);
  --brand-gradient-deep: linear-gradient(135deg, #141861 0%, #2d3393 52%, #3d44a8 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-brand-sm: 0 6px 18px rgba(45, 51, 147, 0.1);
  --shadow-brand-md: 0 16px 40px rgba(45, 51, 147, 0.16);
  --shadow-brand-lg: 0 26px 60px rgba(26, 31, 110, 0.24);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.25s;
  --dur: 0.45s;
  --dur-slow: 0.7s;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scrolling */
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--primary-color);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(45, 51, 147, 0.35);
  outline-offset: 3px;
}

/* ==========================================================================
   1. Headings → brand blue
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  line-height: 1.35;
}

.section-title h2,
.about-text h2,
.service-card h3,
.services-brief .service-card h3,
.excel-item h3,
.card-content h3,
.member-info h3,
.contact-card h3,
.process-header h2,
.legal-content h1,
.legal-content h2,
.box-header h3,
.col-title,
.goal-content h3,
.about-vvm-section .vvm-card h3,
.vvm-value-item h4,
.author-info h4,
.knowledge-center .section-title h2 {
  color: var(--heading-color);
}

/* Headings that sit on dark / brand backgrounds stay white for contrast */
.hero h1,
.page-header h1,
.cta-box h2,
.why-us-section h2,
.why-us-section h3,
.testimonials-section-dark .section-title h2,
.testimonials-section-dark h4,
.achievements h2,
.achievements h3,
.section-title--light h2,
.process-stats-banner h3,
.vision-mission h3,
.clients-section--brand .section-title h2 {
  color: #ffffff;
}

/* ==========================================================================
   2. Section rhythm & titles
   ========================================================================== */

.section-padding {
  padding: clamp(72px, 9vw, 112px) 0;
}

.section-title {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-title h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  padding-bottom: 18px;
  margin-bottom: 0;
}

.section-title h2::after {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.8s var(--ease-out) 0.25s;
}

.section-title.is-visible h2::after {
  width: 64px;
}

.section-title p {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.section-title--light h2::after {
  background: #ffffff;
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.eyebrow {
  letter-spacing: 0.02em;
}

/* ==========================================================================
   3. Buttons — centered text, consistent spacing, premium hovers
   ========================================================================== */

.btn,
.wpcf7-submit,
.contact-form input[type="submit"],
.careers-form button[type="submit"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 32px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center !important;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    background-position var(--dur-slow) var(--ease-out),
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease;
}

.btn > *,
.btn i {
  position: relative;
}

/*
 * Decorative layers sit at z-index -1 inside the button's own stacking
 * context (isolation: isolate): above the button background, always BELOW
 * the label — including plain text labels that are not wrapped in an element.
 */

/* Light sweep */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary,
.wpcf7-submit,
.contact-form input[type="submit"],
.careers-form button[type="submit"] {
  background: var(--primary-gradient);
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: #ffffff;
  border: 0;
  box-shadow: 0 8px 22px rgba(45, 51, 147, 0.28);
}

.btn-primary:hover,
.wpcf7-submit:hover,
.contact-form input[type="submit"]:hover,
.careers-form button[type="submit"]:hover {
  background: var(--primary-gradient);
  background-size: 220% 100%;
  background-position: 100% 50%;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(45, 51, 147, 0.36);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur) var(--ease-out);
}

html[dir="ltr"] .btn-outline::before {
  transform-origin: left center;
}

.btn-outline:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(45, 51, 147, 0.25);
}

.btn-outline:hover::before {
  transform: scaleX(1);
}

/* Outline buttons on dark hero */
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.hero .btn-outline::before {
  background: #ffffff;
}

.hero .btn-outline:hover {
  color: var(--primary-color);
  background: transparent;
}

.hero-btns {
  flex-wrap: wrap;
  gap: 16px;
}

/* CTA box button (white on blue) */
.cta-box .btn-primary {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.cta-box .btn-primary:hover {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

.cta-box .btn-primary::after {
  background: linear-gradient(110deg, transparent 20%, rgba(45, 51, 147, 0.12) 45%, transparent 70%);
}

/* "Why us" pill button: keep look, align content */
.why-us-btn {
  justify-content: center;
  line-height: 1.2;
}

/* Arrows inside buttons follow the reading direction
   (icon is fa-arrow-left = forward in Arabic; mirrored for English) */
.why-btn-arrow,
.read-more-link i {
  transition: transform var(--dur) var(--ease-out);
}

html[dir="rtl"] .why-btn-arrow,
body.rtl .why-btn-arrow {
  transform: none;
}

html[dir="rtl"] .why-us-btn:hover .why-btn-arrow,
body.rtl .why-us-btn:hover .why-btn-arrow {
  transform: translateX(-5px);
}

html[dir="ltr"] .why-btn-arrow,
body.ltr .why-btn-arrow {
  transform: scaleX(-1);
}

html[dir="ltr"] .why-us-btn:hover .why-btn-arrow,
body.ltr .why-us-btn:hover .why-btn-arrow {
  transform: scaleX(-1) translateX(-5px);
}

/* Contact Form 7 */
.wpcf7-form .wpcf7-submit {
  width: 100%;
  margin-top: 6px;
}

.wpcf7-spinner {
  margin: 10px auto 0;
  display: block;
}

.en-contact-form,
.en-contact-form * {
  direction: ltr;
  text-align: left;
}

.en-contact-form .wpcf7-submit {
  text-align: center !important;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
  transition: box-shadow var(--dur) var(--ease-out), background-color var(--dur) ease;
}

.site-header nav {
  transition: height var(--dur) var(--ease-out);
}

.site-header .site-logo {
  transition: height var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.site-header .logo-link:hover .site-logo {
  transform: scale(1.04);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(20, 24, 97, 0.08);
}

@media (min-width: 769px) {
  .site-header.is-scrolled nav {
    height: 68px;
  }

  .site-header.is-scrolled .site-logo {
    height: 42px;
  }
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header {
  will-change: transform;
  transition: transform 0.45s var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) ease;
}

.nav-links li a {
  color: var(--secondary-color);
  transition: color var(--dur-fast) ease;
}

.nav-links li a::after {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width var(--dur) var(--ease-out);
}

.menu-toggle {
  background: transparent;
  border: 0;
  padding: 6px 8px;
  line-height: 1;
  border-radius: 10px;
  color: var(--primary-color);
  transition: background-color var(--dur-fast) ease;
}

.menu-toggle:hover {
  background: var(--primary-soft);
}

.lang-chevron {
  font-size: 0.75em;
  transition: transform var(--dur) var(--ease-out);
}

.header-lang-dropdown:hover .lang-chevron,
.header-lang-dropdown.is-open .lang-chevron {
  transform: rotate(180deg);
}

.header-lang-dropdown.is-open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .nav-links {
    border-radius: 0 0 18px 18px;
  }

  .nav-links.active {
    animation: navDrop 0.4s var(--ease-out);
  }
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   4b. Side menu (off-canvas)
   ========================================================================== */

/* Hamburger → animated lines */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(45, 51, 147, 0.12);
  border-radius: 14px;
  background: var(--primary-soft);
  cursor: pointer;
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.4s var(--ease-out);
}

.menu-toggle__bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.menu-toggle__bars span {
  position: absolute;
  inset-inline-start: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-color);
  transition: width 0.45s var(--ease-out), background-color 0.3s ease;
}

.menu-toggle__bars span:nth-child(1) { top: 0; width: 100%; }
.menu-toggle__bars span:nth-child(2) { top: 7px; width: 68%; }
.menu-toggle__bars span:nth-child(3) { top: 14px; width: 42%; }

.menu-toggle:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.menu-toggle:hover .menu-toggle__bars span {
  width: 100%;
  background: #ffffff;
}

.menu-toggle:active {
  transform: scale(0.94);
}

/* Use the side menu instead of the horizontal nav on tablet & mobile */
@media (max-width: 1024px) {
  .site-header .nav-links,
  .site-header .nav-links.active {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
  }
}

body.has-desktop-side-menu .menu-toggle {
  display: inline-flex;
}

/* Overlay */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(14, 17, 66, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}

body.side-menu-open .side-menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* Panel */
.side-menu {
  --sm-pad: 28px;
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  z-index: 1200;
  width: min(420px, 90vw);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text-color);
  background: #ffffff;
  border-start-start-radius: 0;
  box-shadow: 0 0 0 1px rgba(45, 51, 147, 0.06), 0 30px 80px rgba(14, 17, 66, 0.28);
  visibility: hidden;
  transform: translateX(105%);
  transition: transform 0.75s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.75s;
  outline: none;
}

html[dir="ltr"] .side-menu {
  transform: translateX(-105%);
}

body.side-menu-open .side-menu {
  transform: translateX(0);
  visibility: visible;
}

body.side-menu-open {
  overflow: hidden;
}

body.admin-bar .side-menu {
  top: 32px;
  height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
  body.admin-bar .side-menu {
    top: 46px;
    height: calc(100dvh - 46px);
  }
}

/* Brand line on the panel edge */
.side-menu::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
  z-index: 2;
}

/* Decorative soft glows */
.side-menu__decor span {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.side-menu__decor span:nth-child(1) {
  width: 320px;
  height: 320px;
  top: -180px;
  inset-inline-end: -150px;
  background: radial-gradient(circle, rgba(127, 134, 232, 0.16) 0%, rgba(127, 134, 232, 0) 70%);
}

.side-menu__decor span:nth-child(2) {
  width: 260px;
  height: 260px;
  top: 38%;
  inset-inline-start: -170px;
  background: radial-gradient(circle, rgba(45, 51, 147, 0.07) 0%, rgba(45, 51, 147, 0) 70%);
}

/* Head: full colour logo + close */
.side-menu__head {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px var(--sm-pad) 22px;
  border-bottom: 1px solid #eef0f8;
}

.side-menu__logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

body.side-menu-open .side-menu__logo {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}

.side-menu__logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.side-menu__logo span {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--primary-color);
}

.side-menu__close {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e4e7f5;
  border-radius: 50%;
  background: #f6f7fd;
  cursor: pointer;
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.55s var(--ease-out);
}

.side-menu__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-color);
  transition: background-color 0.3s ease;
}

.side-menu__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.side-menu__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.side-menu__close:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: rotate(90deg);
}

.side-menu__close:hover span {
  background: #ffffff;
}

/* Nav — custom scrollbar */
.side-menu__nav {
  /* reset the theme's global header "nav" rule (flex row, 80px height) */
  display: block;
  height: auto;
  justify-content: normal;
  align-items: normal;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 14px calc(var(--sm-pad) - 12px) 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 51, 147, 0.35) transparent;
}

.side-menu__nav::-webkit-scrollbar {
  width: 6px;
}

.side-menu__nav::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
}

.side-menu__nav::-webkit-scrollbar-thumb {
  background: rgba(45, 51, 147, 0.28);
  border-radius: 10px;
}

.side-menu__nav::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.side-menu__links,
.side-menu__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-menu__links {
  counter-reset: sm-item;
}

.side-menu__links > li {
  position: relative;
  counter-increment: sm-item;
  border-bottom: 1px solid #f0f2f9;
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: 0s;
}

.side-menu__links > li:last-child {
  border-bottom: 0;
}

html[dir="ltr"] .side-menu__links > li {
  transform: translateX(-36px);
}

body.side-menu-open .side-menu__links > li {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(0.3s + var(--i, 0) * 0.055s);
}

.side-menu__links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px;
  border-radius: 14px;
  color: var(--secondary-color);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  transition: background-color 0.35s ease, color 0.3s ease;
}

/* Index number 01, 02 ... */
.side-menu__links > li > a::before {
  content: counter(sm-item, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 26px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #a3a8cc;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

/* Trailing arrow */
.side-menu__links > li > a::after {
  content: "\f060"; /* fa-arrow-left */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-inline-start: auto;
  font-size: 0.85rem;
  color: var(--primary-color);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}

html[dir="ltr"] .side-menu__links > li > a::after {
  content: "\f061"; /* fa-arrow-right */
  transform: translateX(-10px);
}

.side-menu__links a:hover,
.side-menu__links a:focus-visible {
  background: #f4f5fd;
  color: var(--primary-color);
}

.side-menu__links > li > a:hover::before {
  color: var(--primary-color);
}

.side-menu__links > li > a:hover::after,
.side-menu__links > li > a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

/* Current page */
.side-menu__links > .current-menu-item > a,
.side-menu__links > .current_page_item > a,
.side-menu__links > .current-menu-ancestor > a,
.side-menu__links > .current_page_ancestor > a {
  background: var(--primary-soft);
  color: var(--primary-color);
}

.side-menu__links > .current-menu-item > a::before,
.side-menu__links > .current_page_item > a::before,
.side-menu__links > .current-menu-ancestor > a::before {
  color: var(--primary-color);
}

.side-menu__links > .current-menu-item > a::after,
.side-menu__links > .current_page_item > a::after,
html[dir="ltr"] .side-menu__links > .current-menu-item > a::after,
html[dir="ltr"] .side-menu__links > .current_page_item > a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 1;
  transform: none;
  box-shadow: 0 0 0 4px rgba(45, 51, 147, 0.15);
}

/* Items with sub-menus: the toggle replaces the arrow */
.side-menu__links > li.has-submenu-toggle > a::after {
  display: none;
}

/* Sub-menus (accordion) */
.side-menu__links .sub-menu,
.side-menu__links .children {
  overflow: hidden;
  height: 0;
  transition: height 0.45s var(--ease-out);
}

.side-menu__links .sub-menu > li:first-child,
.side-menu__links .children > li:first-child {
  margin-top: 2px;
}

.side-menu__links .sub-menu > li:last-child,
.side-menu__links .children > li:last-child {
  margin-bottom: 10px;
}

.side-menu__links .sub-menu a,
.side-menu__links .children a {
  min-height: 44px;
  padding: 8px 12px;
  padding-inline-start: 52px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-muted);
}

.side-menu__links .sub-menu a::before,
.side-menu__links .children a::before {
  content: "";
  position: absolute;
  inset-inline-start: 30px;
  top: 50%;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #c7cbe6;
  transition: width 0.35s var(--ease-out), background-color 0.3s;
}

.side-menu__links .sub-menu a:hover::before,
.side-menu__links .children a:hover::before,
.side-menu__links .sub-menu .current-menu-item > a::before {
  width: 14px;
  background: var(--primary-color);
}

.side-menu__links .sub-menu .current-menu-item > a,
.side-menu__links .children .current_page_item > a {
  color: var(--primary-color);
}

.side-submenu-toggle {
  position: absolute;
  top: 8px;
  inset-inline-end: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e6e8f4;
  border-radius: 12px;
  background: #ffffff;
  color: var(--primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.side-submenu-toggle i {
  font-size: 0.8rem;
  transition: transform 0.45s var(--ease-out);
}

.side-submenu-toggle:hover,
li.is-expanded > .side-submenu-toggle {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

li.is-expanded > .side-submenu-toggle i {
  transform: rotate(180deg);
}

/* Footer of the panel */
.side-menu__footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 16px var(--sm-pad) 22px;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  border-top: 1px solid #eef0f8;
  background: #fbfbfe;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

body.side-menu-open .side-menu__footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.side-menu__card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 18px;
  background: var(--brand-gradient-deep);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(26, 31, 110, 0.25);
}

.side-menu__card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -90px;
  inset-inline-end: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.side-menu__text {
  position: relative;
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-menu__cta {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.side-menu__cta:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.side-menu__cta::after {
  background: linear-gradient(110deg, transparent 20%, rgba(45, 51, 147, 0.12) 45%, transparent 70%);
}

.side-menu__cta i {
  transition: transform 0.4s var(--ease-out);
}

.side-menu__cta:hover i {
  transform: translateX(-5px);
}

html[dir="ltr"] .side-menu__cta:hover i {
  transform: translateX(5px);
}

.side-menu__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.side-menu__langs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e6e8f4;
}

.side-menu__langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: background-color 0.3s, color 0.3s;
}

.side-menu__langs a:hover {
  color: var(--primary-color);
}

.side-menu__langs a.is-active {
  background: var(--primary-color);
  color: #ffffff;
}

.side-menu__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.side-menu__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e6e8f4;
  background: #ffffff;
  color: var(--primary-color);
  font-size: 0.95rem;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}

.side-menu__social a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.side-menu__social a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

.side-menu__social a:hover img {
  filter: brightness(0) invert(1);
}

/* Small phones */
@media (max-width: 480px) {
  .side-menu {
    --sm-pad: 20px;
    width: min(400px, 92vw);
  }

  .side-menu__head {
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .side-menu__logo img {
    height: 40px;
    max-width: 150px;
  }

  .side-menu__links a {
    min-height: 52px;
    font-size: 1.02rem;
  }

  .side-menu__card {
    padding: 16px;
  }
}

/* Short screens (landscape phones): keep the links scrollable */
@media (max-height: 560px) {
  .side-menu__text {
    display: none;
  }

  .side-menu__card {
    padding: 12px;
  }

  .side-menu__head {
    padding-top: 14px;
    padding-bottom: 12px;
  }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 1101;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: right center;
  pointer-events: none;
}

html[dir="ltr"] .scroll-progress {
  transform-origin: left center;
}

body.admin-bar .scroll-progress {
  top: 32px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--primary-color);
  color: #fff;
  box-shadow: var(--shadow-brand-md);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur), background-color var(--dur-fast);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px) scale(1.05);
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hero-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: 100%;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.hero .swiper-slide {
  overflow: hidden;
}

.hero-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  transition: width var(--dur) var(--ease-out), opacity var(--dur);
}

.hero-swiper .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 6px;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  transition: background-color var(--dur-fast), transform var(--dur) var(--ease-out);
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero-swiper .swiper-button-next,
  .hero-swiper .swiper-button-prev {
    display: none;
  }
}

/* ==========================================================================
   6. Page header (inner pages)
   ========================================================================== */

.page-header {
  position: relative;
  overflow: hidden;
  background: var(--brand-gradient-deep);
  color: #ffffff;
  padding-top: 150px;
  padding-bottom: 70px;
  text-align: center;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0;
}

.page-header__decor span {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  background: radial-gradient(circle, rgba(127, 134, 232, 0.45) 0%, rgba(127, 134, 232, 0) 70%);
  pointer-events: none;
}

.page-header__decor span:nth-child(1) {
  width: 420px;
  height: 420px;
  top: -180px;
  inset-inline-start: -120px;
}

.page-header__decor span:nth-child(2) {
  width: 320px;
  height: 320px;
  bottom: -200px;
  inset-inline-end: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
}

/* ==========================================================================
   7. Cards — consistent, smooth hovers
   ========================================================================== */

.service-card,
.excel-item,
.blog-post-card,
.team-member,
.contact-card,
.partner-card,
.corporate-box,
.about-vvm-section .vvm-card,
.vvm-value-item,
.goal-item {
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) ease,
    background-color var(--dur) ease;
  will-change: transform;
}

.service-card,
.excel-item,
.blog-post-card,
.team-member,
.partner-card {
  border: 1px solid rgba(45, 51, 147, 0.06);
}

.service-card:hover,
.excel-item:hover,
.blog-post-card:hover,
.team-member:hover,
.partner-card:hover,
.corporate-box:hover,
.goal-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-brand-md);
  border-color: rgba(45, 51, 147, 0.16);
}

.service-card h3,
.excel-item h3,
.card-content h3 {
  transition: color var(--dur-fast) ease;
}

.blog-post-card:hover .card-content h3 {
  color: var(--primary-mid);
}

.card-image-wrapper {
  overflow: hidden;
}

.card-image-wrapper img,
.about-image img,
.member-image img {
  transition: transform 1s var(--ease-out);
}

.blog-post-card:hover .card-image-wrapper img,
.team-member:hover .member-image img {
  transform: scale(1.07);
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-more-link:hover i {
  transform: translateX(-5px);
}

html[dir="ltr"] .read-more-link i {
  transform: scaleX(-1);
}

html[dir="ltr"] .read-more-link:hover i {
  transform: scaleX(-1) translateX(-5px);
}

.excel-icon {
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) ease, color var(--dur) ease;
}

.excel-item:hover .excel-icon {
  transform: translateY(-3px) rotate(-6deg);
}

.member-social a {
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast);
}

.member-social a:hover {
  transform: translateY(-3px);
}

/* Services grid — incomplete last row is centered */
.services-grid {
  --cols: 3;
  --gap: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--gap);
}

.services-grid > * {
  flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
}

.services-brief .services-grid {
  --gap: 24px;
}

@media (max-width: 991px) {
  .services-grid {
    --cols: 2;
    --gap: 22px;
  }
}

@media (max-width: 640px) {
  .services-grid {
    --cols: 1;
  }
}

/* Knowledge / news grid (previously inline) */
.knowledge-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 40px;
}

.knowledge-grid-wrapper--single {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin-inline: auto;
}

/* ==========================================================================
   8. Partners / Clients (home) — brand background, full-colour, larger logos
   ========================================================================== */

.clients-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.clients-section--brand {
  background: var(--brand-gradient-deep);
  color: #ffffff;
}

/* One soft light falloff from the top edge — no pattern */
.clients-section--brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(154, 161, 244, 0.28) 0%, rgba(154, 161, 244, 0) 60%),
    linear-gradient(180deg, rgba(20, 24, 97, 0) 60%, rgba(20, 24, 97, 0.35) 100%);
}

.clients-section--light {
  background: linear-gradient(180deg, #f3f4ff 0%, #e8eafb 100%);
}

.clients-bg-decor span {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.clients-bg-decor span:nth-child(1) {
  width: 520px;
  height: 520px;
  top: -260px;
  inset-inline-end: -160px;
  background: radial-gradient(circle, rgba(127, 134, 232, 0.4) 0%, rgba(127, 134, 232, 0) 70%);
}

.clients-bg-decor span:nth-child(2) {
  width: 420px;
  height: 420px;
  bottom: -220px;
  inset-inline-start: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
}

.clients-section--light .clients-bg-decor span:nth-child(2) {
  background: radial-gradient(circle, rgba(45, 51, 147, 0.12) 0%, rgba(45, 51, 147, 0) 70%);
}

.clients-section--brand .section-title h2::after {
  background: linear-gradient(90deg, #ffffff, var(--accent-color));
}

.clients-section--brand .section-title p {
  color: rgba(255, 255, 255, 0.82);
}

.clients-swiper-wrapper {
  position: relative;
  margin-top: 24px;
  padding: 0 68px;
}

.clients-swiper {
  overflow: hidden;
  padding: 16px 8px 22px;
  margin: -16px -8px -22px;
}

.clients-swiper .swiper-slide {
  height: auto;
}

.client-logo-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 190px;
  margin: 0;
  padding: 26px 28px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(8, 12, 70, 0.22);
  overflow: hidden;
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}

.clients-section--light .client-logo-item {
  border-color: rgba(45, 51, 147, 0.08);
  box-shadow: 0 12px 30px rgba(45, 51, 147, 0.1);
}

/* soft brand glow under the logo on hover */
.client-logo-item::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.55s var(--ease-out);
}

.client-logo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(8, 12, 70, 0.3);
}

.client-logo-item:hover::before {
  transform: scaleX(1);
}

.client-logo-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Full colour logos (no grayscale) */
.client-logo-item img,
.client-logo-item:hover img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.client-logo-item img {
  transition: transform 0.6s var(--ease-out);
}

.client-logo-item:hover img {
  transform: scale(1.07);
}

.client-name-fallback {
  color: var(--primary-color);
  font-size: 1.15rem;
}

/* Navigation arrows — outside the cards */
.clients-swiper-wrapper .clients-swiper-next,
.clients-swiper-wrapper .clients-swiper-prev {
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin-top: 0 !important;
  width: 48px !important;
  height: 48px !important;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-color) !important;
  box-shadow: 0 10px 24px rgba(8, 12, 70, 0.22);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur) var(--ease-out);
}

.clients-swiper-wrapper .clients-swiper-next:hover,
.clients-swiper-wrapper .clients-swiper-prev:hover {
  background: var(--accent-color);
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.clients-section--light .clients-swiper-wrapper .clients-swiper-next:hover,
.clients-section--light .clients-swiper-wrapper .clients-swiper-prev:hover {
  background: var(--primary-color);
}

.clients-swiper-wrapper .clients-swiper-next::after,
.clients-swiper-wrapper .clients-swiper-prev::after {
  font-size: 15px !important;
  font-weight: 800;
}

/* Pagination below the slider */
.clients-swiper-wrapper .clients-swiper-pagination {
  position: relative !important;
  inset: auto !important;
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.clients-swiper-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 !important;
  opacity: 0.45;
  transition: width var(--dur) var(--ease-out), opacity var(--dur);
}

.clients-section--brand .clients-swiper-pagination .swiper-pagination-bullet,
.clients-section--brand .clients-swiper-pagination .swiper-pagination-bullet-active {
  background: #ffffff;
}

.clients-swiper-pagination .swiper-pagination-bullet-active {
  width: 26px;
  border-radius: 6px;
  opacity: 1;
}

.clients-placeholder {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
}

.clients-section--brand .clients-placeholder {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .clients-swiper-wrapper {
    padding: 0 8px;
  }

  .clients-swiper-wrapper .clients-swiper-next,
  .clients-swiper-wrapper .clients-swiper-prev {
    display: none;
  }

  .client-logo-item {
    height: 160px;
    padding: 20px;
  }

  .client-logo-item img {
    max-height: 100px;
  }
}

/* Partners page grid */
.partners-page {
  padding: clamp(60px, 8vw, 100px) 0;
}

.partners-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.partner-card {
  display: block;
  padding: 30px 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-brand-sm);
  overflow: hidden;
  position: relative;
}

.partner-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.55s var(--ease-out);
}

.partner-card:hover::before {
  transform: scaleX(1);
}

.partner-logo-bg {
  min-height: 150px;
  justify-content: center;
}

.partner-logo-img {
  width: auto;
  max-width: 100%;
  height: 110px;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}

.partner-card:hover .partner-logo-img {
  transform: scale(1.07);
}

.partner-logo-placeholder {
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.35;
}

.partner-logo-bg span {
  color: var(--primary-color);
  font-weight: 700;
}

/* ==========================================================================
   9. Contact page
   ========================================================================== */

.contact-page {
  padding-top: clamp(60px, 8vw, 90px);
}

.contact-grid--single {
  grid-template-columns: 1fr;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px;
  text-align: start;
  background: #ffffff;
  border: 1px solid rgba(45, 51, 147, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-brand-sm);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-brand-md);
  border-color: rgba(45, 51, 147, 0.18);
}

.contact-card__icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-color);
  transition: background-color var(--dur) ease, color var(--dur) ease, transform var(--dur) var(--ease-out);
}

.contact-card__icon i {
  font-size: 1.35rem;
  margin: 0;
  color: inherit;
}

.contact-card__icon .contact-icon-img {
  width: 28px;
  height: 28px;
  margin: 0;
}

.contact-card:hover .contact-card__icon {
  background: var(--primary-color);
  color: #ffffff;
  transform: rotate(-6deg);
}

.contact-card:hover .contact-card__icon .contact-icon-img {
  filter: brightness(0) invert(1);
}

.contact-card__body {
  min-width: 0;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.contact-link {
  color: var(--primary-color);
  font-weight: 700;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 100% 100%;
  transition: background-size var(--dur) var(--ease-out), color var(--dur-fast);
  unicode-bidi: plaintext;
}

html[dir="ltr"] .contact-link {
  background-position: 0% 100%;
}

.contact-link:hover {
  color: var(--primary-mid);
  background-size: 100% 2px;
}

.contact-card .contact-link__ext {
  font-size: 0.75em;
  margin: 0;
  margin-inline-start: 6px;
  color: inherit;
  opacity: 0.7;
}

.contact-map-embed {
  position: relative;
}

.map-open-btn {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 18px;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.95rem;
  z-index: 2;
}

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

/* ==========================================================================
   10. Footer
   ========================================================================== */

.footer-link-tag,
.footer-contact-icon-link,
.footer-bottom-links a {
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur);
}

.footer-link-tag:hover {
  transform: translateY(-2px);
}

.footer-contact-icon-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand-sm);
}

/* ==========================================================================
   11. Motion helpers (used by main.js)
   ========================================================================== */

/* GSAP takes over these entrance animations when it is running */
.motion-ready .hero-content h1,
.motion-ready .hero-content p,
.motion-ready .hero-content .hero-btns,
.motion-ready .why-card {
  animation: none;
}

/* Long button labels may wrap on small screens */
@media (max-width: 575px) {
  .btn {
    white-space: normal;
  }

  .hero-btns .btn {
    flex: 1 1 auto;
  }
}

.img-reveal {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   12. Custom scrollbar (whole site)
   ========================================================================== */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #eceefa;
  scrollbar-gutter: stable;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #eceefa;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), var(--primary-mid));
  border: 2px solid #eceefa;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

::-webkit-scrollbar-corner {
  background: #eceefa;
}

/* ==========================================================================
   13. Responsive refinements (mobile · tablet · medium screens)
   ========================================================================== */

.container {
  width: 100%;
  padding-inline: clamp(16px, 4vw, 24px);
}

section {
  padding-block: clamp(56px, 8vw, 80px);
}

img,
video,
iframe {
  max-width: 100%;
}

/* Header: single, consistent spacing between links (was gap + margin) */
.nav-links,
header nav ul.menu,
header nav .menu > ul,
header nav > ul {
  gap: clamp(18px, 2.2vw, 32px);
}

.nav-links > li + li,
header nav ul.menu > li + li,
header nav .menu > ul > li + li,
header nav > ul > li + li {
  margin-inline-start: 0;
}

.site-header nav {
  gap: 20px;
}

.site-header .logo {
  flex: 0 0 auto;
}

.nav-cta {
  flex: 0 0 auto;
  gap: 10px;
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .nav-links li a {
    font-size: 0.95rem;
  }

  .site-logo {
    max-width: 150px;
  }
}

@media (max-width: 1024px) {
  .site-header nav {
    height: 72px;
  }

  .site-logo {
    height: 44px;
  }
}

@media (max-width: 480px) {
  .site-header nav {
    height: 66px;
    gap: 12px;
  }

  .site-logo {
    height: 38px;
    max-width: 140px;
  }

  .lang-dropdown-toggle {
    padding: 7px 12px;
    font-size: 0.85rem;
  }
}

/* Hero: stable height on mobile browsers */
.hero,
.hero-slider-section .hero-swiper,
.hero-slider-section .swiper-slide {
  height: 100vh;
  height: 100svh;
  min-height: 560px;
}

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.8;
}

@media (max-width: 992px) {
  .hero-content {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-slider-section .swiper-slide {
    padding-top: 66px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-btns .btn {
    width: 100%;
  }
}

/* Headings scale smoothly */
.about-text h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.4;
}

.page-header {
  padding-top: clamp(118px, 14vw, 150px);
  padding-bottom: clamp(44px, 6vw, 70px);
}

/* About */
@media (max-width: 992px) {
  .about-grid {
    gap: 40px;
  }
}

/* Services cards padding */
@media (max-width: 640px) {
  .service-card,
  .services-brief .service-card {
    padding: 24px 20px;
  }
}

/* Achievements (had no layout) */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  text-align: center;
}

.achievement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(18px, 3vw, 28px) 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color var(--dur) ease, transform var(--dur) var(--ease-out);
}

.achievement-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
}

.achievement-item i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.achievement-item .achievement-icon-img {
  margin: 0;
  filter: brightness(0) invert(1);
}

.achievement-item h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
}

.achievement-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

@media (max-width: 900px) {
  .achievements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Why us */
@media (min-width: 641px) and (max-width: 1024px) {
  .why-us-grid {
    gap: 20px;
  }

  .why-card {
    padding: 28px 22px;
  }
}

.why-us-cta-strip {
  gap: 18px;
}

@media (max-width: 640px) {
  .why-us-header {
    margin-bottom: 40px;
  }

  .why-us-cta-strip .why-us-btn {
    width: 100%;
  }
}

/* Excellence / testimonials / team: never wider than the screen */
.excellence-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.testimonial-card {
  padding: clamp(24px, 4vw, 40px);
}

.team-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

/* News cards: compact on phones */
@media (max-width: 480px) {
  .knowledge-grid-wrapper {
    gap: 32px;
  }

  .blog-post-card {
    gap: 14px;
  }

  .card-image-wrapper {
    width: 96px;
    height: 96px;
  }

  .card-content h3 {
    font-size: 1rem;
  }
}

/* CTA */
.cta-section {
  padding-block: clamp(40px, 6vw, 60px);
}

.cta-box {
  padding: clamp(32px, 6vw, 60px) clamp(20px, 5vw, 60px);
  border-radius: clamp(16px, 2.5vw, 24px);
}

.cta-box p {
  max-width: 620px;
  margin-inline: auto;
}

/* Partners page: 2 logos per row on phones */
@media (max-width: 575px) {
  .partners-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .partner-card {
    padding: 18px 12px;
    border-radius: 16px;
  }

  .partner-logo-bg {
    min-height: 110px;
    gap: 10px;
  }

  .partner-logo-img {
    height: 72px;
  }

  .partner-logo-bg span {
    font-size: 0.9rem;
  }
}

/* Partners slider on tablets */
@media (min-width: 769px) and (max-width: 1100px) {
  .clients-swiper-wrapper {
    padding: 0 60px;
  }

  .client-logo-item {
    height: 170px;
  }
}

/* Contact */
.contact-grid {
  gap: clamp(24px, 4vw, 50px);
  margin-bottom: clamp(40px, 6vw, 80px);
}

.contact-form-container {
  padding: clamp(22px, 4vw, 40px);
  border-radius: 20px;
}

@media (min-width: 641px) and (max-width: 992px) {
  .contact-info-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-map-embed {
  height: clamp(280px, 40vw, 400px);
}

.map-section {
  padding: 0 0 clamp(48px, 7vw, 80px);
}

@media (max-width: 480px) {
  .contact-card {
    padding: 18px;
    gap: 14px;
  }

  .contact-card__icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .map-open-btn {
    inset-inline: 12px;
    bottom: 12px;
  }
}

/* Footer */
footer {
  padding: clamp(44px, 6vw, 60px) 0 20px;
}

.footer-content {
  gap: clamp(28px, 4vw, 40px);
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-info,
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-tags-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
  }

  .footer-contact-icons {
    justify-content: center;
  }
}

/* Back-to-top above the iOS home bar */
.back-to-top {
  bottom: max(20px, env(safe-area-inset-bottom));
}

@media (max-width: 480px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    inset-inline-end: 16px;
  }
}

/* Numbers banner: keep 2 columns on phones, odd last item spans the row */
@media (max-width: 575px) {
  .process-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px 10px;
  }

  .process-stat-item {
    min-height: 112px;
  }

  .process-stat-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .process-stat-value {
    font-size: clamp(2.2rem, 11vw, 2.8rem);
    margin-bottom: 10px;
  }
}

@media (max-width: 340px) {
  .process-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Leave room for the back-to-top button under the copyright line */
@media (max-width: 600px) {
  .footer-bottom {
    padding-bottom: 64px;
  }

  .footer-links h4 {
    margin-bottom: 14px;
  }

  .footer-tags-container {
    margin-top: 0;
  }
}

/* ==========================================================================
   14. Header alignment
   ========================================================================== */

/* Logo: a flex box with no inline line-box, so the image sits on the exact
   vertical centre of the header like every other item */
.site-header .logo {
  display: flex;
  align-items: center;
  align-self: center;
  line-height: 1;
}

.site-header .logo-link {
  display: flex;
  align-items: center;
}

.site-header .site-logo {
  display: block;
}

.site-header .nav-cta,
.site-header .menu-toggle,
.site-header .header-lang-dropdown {
  align-self: center;
}

/* Tablet & mobile: logo on one side, [language + menu] grouped on the other */
@media (max-width: 1024px) {
  .site-header nav {
    justify-content: flex-start;
    gap: 10px;
  }

  .site-header .nav-cta {
    margin-inline-start: auto;
    gap: 0;
  }

  .site-header .header-lang-dropdown {
    margin: 0;
  }

  /* language pill matches the 46px menu button */
  .site-header .lang-dropdown-toggle {
    height: 46px;
    padding: 0 14px;
    border-radius: 14px;
  }
}

/* ==========================================================================
   15. News section — ruled ledger list with one lead story
   ========================================================================== */

.news-section {
  --news-ink: #1f2466;
  --news-rule: #dfe2f3;
  --news-muted: #6b7090;
  background: #f6f7fc;
}

.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.news-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  margin-inline: auto;
}

.news-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--primary-color);
}

.news-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--news-ink);
}

.news-col__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 0.85rem;
}

.news-col__all {
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-color);
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease-out), color 0.25s ease;
}

.news-col__all:hover {
  background-size: 0% 1px;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  border-bottom: 1px solid var(--news-rule);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item__link {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  color: inherit;
}

.news-item__media {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #e7e9f7;
  color: var(--primary-color);
}

.news-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.news-item__media--empty i {
  font-size: 1.6rem;
  opacity: 0.45;
}

.news-item__link:hover .news-item__media img {
  transform: scale(1.05);
}

.news-item__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.news-item__date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--news-muted);
}

.news-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--news-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.news-item__link:hover .news-item__title {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.news-item__excerpt {
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--news-muted);
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lead story: image on top, larger headline */
.news-item--lead .news-item__link {
  flex-direction: column;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 24px;
}

.news-item--lead .news-item__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

.news-item--lead .news-item__title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.45;
}

/* Rows: small square thumbnail when there is one */
.news-item--row .news-item__media {
  width: 96px;
  height: 96px;
}

/* Videos: 16:9 thumbnail with a play marker */
.news-item--video .news-item__link {
  align-items: center;
}

.news-item--video .news-item__media {
  width: 168px;
  aspect-ratio: 16 / 10;
  background: var(--brand-gradient-deep);
  color: #ffffff;
}

.news-item__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(20, 24, 97, 0) 30%, rgba(20, 24, 97, 0.45) 100%);
}

.news-item__play i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-inline-start: 3px; /* optical centre of the triangle */
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-color);
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(14, 17, 66, 0.3);
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}

html[dir="rtl"] .news-item__play i {
  padding-inline-start: 0;
  padding-inline-end: 3px;
}

.news-item__link:hover .news-item__play i {
  transform: scale(1.1);
  background: var(--primary-color);
  color: #ffffff;
}

.news-empty {
  margin: 0;
  padding: 28px 0;
  color: var(--news-muted);
  border-bottom: 1px solid var(--news-rule);
}

@media (max-width: 991px) {
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 480px) {
  .news-item__link {
    gap: 14px;
    padding: 16px 0;
  }

  .news-item--row .news-item__media {
    width: 80px;
    height: 80px;
  }

  .news-item--video .news-item__media {
    width: 120px;
  }

  .news-item__play i {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .news-item__title {
    font-size: 1rem;
  }
}

/* ==========================================================================
   16. Footer — graphite
   ========================================================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #1c1e24;
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(56px, 7vw, 84px) 0 0;
}

/* thin brand line along the top edge */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--primary-color);
}

/* soft light from the top corner */
.site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  top: -420px;
  inset-inline-start: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
}

.site-footer nav {
  display: block;
  height: auto;
}

.site-footer .footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  margin-bottom: clamp(36px, 5vw, 56px);
  text-align: start;
}

.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
}

.site-footer .footer-logo--plate {
  padding: 10px 16px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.site-footer .footer-site-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.site-footer .footer-logo__text {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
}

.site-footer .footer-desc {
  margin: 0;
  max-width: 42ch;
  font-size: 0.98rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .footer-links h4 {
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.site-footer .footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer .footer-link-tag {
  display: inline-flex;
  padding: 6px 0;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s ease, transform 0.4s var(--ease-out);
}

.site-footer .footer-link-tag:hover {
  color: #ffffff;
  padding-inline-start: 0;
  transform: translateX(-6px);
}

html[dir="ltr"] .site-footer .footer-link-tag:hover {
  transform: translateX(6px);
}

.site-footer .footer-contact-icons {
  gap: 10px;
  margin: 0;
}

.site-footer .footer-contact-icon-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease-out);
}

.site-footer .footer-contact-icon-link i {
  color: #ffffff;
}

.site-footer .footer-contact-icon-link .contact-icon-img {
  filter: brightness(0) invert(1);
}

.site-footer .footer-contact-icon-link:hover {
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: none;
}

.site-footer .footer-contact-icon-link:hover i {
  color: var(--primary-color);
}

.site-footer .footer-contact-icon-link:hover .contact-icon-img {
  filter: none;
}

.site-footer .footer-cta {
  margin-top: 22px;
  min-height: 46px;
  padding: 11px 24px;
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.site-footer .footer-cta:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.site-footer .footer-cta::after {
  background: linear-gradient(110deg, transparent 20%, rgba(45, 51, 147, 0.12) 45%, transparent 70%);
}

.site-footer .footer-bottom {
  margin: 0;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
}

.site-footer .footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.site-footer .footer-bottom-links a {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.site-footer .footer-bottom-links a:hover {
  background: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
}

/* Tablet */
@media (max-width: 991px) {
  .site-footer .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer .footer-info {
    grid-column: 1 / -1;
  }
}

/* Phone */
@media (max-width: 600px) {
  .site-footer .footer-content {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: 34px;
  }

  .site-footer .footer-info,
  .site-footer .footer-links {
    align-items: center;
  }

  .site-footer .footer-desc {
    margin-inline: auto;
  }

  .site-footer .footer-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 20px;
  }

  .site-footer .footer-link-tag:hover {
    transform: none;
  }

  .site-footer .footer-contact-icons {
    justify-content: center;
  }

  .site-footer .footer-bottom {
    justify-content: center;
    text-align: center;
    padding-bottom: 72px; /* clear of the back-to-top button */
  }
}

.site-footer .footer-menu li {
  margin: 0;
}

/* Single news post */
.single-post__cover {
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  background: #e7e9f7;
}

.single-post__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post__date {
  display: block;
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.single-post .legal-content h3 {
  margin: 28px 0 12px;
}

.single-post .legal-content ul,
.single-post .legal-content ol {
  margin: 0 0 18px;
  padding-inline-start: 1.4rem;
  list-style: revert;
  line-height: 2;
}
