/* ==========================================================================
   responsive.css
   Figma only contains a 1920px desktop frame. From 1200px up the desktop
   composition scales proportionally (see --u in style.css). Below 1200px the
   same content, colours, type and components reflow for tablet and mobile.
   Nothing is removed or reordered.
   ========================================================================== */

/* -------------------------------------------------------------------------
   Very large screens: keep the 1920 composition centred
   ------------------------------------------------------------------------- */
@media (min-width: 1921px) {
  .clients__marquee { max-width: 1920px; margin-inline: auto; }
}

/* =========================================================================
   TABLET + MOBILE  (< 1200px)
   ========================================================================= */
@media (max-width: 1199.98px) {
  :root { --u: 0.6px; --gutter: 32px; }

  body { font-size: 16px; }
  .container { width: calc(100% - var(--gutter) * 2); }
  .section-title { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.25; }

  .btn { gap: 8px; padding: 11px 24px; font-size: 15px; line-height: 24px; box-shadow: 0 8px 22px -10px rgba(2, 132, 199, 0.85); }
  .btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(2, 132, 199, 0.95); }
  .btn__icon { width: 14px; height: 14px; }
  .btn:hover .btn__icon, .btn:focus-visible .btn__icon { transform: translate(2px, -2px); }

  /* ---------- Header (compact bar; same white → black on scroll) ---------- */
  :root { --hh-top: 72px; --hh-scrolled: 64px; }
  .site-header__inner { padding: 0 var(--gutter); }
  .site-header__logo { width: 166px; height: 40px; }
  html.header-scrolled .site-header__logo { width: 150px; height: 36px; }
  .main-nav, .site-header__cta, .mega { display: none !important; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; margin-left: auto; padding: 0 9px;
  }
  .menu-toggle span { height: 2px; background: var(--c-navy); border-radius: 2px; transition: transform 0.4s var(--ease-out), opacity 0.3s, background-color 0.4s; }
  html.header-scrolled .menu-toggle span { background: #fff; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: var(--hh) 0 0 0; z-index: 99;
    display: block;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 16px var(--gutter) 40px;
    background: #fff;
    border-top: 6px solid var(--c-blue);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu__list > li { border-bottom: 1px solid var(--c-rule); }
  .mobile-menu__link {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 16px 0;
    color: var(--c-text);
    font-family: var(--f-head);
    font-size: 22px; line-height: 32px;
    text-align: left;
  }
  .mobile-menu__link.is-active { color: var(--c-navy); font-weight: 600; }
  button.mobile-menu__link::after {
    content: ""; width: 10px; height: 10px; margin-right: 4px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.35s var(--ease-out);
  }
  button.mobile-menu__link[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-3px); }
  .mobile-menu__sub { overflow: hidden; }
  .mobile-menu__sub[hidden] { display: none; }
  .mobile-menu__sub ul { display: grid; gap: 4px; padding: 0 0 16px; }
  .mobile-menu__sub a {
    display: flex; align-items: center; gap: 12px;
    padding: 8px; border-radius: 8px;
    color: var(--c-text); font-size: 17px; line-height: 26px; font-weight: 500;
  }
  .mobile-menu__sub a:hover { background: var(--c-menu-hover); color: var(--c-navy); }
  .mobile-menu__sub img { width: 26px; height: 26px; }
  .mobile-menu__sub .is-location img { width: 40px; height: 28px; object-fit: contain; }
  .mobile-menu__cta { margin-top: 32px; border: 1px solid var(--c-btn-border); }

  /* ---------- Hero ---------- */
  .hero { height: 100vh; height: 100svh; min-height: 560px; max-height: 860px; }
  .hero__content { left: var(--gutter); right: var(--gutter); top: auto; bottom: 72px; width: auto; transform: none; }
  .hero__title { width: auto; max-width: 760px; font-size: clamp(32px, 6.4vw, 60px); line-height: 1.3; }
  .hero__text { width: auto; max-width: 560px; margin-top: 12px; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.55; }
  .hero__ctas { gap: 12px; margin-top: 28px; }
  .hero__dots { margin-top: 32px; gap: 8px; }
  .hero__dots span, .hero__dot { width: 8px; height: 8px; }
  .hero__dots span.is-active, .hero__dot.is-active { width: 48px; }
  .hero__arrows { gap: 12px; }
  .hero__arrow { width: 44px; height: 44px; }
  .hero__arrow span { width: 10px; height: 16px; }

  /* ---------- Clients ---------- */
  .clients { margin-top: 48px; }
  .clients__head { column-gap: 20px; }
  .clients__label { font-size: 16px; line-height: 24px; }
  .clients__track { gap: 20px; }
  .clients__track li { width: 170px; height: 96px; }
  .clients__bottom-rule { margin-top: 12px; }

  /* ---------- Specialized ---------- */
  .intro { width: auto; height: auto; margin-top: 72px; display: flex; flex-direction: column; }
  .intro__copy { position: static; order: 1; padding-inline: var(--gutter); }
  .intro__title { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.17; white-space: normal; }
  .intro__text { width: auto; max-width: 600px; margin-top: 16px; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; }
  .intro__copy .btn { margin-top: 28px; }
  .intro__media { position: static; order: 2; width: 100%; height: auto; aspect-ratio: 1366 / 759; margin-top: 16px; }
  .stats { position: static; order: 3; transform: none; grid-template-columns: repeat(2, 1fr); height: auto; margin-top: -40px; }
  .stat { padding: 20px 20px 24px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--c-border); }
  .stat__corner { top: 8px; right: 8px; width: 22px; height: 22px; }
  .stat__corner--sm { width: 18px; height: 18px; }
  .stat__value { font-size: clamp(44px, 7vw, 64px); line-height: 1.3; }
  .stat__label { font-size: 15px; line-height: 22px; }

  /* ---------- Capabilities ---------- */
  .capabilities { margin-top: 88px; }
  .section-head--split { gap: 16px; }
  .capabilities__panel { height: auto; margin-top: 28px; }
  .capabilities__inner { grid-template-columns: 1fr; padding: 32px 24px; row-gap: 32px; }
  .capabilities__media { width: 100%; max-width: 560px; height: auto; aspect-ratio: 648 / 689; }
  .capabilities__watermark { width: 420px; height: 420px; right: -100px; top: -60px; }
  .cap-item + .cap-item { padding-top: 18px; }
  .cap-item { padding-bottom: 18px; }
  .cap-item__title { column-gap: 10px; font-size: 20px; line-height: 32px; }
  .cap-item__body { gap: 16px; }
  .cap-item__desc { width: auto; max-width: 560px; margin-top: 6px; font-size: 15px; line-height: 24px; }
  .cap-item__go { margin-top: 8px; padding: 2px; }
  .cap-item__arrow { width: 32px; height: 32px; }

  /* ---------- Products ---------- */
  .products { margin-top: 88px; }
  .products .section-title { padding-inline: var(--gutter); }
  .products__carousel { margin-top: 24px; }
  .products__track { gap: 16px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .product-card {
    width: 300px; height: 383px;
    clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
  }
  .product-card__content { left: 20px; right: 20px; bottom: 20px; }
  .product-card__title { width: auto; font-size: 24px; line-height: 30px; }
  .product-card__desc { width: auto; font-size: 15px; line-height: 23px; }
  .product-card .text-link { font-size: 18px; line-height: 26px; }
  .carousel-arrow { top: calc(383px / 2 - 24px); width: 48px; height: 48px; }
  .carousel-arrow span { width: 13px; height: 20px; }
  .carousel-arrow--prev { left: 12px; }
  .carousel-arrow--next { right: 12px; }
  .products__cta { margin-top: 32px; }

  .chevron { width: 14px; height: 14px; }
  .text-link { gap: 6px; font-size: 18px; line-height: 26px; }

  /* ---------- Industries ---------- */
  .industries { margin-top: 88px; }
  .industries__grid { margin-top: 28px; }
  .industries__hline, .industries__vline { display: none; }
  .industries__list { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .industry { height: auto; padding: 28px 12px; border-bottom: 1px solid var(--c-rule); text-align: center; }
  .industry:nth-child(odd) { border-right: 1px solid var(--c-rule); }
  .industry:nth-last-child(-n+2) { border-bottom: 0; }
  .industry img { width: 60px; height: 60px; }
  .industry span { margin-top: 16px; font-size: clamp(17px, 2.6vw, 24px); line-height: 1.3; white-space: normal; }

  /* ---------- Updates ---------- */
  .updates { height: auto; margin: 88px 16px 0; }
  .updates__bg img { left: 0; top: 0; width: 100%; height: 100%; }
  .updates__inner { width: auto; flex-direction: column; gap: 40px; padding: 64px 24px; }
  .updates__intro { width: auto; max-width: 560px; }
  .updates__title { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.25; white-space: normal; }
  .updates__text { width: auto; font-size: 17px; line-height: 27px; }
  .updates__intro .btn { margin-top: 28px; }
  .updates__cards { gap: 16px; }
  .updates__cards > li { flex: 1 1 0; min-width: 0; }
  .news-card { width: 100%; height: auto; min-height: 340px; padding: 28px 24px; }
  .news-card__fill { left: 50%; top: 50%; width: 220%; height: auto; aspect-ratio: 1; margin: -110% 0 0 -110%; transform: translate(55%, 55%) scale(0.12); }
  .news-card__corner { width: 32px; height: 32px; top: 8px; right: 8px; }
  .news-card__title { width: auto; padding-right: 24px; font-size: 21px; line-height: 30px; }
  .news-card__date { margin-top: 18px; padding-bottom: 12px; font-size: 15px; line-height: 24px; }
  .news-card__desc { width: auto; margin-top: 12px; font-size: 15px; line-height: 24px; }
  .news-card .text-link { margin-top: auto; padding-top: 18px; }

  /* ---------- Contact ---------- */
  .contact { margin-top: 88px; }
  .contact__panel { height: auto; display: grid; grid-template-columns: 38% 1fr; align-items: end; }
  .contact__panel { --cut: 48px; }
  .contact__pattern { width: 300px; height: 600px; left: -8px; top: -76px; }
  .contact__person { position: relative; left: auto; width: 100%; height: 100%; min-height: 420px; }
  .contact__form-wrap { position: static; width: auto; padding: 48px 32px 48px 8px; }
  .contact__title { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.25; white-space: normal; }
  .contact-form { gap: 18px; margin-top: 24px; }
  .field__box { height: 56px; gap: 12px; padding: 12px; }
  .field__icon { width: 16px; height: 16px; }
  .field__placeholder { font-size: 17px; line-height: 28px; }
  .field__box input, .field__box select, .field__box textarea { padding: 12px 40px 12px 40px; font-size: 17px; line-height: 28px; }
  .field__caret { right: 12px; width: 14px; height: 14px; }
  .field--textarea .field__box { height: 140px; }
  .field--textarea .field__icon { margin-top: 6px; }
  .field__error { font-size: 13px; line-height: 18px; }
  .contact-form__actions { margin-top: 10px; gap: 16px; }
  .contact-form__status { font-size: 15px; line-height: 22px; }

  /* ---------- Footer ---------- */
  .site-footer { margin-top: 88px; }
  .site-footer__inner { width: auto; height: auto; padding: 64px var(--gutter) 0; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .footer-col__title { font-size: 22px; line-height: 32px; }
  .footer-col ul { gap: 10px; margin-top: 12px; }
  .footer-col ul.footer-col__list--narrow { width: auto; }
  .footer-col a, .footer-col dd { font-size: 16px; line-height: 26px; }
  .footer-col--contact dl { margin-top: 12px; }
  .footer-col--contact dt { gap: 8px; font-size: 20px; line-height: 28px; }
  .footer-col--contact dt img { width: 20px; height: 20px; }
  .footer-col--contact dd { margin-left: 28px; }
  .footer-col--contact dt:not(:first-child) { margin-top: 14px; }
  .site-footer__bar { position: static; flex-wrap: wrap; gap: 16px; height: auto; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--c-footer-line); }
  .site-footer__rule { display: none; }
  .site-footer__copy { font-size: 14px; line-height: 22px; }
  .social { gap: 8px; }
  .social a { width: 40px; height: 40px; }
  .social img { width: 22px; height: 22px; }
  .site-footer__watermark { position: static; width: 100%; height: auto; aspect-ratio: 1600 / 238; margin-top: 32px; padding-bottom: 24px; box-sizing: content-box; }

  /* footer centred on tablet + mobile */
  .site-footer__cols { text-align: center; }
  .footer-col ul { align-items: center; }
  .footer-col--contact dt { justify-content: center; }
  .footer-col--contact dd { margin-left: 0; }
  .site-footer__bar { justify-content: center; text-align: center; }
  .site-footer__copy { width: 100%; }
  .social { justify-content: center; }

  /* ---------- Floating actions ---------- */
  .float-actions { right: 16px; top: auto; bottom: 16px; gap: 12px; }
  .float-actions__btn { width: 52px; height: 52px; }
  .float-actions__btn img { width: 26px; height: 26px; }
}

/* =========================================================================
   MOBILE  (< 768px)
   ========================================================================= */
@media (max-width: 767.98px) {
  :root { --gutter: 20px; }

  .hero__content { bottom: 56px; }
  .hero__ctas { gap: 10px; margin-top: 24px; }
  .hero__ctas .btn { padding-inline: 20px; }
  /* arrows under the dots, clear of the floating WhatsApp / call buttons */
  .hero__arrows { position: static; margin-top: 20px; }

  .clients__track li { width: 136px; height: 77px; }

  .intro__copy { align-items: flex-start; text-align: left; }

  .section-head--split { flex-direction: column; align-items: flex-start; }

  /* swipeable carousel; arrows scroll it one card at a time */
  .products__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .products__viewport::-webkit-scrollbar { display: none; }
  .products__track { transform: none !important; }
  .product-card { width: 78vw; max-width: 320px; height: auto; aspect-ratio: 376 / 480; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  /* arrows over the card edges, centred on the card height (card = min(78vw, 320px) × 480/376) */
  .carousel-arrow { top: calc(min(78vw, 320px) * 480 / 376 / 2 - 24px); }
  .carousel-arrow--prev { left: 8px; }
  .carousel-arrow--next { right: 8px; }

  .industry { padding: 22px 8px; }
  .industry img { width: 48px; height: 48px; }

  .updates__inner { padding: 56px 20px; }
  .updates__cards { flex-direction: column; }

  .contact__panel { grid-template-columns: 1fr; }
  /* order:-1 also moves it first in paint order; keep it above the triangle pattern as in Figma */
  .contact__person { order: -1; z-index: 1; height: 340px; min-height: 0; }
  .contact__form-wrap { padding: 8px 20px 48px; }

  .site-footer__cols { grid-template-columns: 1fr; gap: 40px; }
}
