/* =====================================================================
   Shared site styles: loaded on every page so the header, menu and
   content width are identical across the whole website.
   Content width = homepage width (.ctn: 1220px max, 12px side padding).
   ===================================================================== */

.ctn {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 12px;
}

/* Inner-page content container uses the exact homepage width */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ── NAV (from the homepage) ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

nav.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.n-logo {
  font-family: var(--head);
  font-weight: 900;
  font-size: 20px;
  color: #000;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.n-logo em {
  color: var(--g);
  font-style: normal;
}

.n-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.n-links a {
  font-size: 14px;
  color: #3d4c5e;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}

.n-links a:hover {
  color: #111;
}

.n-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--g);
  transition: width 0.2s;
}

.n-links a:hover::after {
  width: 100%;
}

.n-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.n-phone {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.n-cta {
  background: #000;
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  font-family: var(--body);
  transition: all 0.2s;
  display: inline-block;
}

.n-cta:hover {
  background: var(--g);
  color: #fff;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #111;
  font-size: 24px;
  cursor: pointer;
}

/* Current page indicator */
.n-links a.active { color: #111; }
.n-links a.active::after { width: 100%; }
.mobile-menu ul li a.active { color: var(--g); }

/* ── MOBILE MENU ─────────────────────────────────────────────── */

.mobile-menu {
  display: none;
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 16px 32px 24px;
}

.mobile-menu ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu ul li a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.mobile-menu ul li a:hover {
  color: var(--g);
}

.mobile-menu-bottom {
  padding: 20px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-phone {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  display: block;
}

.mobile-cta {
  display: block;
  text-align: center;
  padding: 13px 24px;
  font-size: 14px;
  border-radius: 50px;
  background: var(--g);
  color: #fff !important;
  font-weight: 700;
}

.mobile-cta:hover {
  background: var(--g2);
}

@media (max-width: 768px) {
  .n-links { display: none; }
  .n-right { display: none !important; }
  .hamburger { display: block !important; }
  .mobile-menu-bottom { padding: 20px 24px 28px; margin-top: 8px; }
}

/* ── HEADER CALL ICON ────────────────────────────────────────── */
.n-call {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #111;
  background: rgba(255, 163, 5, 0.12);
  border: 1px solid rgba(255, 163, 5, 0.35);
  transition: all 0.2s;
}

.n-call:hover {
  background: var(--g);
  border-color: var(--g);
  color: #fff;
  transform: translateY(-1px);
}

a.mobile-phone { color: rgba(255, 255, 255, 0.75); font-size: 14px; }
a.mobile-phone i { color: var(--g); margin-right: 8px; }

/* ── FONT AWESOME ICONS (replace the old emoji) ──────────────── */
.ht-ico { color: var(--g); line-height: 1; }
p .ht-ico,
button .ht-ico,
.hub-tab .ht-ico,
.f-trust .ht-ico { color: inherit; margin-right: 4px; }
.hub-img.gi .ht-ico { color: #10a37f; }
.hub-img.ti .ht-ico { color: #2f6fed; }
.hub-img.vi .ht-ico { color: #e5920a; }
.contact-icon .ht-ico { font-size: 17px; }

.ht-flag {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: middle;
}

/* ── GLOBAL FOOTER (markup lives in scripts/footer.js) ───────── */
.ht-footer {
  position: relative;
  background: #f5f5f5;
  padding: 56px 0 0;
  border-top: 0;
  font-family: var(--body);
  overflow: hidden;
}

/* Floating white card */
.ht-footer .ft-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
  padding: 48px 48px 40px;
}

.ht-footer .ft-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin: 0;
  padding-bottom: 36px;
  border-bottom: 1px solid #ececec;
}

.ht-footer .ft-brand { max-width: 380px; }
.ht-footer .ft-logo { display: inline-block; margin-bottom: 22px; }
.ht-footer .ft-logo img { height: 46px; width: auto; display: block; }

.ht-footer .ft-brand p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

.ht-footer .ft-brand .ft-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 10px;
  color: #bbb;
}
.ht-footer .ft-contact a { color: #555; transition: color 0.2s; }
.ht-footer .ft-contact a:hover { color: var(--g2); }

.ht-footer .ft-social { display: flex; gap: 16px; margin-top: 22px; }
.ht-footer .ft-social a {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-size: 17px;
  color: #111;
  transition: color 0.2s, transform 0.2s;
}
.ht-footer .ft-social a:hover { color: var(--g2); background: none; transform: translateY(-2px); }

.ht-footer .ft-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, auto));
  gap: 0 64px;
}

.ht-footer .ft-col h4 {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin: 2px 0 16px;
  text-transform: none;
  letter-spacing: 0;
}

.ht-footer .ft-col ul { list-style: none; margin: 0; padding: 0; }
.ht-footer .ft-col ul li { margin-bottom: 10px; }
.ht-footer .ft-col ul li a {
  font-size: 13.5px;
  color: #666;
  transition: color 0.2s;
}
.ht-footer .ft-col ul li a:hover { color: var(--g2); }

/* Offices row */
.ht-footer .ft-offices {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 26px 0;
  border: 0;
  border-bottom: 1px solid #ececec;
}
.ht-footer .ft-office { display: flex; align-items: center; gap: 12px; }
.ht-footer .ft-flag { width: 22px; height: 22px; flex-shrink: 0; display: block; }
.ht-footer .ft-office h5 {
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  color: #111;
  margin: 0 0 2px;
}
.ht-footer .ft-office p { font-size: 12.5px; color: #777; margin: 0; }

.ht-footer .ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 24px 0 0;
  border: 0;
}
.ht-footer .ft-bottom p { font-size: 13px; color: #555; margin: 0; }
.ht-footer .ft-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ht-footer .ft-legal a {
  font-size: 13px;
  color: #555;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #bbb;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.ht-footer .ft-legal a:hover { color: var(--g2); text-decoration-color: var(--g2); }

/* Giant faded wordmark: its top tucks under the card and its bottom is cut off */
.ht-footer .ft-word {
  position: relative;
  z-index: 1;
  height: clamp(44px, 11.5vw, 165px);
  margin-top: -30px;
  overflow: hidden;
  text-align: center;
  user-select: none;
  pointer-events: none;
}
.ht-footer .ft-word span {
  display: block;
  font-family: var(--head);
  font-size: clamp(64px, 17.5vw, 250px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  background: linear-gradient(180deg, #e6e6e6 0%, #efefef 55%, #f5f5f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 1024px) {
  .ht-footer .ft-top { flex-direction: column; }
  .ht-footer .ft-brand { max-width: 560px; }
  .ht-footer .ft-cols { gap: 0 48px; }
}

@media (max-width: 768px) {
  .ht-footer { padding-top: 32px; }
  .ht-footer .ft-card { padding: 32px 24px 28px; border-radius: 22px; }
  .ht-footer .ft-cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .ht-footer .ft-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .ht-footer .ft-office { align-items: flex-start; }
  .ht-footer .ft-flag { margin-top: 1px; }
  .ht-footer .ft-bottom { flex-direction: column; align-items: flex-start; }
  .ht-footer .ft-word { margin-top: -14px; }
}

/* ── MEGA MENU (markup lives in scripts/mega-menu.js) ────────── */
.n-links a.mm-trigger { display: inline-flex; align-items: center; gap: 6px; }
.mm-caret { font-size: 10px; color: #8a94a3; transition: transform 0.2s, color 0.2s; }
.n-links a.mm-open { color: #111; }
.n-links a.mm-open .mm-caret { transform: rotate(180deg); color: var(--g); }

.mm-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(1196px, calc(100vw - 24px));
  padding-top: 12px;              /* invisible bridge so the menu stays open while moving the mouse down */
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 210;
}
.mm-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mm-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  padding: 28px 30px 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  font-family: var(--body);
  text-align: left;
}

.mm-main { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.mm-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-content: start; }
.mm-label { font-size: 13px; color: #8a94a3; font-weight: 500; margin: 0 0 12px 10px; }
.mm-explore .mm-label { margin-left: 0; }

.mm-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px;
  border-radius: 12px;
  color: #111;
  transition: background 0.15s;
}
.mm-item:hover, .mm-item:focus-visible { background: #f5f5f6; }

.mm-ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #111;
  transition: all 0.15s;
}
.mm-item:hover .mm-ico { background: var(--g); border-color: var(--g); color: #fff; }

.mm-txt { display: block; min-width: 0; }
.mm-title { display: block; font-size: 15px; font-weight: 600; color: #111; line-height: 1.3; }
.mm-desc { display: block; font-size: 12.5px; color: #6b7280; line-height: 1.45; margin-top: 2px; font-weight: 400; }

.mm-visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  height: 168px;
  padding: 18px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 90%, rgba(255, 163, 5, 0.55), transparent 55%),
    linear-gradient(135deg, #111 0%, #1f1a10 100%);
}
.mm-visual img { height: 44px; width: auto; position: relative; z-index: 1; }
.mm-visual i {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 72px;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.25s;
}
.mm-visual:hover i { transform: scale(1.06) translateY(-2px); }

.mm-ex-title { font-family: var(--head); font-size: 16px; font-weight: 700; color: #111; margin-top: 14px; }
.mm-ex-text { font-size: 12.5px; color: #6b7280; line-height: 1.5; margin: 4px 0 12px; }
.mm-ex-link { font-size: 15px; font-weight: 600; color: var(--g2); display: inline-flex; align-items: center; gap: 8px; }
.mm-ex-link i { font-size: 11px; transition: transform 0.2s; }
.mm-ex-link:hover i { transform: translateX(3px); }

.mm-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.mm-bar-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--g);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.mm-bar-q { font-size: 14px; color: #111; font-weight: 500; }
.mm-bar-q a { color: #6b7280; font-weight: 500; margin-left: 4px; transition: color 0.15s; }
.mm-bar-q a:hover { color: var(--g2); }
.mm-bar-btn {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  padding: 8px 16px;
  border-radius: 9px;
  background: #f5f5f6;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s;
  white-space: nowrap;
}
.mm-bar-btn:hover { background: #111; border-color: #111; color: #fff; }

@media (max-width: 1024px) {
  .mm-main { grid-template-columns: 1fr; }
  .mm-explore { display: none; }
}
@media (max-width: 768px) {
  .mm-panel { display: none; }
}

/* Mobile menu: expandable Services / Industries */
.mobile-menu.open { max-height: calc(100vh - 85px); overflow-y: auto; }
.mm-m-row { display: flex; align-items: center; justify-content: space-between; }
.mm-m-row > a { flex: 1; }
.mm-m-toggle {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  cursor: pointer;
}
.mm-m-toggle i { transition: transform 0.2s; }
.mm-m-open .mm-m-toggle { color: var(--g); }
.mm-m-open .mm-m-toggle i { transform: rotate(180deg); }
.mm-m-sub { display: none; padding: 0 0 14px; }
.mm-m-open .mm-m-sub { display: block; }
.mm-m-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 10px 0 4px;
}
.mobile-menu ul li .mm-m-sub a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}
.mobile-menu ul li .mm-m-sub a i { width: 18px; text-align: center; color: var(--g); font-size: 13px; }

/* Service card badges now hold a Font Awesome icon instead of initials */
.platform-badge { font-size: 19px; background: var(--g4); border: 1px solid rgba(255, 163, 5, 0.25); color: var(--g2); }
.platform-badge i { line-height: 1; }

/* ── TECH LOGOS (original brand icons in their own colours) ──── */
.tech-pill { display: inline-flex; align-items: center; gap: 9px; }
.tech-pill .tech-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.tech-pill .ht-ico { font-size: 14px; }
.tech-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.tech-logos .tech-pill { background: var(--off); }

/* Home "Tools we use" grid: logo on a white tile so every brand colour stays visible on the dark section */
.tech-item .tech-ic {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-item .tech-ic .tech-logo { width: 30px; height: 30px; object-fit: contain; }

/* ── FLOATING WHATSAPP BUTTON ────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 300;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.2s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6); color: #fff; }

.wa-tip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #111;
  color: #fff;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

@media (max-width: 768px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 28px; }
  .wa-tip { display: none; }
}
