﻿:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #1f2430;
  --ink-soft: #5f6473;
  --line: #dfe4ee;
  --brand-purple: #7838a8;
  --brand-purple-strong: #5f2d86;
  --brand-green: #31b700;
  --brand-teal: #22b8bf;
  --shadow: 0 18px 42px rgba(34, 45, 72, 0.16);
  --radius-lg: 22px;
  --radius-md: 14px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 95% 0%, rgba(120, 56, 168, 0.1), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(34, 184, 191, 0.12), transparent 36%),
    var(--bg);
  line-height: 1.65;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(transparent 95%, rgba(55, 69, 97, 0.04) 100%);
  background-size: 100% 24px;
}

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

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

.container {
  width: min(var(--max), 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(223, 228, 238, 0.8);
  background: rgba(247, 248, 251, 0.94);
  backdrop-filter: blur(9px);
}

.header-bar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: clamp(180px, 20vw, 290px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-link,
.nav-group summary {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.nav-group {
  position: relative;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group[open] summary,
.nav-link:hover,
.nav-group summary:hover {
  background: #ece7f3;
  color: var(--brand-purple-strong);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.45rem;
  display: grid;
  gap: 0.2rem;
}

.nav-dropdown a {
  color: var(--ink-soft);
  font-weight: 600;
  padding: 0.48rem 0.6rem;
  border-radius: 10px;
}

.nav-dropdown a:hover {
  background: #f0f4fb;
  color: var(--ink);
}

.nav-cta {
  margin-left: 0.35rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero-band {
  position: relative;
  min-height: 60vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 20, 46, 0.2), rgba(30, 20, 46, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 6rem 0 4.3rem;
  animation: rise 700ms ease both;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  color: #b7f1f4;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.15;
}

h1 {
  margin: 0.6rem 0;
  font-size: clamp(2rem, 5.4vw, 3.8rem);
  max-width: 15ch;
}

.hero-content p {
  margin: 0;
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.95);
}

.hero-kpi-row {
  width: min(var(--max), 92vw);
  margin: -1.2rem auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.kpi-chip {
  background: linear-gradient(140deg, rgba(95, 45, 134, 0.95), rgba(34, 184, 191, 0.92));
  border-radius: 14px;
  color: #fff;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 16px 32px rgba(38, 34, 64, 0.25);
}

.kpi-chip strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
  line-height: 1.1;
}

.kpi-chip span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  opacity: 0.96;
}

.content-block {
  padding: 2.2rem 0 4.8rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.kpi-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
}

.kpi-item strong {
  display: block;
  font-family: "Sora", sans-serif;
  color: var(--brand-purple-strong);
  font-size: 0.95rem;
}

.kpi-item span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.service-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card h2 {
  margin: 0.45rem 0 0.5rem;
}

.service-card p {
  margin: 0;
}

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #efe6f8, #e2f8f9);
  color: var(--brand-purple-strong);
}

.icon-tile svg {
  width: 25px;
  height: 25px;
}

.logo-marquee h2 {
  margin-top: 0;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.logo-pill {
  border: 1px solid #d5ddef;
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff;
  color: var(--brand-purple-strong);
}

.client-logo-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.client-logo-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  background: #fff;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.72rem;
  align-content: start;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.client-logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(120, 56, 168, 0.13);
  border-color: var(--brand-purple-strong);
}

.client-logo-card.hidden {
  display: none;
}

.client-logo-mark {
  height: 130px;
  min-height: 130px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #f2eafa, #e6f8f8);
  border: 1px dashed #c8d2e2;
  padding: 0.75rem;
  overflow: hidden;
}

.client-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(100%) saturate(0.15) contrast(1.03);
  opacity: 0.84;
  transition: filter 260ms ease, opacity 260ms ease, transform 260ms ease;
}

.client-logo-card:hover .client-logo-image,
.client-logo-card:focus-within .client-logo-image {
  filter: grayscale(0%) saturate(1) contrast(1);
  opacity: 1;
  transform: translateY(-1px);
}

.client-logo-name {
  margin: 0.6rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  word-break: break-word;
}

.director-photo {
  width: 100%;
  max-width: 420px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sim-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sim-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: grid;
  align-content: start;
}

.sim-media {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

/* Gallery page – 4-column grid for regular cards */
.gallery-page .gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-page .gallery-grid .sim-media {
  height: 200px;
  object-fit: contain;
  background: #f3f6fb;
}

/* ===== Gallery Feature (hero) Card ===== */
.gallery-feature-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(38, 34, 64, 0.1);
  overflow: hidden;
  text-align: center;
}

.gallery-feature-card .gallery-feature-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  min-height: 320px;
  object-fit: contain;
  background: #f3f6fb;
}

.gallery-feature-body {
  padding: 1.6rem 2rem 2rem;
}

.gallery-feature-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-teal);
  background: rgba(34, 184, 191, 0.1);
  border: 1px solid rgba(34, 184, 191, 0.3);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  margin: 0 0 0.8rem !important;
}

.gallery-feature-card h3 {
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 0 0 0.75rem !important;
}

.gallery-feature-card p:not(.gallery-feature-eyebrow) {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 auto !important;
  max-width: 62ch;
}

.sim-card h3 {
  margin: 0.8rem 0.8rem 0.35rem;
  font-size: 1rem;
}

.sim-card p {
  margin: 0 0.8rem 0.9rem;
  color: var(--ink-soft);
}

.triac-card h2 {
  margin-top: 0;
}

.triac-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.7rem 0 0.9rem;
}

.triac-node {
  border: 1px solid #d4dcef;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8f2fd, #ebfbfb);
  padding: 0.75rem 0.55rem;
  text-align: center;
}

.triac-node strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  color: var(--brand-purple-strong);
}

.triac-node span {
  font-size: 0.8rem;
  color: #364467;
  font-weight: 700;
}

.triac-note {
  margin: 0;
  color: var(--ink-soft);
}

.content-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bullet-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bullet-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
}

.list-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.list-card li {
  border-left: 3px solid var(--brand-green);
  padding-left: 0.62rem;
}

.brand-profile {
  display: grid;
  gap: 0.9rem;
}

.brand-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.brand-block h3 {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
}

.brand-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4dcef;
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--brand-purple-strong);
  background: #fff;
}

.brand-chip-soft {
  background: #f5f8ff;
}

.brand-note {
  margin: 0.62rem 0 0;
  color: var(--ink-soft);
}

.brand-slogan {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: #2d3b58;
}

.brand-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.brand-contact-list li {
  border-left: 3px solid var(--brand-green);
  padding-left: 0.62rem;
}

.brand-contact-list a {
  color: var(--brand-purple-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-page .brand-chip {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.home-page .brand-note,
.home-page .brand-contact-list li,
.home-page .kpi-item span {
  overflow-wrap: anywhere;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.12rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 160ms ease, filter 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

.btn-primary {
  background: var(--brand-purple);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.quick-search-wrap label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.quick-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
}

.quick-search-row input {
  border: 1px solid #c8d2e2;
  border-radius: 11px;
  padding: 0.72rem;
  font: inherit;
}

.contact-form {
  display: grid;
  gap: 0.72rem;
}

.contact-map-wrap {
  margin: 0.6rem 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f6f9ff;
}

.contact-map-embed {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #c8d2e2;
  border-radius: 11px;
  padding: 0.73rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.quick-search-row input:focus {
  outline: 2px solid rgba(120, 56, 168, 0.22);
  outline-offset: 2px;
}

.form-status {
  margin: 0;
  color: var(--brand-purple-strong);
  font-weight: 600;
  min-height: 1.4em;
}

.route-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.route-list a {
  color: var(--brand-purple-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.samra-link {
  color: #0b5bd3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-purple-strong);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
  margin: 0;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 1.2rem;
}

.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--brand-purple-strong);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.cta-band {
  background: linear-gradient(135deg, var(--brand-purple-strong) 0%, #31b700 100%);
  border-radius: 16px;
  padding: 2.4rem 2rem;
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  color: #fff;
}

.cta-band p {
  margin: 0 0 1.4rem;
  opacity: 0.92;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-purple-strong);
  border-color: #fff;
}

.cta-band .btn-primary:hover {
  background: #f0e8fa;
  border-color: #f0e8fa;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-wrap p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--brand-purple-strong);
  font-weight: 700;
}

.footer-pro {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.footer-col h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.footer-brand-name {
  margin: 0 0 0.3rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: #2a3654;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.8rem;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-contact-list li {
  border-left: 3px solid var(--brand-green);
  padding-left: 0.55rem;
}

.footer-contact-list a {
  color: var(--brand-purple-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col-right {
  display: grid;
  justify-items: end;
  gap: 0.7rem;
}

.footer-logo {
  width: min(220px, 100%);
  height: auto;
  justify-self: end;
}

.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Motion animations ── */

@keyframes chip-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes chip-pop {
  from { transform: scale(0.82) translateY(8px); }
  to   { transform: scale(1) translateY(0); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes spin-slow-rev {
  to { transform: rotate(-360deg); }
}

/* KPI chip staggered entrance on load */
.js .kpi-chip {
  animation: chip-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.js .kpi-chip:nth-child(1) { animation-delay: 0.30s; }
.js .kpi-chip:nth-child(2) { animation-delay: 0.46s; }
.js .kpi-chip:nth-child(3) { animation-delay: 0.62s; }
.js .kpi-chip:nth-child(4) { animation-delay: 0.78s; }

/* Stagger-children: animate in when parent gains .in-view (elements always visible as fallback) */
.js .stagger-children.in-view > *:nth-child(1)  { animation: chip-pop 0.42s cubic-bezier(0.34, 1.5, 0.64, 1) 0.05s both; }
.js .stagger-children.in-view > *:nth-child(2)  { animation: chip-pop 0.42s cubic-bezier(0.34, 1.5, 0.64, 1) 0.13s both; }
.js .stagger-children.in-view > *:nth-child(3)  { animation: chip-pop 0.42s cubic-bezier(0.34, 1.5, 0.64, 1) 0.21s both; }
.js .stagger-children.in-view > *:nth-child(4)  { animation: chip-pop 0.42s cubic-bezier(0.34, 1.5, 0.64, 1) 0.29s both; }
.js .stagger-children.in-view > *:nth-child(5)  { animation: chip-pop 0.42s cubic-bezier(0.34, 1.5, 0.64, 1) 0.37s both; }
.js .stagger-children.in-view > *:nth-child(6)  { animation: chip-pop 0.42s cubic-bezier(0.34, 1.5, 0.64, 1) 0.45s both; }
.js .stagger-children.in-view > *:nth-child(7)  { animation: chip-pop 0.42s cubic-bezier(0.34, 1.5, 0.64, 1) 0.53s both; }
.js .stagger-children.in-view > *:nth-child(8)  { animation: chip-pop 0.42s cubic-bezier(0.34, 1.5, 0.64, 1) 0.61s both; }

/* Decorative rotating rings in hero */
.deco-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  right: -80px;
  top: -80px;
  animation: spin-slow 45s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.deco-orb::before {
  content: '';
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  border: 1.5px solid rgba(49, 183, 0, 0.28);
  animation: spin-slow-rev 28s linear infinite;
}

.deco-orb::after {
  content: '';
  position: absolute;
  inset: 160px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .kpi-chip,
  .stagger-children > *,
  .deco-orb,
  .deco-orb::before,
  .deco-orb::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Cross-page scroll-reveal child animations (CSS-only, no HTML changes) ── */

@keyframes slide-up {
  from { transform: translateY(18px); }
  to   { transform: translateY(0); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Service cards */
.reveal-on-scroll.revealed .service-grid > *:nth-child(1) { animation: slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
.reveal-on-scroll.revealed .service-grid > *:nth-child(2) { animation: slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both; }
.reveal-on-scroll.revealed .service-grid > *:nth-child(3) { animation: slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both; }

/* Content-grid panels (Vision / Mission / Focus) */
.reveal-on-scroll.revealed .content-grid > *:nth-child(1) { animation: slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
.reveal-on-scroll.revealed .content-grid > *:nth-child(2) { animation: slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both; }
.reveal-on-scroll.revealed .content-grid > *:nth-child(3) { animation: slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both; }

/* KPI strip counters */
.reveal-on-scroll.revealed .kpi-strip > *:nth-child(1) { animation: chip-pop 0.5s cubic-bezier(0.34, 1.5, 0.64, 1) 0.20s both; }
.reveal-on-scroll.revealed .kpi-strip > *:nth-child(2) { animation: chip-pop 0.5s cubic-bezier(0.34, 1.5, 0.64, 1) 0.32s both; }
.reveal-on-scroll.revealed .kpi-strip > *:nth-child(3) { animation: chip-pop 0.5s cubic-bezier(0.34, 1.5, 0.64, 1) 0.44s both; }
.reveal-on-scroll.revealed .kpi-strip > *:nth-child(4) { animation: chip-pop 0.5s cubic-bezier(0.34, 1.5, 0.64, 1) 0.56s both; }

/* Bullet grid items */
.reveal-on-scroll.revealed .bullet-grid > *:nth-child(1) { animation: slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
.reveal-on-scroll.revealed .bullet-grid > *:nth-child(2) { animation: slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both; }
.reveal-on-scroll.revealed .bullet-grid > *:nth-child(3) { animation: slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both; }
.reveal-on-scroll.revealed .bullet-grid > *:nth-child(4) { animation: slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both; }

/* TRIAC nodes */
.reveal-on-scroll.revealed .triac-grid > *:nth-child(1) { animation: chip-pop 0.45s cubic-bezier(0.34, 1.5, 0.64, 1) 0.18s both; }
.reveal-on-scroll.revealed .triac-grid > *:nth-child(2) { animation: chip-pop 0.45s cubic-bezier(0.34, 1.5, 0.64, 1) 0.28s both; }
.reveal-on-scroll.revealed .triac-grid > *:nth-child(3) { animation: chip-pop 0.45s cubic-bezier(0.34, 1.5, 0.64, 1) 0.38s both; }
.reveal-on-scroll.revealed .triac-grid > *:nth-child(4) { animation: chip-pop 0.45s cubic-bezier(0.34, 1.5, 0.64, 1) 0.48s both; }
.reveal-on-scroll.revealed .triac-grid > *:nth-child(5) { animation: chip-pop 0.45s cubic-bezier(0.34, 1.5, 0.64, 1) 0.58s both; }

/* Sim-cards (gallery, Africa, South Africa) */
.reveal-on-scroll.revealed .sim-grid > *:nth-child(1) { animation: slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both; }
.reveal-on-scroll.revealed .sim-grid > *:nth-child(2) { animation: slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.20s both; }
.reveal-on-scroll.revealed .sim-grid > *:nth-child(3) { animation: slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both; }
.reveal-on-scroll.revealed .sim-grid > *:nth-child(4) { animation: slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.40s both; }
.reveal-on-scroll.revealed .sim-grid > *:nth-child(5) { animation: slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.50s both; }
.reveal-on-scroll.revealed .sim-grid > *:nth-child(6) { animation: slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.60s both; }

/* Testimonial cards */
.reveal-on-scroll.revealed .testimonial-card:nth-child(1) { animation: slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both; }
.reveal-on-scroll.revealed .testimonial-card:nth-child(2) { animation: slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both; }
.reveal-on-scroll.revealed .testimonial-card:nth-child(3) { animation: slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both; }

/* ── Hover interactions ── */

.panel.service-card {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
}

.panel.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(38, 34, 64, 0.13);
}

.service-card .icon-tile {
  transition: transform 380ms cubic-bezier(0.34, 1.5, 0.64, 1);
}

.service-card:hover .icon-tile {
  animation: float-gentle 2s ease-in-out infinite;
}

.kpi-item {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

.kpi-item:hover {
  transform: translateY(-4px);
}

.testimonial-card {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(38, 34, 64, 0.11);
}

.sim-card {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
}

.sim-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(38, 34, 64, 0.13);
}

/* ===== Partner filter tabs ===== */
.partner-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.partner-filter-btn {
  padding: 0.42rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 0.855rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink-mid);
  cursor: pointer;
  line-height: 1.4;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.partner-filter-btn:hover {
  border-color: var(--brand-purple-strong);
  color: var(--brand-purple-strong);
  box-shadow: 0 2px 10px rgba(120, 56, 168, 0.1);
}

.partner-filter-btn.active {
  background: var(--brand-purple-strong);
  border-color: var(--brand-purple-strong);
  color: #fff;
  box-shadow: 0 4px 12px rgba(120, 56, 168, 0.25);
}

.filter-count {
  font-size: 0.78em;
  opacity: 0.72;
  margin-left: 0.25em;
}

@media (prefers-reduced-motion: reduce) {
  .panel.service-card,
  .service-card .icon-tile,
  .kpi-item,
  .testimonial-card,
  .sim-card,
  .client-logo-card {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 1160px) {
  .site-nav {
    gap: 0.3rem;
  }

  .nav-link,
  .nav-group summary {
    font-size: 0.8rem;
    padding: 0.5rem 0.55rem;
  }
}

@media (max-width: 960px) {
  .gallery-page .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-feature-card h3 {
    font-size: 1.3rem;
  }

  .gallery-feature-card .gallery-feature-image {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .gallery-page .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-feature-card .gallery-feature-image {
    min-height: 200px;
  }

  .gallery-feature-body {
    padding: 1.2rem 1rem 1.4rem;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    background: #f5f8ff;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 4vw 1rem;
    flex-direction: column;
    align-items: stretch;
    max-height: 72vh;
    overflow: auto;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .site-nav.nav-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-group,
  .nav-link,
  .nav-cta {
    width: 100%;
  }

  .nav-group summary,
  .nav-link {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 0.4rem;
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border-radius: 10px;
    margin-bottom: 0.5rem;
  }

  .content-grid,
  .bullet-grid,
  .kpi-strip,
  .service-grid,
  .hero-kpi-row,
  .triac-grid {
    grid-template-columns: 1fr;
  }

  .hero-kpi-row {
    margin-top: 0.8rem;
  }

  .brand-logo {
    width: 200px;
  }

  .footer-pro {
    grid-template-columns: 1fr;
  }

  .footer-col-right {
    justify-items: start;
  }

  .footer-logo {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  h1 {
    max-width: 18ch;
  }

  .hero-band {
    min-height: 52vh;
  }

  .home-page .panel {
    padding: 1rem;
  }

  .home-page .hero-content {
    padding: 5.2rem 0 3.2rem;
  }

  .home-page .hero-kpi-row {
    gap: 0.55rem;
  }

  .home-page .kpi-chip {
    padding: 0.7rem 0.8rem;
  }

  .home-page .brand-chip {
    font-size: 0.74rem;
    padding: 0.34rem 0.58rem;
  }

  .home-page .footer-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-page h1 {
    font-size: clamp(1.7rem, 9vw, 2.1rem);
  }

  .home-page .quick-search-row {
    grid-template-columns: 1fr;
  }

  .home-page .quick-search-row .btn {
    width: 100%;
  }

  .home-page .hero-actions .btn {
    width: 100%;
  }

  .home-page .hero-kpi-row,
  .home-page .kpi-strip {
    gap: 0.5rem;
  }
}
