/* ==========================================================================
   Soft-Symbols Corporate Website — Main Stylesheet
   Stage 1: Design system + all page/component styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  --gold: #C9A84C;
  --gold-dark: #A8893A;
  --blue: #0A2463;

  /* Brand colors */
  --color-primary: var(--blue);
  --color-accent: var(--gold);
  --color-bg: #FFFFFF;
  --color-surface: #F5F7FA;
  --color-text: #1A1A2E;
  --color-text-muted: #555577;
  --color-border: #E0E4EF;
  --color-white: #FFFFFF;
  --color-primary-light: #0d2d7a;
  --color-accent-hover: var(--gold-dark);
  --color-success: #16a34a;
  --color-error: #dc2626;

  /* Typography */
  --font-heading: 'Inter', 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-arabic: 'Cairo', 'Inter', sans-serif;

  --fs-h1: clamp(2rem, 4vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.375rem);
  --fs-h3: clamp(1.125rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1320px;
  --nav-height: 100px;
  --nav-height-scrolled: 80px;
  --topbar-height: 40px;
  --logo-height: 80px;
  --logo-height-scrolled: 65px;
  --logo-height-footer: 70px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(10, 36, 99, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 36, 99, 0.1);
  --shadow-lg: 0 16px 48px rgba(10, 36, 99, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --transition-fast: 0.2s ease;
}

/* Arabic / RTL overrides */
html[dir="rtl"] {
  --font-heading: var(--font-arabic);
  --font-body: var(--font-arabic);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--space-2xl);
}

.section--surface {
  background: var(--color-surface);
}

.section--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.section--primary h2,
.section--primary h3 {
  color: var(--color-white);
}

/* Section heading with gold underline */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-heading h2 {
  display: inline-block;
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

html[dir="rtl"] .section-heading h2::after {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.section-heading--light h2 {
  color: var(--color-white);
}

.section-heading p {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-inline: auto;
}

.section-heading--light p {
  color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  min-height: 44px;
  font-weight: 600;
  font-size: var(--fs-body);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast), background var(--transition-fast),
    color var(--transition-fast), box-shadow var(--transition-fast);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.btn--full {
  width: 100%;
}

/* Gold check list */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.12);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 50%;
}

html[dir="rtl"] .check-list li {
  flex-direction: row-reverse;
}

/* --------------------------------------------------------------------------
   Top Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background: var(--color-primary);
  color: var(--color-white);
  height: var(--topbar-height);
  font-size: var(--fs-small);
  z-index: 1001;
  position: relative;
}

.top-bar__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.top-bar__left,
.top-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar__item a {
  color: var(--color-white);
}

.top-bar__item a:hover {
  color: var(--color-accent);
}

.top-bar__icon {
  opacity: 0.9;
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .top-bar {
    height: auto;
    padding-block: 0.5rem;
  }

  .top-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar {
  height: var(--nav-height);
  transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}

.navbar--transparent {
  background: transparent;
}

.navbar.scrolled,
.site-header.scrolled .navbar {
  height: var(--nav-height-scrolled);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: transparent;
  line-height: 0;
}

.navbar__logo img,
.navbar__logo-img,
#navbar-logo {
  height: 150px;
  width: 150;
  display: block;
  background: transparent;
  mix-blend-mode: luminosity;
  transition: height var(--transition), mix-blend-mode var(--transition);
}

/* When scrolled (white navbar) - remove blend mode so logo shows normally */
.navbar.scrolled .navbar__logo img,
.navbar.scrolled #navbar-logo {
  height: 65px;
  mix-blend-mode: normal;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.navbar__link {
  font-weight: 500;
  color: var(--color-white);
  position: relative;
  padding-block: 0.25rem;
}

.navbar.scrolled .navbar__link,
.navbar--inner .navbar__link {
  color: var(--color-text);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
}

html[dir="rtl"] .navbar__link::after {
  left: auto;
  right: 0;
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__link.active {
  color: var(--color-accent);
}

.navbar.scrolled .navbar__link.active {
  color: var(--color-accent);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Language switcher pill */
.lang-switcher {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--fs-small);
  transition: all var(--transition-fast);
}

.navbar.scrolled .lang-switcher,
.navbar--inner .lang-switcher {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lang-switcher:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 1px;
}

.navbar.scrolled .navbar__toggle span,
.navbar--inner .navbar__toggle span {
  background: var(--color-primary);
}

.navbar__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--color-white);
  z-index: 1002;
  padding: var(--space-xl) var(--space-md);
  transform: translateX(100%);
  transition: transform var(--transition);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

html[dir="rtl"] .mobile-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer > a img {
  height: var(--logo-height-scrolled);
  width: auto;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.mobile-drawer__link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.mobile-drawer__link.active {
  color: var(--color-accent);
}

  .navbar__toggle {
    display: flex;
  }


/* Inner pages: navbar always solid */
.navbar--inner {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.navbar--inner .navbar__link {
  color: var(--color-text);
}

.navbar--inner .lang-switcher {
  border-color: var(--color-primary);
  color: var(--color-primary);
}


.navbar--inner .navbar__logo img,
.navbar--inner #navbar-logo {
  mix-blend-mode: normal;
}
/* --------------------------------------------------------------------------
   Homepage Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(-1 * (var(--topbar-height) + var(--nav-height)));
  padding-top: calc(var(--topbar-height) + var(--nav-height));
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
}

.hero__pattern svg {
  width: 100%;
  height: 100%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: var(--space-xl) var(--space-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
}

.hero__label {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.hero__title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: var(--fs-h1);
}

.hero__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  max-width: 540px;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__content {
  opacity: 0;
  animation: heroFadeIn 1s ease forwards 0.2s;
}

.hero__stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  opacity: 0;
  animation: heroFadeIn 1s ease forwards 0.5s;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glass stat cards */
.stat-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: transform var(--transition), background var(--transition);
}

.stat-card:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.18);
}

html[dir="rtl"] .stat-card:hover {
  transform: translateX(-8px);
}

.stat-card__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  min-width: 4rem;
}

.stat-card__number .suffix {
  font-size: 1.5rem;
}

.stat-card__label {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Service Cards (Homepage grid)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 36, 99, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-size: 1.75rem;
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--space-md);
}

.service-card__link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--fs-small);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.service-card__link:hover {
  gap: 0.5rem;
}

html[dir="rtl"] .service-card__link .arrow {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Why Choose Us (split section)
   -------------------------------------------------------------------------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.split-section h2 {
  margin-bottom: var(--space-lg);
}

.image-frame {
  position: relative;
  max-width: 480px;
  margin-inline: auto;
}

.image-frame img {
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.image-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  z-index: 0;
}

html[dir="rtl"] .image-frame::before {
  left: -20px;
  right: 20px;
}

/* --------------------------------------------------------------------------
   Stats Counter Bar
   -------------------------------------------------------------------------- */
.stats-bar {
  padding-block: var(--space-xl);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.stats-bar__item {
  padding: var(--space-md);
  position: relative;
}

.stats-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

html[dir="rtl"] .stats-bar__item:not(:last-child)::after {
  right: auto;
  left: 0;
}

.stats-bar__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
}

.stats-bar__number .accent {
  color: var(--color-accent);
}

.stats-bar__label {
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   Client Logo Carousel
   -------------------------------------------------------------------------- */
.clients-section {
  overflow: hidden;
}

.carousel-outer {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding-inline: var(--space-md);
}

.carousel-btn {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--gold);
  color: var(--blue);
}

.carousel-track-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 860px;
  width: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.carousel-track-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

html[dir="rtl"] .carousel-track-wrapper {
  mask-image: linear-gradient(
    to left,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.carousel-logo-slot {
  width: 220px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
}

/* Remove the old boost hack — all logos use the same slot now */
.carousel-logo-slot--boost {
  width: 220px;
  height: 110px;
}

.carousel-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: grayscale(30%);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
  display: block;
}

.carousel-logo-img--boost {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.carousel-logo-img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.carousel-track {
  display: flex;
  gap: 32px;
  animation: scrollLeft 30s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

html[dir="rtl"] .carousel-track {
  animation-name: scrollRight;
}

@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.clients-section__note {
  text-align: center;
  margin-top: var(--space-lg);
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   Project Cards
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-img {
  transform: scale(1.05);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  top: auto;
  height: 55%;
  background: linear-gradient(to top, rgba(10, 36, 99, 0.95), transparent);
  color: var(--color-white);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.project-card:hover .project-card__overlay {
  transform: translateY(0);
}

.project-card__overlay h3 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}

.project-card__overlay h3.long-title {
  font-size: 0.875rem;
  line-height: 1.4;
}

.project-card__overlay p {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.project-card__overlay a {
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   CTA Strip
   -------------------------------------------------------------------------- */
.cta-strip {
  background: var(--color-accent);
  padding-block: var(--space-xl);
  text-align: center;
}

.cta-strip h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.9);
  padding-top: var(--space-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.footer__brand img {
  height: var(--logo-height-footer);
  width: auto;
  margin-bottom: var(--space-md);
}

.footer__tagline {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-md);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: background var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-accent);
}

.footer__heading {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-small);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__contact li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.75);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: var(--space-md);
  text-align: center;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  min-height: 400px;
  display: flex;
  align-items: center;
  padding-block: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb__sep {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-overview__image img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.vmo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.vmo-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-accent);
}

.vmo-card__icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.vmo-card h3 {
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
}

.vmo-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.value-item {
  text-align: center;
  padding: var(--space-md);
}

.value-item__icon {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 50%;
  font-size: 1.75rem;
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.value-item h4 {
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.value-item p {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Services Page (zebra sections)
   -------------------------------------------------------------------------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding-block: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block--reverse .service-block__image {
  order: 2;
}

.service-block--reverse .service-block__content {
  order: 1;
}

html[dir="rtl"] .service-block--reverse .service-block__image {
  order: 1;
}

html[dir="rtl"] .service-block--reverse .service-block__content {
  order: 2;
}

.service-block__image img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--color-surface);
}

.service-block h2 {
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.service-block h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.service-block p,
.service-block li {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

.service-block .check-list {
  margin-top: var(--space-md);
}

.service-block .check-list li {
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   Training Page
   -------------------------------------------------------------------------- */
.training-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-sm);
}

.training-tab {
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.training-tab:hover {
  color: var(--color-primary);
}

.training-tab.active {
  background: var(--gold);
  color: var(--color-white);
  border-bottom-color: var(--gold-dark);
}

.training-tab.active:hover {
  color: var(--color-white);
  background: var(--gold-dark);
}

.training-panel {
  display: none;
}

.training-panel.active {
  display: block;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.course-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.course-card__thumb {
  aspect-ratio: 16/10;
  background: var(--color-surface);
  overflow: hidden;
}

.course-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card__body {
  padding: var(--space-md);
}

.course-card h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-xs);
}

.course-card p {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.course-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.course-card__actions .btn {
  padding: 0.65rem 1rem;
  font-size: var(--fs-small);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
}

.contact-card__label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-card__value {
  font-weight: 500;
  color: var(--color-text);
}

.contact-card__value a:hover {
  color: var(--color-accent);
}

.contact-map {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/10;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* Contact form */
.contact-form {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: var(--fs-small);
}

.form-group label .required {
  color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--color-error);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  display: none;
  color: var(--color-error);
  font-size: var(--fs-small);
  margin-top: 0.35rem;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  padding: var(--space-md);
  background: rgba(22, 163, 74, 0.1);
  color: var(--color-success);
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-align: center;
}

.form-success.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1 1 calc(50% - var(--space-md));
  }

  .split-section,
  .about-overview,
  .service-block,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-block--reverse .service-block__image,
  .service-block--reverse .service-block__content {
    order: unset;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vmo-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar__item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 767px) {
  :root {
    --space-2xl: 4rem;
    --logo-height: 72px;
    --logo-height-scrolled: 64px;
    --logo-height-footer: 72px;
    --nav-height: 96px;
    --nav-height-scrolled: 84px;
  }

  .hero__title,
  .hero__text {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .stat-card__number {
    font-size: 2rem;
    min-width: 3rem;
  }

  .stat-card {
    padding: var(--space-sm) var(--space-md);
  }

  .top-bar__item {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .navbar__toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .lang-switcher {
    min-height: 44px;
  }

  .project-card-img {
    height: 220px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr;
  }

  .stats-bar__item::after {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-bottom: var(--space-xl);
  }

  .hero__stats {
    flex-direction: column;
  }

  .stat-card {
    flex: 1 1 100%;
  }

  .page-hero {
    min-height: 280px;
  }

  .training-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .training-tab {
    text-align: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .carousel-track {
    animation: none;
  }
}

@media (max-width: 1023px) {
  .navbar__nav {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar-brand-text {
    display: none;
  }
}

@media (max-width: 767px) {
  .carousel-outer {
    gap: 8px;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  .carousel-track-wrapper {
    max-width: calc(100vw - 100px);
  }
}