/* =========================================================
   POM ACCOUNTING — DESIGN SYSTEM
   ========================================================= */

:root {
  /* Brand palette — derived from logo */
  --navy-900: #071A3D;
  --navy-800: #0B2454;
  --navy-700: #0F2F6B;
  --blue-600: #1450A8;
  --teal-500: #0DA9C4;
  --teal-400: #2BC4DE;
  --orange-500: #F86D0E;
  --orange-600: #E2570A;

  /* Neutrals */
  --ink: #10182B;
  --slate-700: #3B4458;
  --slate-500: #6B7589;
  --slate-300: #C7CDD9;
  --slate-100: #EEF1F5;
  --paper: #FBFAF8;
  --white: #FFFFFF;

  /* Gradients */
  --grad-navy: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 100%);
  --grad-accent: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
  --grad-teal: linear-gradient(135deg, var(--blue-600) 0%, var(--teal-500) 100%);

  /* Type */
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(11, 36, 84, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 36, 84, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 36, 84, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--slate-700); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--slate-700);
}

ul { padding-left: 0; }

/* Visible focus state for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 120px 0; }

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-lg { padding: 76px 0; }
}

.section-tight-top { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--orange-500);
}

.eyebrow.on-dark { color: var(--teal-400); }
.eyebrow.on-dark::before { background: var(--teal-400); }

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.align-left {
  margin: 0 0 48px;
  text-align: left;
}

.text-center { text-align: center; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(248, 109, 14, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(248, 109, 14, 0.36);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--slate-300);
}
.btn-outline-navy:hover {
  border-color: var(--navy-700);
  background: var(--slate-100);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-block { width: 100%; }
.btn-lg { padding: 17px 38px; font-size: 1rem; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(224, 240, 247, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 0 rgba(11, 36, 84, 0.04), 0 8px 32px rgba(11, 36, 84, 0.04);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(216, 236, 245, 0.97);
  border-bottom: 1px solid rgba(11, 36, 84, 0.06);
  box-shadow: 0 6px 24px rgba(11, 36, 84, 0.08);
}

.site-header .nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 84px;
  gap: 16px;
  max-width: 100%;
  width: 100%;
  padding: 0 10px;
}

.main-nav-wrap {
  display: flex;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img { height: 44px; width: auto; }

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-text span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.22em; color: var(--teal-500); text-transform: uppercase; margin-top: 2px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > li {
  position: relative;
  list-style: none;
}
.main-nav > li::marker { content: ""; }
.lang-switch-item { display: none; }

.main-nav > li > a,
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
  border-radius: 999px;
  background: rgba(11, 36, 84, 0.045);
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.main-nav > li > a:hover,
.main-nav > li > a.active,
.nav-dropdown-toggle:hover {
  color: var(--orange-600);
  background: none;
}

.nav-dropdown-toggle svg {
  width: 14px; height: 14px;
  transition: transform 0.25s var(--ease);
}

.has-dropdown:hover .nav-dropdown-toggle svg,
.has-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 620px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-100);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  pointer-events: none;
}

.has-dropdown:hover .mega-menu,
.has-dropdown.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s;
  min-width: 0;
}
.mega-menu a:hover { background: var(--slate-100); }

.mega-menu a > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.mega-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--grad-teal);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.mega-icon svg { width: 19px; height: 19px; }

.mega-menu a strong {
  display: block;
  font-size: 0.93rem;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 2px;
  overflow-wrap: break-word;
}
.mega-menu a small {
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.4;
  overflow-wrap: break-word;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--slate-300);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--navy-800);
  transition: border-color 0.2s, color 0.2s;
}
.lang-switch:hover { border-color: var(--teal-500); color: var(--teal-500); }

.footer-lang-switch {
  margin-top: 20px;
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  width: fit-content;
}
.footer-lang-switch:hover { border-color: var(--teal-400); color: var(--teal-400); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1300px) {
  .main-nav { display: none; }
  .main-nav-wrap { position: static; }
  .lang-switch { display: none; }
  .nav-toggle { display: flex; }
  .site-header .nav-wrap { height: 76px; gap: 8px; }
  .brand img { height: 36px; }
  .brand-text span { display: none; }
  .brand-text { font-size: 1.02rem; white-space: nowrap; }

  html:not([dir="rtl"]) .nav-actions .btn-sm {
    padding: 8px 12px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    bottom: 0;
    background: var(--white);
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-md);
    align-items: stretch;
    gap: 2px;
    height: calc(100vh - 76px);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.mobile-open > li > a,
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 14px 6px; border-bottom: 1px solid var(--slate-100); border-radius: 0; }
  .mega-menu {
    position: static;
    width: 100%;
    transform: none;
    box-shadow: none;
    border: none;
    grid-template-columns: 1fr;
    padding: 4px 0 4px 12px;
    display: none;
    opacity: 1; visibility: visible;
  }
  .has-dropdown.open .mega-menu { display: grid; }
  .has-dropdown:hover .mega-menu { display: none; }
  .has-dropdown.open:hover .mega-menu { display: grid; }
  /* Override the desktop centering transform that otherwise wins on specificity */
  .has-dropdown.open .mega-menu,
  .has-dropdown .mega-menu {
    position: static;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
  }
  .mobile-actions { display: flex; gap: 10px; margin-top: 16px; }
  .mobile-actions .lang-switch { display: flex; }
  .lang-switch-item {
    display: block;
    margin-top: 16px;
    border-bottom: none !important;
  }
  .lang-switch-item .lang-switch {
    display: inline-flex;
    width: auto;
  }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 400px) {
  .brand-text { font-size: 0.88rem; }
  .brand img { height: 30px; }
  html:not([dir="rtl"]) .nav-actions .btn-sm {
    padding: 7px 10px;
    font-size: 0.7rem;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--grad-navy);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 140px;
}

/* Background video */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.32;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 26, 61, 0.74) 0%, rgba(11, 36, 84, 0.68) 45%, rgba(1, 56, 139, 0.64) 100%);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-shapes .shape {
  position: absolute;
  opacity: 0.16;
}

.hero-shapes .shape-1 {
  width: 480px; height: 480px;
  right: -160px; top: -120px;
  background: linear-gradient(135deg, var(--orange-500), transparent 70%);
  border-radius: 36px;
  transform: rotate(28deg);
  animation: floatShape1 22s ease-in-out infinite;
}
.hero-shapes .shape-2 {
  width: 360px; height: 360px;
  right: 60px; top: 220px;
  background: linear-gradient(135deg, var(--teal-400), transparent 70%);
  border-radius: 36px;
  transform: rotate(28deg);
  opacity: 0.18;
  animation: floatShape2 26s ease-in-out infinite;
}
.hero-shapes .shape-3 {
  width: 220px; height: 700px;
  right: -40px; bottom: -260px;
  background: linear-gradient(180deg, var(--teal-500), transparent 80%);
  border-radius: 36px;
  transform: rotate(28deg);
  opacity: 0.14;
  animation: floatShape3 30s ease-in-out infinite;
}
.hero-shapes .shape-4 {
  width: 180px; height: 180px;
  left: -60px; top: 120px;
  background: linear-gradient(135deg, var(--orange-500), transparent 75%);
  border-radius: 28px;
  transform: rotate(-18deg);
  opacity: 0.12;
  animation: floatShape4 24s ease-in-out infinite;
}
.hero-shapes .shape-5 {
  width: 140px; height: 320px;
  left: 8%; bottom: -120px;
  background: linear-gradient(180deg, var(--teal-400), transparent 75%);
  border-radius: 28px;
  transform: rotate(-22deg);
  opacity: 0.10;
  animation: floatShape5 28s ease-in-out infinite;
}

@keyframes floatShape1 {
  0%, 100% { transform: rotate(28deg) translate(0, 0); }
  50% { transform: rotate(34deg) translate(-30px, 40px); }
}
@keyframes floatShape2 {
  0%, 100% { transform: rotate(28deg) translate(0, 0); }
  50% { transform: rotate(22deg) translate(40px, -30px); }
}
@keyframes floatShape3 {
  0%, 100% { transform: rotate(28deg) translate(0, 0); }
  50% { transform: rotate(34deg) translate(-20px, -50px); }
}
@keyframes floatShape4 {
  0%, 100% { transform: rotate(-18deg) translate(0, 0); }
  50% { transform: rotate(-12deg) translate(30px, 30px); }
}
@keyframes floatShape5 {
  0%, 100% { transform: rotate(-22deg) translate(0, 0); }
  50% { transform: rotate(-28deg) translate(20px, -40px); }
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
  stroke-dasharray: 6 14;
}
.hero-line-2 { stroke: rgba(43, 196, 222, 0.10); }
.hero-line-3 { stroke: rgba(248, 109, 14, 0.08); }
.hero-line-4 { stroke: rgba(255, 255, 255, 0.06); }

.hero-line { animation: lineDrift1 40s linear infinite; }
.hero-line-2 { animation: lineDrift2 50s linear infinite; }
.hero-line-3 { animation: lineDrift1 60s linear infinite; }
.hero-line-4 { animation: lineDrift2 45s linear infinite; }

@keyframes lineDrift1 {
  0% { transform: translateX(0); }
  100% { transform: translateX(120px); }
}
@keyframes lineDrift2 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-120px); }
}

/* Floating data overlay chips */
.hero-data-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.data-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 12px 32px rgba(1, 14, 40, 0.28);
  animation: chipFloat 9s ease-in-out infinite;
}

.chip-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.chip-icon svg { width: 18px; height: 18px; }

.chip-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}
.chip-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
}

.chip-revenue { top: 14%; left: 4%; animation-delay: 0s; }
.chip-savings { top: 64%; left: 6%; animation-delay: 1.5s; }
.chip-chart   { top: 16%; right: 4%; animation-delay: 0.8s; }
.chip-clients { top: 70%; right: 6%; animation-delay: 2.2s; }
.chip-bars    { top: 42%; right: 2%; animation-delay: 3s; display: none; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.mini-chart {
  width: 130px;
  height: 50px;
  overflow: visible;
}
.mini-chart-line {
  fill: none;
  stroke: var(--teal-400);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mini-chart-area {
  fill: rgba(43, 196, 222, 0.16);
  stroke: none;
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 46px;
  margin-top: 6px;
}
.mini-bars span {
  display: block;
  width: 10px;
  height: var(--h);
  background: var(--grad-accent);
  border-radius: 3px 3px 0 0;
  animation: barGrow 1.6s var(--ease) both;
}

@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

@media (max-width: 1280px) {
  .chip-bars { display: none; }
  .chip-chart { display: none; }
}
@media (max-width: 980px) {
  .hero-data-layer { display: none; }
}

.hero-grid-wide {
  position: relative;
  z-index: 2;
  max-width: 1400px;
}

.hero-copy {
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 24px;
}

.hero h1 { color: var(--white); margin-bottom: 22px; max-width: 900px; }
.hero h1 .accent { color: var(--orange-500); }

.hero .lead {
  color: rgba(255,255,255,0.78);
  max-width: 700px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-trust {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.14);
  max-width: 720px;
  width: 100%;
}

.hero-trust > div { text-align: center; }

.hero-trust .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}
.hero-trust .stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .hero { padding: 80px 0 80px; }
  .hero-trust { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-shapes .shape, .hero-line, .hero-line-2, .hero-line-3, .hero-line-4 {
    animation: none;
  }
}

/* =========================================================
   PAGE HERO (sub-pages)
   ========================================================= */
.page-hero {
  background: var(--grad-navy);
  color: var(--white);
  padding: 76px 0 86px;
  position: relative;
  overflow: hidden;
}
.page-hero .shape-1 {
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; top: -160px;
  background: linear-gradient(135deg, var(--teal-400), transparent 70%);
  border-radius: 36px;
  transform: rotate(28deg);
  opacity: 0.18;
}
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  display: flex; gap: 8px; align-items: center;
  position: relative; z-index: 2;
}
.page-hero .breadcrumb a:hover { color: var(--teal-400); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.3); }
.page-hero h1 { color: var(--white); margin-bottom: 16px; position: relative; z-index: 2; }
.page-hero .lead { color: rgba(255,255,255,0.75); max-width: 640px; margin: 0; position: relative; z-index: 2; }

/* =========================================================
   CARDS / GRIDS
   ========================================================= */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 169, 196, 0.25);
}

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--grad-teal);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: 22px;
  flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 16px; font-size: 0.95rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--orange-600);
  letter-spacing: 0.02em;
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* Service card variant with number/index */
.service-card {
  position: relative;
}
.service-card .card-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-300);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}

/* =========================================================
   STATS BAND
   ========================================================= */
.stats-band {
  background: var(--navy-900);
  color: var(--white);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(13,169,196,0.10) 100%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.stat-block .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}
.stat-block .num .unit { color: var(--orange-500); }
.stat-block .lab {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}

/* =========================================================
   FEATURE / WHY-CHOOSE SECTIONS
   ========================================================= */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature-row.reverse .feature-visual { order: 2; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-visual { order: -1; }
}

.feature-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-navy);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.feature-visual .pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.feature-list {
  list-style: none;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.97rem;
  color: var(--slate-700);
}
.feature-list .check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(13,169,196,0.12);
  color: var(--teal-500);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.feature-list .check svg { width: 14px; height: 14px; }

/* Why-choose cards */
.value-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--slate-100);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-card .vc-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(248,109,14,0.10);
  color: var(--orange-600);
  display: flex; align-items: center; justify-content: center;
}
.value-card .vc-icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.value-card p { font-size: 0.92rem; margin-bottom: 0; }

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }

.industry-card {
  padding: 30px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--slate-100);
  text-align: center;
  transition: all 0.3s var(--ease);
}
.industry-card:hover {
  background: var(--grad-navy);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.industry-card .ic-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(13,169,196,0.10);
  color: var(--teal-500);
  transition: all 0.3s var(--ease);
}
.industry-card:hover .ic-icon { background: rgba(255,255,255,0.12); color: var(--teal-400); }
.industry-card .ic-icon svg { width: 24px; height: 24px; }
.industry-card span { font-weight: 700; font-size: 0.95rem; color: var(--navy-900); transition: color 0.3s var(--ease); }
.industry-card:hover span { color: var(--white); }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: var(--grad-navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -100px; top: -100px;
  background: linear-gradient(135deg, var(--orange-500), transparent 70%);
  border-radius: 36px;
  transform: rotate(28deg);
  opacity: 0.22;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  left: -80px; bottom: -100px;
  background: linear-gradient(135deg, var(--teal-400), transparent 70%);
  border-radius: 36px;
  transform: rotate(28deg);
  opacity: 0.18;
}
.cta-band h2 { color: var(--white); position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 32px; position: relative; z-index: 1; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; position: relative; z-index: 1; }

@media (max-width: 768px) {
  .cta-band { padding: 44px 28px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 76px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 42px; }
.footer-brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--white); }
.footer-brand-text span { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.22em; color: var(--teal-400); text-transform: uppercase; margin-top: 2px; }

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; margin: 0; display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-400); }

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--teal-400); }
.footer-contact-item a:hover { color: var(--teal-400); }

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease);
  color: var(--white);
}
.social-link:hover { background: var(--orange-500); transform: translateY(-3px); }
.social-link svg { width: 18px; height: 18px; }

.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--teal-400); }
.footer-bottom-links { display: flex; gap: 24px; }

/* =========================================================
   WHATSAPP FLOATING BUTTON
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s var(--ease);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }
.whatsapp-float:hover { transform: scale(1.1); }

.whatsapp-float .wa-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--navy-900);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 640px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .wa-tooltip { display: none; }
}

/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.54s; }
.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   UTILITIES
   ========================================================= */
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-light { background: var(--slate-100); }
.divider-shape {
  height: 6px;
  width: 80px;
  background: var(--grad-accent);
  border-radius: 999px;
  margin: 0 auto 28px;
}
.align-left .divider-shape { margin: 0 0 28px; }

.tag-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(13,169,196,0.10);
  color: var(--teal-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Logo-pattern decorative divider used across pages */
.brand-pattern {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 28px;
}
.brand-pattern span {
  display: block;
  width: 10px;
  border-radius: 3px;
  transform: skewX(-18deg);
}
.brand-pattern span:nth-child(1) { height: 100%; background: var(--orange-500); }
.brand-pattern span:nth-child(2) { height: 80%; background: var(--orange-600); }
.brand-pattern span:nth-child(3) { height: 60%; background: var(--navy-700); }
.brand-pattern span:nth-child(4) { height: 40%; background: var(--teal-500); }
.brand-pattern span:nth-child(5) { height: 25%; background: var(--teal-400); }

/* =========================================================
   RTL / ARABIC SUPPORT
   ========================================================= */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body,
html[dir="rtl"] .brand-text,
html[dir="rtl"] .footer-brand-text,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4,
html[dir="rtl"] .btn,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .main-nav a,
html[dir="rtl"] .nav-dropdown-toggle {
  font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

html[dir="rtl"] ul {
  padding-left: 0;
  padding-right: 0;
}

/* Flip directional arrow icons (Learn more, CTAs, breadcrumbs stay symmetric) */
html[dir="rtl"] .card-link svg,
html[dir="rtl"] .hero-ctas .btn svg,
html[dir="rtl"] .btn-primary svg,
html[dir="rtl"] .btn-outline-light svg {
  transform: scaleX(-1);
}

/* Section heads that were explicitly left-aligned should follow text direction */
html[dir="rtl"] .section-head.align-left {
  text-align: right;
}

/* Mega-menu items: icon still leads visually on the same side as text start */
html[dir="rtl"] .mega-menu a {
  text-align: right;
}

/* Hero trust stats and CTAs remain centered; ensure proper text alignment */
html[dir="rtl"] .hero-eyebrow,
html[dir="rtl"] .hero h1,
html[dir="rtl"] .hero .lead {
  text-align: center;
}

/* Feature list and footer contact items: direction:rtl already reverses
   flex row order correctly, so icons stay adjacent to their text. */
html[dir="rtl"] .feature-list li,
html[dir="rtl"] .footer-contact-item {
  text-align: right;
}

/* Currency symbol sits to the right of the number in RTL */
html[dir="rtl"] .price-amount .currency {
  margin-right: 0;
  margin-left: 2px;
}

/* Mobile nav drawer items align right in RTL */
@media (max-width: 1300px) {
  html[dir="rtl"] .main-nav.mobile-open > li > a,
  html[dir="rtl"] .nav-dropdown-toggle {
    text-align: right;
  }
}

/* Breadcrumb separators remain visually neutral (just "/") */
html[dir="rtl"] .page-hero .breadcrumb {
  direction: rtl;
}
