/* =====================================================================
   Computer Xperts — shared styles (css/site.css)
   Loaded on every redesigned page, before the page's own stylesheet
   (css/home.css, css/about.css ...).

   Contents
    1. Settings (colours, type, sizes)
    2. Base
    3. Buttons
    4. Header: top bar, main bar, menus
    5. Section headings
    6. Inner pages: page hero, breadcrumb, Company side menu + free quote card
    7. Footer
    8. Floating WhatsApp button + social icons, lightbox
    9. Forms: card with a dark "Prefer to talk?" side + form (Contact, Free Quote)
   9b. Questions & answers: open/close boxes (F.A.Q page, homepage)
   10. Motion shared by all pages (only with .motion-ok); "calm" pages switch it off
   11. Responsive: 1180px, 1023px, 640px
   ===================================================================== */


/* 1. Settings ----------------------------------------------------------- */
/* Lato, served from this site (fonts/, SIL Open Font License, fonts/OFL.txt): no wait for Google Fonts.
   400 and 900 are preloaded in every page's head. */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/lato-900.woff2") format("woff2"); }

:root {
  /* Xperts colours (from the original site and logo) */
  --ink: #151515;           /* black */
  --ink-2: #1f1f1f;         /* slightly lighter black for panels */
  --red: #cf0b0b;           /* Xperts red */
  --red-deep: #ad0101;      /* hover red */
  --red-text: #b30909;      /* red for small text on white (AA contrast) */
  --red-on-dark: #ff5050;   /* red for text on black */
  --red-tint: #fdecec;      /* pale red background */

  /* Alibaba orange — only for Alibaba-related elements */
  --alibaba: #ff6a00;
  --alibaba-text: #c2410c;  /* for small text on white (AA contrast) */
  --alibaba-tint: #fff1e6;

  /* WhatsApp green, YouTube red */
  --whatsapp: #15803d;   /* WhatsApp green, dark enough for white text (contrast 5:1) */
  --whatsapp-hover: #4be083;
  --youtube: #ff0000;

  /* neutrals */
  --white: #ffffff;
  --paper: #f5f5f5;
  --line: #e0e0e0;
  --line-soft: #eeeeee;
  --text: #161616;
  --muted: #4a4a4a;

  /* type and layout */
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1520px;
  --gutter: clamp(16px, 6vw, 72px);   /* wide enough to clear the social icons on the left */
  --radius: 6px;
  --header-h: 96px;         /* height of the white main bar (JS keeps this exact) */
  --section-y: clamp(56px, 8vw, 120px);   /* space above and below every page section (tall, like leading sites) */

  /* shadow behind the hero text, readable where the video gradient fades out */
  --hero-text-shadow: 0 2px 18px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .4);
}


/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-wrap: break-word;   /* a long word or address never pushes the page wider than a phone */
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* line icons: each page keeps its icons once in a hidden <svg> at the top of <body>; use <svg class="ic" viewBox="0 0 24 24"><use href="#name"/></svg> */
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--red); color: var(--white);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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


/* 3. Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; letter-spacing: .01em; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }   /* every button icon */
.ic--go { width: 18px; height: 18px; transition: transform .2s ease; }   /* arrow that slides right when its link is hovered */
.btn .ic { stroke-width: 2.2; }

/* Free Quote (red, with gift icon) */
.btn--quote { gap: 9px; background: var(--red); color: var(--white); white-space: nowrap; }
.btn--quote:hover { background: var(--ink); color: var(--white); }

/* Alibaba Services (hero) */
.btn--primary { min-height: 54px; padding: 0 28px; font-size: 16.5px; background: var(--alibaba); color: var(--ink); }
.btn--primary:hover { background: var(--white); color: var(--ink); }

/* outlined, on dark backgrounds (Call Now) */
.btn--light { min-height: 54px; padding: 0 28px; font-size: 16.5px; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--call { gap: 10px; }
.btn--call svg { fill: currentColor; }   /* solid phone */

/* outlined, on light backgrounds (View More, More success stories) */
.btn--line { min-height: 42px; border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }

/* WhatsApp (footer) and YouTube (testimonials) */
.btn--wa { background: var(--whatsapp); color: var(--white); }
.btn--wa:hover { background: var(--whatsapp-hover); }
.btn--wa svg { fill: currentColor; }
.btn--yt { gap: 9px; }
.btn--yt svg { fill: var(--youtube); }

/* larger size (footer call-to-action, Contact hero); after the variants so it wins */
.btn--lg { min-height: 50px; padding: 0 22px; gap: 9px; font-size: 15.5px; }


/* a row of large buttons (hero, cards) */
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }


/* 4. Header ------------------------------------------------------------- */
/* The white main bar stays pinned; nothing changes height on scroll, so the page never jumps. */
.site-header { position: sticky; top: 0; z-index: 50; }

/* thin red bar under the header showing how far down the page you are: driven by the page scroll itself
   where the browser can (no script runs while scrolling), otherwise js/site.js section 3 sets --progress */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progress-grow linear both; animation-timeline: scroll(root); }
}
@keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- main bar: once you scroll it turns slightly see-through with a blur and a soft shadow.
   The frosted glass is a separate layer behind the bar (::before), so hovering the menus never makes
   the blur redraw (blur on the bar itself made the menus lag). ---- */
.mainbar {
  position: relative; isolation: isolate; background: var(--white); border-bottom: 1px solid var(--line);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.mainbar::before {   /* nearly solid where the browser can't blur, so the menu stays readable */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
  background: rgba(255, 255, 255, .95); transition: opacity .3s ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .mainbar:not(:has(.primary-nav.is-open))::before {   /* frosted glass, except while the phone menu is open */
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  }
}
.site-header.is-scrolled .mainbar { background: transparent; border-bottom-color: rgba(224, 224, 224, .6); box-shadow: 0 6px 24px rgba(0, 0, 0, .10); }
.site-header.is-scrolled .mainbar::before { opacity: 1; }

.mainbar__inner { display: flex; align-items: center; gap: 24px; min-height: 96px; }
.brand img { width: 290px; height: auto; }

/* ---- menu ---- */
.primary-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav { display: flex; align-items: center; }
.nav > li { position: relative; display: flex; align-items: center; }
.nav > li > a {
  display: block; padding: 30px 12px;
  color: var(--ink); font-weight: 700; font-size: 15.5px; text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--red), var(--red)) no-repeat left 12px bottom 22px / 0 3px;  /* underline */
  transition: background-size .25s ease;
}
.nav > li > a:hover,
.nav > li.is-hover > a,
.nav > li.is-current > a,   /* the section you are in */
.nav > li:has(:focus-visible) > a { background-size: calc(100% - 24px) 3px; }

.nav-toggle, .sub-toggle { display: none; }   /* phone-only controls */

/* chevron next to Company / Alibaba / Services */
.has-sub > a::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; vertical-align: 3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  transition: transform .25s ease;
}

/* Menu state: JS adds .is-hover (one menu at a time; a short delay before closing so fast mouse
   moves don't flicker). Keyboard focus also opens a menu. Without JS, plain :hover works. */
.has-sub.is-hover > a::after,
.has-sub:has(:focus-visible) > a::after,
html:not(.menu-js) .has-sub:hover > a::after { transform: translateY(3px) rotate(225deg); }

/* ---- dropdowns ---- */
.has-sub > ul {
  position: absolute; top: 100%; left: -8px; width: max-content; min-width: 210px; padding: 0;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: 0 0 10px 10px; box-shadow: 0 22px 48px rgba(0, 0, 0, .16);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: none;   /* closing is instant, so two menus never overlap */
  will-change: opacity, transform;   /* its own layer: opening it never redraws the blurred header behind */
}
.has-sub.is-hover > ul,
.has-sub:has(:focus-visible) > ul,
html:not(.menu-js) .has-sub:hover > ul {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
/* invisible bridge over the gap so the pointer never "falls out" between link and menu */
.has-sub > ul::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }

/* row dividers */
.has-sub > ul > li { border-bottom: 1px solid var(--line-soft); }
.has-sub > ul > li:last-child { border-bottom: 0; }

/* rows: round marker + arrow before the text; on hover the whole row fills with a solid colour (a quick
   fade, so moving fast never leaves a row half filled): Xperts red, or the row's own --brand colour
   (Alibaba orange, each Services brand; --brand-ink is the text colour on a light one). The rows reach
   the menu's edges; the last one follows its rounded corners. */
.has-sub > ul a {
  --dd-x: 14px;   /* marker position */
  position: relative; display: flex; align-items: center;
  padding: 11px 20px 11px calc(var(--dd-x) + 30px);
  color: var(--text); font-size: 15px; font-weight: 400; text-decoration: none; white-space: nowrap;
  transition: color .12s ease, background-color .12s ease;
}
.has-sub > ul > li:last-child > a { border-radius: 0 0 9px 9px; }
.has-sub > ul a::before {   /* round marker */
  content: ""; position: absolute; left: var(--dd-x); top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; background: #f0f0f0;
  transition: background-color .12s ease, transform .2s ease;
}
.has-sub > ul a::after {    /* arrow inside the marker */
  content: ""; position: absolute; left: calc(var(--dd-x) + 6px); top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-top: 2px solid #777777; border-right: 2px solid #777777; transform: rotate(45deg);
  transition: border-color .12s ease, transform .2s ease;
}
/* the page you are on (before the hover rules, which win over it) */
.has-sub > ul a[aria-current="page"] { color: var(--red-text); font-weight: 700; }
.has-sub > ul a[aria-current="page"]::before { background: var(--brand, var(--red)); }
.has-sub > ul a[aria-current="page"]::after { border-color: var(--white); }
.has-sub > ul a:hover,
.has-sub > ul a:focus-visible { color: var(--brand-ink, var(--white)); background-color: var(--brand, var(--red)); }
.has-sub > ul a:hover::before,
.has-sub > ul a:focus-visible::before { background: rgba(255, 255, 255, .28); transform: scale(1.12); }
.has-sub > ul a:hover::after,
.has-sub > ul a:focus-visible::after { border-color: var(--brand-ink, var(--white)); transform: translateX(2px) rotate(45deg); }


/* ---- Alibaba and Services dropdowns: a card about the page under the pointer slides out on the right
   (js/site.js section 4 adds .is-previewing and .is-active). --brand is set on each Services row and
   once for the whole Alibaba menu. ---- */

/* the card: outside the list, on its right; hidden until a row is hovered. Its visibility is
   'inherit' (never 'visible'), so a closed menu always hides it and it can't catch the pointer. */
.has-sub > ul > .menu-preview {
  position: absolute; top: -3px; left: calc(100% + 10px); display: grid; width: 290px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px;
  background: #161616; box-shadow: 0 22px 48px rgba(0, 0, 0, .28);
  opacity: 0; visibility: hidden; transform: translateX(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}
/* an invisible strip on the left: bridges the gap between the menu and its card, and covers the gap
   a footer link leaves when it slides right on hover (no flicker) */
.menu-preview::before,
.footer__col ul a:hover::after { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 12px; }
.sub-preview.is-previewing > .menu-preview { opacity: 1; visibility: inherit; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
.menu-preview__card {
  position: relative; isolation: isolate; overflow: hidden;
  grid-area: 1 / 1; display: flex; flex-direction: column; padding: 14px 18px 18px; border-radius: 15px; color: var(--white);
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02) 45%, rgba(0, 0, 0, .34));   /* glass sheen */
  opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility 0s .15s;
  will-change: opacity;   /* its own layer: switching cards only fades, nothing is redrawn */
}
.menu-preview__card::before {   /* soft colour glows behind the glass, mixed from the page's own colour
                                   (wide gradients instead of a blur filter, which is slow to draw) */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background:
    radial-gradient(60% 50% at 18% 12%, var(--brand), transparent),
    radial-gradient(55% 45% at 95% 30%, color-mix(in srgb, var(--brand) 45%, #ff3d9a), transparent),
    radial-gradient(60% 50% at 85% 100%, color-mix(in srgb, var(--brand) 40%, #3d7bff), transparent),
    radial-gradient(50% 45% at 5% 92%, color-mix(in srgb, var(--brand) 50%, #ffb800), transparent);
}
.menu-preview__card.is-active { opacity: 1; visibility: inherit; transition: opacity .15s ease; }
.menu-preview__card img { width: 100%; height: 168px; margin: -2px 0 8px; object-fit: contain; }
.menu-preview__title { font-size: 16px; font-weight: 900; line-height: 1.3; }
.menu-preview__text { margin-top: 4px; color: #e6e6e6; font-size: 13.5px; line-height: 1.45; }
.menu-preview__facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.menu-preview__facts span {
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.5;
  background: color-mix(in srgb, var(--brand) 30%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 70%, transparent);
}


/* 5. Section headings --------------------------------------------------- */
.section-title { color: var(--ink); font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.block-head > .btn { flex: none; }   /* the button never wraps */
.block-head--stack { display: block; }
.block-head--stack p,
.block-head__copy p { max-width: 40em; margin-top: 14px; color: var(--muted); font-size: 19px; line-height: 1.6; }


/* 6. Inner page hero + breadcrumb ---------------------------------------
   Dark band under the header with the page title on the left and a picture on the right,
   same black-and-red look as the homepage hero. */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--white);
}
.page-hero::before {   /* ambient light: a deep glow low on the right, a softer one top centre, faint light top left;
                          in the page's accent colour (Alibaba orange, a service's colour), red elsewhere */
  content: ""; position: absolute; inset: -15%; z-index: -1;
  background:
    radial-gradient(48% 55% at 88% 92%, color-mix(in srgb, var(--accent, var(--red)) 50%, transparent), transparent 70%),
    radial-gradient(40% 40% at 62% 8%, color-mix(in srgb, var(--accent, var(--red)) 16%, transparent), transparent 70%),
    radial-gradient(38% 50% at 6% 10%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #141414, #1c1c1c);
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent, var(--red)); }
.page-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center;
  min-height: clamp(380px, 52vh, 560px); padding-top: 56px; padding-bottom: 88px;
}
.page-hero__title {
  margin-top: 18px; color: var(--white);
  font-size: clamp(38px, 4.6vw, 64px); font-weight: 900; line-height: 1.02; letter-spacing: -.02em;
}
.page-hero__title span { color: var(--red-on-dark); }
.page-hero__text { max-width: 36em; margin-top: 20px; color: #d6d6d6; font-size: 17px; line-height: 1.65; }
.page-hero__text b { color: var(--white); }

/* picture in a frame with a red block offset behind it */
.page-hero__media { position: relative; }
.page-hero__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border-radius: 16px; background: var(--red);
}
.page-hero__media img {
  width: 100%; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; color: #a8a8a8; font-size: 14px; }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: #6a6a6a; }
.breadcrumb a { color: #d6d6d6; text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--accent-on-dark, var(--red-on-dark)); }
.breadcrumb [aria-current="page"] { color: var(--white); font-weight: 700; }

/* an illustration instead of a photo: no frame, no red block */
.page-hero__media--art::before { display: none; }
.page-hero__media--art img { border: 0; border-radius: 0; box-shadow: none; }

/* ---- Layered scene: separate picture pieces placed on a stage; each one floats gently on its own.
        Each piece sets --x, --y (position, % of the stage), --w (width, %) and --delay in the HTML.
        Nothing here reacts to the mouse (the owner wants the pictures to stay in place). ---- */
.scene { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.scene__piece {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  pointer-events: none;
}
.scene__float { backface-visibility: hidden; }
.scene__float img { display: block; width: 100%; height: auto; }

/* ---- Main column + Company side menu (Careers, Methodology, Technology) ---- */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }

/* ---- White card that lifts with a red edge on hover (positions, offices, technology cards) ---- */
.card-lift { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card-lift:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 20px 36px -24px rgba(0, 0, 0, .35); }
/* Anything that lifts on hover: while lifted, an invisible strip fills the gap underneath, so a pointer
   near its lower edge stays on it instead of making it drop and rise (flicker). One rule for the whole
   site: .card-lift and the footer icons here, plus lifting items of the page stylesheets (home, about, careers). */
.card-lift:hover::after,
.host-features li:hover::after,
.value:hover::after,
.reason:hover::after,
.connect__list a:hover::after,
.hiring-btn:hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }

/* ---- 3D icon tile: a red tile tilted towards you with a solid edge underneath ----
        (used for steps and stages; --dark for the last one, --sm for smaller ones) */
.tile3d {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px;
  background: linear-gradient(145deg, #ff3b3b, #b00000); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 0 #7a0000, 0 18px 28px -10px rgba(207, 11, 11, .7);
  transform: perspective(420px) rotateX(14deg) rotateY(-14deg);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.tile3d .ic { width: 34px; height: 34px; stroke-width: 1.9; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.tile3d--dark { background: linear-gradient(145deg, #3a3a3a, #111111); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 0 #000000, 0 18px 28px -10px rgba(0, 0, 0, .7); }
.tile3d--sm { width: 56px; height: 56px; border-radius: 15px; }
.tile3d--sm .ic { width: 26px; height: 26px; }
:hover > .tile3d { transform: perspective(420px) rotateX(0) rotateY(0) translateY(-4px); }

/* ---- Company side menu (About, Technology, Methodology ...) + free quote card ---- */
.side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }

.side-nav { padding: 24px 22px 14px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.side-nav__title { position: relative; margin-bottom: 10px; padding-bottom: 12px; color: var(--ink); font-size: 18px; font-weight: 900; }
.side-nav__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--red); }
.side-nav li { border-bottom: 1px solid var(--line-soft); }
.side-nav li:last-child { border-bottom: 0; }
.side-nav a,
.side-nav [aria-current="page"] {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 11px 4px; font-size: 15.5px; text-decoration: none; transition: color .2s ease, padding .2s ease;
}
.side-nav a { color: var(--text); }
.side-nav a::after {   /* small arrow */
  content: ""; width: 7px; height: 7px; border-top: 2px solid #9a9a9a; border-right: 2px solid #9a9a9a;
  transform: rotate(45deg); transition: border-color .2s ease, transform .2s ease;
}
.side-nav a:hover { color: var(--red-text); padding-left: 10px; }
.side-nav a:hover::after { border-color: var(--red); transform: translateX(3px) rotate(45deg); }
.side-nav [aria-current="page"] { padding-left: 14px; color: var(--red-text); font-weight: 700; }
.side-nav [aria-current="page"]::before {   /* red marker on the page you are on */
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--red);
}

.side-cta {
  position: relative; overflow: hidden; display: grid; gap: 6px; padding: 24px 22px; border-radius: 16px;
  background: linear-gradient(135deg, #e01414, #a80000); color: var(--white); text-decoration: none;
  box-shadow: 0 20px 40px -24px rgba(207, 11, 11, .9);
}
.side-cta::after {   /* soft circle in the corner */
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.side-cta__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.side-cta__icon .ic { width: 22px; height: 22px; stroke-width: 2; }
.side-cta__title { font-size: 21px; font-weight: 900; line-height: 1.2; }
.side-cta__text { color: #ffe3e3; font-size: 14.5px; line-height: 1.5; }
.side-cta__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; font-weight: 700; }
.side-cta:hover .ic--go { transform: translateX(4px); }


/* 7. Footer ------------------------------------------------------------- */
.site-footer {
  position: relative; padding-top: 56px;
  background: var(--ink); color: #c4c4c4; font-size: 15.5px; line-height: 1.6;
  background-image:   /* ambient light: red glow top right, faint warm glow bottom left */
    radial-gradient(1000px 420px at 85% 0%, rgba(207, 11, 11, .18), rgba(207, 11, 11, 0) 70%),
    radial-gradient(800px 380px at 5% 100%, rgba(207, 11, 11, .08), rgba(207, 11, 11, 0) 70%),
    linear-gradient(180deg, #151515, #111111);
}
/* top stripe: Xperts red + Alibaba orange */
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--red) 0 66%, var(--alibaba) 66% 100%);
}

/* ---- "Ready to take your business global?" box ---- */
.footer-cta {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 36px 40px; border-radius: 16px;
  background: linear-gradient(120deg, #2a2a2a 0%, #1c1c1c 60%, #171717 100%);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .5);
}
.footer-cta::before {   /* red glow in the corner */
  content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(207, 11, 11, .35), rgba(207, 11, 11, 0)); pointer-events: none;
}
.footer-cta__copy { position: relative; }
.footer-cta__title { color: var(--white); font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.footer-cta__text { max-width: 40em; margin-top: 8px; color: #cccccc; font-size: 16.5px; }
.footer-cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

/* ---- columns: brand | Company | Services | Other Links | Contact ---- */
.footer__top {
  display: grid; gap: 40px; padding-top: 56px; padding-bottom: 44px;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .75fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(236px, 1.4fr);
}
.footer__logo { display: inline-block; }
.footer__logo img { width: 220px; height: auto; }
.footer__about { max-width: 34em; margin-top: 22px; color: #b0b0b0; font-size: 14.5px; }
.footer__about p { display: inline; }

.footer__col h3 { position: relative; margin-bottom: 22px; padding-bottom: 12px; color: var(--white); font-size: 17px; font-weight: 900; }
.footer__col h3::after {   /* red underline that grows on hover */
  content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px;
  background: var(--red); transition: width .35s ease;
}
.footer__col:hover h3::after { width: 52px; }
.footer__col li + li { margin-top: 10px; }

/* link lists: slide right with a red dash on hover */
.footer__col ul a { position: relative; display: inline-block; color: #cccccc; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.footer__col ul a::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 8px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s ease;
}
.footer__col ul a:hover,
.footer__col ul a:focus-visible { color: var(--white); transform: translateX(10px); }
.footer__col ul a:hover::before,
.footer__col ul a:focus-visible::before { transform: scaleX(1); }

/* contact column: icon + text rows (no slide effect) */
.contact-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.contact-list li + li { margin-top: 18px; }
.contact-list .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: var(--red); stroke-width: 2; }
.footer__col .contact-list a { color: var(--white); transform: none; }
.footer__col .contact-list a::before { display: none; }
.footer__col .contact-list a:hover { color: var(--red-on-dark); }
.footer__address { line-height: 1.55; }
.footer__line { display: flex; flex-direction: column; line-height: 1.4; }
.footer__line em { color: #9a9a9a; font-size: 12.5px; font-style: normal; letter-spacing: .04em; }
.footer__line a { font-weight: 700; white-space: nowrap; }

/* mobile numbers: call link + round WhatsApp button */
.footer__num { display: flex; align-items: center; gap: 10px; }
.footer__num + .footer__num { margin-top: 6px; }
.footer__col .contact-list .footer__wa {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white); transition: background-color .2s ease, transform .2s ease;
}
.footer__col .contact-list .footer__wa:hover { background: var(--whatsapp-hover); color: var(--white); transform: scale(1.1); }
.footer__wa svg { width: 14px; height: 14px; fill: currentColor; }

/* ---- bottom bar: copyright | PayPal + back to top ---- */
.footer__bottom { border-top: 1px solid #2b2b2b; }
.footer__bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 22px; padding-bottom: 22px; color: #9a9a9a; font-size: 14px;
}
@media (min-width: 1100px) {   /* keep PayPal and "back to top" clear of the floating WhatsApp button */
  .footer__bottom-inner { padding-right: 220px; }
}
.footer__bottom-right { display: flex; align-items: center; gap: 14px; }
.footer__paypal { width: 120px; height: auto; padding: 6px 10px; border-radius: 6px; background: var(--white); }
.to-top {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #3a3a3a; color: var(--white);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.to-top .ic { width: 18px; height: 18px; transition: transform .25s ease; }
.to-top:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.to-top:hover .ic { transform: translateY(-3px); }


/* 8. Floating WhatsApp button + social icons, lightbox ------------------- */
/* WhatsApp "Let's Talk" pill, bottom right */
.whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 14px; border-radius: 28px;
  background: var(--whatsapp); color: var(--white); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease;
}
.whatsapp:hover { background: var(--whatsapp-hover); transform: scale(1.05); }
.whatsapp svg { width: 28px; height: 28px; fill: currentColor; }

/* social profiles: round icons stacked on the left, each in its own brand colour;
   on phones they fold into one share button (js/site.js section 6) */
.social-dock { position: fixed; left: 14px; top: 50%; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateY(-50%); }
.social-dock__toggle { display: none; }
.social-dock__links { display: flex; flex-direction: column; gap: 8px; }
.social-dock__link {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand); color: var(--white); box-shadow: 0 6px 16px rgba(0, 0, 0, .22); transition: transform .2s ease;
}
.social-dock__link:hover,
.social-dock__link:focus-visible { transform: scale(1.1); }
.social-dock__link svg { width: 20px; height: 20px; fill: currentColor; }
.social-dock__link--facebook { --brand: #1877f2; }
.social-dock__link--instagram { --brand: #e1306c; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-dock__link--tiktok { --brand: #000000; }
.social-dock__link--youtube { --brand: #ff0000; }
.social-dock__link--x-twitter { --brand: #000000; }
.social-dock__link--threads { --brand: #000000; }
.social-dock__link--linkedin { --brand: #0a66c2; }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 56px 64px; background: rgba(0, 0, 0, .92); }
.lightbox[hidden] { display: none; }
.lightbox__img { width: auto; max-width: 100%; max-height: calc(100vh - 112px); border-radius: 4px; }
/* round buttons: fixed, so they stay in view while a large document or screenshot scrolls underneath */
.lightbox__close,
.lightbox__nav {
  position: fixed; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; cursor: pointer;
  border: 2px solid var(--white); border-radius: 50%; background: #151515; color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45); font: 400 32px/1 var(--font); transition: background-color .2s ease;
}
.lightbox__close:hover, .lightbox__close:focus-visible,
.lightbox__nav:hover, .lightbox__nav:focus-visible { background: var(--red); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
.lightbox.is-single .lightbox__nav { display: none; }
/* data-lightbox="doc" (price table) and "tall" (full-page screenshots): scroll inside the viewer */
.lightbox.is-doc,
.lightbox.is-tall { overflow: auto; place-items: start center; }
.lightbox.is-doc .lightbox__img,
.lightbox.is-tall .lightbox__img { max-width: none; max-height: none; margin: auto 0; }
.lightbox.is-doc .lightbox__img { width: min(1300px, 100%); background: var(--white); }
.lightbox.is-tall .lightbox__img { width: min(520px, 100%); }


/* 9. Forms -------------------------------------------------------------- */
.feedback__card {
  display: grid; grid-template-columns: 360px minmax(0, 1fr); overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .45);
}

/* "Prefer to talk?" side */
.talk-card { display: grid; align-content: start; gap: 12px; padding: 36px 30px; background: var(--ink); color: var(--white); }
.talk-card__title { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 900; line-height: 1.2; }
.talk-card__title .ic { width: 26px; height: 26px; color: var(--red-on-dark); }
.talk-card__text { margin-bottom: 10px; color: #cfcfcf; font-size: 15.5px; }
.talk-card__line {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: var(--white); font-size: 16px; font-weight: 700; text-decoration: none; transition: border-color .2s ease, background-color .2s ease;
}
.talk-card__line:hover { border-color: var(--red-on-dark); background: rgba(255, 255, 255, .1); }
.talk-card__line .ic { width: 20px; height: 20px; color: var(--red-on-dark); }
.talk-card__line svg:not(.ic) { width: 20px; height: 20px; fill: var(--whatsapp); }

/* form side */
.feedback__form { padding: 36px 40px 40px; background: var(--white); }
.feedback__title { color: var(--ink); font-size: clamp(26px, 2.6vw, 32px); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.feedback__text { max-width: 40em; margin-top: 8px; color: var(--muted); font-size: 16px; }

.feedback-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 26px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field span { color: var(--ink); font-size: 14px; font-weight: 700; }
.field input,
.field textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid #cfcfcf; background: var(--paper);
  color: var(--text); font: 400 16px/1.4 var(--font); transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus { outline: 0; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 3px rgba(207, 11, 11, .12); }
.antispam { display: none; }
.feedback-form .g-recaptcha { grid-column: 1 / -1; }
.feedback-form__submit { grid-column: 1 / -1; justify-self: start; gap: 9px; min-height: 52px; padding: 0 30px; font-size: 16px; cursor: pointer; }


/* 9b. Questions & answers (open/close boxes: F.A.Q page and the homepage) ---- */
.faq { margin-top: 10px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease; }
.faq:hover { border-color: #cfcfcf; }
.faq[open] { border-color: var(--red); box-shadow: 0 10px 28px rgba(0, 0, 0, .07); }
.faq summary {
  position: relative; padding: 18px 60px 18px 22px; cursor: pointer; list-style: none;
  color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,   /* plus sign that turns into a minus */
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 16px; height: 2.5px; margin-top: -1px;
  border-radius: 2px; background: var(--red); transition: transform .25s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }
.faq summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 14px; }
.faq__answer { padding: 0 22px 20px; color: var(--text); font-size: 16px; line-height: 1.7; }
.faq__answer p + p,
.faq__answer p + ul { margin-top: 10px; }
.faq__answer ul { display: grid; gap: 6px; padding-left: 4px; }
.faq__answer li { position: relative; padding-left: 20px; }
.faq__answer li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.faq__answer a { color: var(--red-text); font-weight: 700; }
@media (max-width: 640px) {
  .faq summary { padding: 16px 52px 16px 18px; font-size: 16px; }
  .faq summary::before, .faq summary::after { right: 18px; }
  .faq__answer { padding: 0 18px 18px; font-size: 15.5px; }
}


/* 10. Motion shared by all pages -----------------------------------------
   Only when JS has added .motion-ok to <html> AND the visitor has not asked for reduced motion.
   Without JS (and for search engines) everything is simply visible. */
@media (prefers-reduced-motion: no-preference) {

  /* inner page hero: text rises in, picture follows */
  .motion-ok .page-hero__copy { animation: page-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .motion-ok .page-hero__media { animation: page-rise .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .motion-ok .page-hero::before { animation: ambient-drift 18s ease-in-out infinite alternate; }   /* the light slowly shifts */
  .motion-ok .scene__float { animation: piece-float 4s ease-in-out var(--delay, 0s) infinite; will-change: transform; }  /* pieces drift gently */

  /* section titles wipe in from the left */
  .motion-ok .section-title { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.65, 0, .35, 1); }
  .motion-ok .is-in .section-title { clip-path: inset(0 0 0 0); }

  /* lists and grids: items appear one after another (JS sets --i on each item) */
  /* An animation on opacity + translate, so each item keeps its own transform and transitions (hover lifts). */
  .motion-ok [data-stagger] > * { opacity: 0; }
  .motion-ok [data-stagger].is-in > * { animation: item-rise .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 70ms) both; }

  /* buttons: colour fills in from the left */
  .btn--line, .btn--quote { position: relative; overflow: hidden; isolation: isolate; }
  .btn--line::before, .btn--quote::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.65, 0, .35, 1);
  }
  .btn--line:hover::before, .btn--quote:hover::before { transform: scaleX(1); }
  .btn--line:hover { background-color: transparent; color: var(--white); }
  .btn--quote:hover { background-color: var(--red); color: var(--white); }
}

@keyframes piece-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -8px, 0); } }
@keyframes ambient-drift { from { transform: translate(-3%, 2%) scale(1); } to { transform: translate(3%, -2%) scale(1.06); } }
@keyframes item-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: none; } }
@keyframes page-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* "calm" pages (Contact and the section pages): no entrance animations in the hero or on section titles */
.calm .page-hero::before,
.calm .page-hero__copy,
.calm .page-hero__media { animation: none !important; }
.calm .section-title { clip-path: none !important; transition: none !important; }


/* 11. Responsive -------------------------------------------------------- */

/* ---- small laptops ---- */
@media (max-width: 1180px) {
  .mainbar__inner { gap: 16px; }
  .brand img { width: 220px; }
  .primary-nav { gap: 12px; }
  .nav > li > a { padding-left: 8px; padding-right: 8px; font-size: 14.5px; }
  .primary-nav .btn--quote { padding-left: 16px; padding-right: 16px; }
}

/* ---- up to small laptops (iPads included): the side gutter is too narrow for the social icons, so they
   fold into one share button at the bottom left (js/site.js opens it), and the page ends with room for
   the floating buttons ---- */
@media (max-width: 1099px) {
  .social-dock { top: auto; bottom: 14px; transform: none; }
  .social-dock__toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--ink); color: var(--white); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); order: 2;
  }
  .social-dock__toggle .ic { width: 20px; height: 20px; }
  .social-dock__toggle[aria-expanded="true"] { background: var(--red); }
  .menu-js .social-dock__links { display: none; }
  .social-dock.is-open .social-dock__links { display: flex; }
  .site-footer { padding-bottom: 76px; }
}

/* ---- touch screens: links a finger can hit (at least about 40px tall), without changing the look ---- */
@media (pointer: coarse) {
  .footer__col li + li { margin-top: 2px; }
  .footer__col ul a { padding: 7px 0; }
  .breadcrumb a { display: inline-block; margin: -10px 0; padding: 10px 0; }
  .footer__col .contact-list .footer__wa { width: 34px; height: 34px; }
}

/* ---- phone-style menu: on tablets and phones, and on any touch screen up to 1366px wide (an iPad held
   sideways has no mouse to open the dropdowns with); js/site.js uses desktop dropdowns only from 1024px
   with a mouse ---- */
@media (max-width: 1023px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
  .mainbar__inner { min-height: 70px; }
  .brand img { width: 200px; }

  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-left: auto; padding: 0 14px;
    border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer;
    background: var(--white); color: var(--ink); font: 700 15px var(--font);
  }
  /* three bars: the middle one is the span, the outer two its ::before / ::after */
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .2s; }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 110px); overflow-y: auto; padding: 8px var(--gutter) 20px;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav .btn--quote { margin-top: 18px; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav > li > a { flex: 1; padding: 15px 0; background: none; font-size: 17px; }
  .has-sub > a::after { display: none; }

  .sub-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; }
  .sub-toggle::before { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
  .sub-toggle[aria-expanded="true"]::before { transform: rotate(225deg); }

  .has-sub > ul {
    position: static; display: none; width: 100%; min-width: 0; padding: 0 0 10px 12px;
    border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .has-sub > ul > li:last-child > a { border-radius: 0; }   /* the phone menu has square corners */
  .has-sub.is-open > ul { display: block; }
  .has-sub > ul > .menu-preview { display: none; }
  .has-sub > ul::before { display: none; }
  .has-sub > ul a { --dd-x: 4px; padding-right: 6px; white-space: normal; }

}

/* ---- tablets ---- */
@media (max-width: 1023px) {
  .with-side { grid-template-columns: 1fr; }
  /* inner page hero: picture under the text */
  .page-hero__inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 56px; }
  .page-hero__media { max-width: 620px; }
  .side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }

  /* footer */
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }
  .footer__brand { grid-column: 1 / -1; }

  /* forms */
  .feedback__card { grid-template-columns: 1fr; }
}

/* ---- phones ---- */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .nav-toggle__label { display: none; }

  .block-head { flex-wrap: wrap; align-items: start; margin-bottom: 26px; }

  .page-hero__inner { padding-top: 28px; padding-bottom: 44px; }
  .page-hero__text { font-size: 16px; }
  .page-hero__media::before { inset: 12px -10px -12px 10px; }
  .side { grid-template-columns: 1fr; }

  /* footer: Company + Other Links side by side, the rest full width */
  .footer-cta { padding: 26px 22px; }
  .footer-cta__actions { width: 100%; }
  .footer-cta .btn { flex: 1 1 auto; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 32px 20px; padding-top: 52px; }
  .footer__brand, .footer__top > nav[aria-label="Services"], .footer__contact { grid-column: 1 / -1; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }

  .whatsapp { right: 14px; bottom: 14px; gap: 8px; height: 50px; padding: 0 18px 0 12px; font-size: 15px; }
  .whatsapp svg { width: 25px; height: 25px; }
  .social-dock__link { width: 40px; height: 40px; }
  .lightbox { padding: 56px 12px; }
  .lightbox.is-doc .lightbox__img { width: 920px; }

  .hero-actions .btn { flex: 1 1 auto; }
  .talk-card { padding: 28px 22px; }
  .feedback__form { padding: 28px 20px 30px; }
  .feedback-form { grid-template-columns: 1fr; }
  .feedback-form .g-recaptcha { transform: scale(.9); transform-origin: 0 0; }
}

