/* Apilox overrides on top of the Maxino template stylesheet */

/* Hero dashboard: keep the screenshot's real proportions at every screen width
   (the template caps the height at 657px while the width grows with the screen). */
.dashboard {
  width: min(84vw, 1320px);
  height: auto;
  max-height: none;
  aspect-ratio: 1600 / 1000;
  object-fit: cover;
}
.dashboard-block { margin-top: 56px; }
@media screen and (max-width: 479px) {
  .dashboard { width: 92vw; }
}

/* Supported programmes: each marquee row is one screen wide (4 logos in quarter-width slots),
   so each programme appears once per screen as the strip moves. */
.brand-logo-marquee, .brand-logo-wrap { gap: 0 !important; grid-column-gap: 0 !important; }
.brand-logo-wrap { width: 100vw; }
.brand-logo-img.apx-partner {
  width: 25vw; height: 64px; margin: 0; padding: 0 5vw; border: 0;
  box-sizing: border-box; object-fit: contain;
}
@media screen and (max-width: 479px) {
  .brand-logo-img.apx-partner { height: 48px; padding: 0 4vw; }
}

/* Hero dashboard: soft white "cloud" over the bottom, and a light fade on the left and right */
.dashboard {
  -webkit-mask-image:
    linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,.55) 78%, transparent 97%),
    linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,.55) 78%, transparent 97%),
    linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
  box-shadow: none;
}

/* footer social links: a black circle with the network's icon before each name */
.footer-link.apx-social { display: inline-flex; align-items: center; gap: 10px; }
.apx-social-ico {
  width: 28px; height: 28px; flex: none; border-radius: 50%; background: #0a0a0a;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .2s ease;
}
.apx-social-ico svg { width: 14px; height: 14px; }
.footer-link.apx-social:hover .apx-social-ico { transform: scale(1.08); }

/* download cards: platform icon in front of Mac / Windows / Web */
.apx-platform { display: inline-flex; align-items: center; gap: 12px; }
.apx-platform-ico { width: 34px; height: 34px; object-fit: contain; flex: none; }
.apx-platform-ico[src*="icon-apilox"], .apx-platform-ico[src*="icon-atlas"] { border-radius: 9px; }

/* footer: Google Play badges */
.apx-apps { margin-top: 28px; }
.apx-apps-row { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 12px; }
.apx-play {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px;
  background: #0a0a0a; color: #fff; border-radius: 10px; text-decoration: none; transition: transform .2s ease;
}
.apx-play:hover { transform: translateY(-1px); }
.apx-play span { display: flex; flex-direction: column; line-height: 1.1; }
.apx-play small { font-size: 9px; letter-spacing: .06em; opacity: .85; }
.apx-play b { font-size: 16px; font-weight: 600; }
.apx-app-name { margin-top: 6px; font-size: 13px; font-weight: 600; color: #0a0a0a; }
.apx-app-name span { font-weight: 400; color: #6b7280; }

/* About: the team as one row that scrolls left/right */
.team-grid-2 {
  display: flex !important; flex-wrap: nowrap; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 2px; padding-bottom: 14px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.team-grid-2 > .team-member-wrap-2 { flex: 0 0 262px; scroll-snap-align: start; }   /* the 5th card peeks in */
.team-grid-2::-webkit-scrollbar { display: none; }
.apx-scroller { position: relative; }
.apx-arrow {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #0a0a0a; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.apx-arrow:hover { background: #0a0a0a; color: #fff; }
.apx-arrow-prev { left: 12px; }
.apx-arrow-next { right: 12px; }
.apx-arrow[disabled] { opacity: 0; pointer-events: none; }
@media screen and (max-width: 479px) {
  .team-grid-2 > .team-member-wrap-2 { flex-basis: 78vw; }
}

/* footer: apps (left) and social icons (right) in one row under the columns */
.apx-footer-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid #ececec;
}
.apx-footer-row .apx-apps { margin-top: 0; }
.apx-social-row { display: flex; gap: 12px; margin-left: auto; }
.apx-social-btn {
  width: 40px; height: 40px; border-radius: 50%; background: #0a0a0a;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .2s ease, background .2s ease;
}
.apx-social-btn svg { width: 18px; height: 18px; }
.apx-social-btn:hover { transform: translateY(-2px); background: #1f4842; }
@media screen and (max-width: 479px) {
  .apx-social-row { margin-left: 0; }
}

/* ── phones & tablets ─────────────────────────────────────────────── */

/* Download page: keep the Apilox PRO / Mobile apps toggle (the template hides it below 480px) */
@media screen and (max-width: 479px) {
  .tabs-menu { display: flex !important; }
}

/* Menu: a full-screen sheet below the navbar, one big item per row */
@media screen and (max-width: 991px) {
  .w-nav-overlay {
    position: fixed !important; left: 0; right: 0; top: var(--apx-nav-h, 76px) !important;
    height: calc(100dvh - var(--apx-nav-h, 76px)) !important; overflow-y: auto !important;
    background: #fff; z-index: 1000;
  }
  .nav-menu-wrapper[data-nav-menu-open] { display: block !important; width: 100%; height: 100%; background: #fff; }
  .nav-menu-wrapper[data-nav-menu-open] .nav-menu-two {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap;
    margin: 0; padding: 8px 24px 40px; border-radius: 0; background: transparent; box-shadow: none;
  }
  .nav-menu-wrapper[data-nav-menu-open] .nav-menu-two > li { width: 100%; }
  .nav-menu-wrapper[data-nav-menu-open] .nav-link-2 {
    display: block; width: 100%; padding: 18px 0; border-bottom: 1px solid #ececec;
    font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: #0a0a0a; text-align: left;
  }
  .nav-menu-wrapper[data-nav-menu-open] .nav-link-2.w--current { color: #1a8f1a; }
}

/* Footer: everything centred on phones */
@media screen and (max-width: 767px) {
  .apx-footer-row { flex-direction: column; align-items: center; text-align: center; }
  .apx-apps { display: flex; flex-direction: column; align-items: center; }
  .apx-apps-row { justify-content: center; }
  .apx-app { display: flex; flex-direction: column; align-items: center; }
  .apx-social-row { margin: 0 auto; justify-content: center; }
  .copyright-wrapper-2 { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
  .copyright-wrapper-2 > * { text-align: center; justify-content: center; }
}
