/* WebXtent v0.8.54 — Responsive parity / final QC layer.
 * Purpose: close the remaining cross-device gaps after Responsive Phases 1–3.
 * This file is intentionally responsive-only and does not redefine desktop design.
 */

/* -------------------------------------------------------------------------
 * GLOBAL SAFETY / CONTENT PARITY
 * ---------------------------------------------------------------------- */
@media (max-width:1024px){
  .wxt-site img,
  .wxt-site video,
  .wxt-site iframe,
  .wxt-contact-main img,
  .wxt-developments-showcase-main img{
    max-width:100%;
  }

  .wxt-header,
  .wxt-footer,
  .wxt-contact-main,
  .wxt-developments-showcase-main,
  .wxt-home-normal-main,
  .wxt-capabilities-reference,
  .wxt-about-reference,
  .wxt-insights-main{
    max-width:100vw;
  }

  .wxt-footer a,
  .wxt-mobile-menu a,
  .wxt-contact-mode-switch a,
  .wxt-contact-submit,
  .wxt-home-link,
  .wxt-home-hero__button,
  .wxt-development-glass-control,
  .wxt-development-project-wheel__chevron,
  .wxt-development-carousel-toggle,
  .wxt-menu-toggle,
  .wxt-spotlight-trigger{
    touch-action:manipulation;
  }
}

/* Prevent iOS form zoom and keep all front-end forms comfortably tappable. */
@media (max-width:767px){
  .wxt-site input,
  .wxt-site select,
  .wxt-site textarea,
  .wxt-contact-main input,
  .wxt-contact-main select,
  .wxt-contact-main textarea,
  .wxt-home-subscription input,
  .wxt-home-subscription select,
  .wxt-whatsapp-chat__input{
    font-size:16px!important;
  }

  .wxt-site button,
  .wxt-site [role="button"],
  .wxt-site a,
  .wxt-contact-main button,
  .wxt-contact-main a{
    -webkit-tap-highlight-color:transparent;
  }
}

/* -------------------------------------------------------------------------
 * GLOBAL HEADER — very narrow phone parity
 * ---------------------------------------------------------------------- */
@media (max-width:520px){
  .wxt-header__inner{grid-template-columns:minmax(0,1fr) auto!important}
  .wxt-header__brand-zone{overflow:hidden!important}
  .wxt-brand{max-width:100%!important}
  .wxt-header__actions{flex:0 0 auto!important}
  .wxt-header__socials,.wxt-header__scroll-email{display:none!important}
}

@media (max-width:390px){
  .wxt-header{width:calc(100% - 12px)!important}
  .wxt-header__inner{padding-left:8px!important;padding-right:5px!important}
  .wxt-brand__text{display:none!important}
  .wxt-brand__logo{width:34px!important}
  .wxt-header-admin-shortcut{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}
  .wxt-spotlight-trigger,.wxt-menu-toggle{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}
}

/* -------------------------------------------------------------------------
 * HOME — final compact-device parity
 * ---------------------------------------------------------------------- */
@media (max-width:767px){
  .wxt-home-editorial,
  .wxt-home-design-baseline,
  .wxt-home-ref-proof,
  .wxt-home-finale{
    overflow-x:clip!important;
  }

  .wxt-home-editorial__media,
  .wxt-home-design-baseline__interlude,
  .wxt-home-design-baseline__feature,
  .wxt-home-ref-proof__gallery-item{
    max-width:100%!important;
  }

  .wxt-home-design-baseline__shell,
  .wxt-home-ref-proof__inner,
  .wxt-home-finale__inner{
    width:calc(100% - 28px)!important;
  }

  .wxt-home-design-baseline__interlude{
    min-height:clamp(210px,62vw,320px)!important;
    border-radius:18px!important;
  }

  .wxt-home-design-baseline__propositions{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
  }

  .wxt-home-subscription--inline-card{
    width:100%!important;
    min-width:0!important;
    padding:18px!important;
    border-radius:18px!important;
  }
  .wxt-home-subscription__fields{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .wxt-home-subscription__preferences,
  .wxt-home-subscription__topics{
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }
  .wxt-home-subscription__frequency{grid-template-columns:1fr!important}
  .wxt-home-subscription__consent{align-items:flex-start!important}

  .wxt-home-ref-proof__card{
    width:100%!important;
    padding:20px!important;
    border-radius:18px!important;
  }
  .wxt-home-ref-proof__action{min-height:44px!important}

  /* make closing-image rail start flush and not clip shadows */
  .wxt-home-ref-proof__gallery{
    margin-left:0!important;
    margin-right:-14px!important;
    padding-right:14px!important;
    overscroll-behavior-x:contain!important;
  }
}

@media (max-width:420px){
  .wxt-home-editorial{padding-left:14px!important;padding-right:14px!important}
  .wxt-home-design-baseline__shell,
  .wxt-home-ref-proof__inner,
  .wxt-home-finale__inner{width:calc(100% - 20px)!important}

  .wxt-home-subscription__preferences,
  .wxt-home-subscription__topics{grid-template-columns:1fr!important}

  .wxt-home-ref-proof__gallery-item,
  .wxt-home-ref-proof__gallery-item:last-child{
    flex-basis:84vw!important;
    width:84vw!important;
    min-width:84vw!important;
  }
}

/* -------------------------------------------------------------------------
 * DEVELOPMENTS — final compact-device parity
 * ---------------------------------------------------------------------- */
@media (max-width:767px){
  .wxt-development-showcase{min-height:100svh!important;overflow:hidden!important}
  .wxt-development-showcase__hero{min-height:100svh!important;height:100svh!important}
  .wxt-development-quick-search{
    top:74px!important;
    left:14px!important;
    width:min(78vw,320px)!important;
  }
  .wxt-development-quick-search__field{
    min-height:44px!important;
    border-radius:999px!important;
  }

  .wxt-development-showcase__hero-copy{
    left:14px!important;
    right:14px!important;
    bottom:clamp(170px,27svh,260px)!important;
    max-width:min(78vw,430px)!important;
  }
  .wxt-development-project-wheel__item--current{
    font-size:clamp(2.9rem,14vw,4.6rem)!important;
    line-height:.92!important;
    max-width:8.5ch!important;
  }
  .wxt-development-project-wheel__item--previous,
  .wxt-development-project-wheel__item--next{
    font-size:clamp(.86rem,4vw,1.08rem)!important;
    max-width:18ch!important;
  }

  .wxt-development-showcase__project-carousel{
    left:14px!important;
    right:14px!important;
    bottom:max(10px,env(safe-area-inset-bottom,0px))!important;
  }
  .wxt-development-showcase__project-carousel-bar{
    min-height:54px!important;
    gap:8px!important;
  }
  .wxt-development-showcase__project-carousel-label{min-width:0!important}
  .wxt-development-showcase__project-carousel-label-text{font-size:.7rem!important;letter-spacing:.15em!important}
  .wxt-development-showcase__project-carousel-line{min-width:18px!important}
  .wxt-development-showcase__project-carousel-nav{gap:7px!important;min-width:0!important}
  .wxt-development-showcase__project-position{font-size:1.55rem!important;margin-left:2px!important}
  .wxt-development-showcase__project-status{display:none!important}

  .wxt-development-showcase .wxt-development-glass-control,
  .wxt-development-showcase .wxt-development-carousel-toggle,
  .wxt-development-showcase .wxt-development-project-wheel__chevron,
  .wxt-development-gallery-visibility-toggle{
    min-width:42px!important;min-height:42px!important;width:42px!important;height:42px!important;
  }

  .wxt-development-showcase__project-track{
    gap:9px!important;
    padding-bottom:8px!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .wxt-development-stack-card{
    flex:0 0 min(76vw,300px)!important;
    width:min(76vw,300px)!important;
    min-width:min(76vw,300px)!important;
    min-height:220px!important;
    margin-left:0!important;
    scroll-snap-align:center!important;
  }

  .wxt-development-files-drawer{
    inset:auto 8px max(8px,env(safe-area-inset-bottom,0px)) 8px!important;
    width:auto!important;
    max-height:min(76svh,620px)!important;
    border-radius:20px!important;
  }
  .wxt-development-files-drawer__grid{grid-template-columns:1fr!important}
}

@media (max-width:420px){
  .wxt-development-quick-search{width:min(86vw,300px)!important}
  .wxt-development-showcase__hero-copy{max-width:86vw!important}
  .wxt-development-project-wheel__item--current{font-size:clamp(2.65rem,15vw,3.8rem)!important}
  .wxt-development-showcase__project-position{font-size:1.35rem!important}
  .wxt-development-stack-card{flex-basis:82vw!important;width:82vw!important;min-width:82vw!important}
}

/* -------------------------------------------------------------------------
 * CONTACT / ENQUIRY — final form parity + safe-area clearance
 * ---------------------------------------------------------------------- */
@media (max-width:767px){
  .wxt-contact-form-panel{margin-bottom:calc(64px + env(safe-area-inset-bottom,0px))!important}
  .wxt-contact-form-panel__heading h2,.wxt-contact-success h2{overflow-wrap:anywhere!important}
  .wxt-contact-context__regarding,
  .wxt-contact-form-panel__regarding{max-width:100%!important;overflow-wrap:anywhere!important}
  .wxt-contact-field input,
  .wxt-contact-field select,
  .wxt-contact-field textarea{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
  .wxt-contact-submit{justify-content:center!important}
}

/* -------------------------------------------------------------------------
 * CAPABILITIES / ABOUT / INSIGHTS — very narrow parity
 * ---------------------------------------------------------------------- */
@media (max-width:420px){
  .wxt-capabilities-reference .wxt-capabilities-ref__shell,
  .wxt-about-ref__shell,
  .wxt-insights-shell{width:calc(100% - 20px)!important}

  .wxt-capabilities-reference .wxt-service-card__body,
  .wxt-capabilities-reference .wxt-service-card__body--feature,
  .wxt-capabilities-reference .wxt-service-card__body--copy{padding:18px!important}

  .wxt-about-ref__media-card--primary,
  .wxt-about-ref__media-card--secondary{flex-basis:86vw!important;width:86vw!important}
  .wxt-about-ref__specialisation-copy{padding-left:16px!important;padding-right:16px!important}

  .wxt-insights-feature__copy{padding:22px 18px 26px!important}
  .wxt-insight-card{flex-basis:84vw!important;min-width:84vw!important}
  .wxt-insight-reader__body{width:calc(100% - 24px)!important}
  .wxt-insight-reader__media{width:calc(100% - 20px)!important}
}

/* -------------------------------------------------------------------------
 * FOOTER — small phone parity
 * ---------------------------------------------------------------------- */
@media (max-width:767px){
  .wxt-footer{padding-bottom:max(24px,env(safe-area-inset-bottom,0px))!important}
  .wxt-footer__inner{width:calc(100% - 28px)!important;gap:28px!important}
  .wxt-footer__brand-contact{display:grid!important;gap:7px!important}
  .wxt-footer__nav{grid-template-columns:1fr 1fr!important;gap:22px 14px!important}
  .wxt-footer__column a{min-height:34px!important;display:flex!important;align-items:center!important}
  .wxt-footer__legal{gap:12px!important;flex-wrap:wrap!important}
}
@media (max-width:420px){
  .wxt-footer__inner{width:calc(100% - 20px)!important}
  .wxt-footer__nav{grid-template-columns:1fr!important}
}

/* -------------------------------------------------------------------------
 * WHATSAPP — avoid overlap with mobile chrome/content
 * ---------------------------------------------------------------------- */
@media (max-width:767px){
  .wxt-whatsapp-chat{
    right:max(10px,env(safe-area-inset-right,0px))!important;
    bottom:max(12px,env(safe-area-inset-bottom,0px))!important;
    max-width:calc(100vw - 20px)!important;
  }
  .wxt-whatsapp-chat__composer{max-width:min(86vw,360px)!important}
  .wxt-whatsapp-chat__input{min-width:0!important;width:100%!important}
}

/* -------------------------------------------------------------------------
 * MOBILE LANDSCAPE — keep immersive pages usable instead of over-tall
 * ---------------------------------------------------------------------- */
@media (max-width:900px) and (max-height:600px) and (orientation:landscape){
  .wxt-header{top:6px!important}
  .wxt-header__inner{min-height:48px!important;height:48px!important}

  .wxt-home-normal-main .wxt-home-hero-story,
  .wxt-home-normal-main .wxt-home-hero-story .wxt-home-scroll__viewport,
  .wxt-development-showcase__hero,
  .wxt-contact-scene{min-height:100dvh!important;height:auto!important}

  [data-wxt-home-scroll-story] .wxt-home-scroll__hero{padding-top:72px!important;padding-bottom:18px!important}
  .wxt-home-scroll__hero-copy h1{font-size:clamp(2.65rem,9vw,4rem)!important}
  .wxt-home-hero__promo{display:none!important}

  .wxt-development-quick-search{top:62px!important}
  .wxt-development-showcase__hero-copy{bottom:100px!important;max-width:55vw!important}
  .wxt-development-project-wheel__item--current{font-size:clamp(2.6rem,8vw,4rem)!important}
  .wxt-development-showcase__project-track{display:none!important}

  .wxt-contact-scene__content{padding-top:70px!important}
  .wxt-contact-scene__intro h1{font-size:clamp(3rem,8vw,4.7rem)!important}
}

/* -------------------------------------------------------------------------
 * COARSE POINTERS — no hover-only visual dependence
 * ---------------------------------------------------------------------- */
@media (hover:none) and (pointer:coarse){
  .wxt-home-hero__button:hover,
  .wxt-home-link:hover,
  .wxt-development-stack-card:hover,
  .wxt-insight-card:hover,
  .wxt-whatsapp-chat__trigger:hover{
    transform:none!important;
  }

  .wxt-development-stack-card:active,
  .wxt-home-hero__button:active,
  .wxt-home-link:active{transform:scale(.985)!important}
}

/* -------------------------------------------------------------------------
 * REDUCED MOTION — final parity
 * ---------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  .wxt-site *,
  .wxt-contact-main *,
  .wxt-developments-showcase-main *{
    scroll-behavior:auto!important;
  }
}
