/* ===== Aviocharter liquid glass layer (same language as agent.aviocharter.com) =====
   Sits on top of the original layout: only surfaces, rims, light and motion change.
   Positions, sizes, texts, images and the moving parts (hero zoom, scroll plane,
   empty-legs parallax, globe + orbit) are NOT touched here. */
:root{
  --navy:#2F2D48;--navy2:#3B3955;--ink2:#55526B;--ink3:#8A8798;--paper:#F9F8FB;--mist:#ECEBF2;
  --glass:rgba(255,255,255,.52);--glass-hi:rgba(255,255,255,.72);
  --rim:linear-gradient(135deg,rgba(255,255,255,1),rgba(255,255,255,.35) 38%,rgba(255,255,255,.2) 62%,rgba(255,255,255,.95));
  --rim-dark:linear-gradient(135deg,rgba(255,255,255,.5),rgba(255,255,255,.07) 38%,rgba(255,255,255,.06) 62%,rgba(255,255,255,.4));
  --drop:0 18px 44px -14px rgba(47,45,72,.28),0 2px 6px rgba(47,45,72,.06);
  --spring:cubic-bezier(.34,1.56,.64,1);
}

/* ---------- living backdrop: soft orbs drifting behind the glass ---------- */
#about,#services,#process,#projects,#testimonials,#contact,#empty-legs{position:relative;isolation:isolate}
#about,#services,#process,#projects,#testimonials,#contact{overflow:clip}
#about::before,#services::before,#projects::before,#testimonials::before,#process::before,
#about::after,#services::after,#projects::after,#testimonials::after,#process::after,
#contact::before,#contact::after{
  content:'';position:absolute;z-index:-1;border-radius:50%;pointer-events:none;filter:blur(70px);
  animation:avDrift 28s ease-in-out infinite alternate}
#about::before{width:520px;height:520px;left:-160px;top:-120px;background:rgba(138,135,152,.30)}
#about::after{width:460px;height:460px;right:-140px;bottom:8%;background:rgba(61,90,150,.16);animation-duration:34s;animation-delay:-9s}
#services::before{width:560px;height:560px;right:-180px;top:-200px;background:rgba(85,82,107,.22)}
#services::after{width:420px;height:420px;left:6%;bottom:-220px;background:rgba(61,90,150,.18);animation-duration:33s;animation-delay:-12s}
#process::before{width:420px;height:420px;left:-180px;top:30%;background:rgba(138,135,152,.24)}
#process::after{width:380px;height:380px;right:-160px;top:55%;background:rgba(61,90,150,.14);animation-duration:36s;animation-delay:-6s}
#projects::before{width:540px;height:540px;left:-160px;top:-180px;background:rgba(61,90,150,.16)}
#projects::after{width:480px;height:480px;right:-120px;bottom:-200px;background:rgba(85,82,107,.24);animation-duration:31s;animation-delay:-14s}
#testimonials::before{width:460px;height:460px;right:4%;top:-160px;background:rgba(138,135,152,.26)}
#testimonials::after{width:420px;height:420px;left:-140px;bottom:-120px;background:rgba(154,107,0,.08);animation-duration:38s;animation-delay:-4s}
#contact::before{width:620px;height:620px;left:-200px;top:-220px;background:rgba(85,82,107,.75)}
#contact::after{width:520px;height:520px;right:-160px;bottom:-160px;background:rgba(61,90,150,.38);animation-duration:35s;animation-delay:-10s}
@keyframes avDrift{0%{transform:translate(0,0) scale(1)}50%{transform:translate(60px,40px) scale(1.12)}100%{transform:translate(-40px,70px) scale(.94)}}

/* ---------- glass recipe ---------- */
.svc-card,.how-step,.t-card,#contact form,.site-header,#empty-legs .lg-panel,
#about h3,.how-mobile>div>div:last-child{
  -webkit-backdrop-filter:blur(22px) saturate(175%);backdrop-filter:blur(22px) saturate(175%)}

/* header: floating glass capsule */
.site-header{
  top:12px !important;left:16px !important;right:16px !important;border-radius:20px;
  padding:10px 18px 10px 22px !important;
  background:linear-gradient(rgba(255,255,255,.62),rgba(255,255,255,.62)) padding-box,var(--rim) border-box !important;
  border:1px solid transparent !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 14px 38px -12px rgba(20,18,40,.38) !important;
  transition:background .35s,box-shadow .35s,top .35s var(--spring)}
.is-scrolled .site-header{top:8px !important;background:linear-gradient(rgba(255,255,255,.7),rgba(255,255,255,.7)) padding-box,var(--rim) border-box !important}
.site-header nav{position:relative}
.site-header nav:not([style*="position:absolute"]) a{border-radius:999px !important;position:relative;z-index:1}
.site-header nav:not([style*="position:absolute"]) a:hover{background:rgba(47,45,72,.06) !important}
.lq-glider{position:absolute;z-index:0;top:0;height:100%;border-radius:999px;pointer-events:none;opacity:0;
  background:linear-gradient(rgba(47,45,72,.1),rgba(47,45,72,.1)) padding-box,linear-gradient(135deg,rgba(255,255,255,.9),rgba(255,255,255,.2)) border-box;
  border:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
  transition:left .45s var(--spring),width .45s var(--spring),opacity .25s}
.lq-glider.on{opacity:1}
/* header buttons: pills that squash when pressed */
.hdr-legs,.hdr-quote,.site-header button{border-radius:999px !important;transition:background .2s,transform .35s var(--spring) !important}
.hdr-legs{background:linear-gradient(rgba(47,45,72,.07),rgba(47,45,72,.07)) padding-box,var(--rim) border-box !important;border:1px solid transparent !important}
.hdr-quote{box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 8px 18px -8px rgba(47,45,72,.6)}
.hdr-legs:active,.hdr-quote:active,.site-header button:active,#top a:active,#empty-legs a:active,#contact button:active{transform:scale(1.06,.93) !important}
/* dropdown menu = blurred glass that springs open */
.site-header nav[style*="position:absolute"]{
  top:58px !important;border-radius:18px !important;border:1px solid transparent !important;
  /* no backdrop-filter here: nested inside the blurred header it would show the page through (Chrome) */
  background:linear-gradient(#fff,#F6F5FA) padding-box,var(--rim) border-box !important;
  box-shadow:inset 0 1px 0 #fff,0 24px 50px -12px rgba(20,18,40,.35) !important;
  transform-origin:top right;animation:lqPop .38s var(--spring)}
.site-header nav[style*="position:absolute"] a{border-radius:12px !important}
@keyframes lqPop{from{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}

/* ---------- hero ---------- */
#top a[href="#contact"],#top a[href*="flights"]{border-radius:999px !important;transition:transform .35s var(--spring),box-shadow .3s,background .2s !important}
#top a[href="#contact"]{box-shadow:inset 0 -2px 0 rgba(47,45,72,.08),0 14px 30px -10px rgba(0,0,0,.5)}
#top a[href*="flights"]{
  border:1px solid transparent !important;padding:14px 33px !important;
  background:linear-gradient(rgba(255,255,255,.1),rgba(255,255,255,.1)) padding-box,var(--rim-dark) border-box !important;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
#top a[href*="flights"]:hover{background:linear-gradient(rgba(255,255,255,.18),rgba(255,255,255,.18)) padding-box,var(--rim-dark) border-box !important}
/* tagline HEAVY | URGENT | OUTSIZED: plain text as in the original (Patrick 11 Nov), slightly larger, still smaller than the title */
#top p[style*="letter-spacing:.24em"]{font-size:clamp(15px,1.5vw,21px) !important}

/* ---------- Who We Are ---------- */
#about h3{
  background:linear-gradient(90deg,rgba(255,255,255,.78),rgba(228,228,234,.62)) !important;
  box-shadow:inset 0 1px 0 #fff;transition:background .3s}
#about .av-reveal:hover h3{background:linear-gradient(90deg,#fff,rgba(228,228,234,.85)) !important}

/* ---------- services: glass cards ---------- */
.svc-card{
  border-radius:22px !important;border:1px solid transparent;
  background:linear-gradient(var(--glass),var(--glass)) padding-box,var(--rim) border-box !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),var(--drop);
  transition:transform .4s var(--spring),box-shadow .3s,opacity .55s ease-out !important}
.svc-card:hover{transform:translateY(-8px) !important;box-shadow:inset 0 1px 0 #fff,0 30px 60px -18px rgba(47,45,72,.35) !important;
  background:linear-gradient(var(--glass-hi),var(--glass-hi)) padding-box,var(--rim) border-box !important}

/* ---------- empty legs: glass panel over the parallax photo ---------- */
#empty-legs .lg-panel{
  padding:38px 40px;border-radius:26px;border:1px solid transparent;
  background:linear-gradient(rgba(255,255,255,.07),rgba(255,255,255,.07)) padding-box,var(--rim-dark) border-box;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 30px 60px -20px rgba(10,9,22,.55)}
#empty-legs a{border-radius:999px !important;transition:transform .35s var(--spring),background .2s,box-shadow .3s !important}

/* ---------- process: glass step chips around the globe (globe itself untouched) ---------- */
.how-step{
  border:1px solid transparent;border-radius:16px !important;
  background:linear-gradient(rgba(255,255,255,.5),rgba(255,255,255,.5)) padding-box,var(--rim) border-box !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 10px 26px -14px rgba(47,45,72,.3)}
.how-step:hover{background:linear-gradient(#fff,#fff) padding-box,var(--rim) border-box !important;box-shadow:inset 0 1px 0 #fff,0 24px 54px -14px rgba(47,45,72,.35) !important}
.how-mobile>div>div:last-child{padding:14px 18px !important;margin-bottom:18px;border-radius:16px;border:1px solid transparent;
  background:linear-gradient(rgba(255,255,255,.55),rgba(255,255,255,.55)) padding-box,var(--rim) border-box;box-shadow:inset 0 1px 0 #fff,0 10px 24px -14px rgba(47,45,72,.3)}
.how-mobile span[style*="border-radius:50%"]{background:rgba(255,255,255,.7);box-shadow:inset 0 1px 0 #fff,0 6px 14px -6px rgba(47,45,72,.3)}

/* ---------- projects: rounded tiles with a glass rim + light sweep ---------- */
.proj-cell{border-radius:20px !important;box-shadow:0 18px 40px -18px rgba(47,45,72,.45);transition:transform .45s var(--spring),box-shadow .3s}
.proj-cell::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35),inset 0 1px 0 rgba(255,255,255,.55);
  background:linear-gradient(115deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.22) 48%,rgba(255,255,255,0) 66%) no-repeat;
  background-size:250% 100%;background-position:120% 0;transition:background-position .9s ease}
.proj-cell:hover{transform:translateY(-5px)}
.proj-cell:hover::after{background-position:-40% 0}

/* ---------- testimonials: glass cards ---------- */
.t-card{
  border-radius:22px !important;border:1px solid transparent !important;
  background:linear-gradient(rgba(255,255,255,.5),rgba(255,255,255,.5)) padding-box,var(--rim) border-box !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),var(--drop)}
.t-card:hover{background:linear-gradient(rgba(255,255,255,.78),rgba(255,255,255,.78)) padding-box,var(--rim) border-box !important}
.t-card blockquote{position:relative}
.t-card blockquote::before{content:'\201C';position:absolute;left:-6px;top:-30px;font:700 64px/1 'Vitesse Sans',Helvetica,sans-serif;color:rgba(47,45,72,.1)}

/* ---------- contact: dark glass form ---------- */
#contact form{
  border-radius:26px !important;border:1px solid transparent !important;
  background:linear-gradient(rgba(255,255,255,.07),rgba(255,255,255,.07)) padding-box,var(--rim-dark) border-box !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 34px 70px -24px rgba(8,7,20,.6)}
#contact input,#contact textarea{border-radius:14px !important;transition:border-color .2s,background .2s,box-shadow .2s}
#contact input:focus,#contact textarea:focus{border-color:rgba(255,255,255,.45) !important;background:rgba(255,255,255,.12) !important;box-shadow:0 0 0 4px rgba(255,255,255,.07)}
#contact button{border-radius:999px !important;transition:transform .35s var(--spring),background .2s,box-shadow .3s !important}
#contact a[style*="border-radius:50%"]{transition:transform .35s var(--spring),opacity .2s !important;box-shadow:0 8px 20px -8px rgba(0,0,0,.5)}
#contact a[style*="border-radius:50%"]:hover{transform:translateY(-3px) scale(1.06)}

/* ---------- Patrick 11 Nov round 2 ---------- */
/* Who We Are: the map is its own layer (JS grows it to full width + parallax) */
[data-ref=aboutTrack]{background:none !important}
.about-map{position:absolute;left:0;right:0;top:0;height:100%;z-index:-1;pointer-events:none;will-change:transform;
  background:url('../assets/map-final.png') center 54%/100% auto no-repeat;transform-origin:50% 54%;transform:scale(.72)}
/* What We Offer: washed-out photo behind the glass cards, own parallax */
.svc-bg{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.svc-bg>div{position:absolute;left:0;right:0;top:-18%;height:136%;will-change:transform;
  background:url('../assets/Aviocharter_Projects_14.jpg') center/cover no-repeat;filter:grayscale(1) contrast(1.05);opacity:.26}
.svc-bg::after{content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,#ECEBF2 0%,rgba(236,235,242,.5) 26%,rgba(236,235,242,.38) 62%,#ECEBF2 100%)}
/* service cards: tilt with the pointer + light sweep.
   v1.0.10: the sweep is a background layer of the card itself (no oversized ::after, no overflow:hidden,
   no preserve-3d) - older Safari let the old ::after light spill over the whole section. */
.svc-card{position:relative;
  background:linear-gradient(115deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.55) 48%,rgba(255,255,255,0) 66%) padding-box no-repeat,
    linear-gradient(var(--glass),var(--glass)) padding-box,var(--rim) border-box !important;
  background-size:260% 100%,auto,auto !important;background-position:130% 0,0 0,0 0 !important;
  transition:transform .4s var(--spring),box-shadow .3s,opacity .55s ease-out,background-position 1s ease !important}
.svc-card:hover{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-8px) !important;
  background:linear-gradient(115deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.55) 48%,rgba(255,255,255,0) 66%) padding-box no-repeat,
    linear-gradient(var(--glass-hi),var(--glass-hi)) padding-box,var(--rim) border-box !important;
  background-size:260% 100%,auto,auto !important;background-position:-40% 0,0 0,0 0 !important;
  transition:transform .25s ease-out,box-shadow .3s,background-position 1s ease !important}
/* Safari (html.av-safari set by liquid.js, v1.0.11 = every Safari version): no blur + no tilt on these cards, a bit more white instead */
.av-safari .svc-card{-webkit-backdrop-filter:none !important;backdrop-filter:none !important;
  --glass:rgba(255,255,255,.8);--glass-hi:rgba(255,255,255,.93)}
.av-safari .svc-card:hover{transform:translateY(-8px) !important}
/* (icon halo ring removed - Patrick 11 Nov) */
/* testimonials: every card the same height, the person's title always on the last line */
@media (min-width:761px){#testimonials div:has(> .t-card){grid-auto-rows:1fr}}
.t-card figcaption{margin-top:auto}
/* Empty Legs: one centred box, equal margins, text full width, button inside */
.legs-wrap{display:block !important}
#empty-legs .lg-panel{text-align:center;padding:52px 64px 48px}
#empty-legs .lg-panel p{margin-left:auto !important;margin-right:auto !important}
#empty-legs .lg-panel p[style*="font-size:17px"]{font-size:18px !important}
.legs-cta{margin-top:32px}

/* Globe (Patrick 11 Nov): plane + dashed trail on the OUTER ring instead of the 2nd one.
   Measured: outer ring radius 286.1 px of a 573 px image (99.86% of 44.64% = 44.576% of the diagram);
   plane centre of mass at 91.15% of its 400 px box -> box = 44.576 / 0.9115 = 48.904%.
   Trail ring inset 4% -> 4.425% so the dashed trail sits on the same line as the plane.
   Spin, trail mask and timing stay as built. */
.how-diagram > div[style*="width:39.375%"]{width:48.904% !important}
.how-diagram > div[style*="width:39.375%"] > div[style*="trailGrow"]{inset:4.425% !important}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion:reduce){
  #about::before,#about::after,#services::before,#services::after,#projects::before,#projects::after,
  #testimonials::before,#testimonials::after,#process::before,#process::after,#contact::before,#contact::after{animation:none}
}
@media (max-width:760px){
  .site-header{left:10px !important;right:10px !important;top:8px !important;border-radius:18px;padding:8px 12px !important}
  #empty-legs .lg-panel{padding:30px 22px}
  .about-map{transform:none}
}

/* Patrick 12 Nov: Empty Legs as a highlighted navy pill in the top menu (in front of About) + first item in the drop-down */
.site-header nav a.nav-legs{white-space:nowrap;background:#2F2D48 !important;color:#fff !important;border-radius:999px !important;padding:9px 18px !important;margin-right:4px;
  font-family:'Vitesse Sans',Helvetica,sans-serif;font-weight:700;letter-spacing:.03em;box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 8px 18px -8px rgba(47,45,72,.6);
  transition:background .2s,transform .35s var(--spring) !important}
.site-header nav a.nav-legs:hover{background:#454263 !important;color:#fff !important;transform:translateY(-1px)}
.site-header nav a.nav-legs:active{transform:scale(1.06,.93)}
.site-header nav a.nav-legs-menu{display:block;margin:0 0 6px;padding:11px 16px;border-radius:12px;font-size:15px;font-family:'Vitesse Sans',Helvetica,sans-serif;font-weight:700;
  background:#2F2D48;color:#fff !important;text-align:center}
.site-header nav a.nav-legs-menu:hover{background:#454263}

/* Patrick 12 Nov - small phones (his Honor cover screen ~360 px wide) */
.hdr-legs,.hdr-quote{white-space:nowrap}
#top a[href^="tel"]{white-space:nowrap}
#empty-legs .lg-panel{min-width:0 !important;box-sizing:border-box}
@media (max-width:760px){
  /* slogan always on ONE line */
  .hero-title{white-space:nowrap !important;letter-spacing:.07em !important;font-size:clamp(13px,4.1vw,19px) !important}
  /* phone number on its own line, never split */
  #top a[href^="tel"]{display:block;margin-top:4px}
  /* HEAVY | URGENT | OUTSIZED off the screen edges */
  #top p[style*="letter-spacing:.24em"]{font-size:clamp(12px,3.6vw,15px) !important;letter-spacing:.14em !important;gap:12px !important}
  .hdr-legs,.hdr-quote{padding:9px 12px !important;font-size:12.5px !important}
}

/* Patrick 12 Nov - open-screen / tablet widths */
/* full logo (not just the mark) when there is room next to the buttons */
@media (min-width:600px) and (max-width:760px){ .hdr-logo{display:block !important;height:36px !important} .hdr-mark{display:none !important} }
/* service tiles: centred rows at every width (5 | 3+2 | 2+2+1 | 1 per row), never an empty slot on the left */
#services div[style*="grid-template-columns:repeat(auto-fit,minmax(210px,1fr))"]{display:flex !important;flex-wrap:wrap;justify-content:center}
#services .svc-card{flex:0 1 calc((100% - 4 * 18px) / 5);box-sizing:border-box;min-width:0}
@media (max-width:1100px){ #services .svc-card{flex-basis:calc((100% - 2 * 18px) / 3)} }
@media (max-width:640px){ #services .svc-card{flex-basis:calc((100% - 18px) / 2)} }
@media (max-width:420px){ #services .svc-card{flex-basis:100%} }
/* very small phones (<=420 px): logo mark + both buttons + menu must fit at the top */
@media (max-width:420px){
  .site-header{gap:6px !important;padding:8px 10px !important}
  .site-header > div:nth-child(2){gap:6px !important}
  .hdr-legs,.hdr-quote{padding:8px 10px !important;font-size:12px !important;letter-spacing:.02em !important}
  .site-header button{padding:9px 12px !important}
  .hdr-mark{height:30px !important}
}

/* Igor 12 Nov: our font (Vitesse Sans) for the hero tagline and the whole menu - not Helvetica */
#top p[style*="letter-spacing:.24em"]{font-family:'Vitesse Sans',Helvetica,sans-serif !important;font-weight:700 !important}
.site-header nav a{font-family:'Vitesse Sans',Helvetica,sans-serif !important;font-weight:700 !important;letter-spacing:.02em}
/* Patrick 12 Nov: hero line in our font, phone number on its own line on every screen */
#top p[style*="letter-spacing:.06em"]{font-family:'Vitesse Sans',Helvetica,sans-serif !important;font-weight:700;letter-spacing:.05em !important}
#top a[href^="tel"]{display:block;margin-top:6px;white-space:nowrap}
@media (max-width:440px){ #top p[style*="letter-spacing:.06em"]{font-size:clamp(10.5px,3.15vw,14px) !important;letter-spacing:0 !important;white-space:nowrap} }

/* ---------- back to top (v1.0.10, Patrick 12 Nov) ---------- */
.av-totop{position:fixed;right:22px;bottom:22px;z-index:45;width:48px;height:48px;border-radius:50%;cursor:pointer;
  display:flex;align-items:center;justify-content:center;padding:0;color:#2F2D48;border:1px solid transparent;
  background:linear-gradient(rgba(255,255,255,.72),rgba(255,255,255,.72)) padding-box,var(--rim) border-box;
  -webkit-backdrop-filter:blur(16px) saturate(175%);backdrop-filter:blur(16px) saturate(175%);
  box-shadow:inset 0 1px 0 #fff,0 12px 28px -10px rgba(47,45,72,.45);
  opacity:0;visibility:hidden;transform:translateY(14px);
  transition:opacity .3s,visibility .3s,transform .35s var(--spring),background .2s}
.av-totop.on{opacity:1;visibility:visible;transform:none}
.av-totop:hover{background:linear-gradient(#fff,#fff) padding-box,var(--rim) border-box;transform:translateY(-3px)}
.av-totop svg{width:20px;height:20px;display:block}
@media (max-width:760px){.av-totop{right:14px;bottom:14px;width:44px;height:44px}}
