/* Optivox Solutions — website styles (brand palette from the 2026 company profile) */
:root {
  --lime: #B2C71F;
  --green: #2ECC40;
  --teal: #008C64;
  --deep: #005F56;
  --peach: #FFCB92;
  --ink: #0F4041;
  --ink-2: #0B3233;
  --text: #3C4A4A;
  --muted: #6B7878;
  --light: #F3F5F4;
  --line: #E2E8E6;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(15, 64, 65, .35);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), 92%); margin-inline: auto; }

/* Brand stripe */
.brand-bar { display: flex; height: 6px; }
.brand-bar span:nth-child(1) { flex: 1; background: var(--lime); }
.brand-bar span:nth-child(2) { flex: 3; background: var(--green); }
.brand-bar span:nth-child(3) { flex: 1.5; background: var(--teal); }
.brand-bar span:nth-child(4) { flex: 1.5; background: var(--deep); }
.brand-bar span:nth-child(5) { flex: 1; background: var(--peach); }

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.dark .eyebrow { color: var(--green); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 16px; }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }
.dark .lead { color: rgba(255,255,255,.75); }
section { padding: 110px 0; }
.section-head { margin-bottom: 56px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: var(--ink-2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(46,204,64,.7); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.site-header .nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.site-header .logo img { height: 46px; width: auto; }
.site-header .logo .logo-dark { display: none; }
.site-header.scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 6px 24px -14px rgba(0,0,0,.25); }
.site-header.scrolled .logo .logo-light { display: none; }
.site-header.scrolled .logo .logo-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.88); font-size: .93rem; font-weight: 500; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--green); transition: width .25s;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { width: 100%; }
.site-header.scrolled .nav-links a:not(.btn) { color: var(--ink); }
.nav-links .btn { padding: 10px 22px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: .3s; }
.site-header.scrolled .menu-toggle span { background: var(--ink); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--ink-2); color: var(--white); overflow: hidden; padding: 140px 0 120px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/img/hero.jpg") right center / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,50,51,.97) 0%, rgba(11,50,51,.9) 38%, rgba(11,50,51,.45) 70%, rgba(11,50,51,.25) 100%);
}
.hero-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; }
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(46,204,64,.4); background: rgba(15,64,65,.6); font-size: .85rem; margin-bottom: 28px;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--green); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--white); margin-bottom: 22px; }
.hero .tagline { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--peach); font-weight: 500; margin-bottom: 26px; }
.hero .divider { width: 90px; height: 4px; border-radius: 4px; background: var(--green); margin-bottom: 24px; }
.hero .pillars { display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255,255,255,.85); margin-bottom: 40px; }
.hero .pillars span { display: inline-flex; align-items: center; gap: 22px; }
.hero .pillars span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-left: -12px; margin-right: -10px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.about-text p { font-size: 1.08rem; margin-bottom: 18px; }
.about-text p.big { font-size: 1.25rem; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 36px; }
.stat { padding: 24px 18px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 22px; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.6rem; color: var(--green); line-height: 1.1; font-weight: 800; }
.stat span { font-size: .88rem; color: var(--muted); }
.about-img { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 30px 28px;
  background: linear-gradient(transparent, rgba(11,50,51,.92));
  color: var(--white); font-weight: 700; font-size: 1.3rem; line-height: 1.3;
}
.about-img figcaption::before { content: ""; display: block; width: 4px; height: 46px; background: var(--green); float: left; margin-right: 16px; }

/* Vision / Mission / Values */
.vmv { background: var(--light); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 64px; }
.vm-card { border-radius: 22px; padding: 42px; position: relative; overflow: hidden; }
.vm-card.vision { background: var(--ink); color: rgba(255,255,255,.9); }
.vm-card.mission { background: var(--white); border: 1px solid var(--line); }
.vm-card .icon { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 26px; }
.vm-card.vision .icon { background: var(--green); color: var(--ink); }
.vm-card.mission .icon { background: var(--teal); color: var(--white); }
.vm-card .icon svg { width: 30px; height: 30px; }
.vm-card h3 { font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 14px; }
.vm-card.vision h3 { color: var(--green); }
.vm-card.mission h3 { color: var(--teal); }
.vm-card p { font-size: 1.15rem; line-height: 1.7; }
.vm-card.vision svg.wave { position: absolute; right: 0; bottom: 0; width: 80%; height: 70px; }
.values-title { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; }
.value { display: flex; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.value .vi { flex: 0 0 52px; height: 52px; border-radius: 50%; background: #DDF5E1; color: var(--teal); display: grid; place-items: center; }
.value .vi svg { width: 24px; height: 24px; }
.value h4 { font-size: 1.1rem; margin-bottom: 4px; }
.value p { font-size: .93rem; color: var(--muted); }

/* Services overview */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 36px; overflow: hidden; transition: transform .25s, box-shadow .25s; cursor: pointer;
}
.svc-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--green); }
.svc-card:nth-child(even)::after { background: var(--teal); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card .num { position: absolute; right: 28px; top: 24px; font-size: 2.6rem; font-weight: 800; color: #E7EDEB; }
.svc-icon {
  width: 62px; height: 62px; border-radius: 15px; display: grid; place-items: center; color: var(--white);
  background: linear-gradient(145deg, var(--teal), var(--deep)); margin-bottom: 26px;
}
.svc-icon svg { width: 30px; height: 30px; }
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: .95rem; }
.svc-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: .88rem; color: var(--teal); }
.svc-card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.svc-card:hover .more svg { transform: translateX(4px); }

/* Scope of work (detailed services) */
.scope { background: var(--light); padding-top: 100px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 600 .9rem "Poppins", sans-serif; cursor: pointer;
  transition: .2s;
}
.tab svg { width: 18px; height: 18px; color: var(--teal); }
.tab:hover { border-color: var(--green); }
.tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tab.active svg { color: var(--green); }
.panel { display: none; grid-template-columns: 420px 1fr; background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.panel.active { display: grid; animation: fadeUp .45s ease; }
.panel-img { position: relative; min-height: 560px; }
.panel-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(11,50,51,.85)); }
.panel-img .badge {
  position: absolute; top: 28px; left: 28px; z-index: 2; width: 70px; height: 70px; border-radius: 16px;
  background: var(--green); color: var(--white); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
}
.panel-img .badge svg { width: 34px; height: 34px; }
.panel-img .pnum { position: absolute; left: 28px; bottom: 22px; z-index: 2; font-size: 4.5rem; font-weight: 800; color: rgba(255,255,255,.22); line-height: 1; }
.panel-body { padding: 48px 52px; }
.panel-body .eyebrow { margin-bottom: 10px; }
.panel-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; }
.panel-body > p { font-size: 1.08rem; margin-bottom: 28px; }
.label { font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; background: var(--light); border-radius: 12px; padding: 13px 16px; font-size: .95rem; color: var(--ink); }
.checklist li::before {
  content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.gains { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.gains .label { margin: 0 8px 0 0; color: var(--teal); }
.chip { padding: 8px 16px; border-radius: 999px; background: #E3F6E6; color: var(--ink); font-size: .85rem; font-weight: 500; }

/* Why Optivox */
.why { background: var(--ink); position: relative; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 2; }
.why-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 32px; position: relative; transition: background .25s, border-color .25s, transform .25s;
}
.why-card:hover { background: rgba(255,255,255,.08); border-color: rgba(46,204,64,.45); transform: translateY(-4px); }
.why-card .wi { color: var(--green); margin-bottom: 22px; }
.why-card .wi svg { width: 32px; height: 32px; }
.why-card .num { position: absolute; right: 28px; top: 24px; font-size: 2.3rem; font-weight: 800; color: rgba(255,255,255,.08); }
.why-card h3 { margin-bottom: 10px; }
.why-card p { color: rgba(255,255,255,.72); font-size: .95rem; }
.why svg.bg-waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 180px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 40px; left: 40px; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--green), var(--teal), var(--deep));
}
.step { position: relative; }
.step .circle {
  width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: var(--white);
  border: 3px solid var(--green); color: var(--ink); font-weight: 800; font-size: 1.4rem; margin-bottom: 24px; position: relative; z-index: 1;
  transition: background .25s, color .25s;
}
.step:nth-child(n+4) .circle { border-color: var(--teal); }
.step:hover .circle { background: var(--ink); color: var(--white); }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--muted); }
.callout {
  display: flex; align-items: center; gap: 16px; margin-top: 56px; padding: 22px 28px; border-radius: 16px;
  background: var(--light); border-left: 5px solid var(--green); color: var(--ink); font-size: 1.05rem;
}
.callout svg { flex: 0 0 28px; width: 28px; height: 28px; color: var(--teal); }

/* Clients */
.clients { background: var(--light); }
.sector-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.sector-tags span { padding: 9px 20px; border-radius: 999px; border: 1px solid #CFD9D6; background: var(--white); color: var(--ink); font-weight: 500; font-size: .9rem; }
/* 3×3 checkerboard of client cards. Every logo is shown in one tone (dark ink on light
   cards, white on dark cards) so the grid reads as one set; hovering shows the original colours. */
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.logo-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; height: 160px;
  display: grid; place-items: center; padding: 30px 36px;
  transition: transform .25s, box-shadow .25s;
}
.logo-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.logo-card img {
  max-width: 100%; max-height: 96px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) contrast(1.6); mix-blend-mode: multiply; transition: filter .35s;
}
.logo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-card:hover::after { transform: scaleX(1); }
.logo-card:hover img { filter: none; }
/* Dark cards: brand ink background, logos turned pure white */
.logo-card--dark { background: var(--ink); border-color: var(--ink); }
.logo-card--dark img { mix-blend-mode: normal; filter: brightness(0) invert(1); opacity: .92; }
.logo-card--dark:hover img { opacity: 1; }

/* Contact */
.contact { background: var(--ink); position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; position: relative; z-index: 2; }
.info-list { display: grid; gap: 16px; margin-top: 34px; }
.info {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: border-color .2s;
}
a.info:hover { border-color: var(--green); }
.info .ic { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--ink); display: grid; place-items: center; }
.info .ic svg { width: 22px; height: 22px; }
.info small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.info strong { color: var(--white); font-weight: 500; font-size: 1.05rem; }
.form-card { background: var(--white); border-radius: 24px; padding: 40px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid #D5DEDB; background: var(--light);
  font: 400 .95rem "Poppins", sans-serif; color: var(--ink); transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--white); }
.form-card .btn { width: 100%; justify-content: center; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; text-align: center; }
.contact svg.bg-waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 200px; }

/* Footer */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,.7); padding: 70px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.site-footer .logo img { height: 50px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: .82rem; color: rgba(255,255,255,.5);
}

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: .3s; z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* Reveal animations */
/* Hidden only when JavaScript is running, so content always shows without it */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .panel.active { animation: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .panel { grid-template-columns: 1fr; }
  .panel-img { min-height: 300px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 84px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white);
    padding: 10px 6% 24px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; color: var(--ink) !important; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; width: 100%; justify-content: center; }
  .site-header.menu-open { background: var(--white); }
  .site-header.menu-open .logo .logo-light { display: none; }
  .site-header.menu-open .logo .logo-dark { display: block; }
  .site-header.menu-open .menu-toggle span { background: var(--ink); }
  .about-grid, .vm-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-img { aspect-ratio: 16/11; }
  .values, .svc-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px !important; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .values, .svc-grid, .why-grid, .checklist, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .logo-card { height: 112px; padding: 18px 20px; }
  .logo-card img { max-height: 70px; }
  .logo-card:last-child { grid-column: 1 / -1; }
  .panel-body { padding: 32px 24px; }
  .vm-card, .form-card { padding: 30px 24px; }
  .hero .pillars span + span::before { display: none; }
}

/* Language switch (EN ⇄ AR) */
.nav-links a.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4); font-weight: 600; font-size: .85rem;
}
.nav-links a.lang-switch::after { display: none; }
.nav-links a.lang-switch svg { width: 15px; height: 15px; }
.nav-links a.lang-switch:hover { border-color: var(--green); color: var(--green); }
.site-header.scrolled .nav-links a.lang-switch { border-color: var(--line); }
@media (max-width: 900px) {
  .nav-links a.lang-switch { border: 0; border-radius: 0; padding: 14px 0; font-size: .93rem; display: flex; }
}

/* ===== Arabic / right-to-left ===== */
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif; line-height: 1.8; }
/* Arabic letters must stay joined: no tracking, no uppercase */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .eyebrow, [dir="rtl"] .vm-card h3, [dir="rtl"] .label, [dir="rtl"] .values-title, [dir="rtl"] .info small {
  letter-spacing: 0; text-transform: none; font-size: .95rem;
}
[dir="rtl"] .stat strong, [dir="rtl"] .num, [dir="rtl"] .pnum, [dir="rtl"] .circle { font-family: "Poppins", sans-serif; }
[dir="rtl"] .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Mirror the hero photo, its fade and the brand waves */
[dir="rtl"] .hero-bg, [dir="rtl"] .hero-waves, [dir="rtl"] .bg-waves, [dir="rtl"] .vm-card.vision svg.wave { transform: scaleX(-1); }
[dir="rtl"] .vm-card.vision svg.wave { right: auto; left: 0; }
[dir="rtl"] .hero .pillars span + span::before { margin-left: -10px; margin-right: -12px; }

/* Arrows point the reading direction */
[dir="rtl"] .btn svg, [dir="rtl"] .svc-card .more svg { transform: scaleX(-1); }
[dir="rtl"] .svc-card:hover .more svg { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .to-top svg { transform: none; }

/* Swap left/right placements */
[dir="rtl"] .stat { border-right: 0; border-left: 1px solid var(--line); padding: 24px 0 0 18px; }
[dir="rtl"] .stat + .stat { padding-left: 18px; padding-right: 22px; }
[dir="rtl"] .stat:last-child { border-left: 0; }
[dir="rtl"] .about-img figcaption::before { float: right; margin-right: 0; margin-left: 16px; }
[dir="rtl"] .svc-card .num, [dir="rtl"] .why-card .num { right: auto; left: 28px; }
[dir="rtl"] .panel-img .badge { left: auto; right: 28px; }
[dir="rtl"] .panel-img .pnum { left: auto; right: 28px; }
[dir="rtl"] .gains .label { margin: 0 0 0 8px; }
[dir="rtl"] .steps::before { left: 0; right: 40px; background: linear-gradient(270deg, var(--lime), var(--green), var(--teal), var(--deep)); }
[dir="rtl"] .callout { border-left: 0; border-right: 5px solid var(--green); }
[dir="rtl"] .logo-card::after { transform-origin: right; }
[dir="rtl"] .to-top { right: auto; left: 24px; }
@media (max-width: 900px) {
  [dir="rtl"] .stat { border-left: 0; padding: 22px 16px !important; }
}
