/* ==========================================================
   SK Tech Solutions - sktech.pk
   Brand: Navy #1F3864 | Blue #5B8DEF | Slate #5F6670
   ========================================================== */
:root {
  --navy: #1f3864;
  --navy-900: #14264a;
  --navy-950: #0d1a35;
  --blue: #5b8def;
  --blue-600: #3f74de;
  --blue-50: #eef3fe;
  --slate: #5f6670;
  --ink: #1b2433;
  --muted: #6b7380;
  --line: #e4e8ef;
  --bg-soft: #f6f8fc;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(20, 38, 74, .06);
  --shadow: 0 10px 30px rgba(20, 38, 74, .08);
  --shadow-lg: 0 24px 60px rgba(20, 38, 74, .14);
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; }
::selection { background: var(--blue); color: #fff; }

.section { padding: 100px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-950); color: #c9d3e6; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .14em; color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--blue); }
.section-dark .eyebrow { color: var(--blue); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-dark .section-head p { color: #a9b6cf; }

/* ---------- Buttons ---------- */
.btn-brand, .btn-ghost, .btn-light-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: all .25s ease; cursor: pointer; line-height: 1.2;
}
.btn-brand { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(91, 141, 239, .35); }
.btn-brand:hover { background: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 56, 100, .3); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.btn-light-brand { background: #fff; color: var(--navy); }
.btn-light-brand:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #b7c3da; font-size: 13.5px; padding: 8px 0; }
.topbar a { color: #dfe6f3; }
.topbar a:hover { color: var(--blue); }
.topbar .sep { opacity: .35; margin: 0 12px; }
.topbar i { color: var(--blue); margin-right: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 997; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header .inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 50px; width: auto; display: block; }

.nav-main ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav-main a {
  display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
}
.nav-main a:hover, .nav-main a.active { color: var(--blue-600); background: var(--blue-50); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn-brand { padding: 11px 20px; font-size: 14px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-size: 24px; align-items: center; justify-content: center;
}

@media (max-width: 1199px) {
  .nav-toggle { display: inline-flex; }
  .nav-main {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: #fff; z-index: 999;
    transform: translateX(100%); transition: transform .3s ease; padding: 90px 22px 30px;
    box-shadow: var(--shadow-lg); overflow-y: auto; visibility: hidden;
  }
  .nav-main ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-main a { padding: 14px 16px; font-size: 16px; }
  body.nav-open .nav-main { transform: translateX(0); visibility: visible; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(13, 26, 53, .45); z-index: 998; }
  .nav-close { position: absolute; top: 22px; right: 22px; }
  .header-cta .btn-brand { display: none; }
}
@media (min-width: 1200px) { .nav-close { display: none !important; } }
@media (max-width: 575px) { .brand img { height: 40px; } :root { --header-h: 72px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 90px 0 110px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(91, 141, 239, .16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(31, 56, 100, .08), transparent 60%),
    linear-gradient(180deg, #f8faff 0%, #fff 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(31, 56, 100, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 56, 100, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero .container { position: relative; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.08; margin-bottom: 22px; }
.hero h1 .hl { color: var(--blue); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-badge span { background: var(--blue); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--slate); font-size: 14.5px; font-weight: 500; }
.trust-row i { color: var(--blue); margin-right: 6px; }

/* Hero visual: "systems map" card stack */
.hero-visual { position: relative; max-width: 520px; margin-left: auto; }
.hv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 26px;
}
.hv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hv-head h4 { font-size: 16px; margin: 0; }
.hv-status { font-size: 12.5px; font-weight: 700; color: #1b9e5a; background: #e7f7ee; padding: 4px 10px; border-radius: 999px; }
.hv-status::before { content: "●"; margin-right: 6px; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.hv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hv-node {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; text-align: center; background: var(--bg-soft);
  font-size: 12.5px; font-weight: 600; color: var(--navy); transition: transform .25s, border-color .25s;
}
.hv-node:hover { transform: translateY(-3px); border-color: var(--blue); }
.hv-node i { display: block; font-size: 24px; color: var(--blue); margin-bottom: 6px; }
.hv-bar { margin-top: 18px; }
.hv-bar .row-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.hv-bar .track { height: 8px; border-radius: 8px; background: var(--blue-50); overflow: hidden; }
.hv-bar .fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--blue), var(--navy)); }
.hv-float {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; color: var(--navy);
  animation: floaty 5s ease-in-out infinite;
}
.hv-float i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 18px; }
.hv-float small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.hv-float.f1 { left: -40px; bottom: -34px; }
.hv-float.f2 { right: -30px; top: -58px; animation-delay: 1.5s; }
.hv-float.f2 i { background: var(--blue); }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 991px) {
  .hero { padding: 50px 0 120px; }
  .hero-visual { margin: 90px auto 0; }
  .hv-float.f1 { left: -6px; bottom: -40px; }
  .hv-float.f2 { right: -6px; top: -50px; }
  .hv-status { display: none; }
}

/* ---------- Highlights strip ---------- */
.strip { margin-top: -50px; position: relative; z-index: 2; }
.strip .box {
  background: var(--navy); border-radius: var(--radius-lg); padding: 30px 34px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; color: #c9d3e6;
}
.strip .item { display: flex; gap: 14px; align-items: flex-start; }
.strip .item i { font-size: 26px; color: var(--blue); line-height: 1; }
.strip .item strong { display: block; color: #fff; font-family: var(--font-head); font-size: 16px; }
.strip .item span { font-size: 14px; }
@media (max-width: 991px) { .strip .box { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .strip .box { grid-template-columns: 1fr; padding: 26px; } }

/* ---------- Services ---------- */
.svc-card {
  height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.svc-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--navy));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::after { transform: scaleX(1); }
.svc-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 26px;
  background: var(--blue-50); color: var(--blue-600); margin-bottom: 22px; transition: all .3s;
}
.svc-card:hover .svc-icon { background: var(--navy); color: #fff; }
.svc-card h3 { font-size: 20px; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.svc-card ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--slate); }
.svc-card li { padding: 3px 0 3px 22px; position: relative; }
.svc-card li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 3px; color: var(--blue); }

/* ---------- About ---------- */
.about-img { position: relative; }
.about-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
.about-img .exp {
  position: absolute; right: -18px; bottom: -24px; background: var(--blue); color: #fff; border-radius: 18px;
  padding: 20px 24px; box-shadow: var(--shadow-lg); text-align: center;
}
.about-img .exp strong { display: block; font-family: var(--font-head); font-size: 40px; line-height: 1; }
.about-img .exp span { font-size: 13px; font-weight: 600; opacity: .95; }
.about h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 18px; }
.about p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.check-list li { display: flex; gap: 10px; font-weight: 600; color: var(--navy); font-size: 15px; }
.check-list i { color: var(--blue); font-size: 18px; }
@media (max-width: 575px) { .check-list { grid-template-columns: 1fr; } .about-img .exp { right: 10px; } }

.founder {
  display: flex; gap: 18px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
}
.founder img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.founder strong { display: block; font-family: var(--font-head); color: var(--navy); }
.founder span { font-size: 14px; color: var(--muted); }

/* ---------- Process ---------- */
.process { counter-reset: step; }
.step {
  position: relative; height: 100%; padding: 30px 24px 26px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); transition: background .3s, transform .3s;
}
.step:hover { background: rgba(91, 141, 239, .1); transform: translateY(-4px); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(91, 141, 239, .7); display: block; margin-bottom: 16px;
}
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; margin: 0; color: #a9b6cf; }

/* ---------- Industries ---------- */
.ind-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); height: 100%; transition: box-shadow .3s, transform .3s;
}
.ind-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ind-card i { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 22px; }
.ind-card h4 { font-size: 17px; margin-bottom: 4px; }
.ind-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Why us ---------- */
.why-item { display: flex; gap: 18px; margin-bottom: 26px; }
.why-item .num {
  flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600); font-size: 22px;
}
.why-item h4 { font-size: 18px; margin-bottom: 4px; }
.why-item p { color: var(--muted); margin: 0; font-size: 15px; }

.stats-panel {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-950) 100%); border-radius: var(--radius-lg);
  padding: 40px; color: #fff; position: relative; overflow: hidden; height: 100%;
}
.stats-panel::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -120px; top: -120px;
  background: radial-gradient(circle, rgba(91, 141, 239, .45), transparent 65%);
}
.stats-panel h3 { color: #fff; font-size: 24px; margin-bottom: 8px; position: relative; }
.stats-panel > p { color: #a9b6cf; position: relative; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; position: relative; }
.stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 22px; }
.stat .n { font-family: var(--font-head); font-weight: 800; font-size: 38px; line-height: 1; color: #fff; }
.stat .n sup { color: var(--blue); font-size: 22px; top: -.7em; }
.stat p { margin: 8px 0 0; color: #a9b6cf; font-size: 14px; }

/* ---------- Brands / tech ---------- */
.tech-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech {
  padding: 11px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--slate); transition: all .25s;
}
.tech:hover { color: var(--navy); border-color: var(--blue); box-shadow: var(--shadow-sm); }
.tech-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 22px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-600) 45%, var(--navy) 100%);
  border-radius: var(--radius-lg); padding: 54px 50px; color: #fff; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.cta-band p { margin: 0; color: #e6edfc; font-size: 17px; }
@media (max-width: 767px) { .cta-band { padding: 40px 28px; } }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: 12px; overflow: hidden; }
.faq .accordion-button { font-family: var(--font-head); font-weight: 700; color: var(--navy); padding: 20px 24px; font-size: 16.5px; }
.faq .accordion-button:not(.collapsed) { background: var(--blue-50); color: var(--navy); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; border-color: var(--blue); }
.faq .accordion-body { color: var(--muted); padding: 4px 24px 22px; }
.faq .accordion-button:not(.collapsed) + .accordion-collapse .accordion-body,
.faq .accordion-collapse.show .accordion-body { background: var(--blue-50); }

/* ---------- Contact ---------- */
.contact-info { background: var(--navy); color: #c9d3e6; border-radius: var(--radius-lg); padding: 40px 34px; height: 100%; position: relative; overflow: hidden; }
.contact-info::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; left: -110px; bottom: -110px; background: radial-gradient(circle, rgba(91, 141, 239, .35), transparent 65%); }
.contact-info h3 { color: #fff; font-size: 24px; }
.ci-item { display: flex; gap: 16px; margin-top: 26px; position: relative; z-index: 1; }
.ci-item i { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(91, 141, 239, .18); color: var(--blue); font-size: 20px; }
.ci-item strong { display: block; color: #fff; font-family: var(--font-head); font-size: 15px; }
.ci-item a, .ci-item span { color: #c9d3e6; font-size: 15px; }
.ci-item a:hover { color: var(--blue); }
.contact-info .social { display: flex; gap: 10px; margin-top: 32px; position: relative; z-index: 1; }
.social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 17px; transition: background .25s, transform .25s;
}
.social a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 24px; margin-bottom: 6px; }
.contact-form .sub { color: var(--muted); margin-bottom: 26px; }
.contact-form label { font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.contact-form .form-control, .contact-form .form-select {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 15px; background-color: #fbfcfe;
}
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(91, 141, 239, .15); background: #fff; }
.contact-form .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; border-radius: 12px; padding: 14px 18px; font-size: 15px; margin-bottom: 16px; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f7ee; color: #146c40; border: 1px solid #bfe8d0; }
.form-status.err { background: #fdecec; color: #a12626; border: 1px solid #f5c6c6; }
.form-status.wait { background: var(--blue-50); color: var(--navy); border: 1px solid #d6e2fb; }
@media (max-width: 575px) { .contact-form, .contact-info { padding: 28px 22px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fadc8; padding: 80px 0 0; font-size: 15px; }
.site-footer .f-logo img { height: 64px; width: auto; margin-bottom: 20px; display: block; }
.site-footer h5 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: #9fadc8; }
.site-footer a:hover { color: var(--blue); }
.site-footer .f-contact i { color: var(--blue); margin-right: 8px; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding: 22px 0; font-size: 14px; }

/* ---------- Floating buttons ---------- */
.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 990; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; font-size: 28px; box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
  transition: transform .25s;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 990; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 22px;
  opacity: 0; visibility: hidden; transition: all .3s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--blue); color: #fff; }

/* ---------- Simple pages (404 / privacy) ---------- */
.page-hero { padding: 80px 0 50px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); }
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; }
.client-logo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column;
}
.client-logo .logo-box { height: 150px; display: grid; place-items: center; padding: 22px 28px; }
.client-logo img {
  max-height: 104px; max-width: 200px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .72; transition: filter .35s, opacity .35s, transform .35s;
}
.client-logo .logo-text {
  font-family: var(--font-head); font-weight: 800; font-size: 22px; color: #8a919c; text-align: center; line-height: 1.2;
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: color .35s;
}
.client-logo .logo-text i { font-size: 36px; }
.client-logo .meta {
  border-top: 1px solid var(--line); background: var(--bg-soft); padding: 12px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; flex: 1;
}
.client-logo .meta strong { font-family: var(--font-head); color: var(--navy); font-size: 14.5px; }
.client-logo .meta span { color: var(--muted); white-space: nowrap; }
.client-logo .meta span i { color: var(--blue); margin-right: 4px; }
.client-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.client-logo:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.client-logo:hover .logo-text { color: var(--navy); }
@media (hover: none) { .client-logo img { filter: none; opacity: 1; } .client-logo .logo-text { color: var(--navy); } }
.client-more { text-align: center; margin: 28px 0 0; color: var(--slate); font-weight: 600; }
.client-more i { color: var(--blue); margin-right: 6px; }
@media (max-width: 991px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .client-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .client-logo .logo-box { height: 110px; padding: 14px; } .client-logo img { max-height: 78px; max-width: 130px; } .client-logo .meta { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; padding: 10px 12px; } .client-logo .logo-text { font-size: 16px; } }
