/* ==========================================================================
   United Digital replica: app layer on top of the original Elementor CSS.
   Only adds: sticky/frosted header, standalone (home-screen) safe areas,
   page transitions, press states, pop-up + quote sheet, form skin, reduced motion.
   ========================================================================== */
:root { --udp-blue: #0458E9; --udp-blue-d: #0046A0; --udp-ink: #100739; --udp-red: #CE0000; --udp-night: #12133A; --udp-topbar: 0px; --udp-ease: cubic-bezier(.22,.8,.24,1); }
html { background: #000000; -webkit-text-size-adjust: 100%; }   /* = header's computed bg rgb(0,0,0): Safari tints the status bar/toolbar from the page top */
body { background: #fff; }
#app, .udp-footer, .udp-header { overflow-x: clip; }   /* the original leaks ~32px sideways on phones (rocket Lottie); clip it so iOS never zooms the page out */
.skip-link:focus { position: fixed; z-index: 100000; left: 8px; top: 8px; background: #fff; padding: 8px 12px; }

/* ---------- header: top bar scrolls away, main bar sticks (Elementor sticky equivalent) ---------- */
.udp-header { position: sticky; top: calc(0px - var(--udp-topbar)); z-index: 9990; }
.udp-header .elementor-element-3ec8a25c { transition: background-color .3s, box-shadow .3s; }
/* Safari (browser tab): the sticky header stays opaque #000 when scrolled. A translucent, blurred bar made iOS
   sample a grey-blue gradient for the status-bar area / toolbar tint. */
html:not(.standalone) body.udp-scrolled .udp-header .elementor-element-3ec8a25c:not(.elementor-motion-effects-element-type-background) {
  background-color: #000000 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
@media (display-mode: standalone) {
  body.udp-scrolled .udp-header .elementor-element-3ec8a25c { background-color: #000 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
html.dyn-lock .udp-header .elementor-element-3ec8a25c, html.udp-lock .udp-header .elementor-element-3ec8a25c { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: #000 !important; }

/* hamburger: the original toggle, now a real <button> that opens the drawer and morphs to the red X */
.udp-burger { -webkit-appearance: none; appearance: none; border: 0; background: transparent; cursor: pointer; font-family: inherit; line-height: 1; min-width: 48px; min-height: 48px; justify-content: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.udp-burger i { transition: transform .34s var(--udp-ease), opacity .2s; }
.udp-burger.is-open .elementor-menu-toggle__icon--open { display: none; }
.udp-burger.is-open .elementor-menu-toggle__icon--close { display: block; color: #e00; animation: udpSpinIn .34s var(--udp-ease); }
.udp-burger:active i { transform: scale(.9); }
@keyframes udpSpinIn { from { transform: rotate(-90deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 1025px) and (hover: hover), (min-width: 1025px) and (pointer: fine), (min-width: 1367px) { .udp-burger { display: none !important; } }

/* ---------- iPhone home-screen app (black-translucent status bar) ---------- */
html.standalone { --top-push: 22px; background: #000000; overscroll-behavior-y: none; min-height: calc(100% + env(safe-area-inset-top, 0px)); }
html.standalone body { min-height: 100%; }
html.standalone .udp-header .elementor-element-3ec8a25c { padding-top: calc(var(--safe-t) + var(--top-push)) !important; background-color: #000 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.standalone .udp-header .elementor-element-3ec8a25c .elementor-widget-image img,
html.standalone .udp-burger { transform: translateZ(0); filter: none !important; text-shadow: none !important; }
@media (display-mode: standalone) {
  :root { --top-push: 22px; }
  html { background: #000000; overscroll-behavior-y: none; min-height: calc(100% + env(safe-area-inset-top, 0px)); }
  body { min-height: 100%; }
  .udp-header .elementor-element-3ec8a25c { padding-top: calc(var(--safe-t) + var(--top-push)) !important; background-color: #000 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .udp-header .elementor-element-3ec8a25c .elementor-widget-image img, .udp-burger { transform: translateZ(0); filter: none !important; text-shadow: none !important; }
}
/* the drawer panel starts below the opaque status-bar band in standalone */
html.standalone .dyn-panel { padding-top: calc(var(--safe-t) + var(--top-push)); }
@media (display-mode: standalone) { .dyn-panel { padding-top: calc(var(--safe-t) + var(--top-push)); } }

/* safe-area side insets (landscape notch) */
.udp-header .elementor-element-3ec8a25c, .udp-header .elementor-element-9776d95 { padding-left: max(20px, env(safe-area-inset-left)) !important; padding-right: max(20px, env(safe-area-inset-right)) !important; }

/* room for the bottom tab bar (mobile/tablet) */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
  html.dyn-on body { padding-bottom: 0 !important; }
  .udp-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); background: #12133A; }
}

/* ---------- page transitions ---------- */
#app { display: block; outline: none; }
#app.udp-out { opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity .14s ease, transform .14s ease; }
#app.udp-in { opacity: 0; transform: translate3d(0, 18px, 0) scale(.995); }
#app.udp-in.udp-in-go { opacity: 1; transform: none; transition: opacity .3s var(--udp-ease), transform .3s var(--udp-ease); }

/* ---------- tap friendliness + press states ---------- */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
.elementor-button, .elementor-icon, .elementor-social-icon, .elementor-swiper-button { touch-action: manipulation; }
.elementor-button { transition: transform .16s var(--udp-ease), filter .16s, box-shadow .2s, background-color .3s, color .3s; }
.elementor-button:active { transform: scale(.96); filter: brightness(.92); }
.elementor-nav-menu--main .elementor-item:active { opacity: .7; }
.elementor-social-icon:active, .elementor-swiper-button:active { transform: scale(.9); }
@media (pointer: coarse) {
  .elementor-button.elementor-size-xs, .elementor-button.elementor-size-sm { min-height: 44px; display: inline-flex; align-items: center; }
  .elementor-social-icon { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
:focus-visible { outline: 2px solid #77E6FF; outline-offset: 3px; }

/* subtle liquid glass on the hero Learn More pill (keeps the original colours) */
.elementor-element-ed91b9d .elementor-button, .elementor-element-e3ecd86 .elementor-button { position: relative; overflow: hidden; }
.elementor-element-ed91b9d .elementor-button::after, .elementor-element-e3ecd86 .elementor-button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 52%); mix-blend-mode: screen; }

/* ---------- carousel (vanilla swiper) ---------- */
.udp-carousel { overflow: hidden; }
.udp-carousel .elementor-image-carousel { will-change: transform; transition-timing-function: ease; }
.udp-carousel img { -webkit-user-drag: none; user-select: none; }

/* slideshow layering (our slides are absolutely stacked, not swiper) */
.udp-slideshow { overflow: hidden; }
.udp-slideshow .elementor-background-slideshow__slide__image { will-change: transform; }

/* ---------- pop-ups (Elementor popup markup; overlay + fade from the original settings) ---------- */
.udp-pop.dialog-type-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9999; display: flex; overscroll-behavior: contain; }
.udp-pop .dialog-widget-content { position: relative; max-height: calc(100vh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; margin: 16px; }
.udp-pop .dialog-close-button { display: flex !important; position: absolute; align-items: center; justify-content: center; width: 44px; height: 44px; top: 6px; inset-inline-end: 6px; font-size: 20px; color: #000; cursor: pointer; text-decoration: none; }
.udp-pop .dialog-close-button:active { transform: scale(.88); }
.udp-pop .dialog-message { max-width: calc(100vw - 32px); }
@keyframes udpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes udpFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ---------- quote form (original Quform panel: dark glass, white fields, blue pill) ---------- */
.udp-form-slot { width: 100%; }
.udp-quform { color: #fff; font-family: "Nunito Sans", "Noto Sans", sans-serif; }
.udp-form-slot .udp-quform { background: rgba(0,0,0,.55); border-radius: 12px; padding: 28px 28px 32px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.udp-qform { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.udp-qform .udp-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.udp-form-slot, .udp-quform, .udp-qform { min-width: 0; max-width: 100%; box-sizing: border-box; }
.elementor-widget-shortcode:has(.udp-form-slot) { max-width: 100%; min-width: 0; }
@media (max-width: 600px) { .udp-qform .udp-row { grid-template-columns: minmax(0,1fr); } .udp-form-slot .udp-quform { padding: 20px 16px 24px; } }
.udp-qform .field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.udp-qform .udp-l { font-weight: 700; font-size: 15px; color: #E2ECF7; padding: 0; }
.udp-qform .udp-l em { color: #ff5a5a; font-style: normal; }
.udp-qform small { font-size: 12px; color: rgba(226,236,247,.75); }
.udp-qform input:not([type=radio]), .udp-qform textarea { width: 100%; box-sizing: border-box; font: 16px/1.4 "Noto Sans", sans-serif; color: #100739; background: #fff; border: 1px solid #d5dbe6; border-radius: 4px; padding: 10px 12px; min-height: 44px; transition: border-color .2s, box-shadow .2s; }
.udp-qform textarea { min-height: 110px; resize: vertical; }
.udp-qform input:focus, .udp-qform textarea:focus { outline: none; border-color: #0458E9; box-shadow: 0 0 0 3px rgba(4,88,233,.35); }
.udp-qform fieldset { border: 0; padding: 0; margin: 0; }
.udp-qform .udp-radio { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.udp-qform .udp-radio input { width: 20px; height: 20px; accent-color: #0458E9; margin: 0; }
.udp-qform .invalid input, .udp-qform .invalid textarea { border-color: #ff5a5a; }
.udp-qform .err { color: #ffb3b3; font-size: 13px; }
.udp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.udp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.udp-send, .udp-alt, .udp-btn, .udp-again { -webkit-appearance: none; appearance: none; font: 700 15px/1 "Nunito Sans", sans-serif; cursor: pointer; border-radius: 999px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; text-decoration: none; transition: transform .16s var(--udp-ease), filter .16s, background-color .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.udp-send { background: #0458E9; color: #fff; border: 2px solid #0458E9; text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 8px 20px -10px rgba(4,88,233,.9), inset 0 1px 0 rgba(255,255,255,.35); }
.udp-send:hover { background: #0046A0; }
.udp-alt, .udp-btn { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.udp-btn-red { background: #CE0000; border-color: #CE0000; }
.udp-send:active, .udp-alt:active, .udp-btn:active, .udp-again:active { transform: scale(.96); filter: brightness(.92); }
.udp-send svg, .udp-alt svg, .udp-btn svg, .dyn-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.udp-note { margin: 0; font-size: 13px; color: rgba(226,236,247,.8); }
.udp-qform.shake { animation: udpShake .4s; }
@keyframes udpShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.udp-success { text-align: center; padding: 12px 0; outline: none; }
.udp-success h3 { color: #fff; font: 900 24px/1.2 "Nunito Sans", sans-serif; margin: 12px 0 8px; }
.udp-success p { color: #E2ECF7; }
.udp-sact { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0; }
.udp-again { background: none; border: 0; color: #77E6FF; text-decoration: underline; }
.udp-badge { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #0458E9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/30px no-repeat; box-shadow: 0 0 0 8px rgba(4,88,233,.25); }

/* ---------- slide-up quote sheet ---------- */
.udp-sheet { position: fixed; inset: 0; z-index: 10010; }
.udp-sheet[hidden] { display: none; }
.udp-sheet-scrim { position: absolute; inset: 0; background: rgba(4, 6, 24, .55); opacity: 0; transition: opacity .34s var(--udp-ease); }
.udp-sheet.is-open .udp-sheet-scrim { opacity: 1; }
.udp-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px; max-height: calc(100% - var(--safe-t) - var(--top-push) - 24px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(18,19,58,.94), rgba(10,8,40,.97)); color: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transform: translate3d(0, 105%, 0); transition: transform .38s var(--udp-ease); outline: none; padding-bottom: env(safe-area-inset-bottom); }
.udp-sheet.is-open .udp-sheet-panel { transform: none; }
.udp-sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); margin: 10px auto 0; flex: none; touch-action: none; }
.udp-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 6px 22px; flex: none; touch-action: none; }
.udp-sheet-head h2 { margin: 0; color: #fff; font: 900 22px/1.2 "Nunito Sans", sans-serif; }
.udp-sheet-head h2::after { content: ""; display: block; width: 46px; height: 4px; background: #CE0000; border-radius: 2px; margin-top: 6px; }
.udp-sheet-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.udp-sheet-x:active { transform: scale(.9); }
.udp-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 22px 24px; }
@media (min-width: 1025px) { .udp-sheet-panel { bottom: 24px; border-radius: 22px; max-height: calc(100% - 48px); } }

/* ---------- drawer content tweaks (UDP) ---------- */
.dyn-pfoot button.dyn-cta { -webkit-appearance: none; appearance: none; border: 0; font: inherit; cursor: pointer; width: 100%; }
.dyn-drawer .dyn-pfoot .dyn-cta--call { background: #CE0000; color: #fff; }

/* ---------- toast ---------- */
.udp-toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translate3d(-50%, 20px, 0); opacity: 0; z-index: 10020; pointer-events: none; background: rgba(16,7,57,.92); color: #fff; padding: 12px 18px; border-radius: 14px; font: 600 14px/1.3 "Nunito Sans", sans-serif; transition: opacity .25s, transform .25s var(--udp-ease); max-width: calc(100vw - 32px); }
.udp-toast.show { opacity: 1; transform: translate3d(-50%, 0, 0); }

/* ---------- reduced motion: everything instant ---------- */
@media (prefers-reduced-motion: reduce) {
  #app.udp-out, #app.udp-in, #app.udp-in.udp-in-go, .udp-sheet-panel, .udp-sheet-scrim, .udp-toast, .elementor-button, .udp-burger i { transition: none !important; animation: none !important; }
  .elementor-ken-burns { transition: none !important; transform: none !important; }
  .elementor-invisible { visibility: visible !important; }
}
.udp-alt { white-space: normal; text-align: center; line-height: 1.25; padding: 10px 18px; max-width: 100%; }
@media (max-width: 600px) { .udp-actions > * { width: 100%; } .udp-sact > * { width: 100%; } }
/* hello-elementor reset styles every <button>; give the original toggle its plain look back */
.udp-header button.udp-burger, .udp-header button.udp-burger:hover, .udp-header button.udp-burger:focus { border: 0 !important; border-radius: 0; background-color: transparent !important; padding: .25em; box-shadow: none; }

/* Opaque status-bar band: a fixed #000 strip pinned to the very top (covers env(safe-area-inset-top) in home-screen
   mode, and gives iOS Safari a solid colour to tint the status bar/toolbar from). Sits under the header. */
.udp-topband { position: fixed; top: 0; left: 0; right: 0; height: max(env(safe-area-inset-top, 0px), 2px); background: #000000; z-index: 9989; pointer-events: none; }

/* Phones in landscape + tablets (portrait and landscape): keep the app nav (bottom glass tab bar + top-right
   hamburger) instead of swapping to the original desktop header links. Only true desktop (wide + fine pointer) keeps them. */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
  .udp-header .elementor-nav-menu--main { display: none !important; }
  .udp-header .udp-burger { display: flex !important; align-items: center; margin-left: auto; }
  .udp-header .elementor-widget-nav-menu .elementor-widget-container { display: flex; justify-content: flex-end; }
  /* hamburger is always the top-right item: logo pushes everything right, quote button (tablet landscape) sits before the burger */
  .udp-header .elementor-element-2de04448 { margin-right: auto !important; }
  .udp-header .elementor-element-55b69d89 { order: 2; }
  .udp-header .elementor-element-36ded2a { order: 3; margin-left: 12px !important; }
}


/* ---------- status bar tint: iOS 26 Safari (browser tab + home screen), learned from Chef Lynn's bot ----------
   iOS 26 ignores theme-color. It tints the status-bar area from the background-color of a position:fixed/sticky
   element touching the top edge (within ~4px, >=1px tall, >=80% wide), falling back to the html/body background.
   Images, gradients and pseudo-elements are NOT sampled. So: this plain solid black strip is the topmost fixed element
   at the top edge; html/body are black (the fallback); the sticky header wrapper is solid black; scrims/overlays that
   cover the top paint with gradient layers (ignored by the sampler). #app/footer keep the page's white base. */
.status-strip { position: fixed; top: 0; left: 0; right: 0; width: 100%; height: max(env(safe-area-inset-top, 0px), 1px);
  z-index: 2147483000; background-color: #000000; pointer-events: none; }
@media print { .status-strip { display: none !important; } }
html, body, body.elementor-page-817:not(.elementor-motion-effects-element-type-background) { background-color: #000000 !important; }
/* the page base colour moves from body onto the content wrappers (home's original body colour is light blue #84C2FF,
   which iOS was sampling and blurring into the grey-blue status band) */
#app { background-color: #ffffff; }
body.elementor-page-817 #app { background-color: #84C2FF; }
.udp-header { background-color: #000000; }
.dyn-scrim { background-color: transparent !important; background-image: linear-gradient(var(--dyn-scrim), var(--dyn-scrim)) !important; }
.udp-sheet-scrim { background-color: transparent; background-image: linear-gradient(rgba(4, 6, 24, .55), rgba(4, 6, 24, .55)); }
/* service "Learn more" popups: full-screen fixed overlay (#202020A1) painted as a gradient so the tint sampler skips it */
.udp-pop.dialog-type-lightbox[id^="elementor-popup-modal-"] { background-color: transparent !important; background-image: linear-gradient(#202020A1, #202020A1); }
