/* BLIX4U overrides layered on the original stylesheet. Hidden "before animation" states only apply
   when JavaScript is running (html.js), so content stays visible if scripts are blocked. */

/* ===== Midnight Sapphire colour theme =====
   Deep Sapphire #0A2E44 · Ocean Night #173A33 · Soft Silver #F6F1E9 / #C9D1CE · gold accent #C9A35B */
:root,:root[data-theme=dark]{
  --bg:#050F17;--bg-2:#081A26;--surface:#0B2131;--surface-2:#0F293B;
  --text:#F6F1E9;--muted:#AEBBBE;--border:#173246;--border-strong:#24465E;
  --accent:#2F6EB5;--accent-2:#255C99;--accent-text:#7DB0E8;--on-accent:#F6F1E9;
  --gold:#C9A35B;--dot:#F6F1E914;--shade:5, 15, 23;--shadow:0 30px 80px -30px #000c}
:root[data-theme=light]{
  --bg:#F6F1E9;--bg-2:#EEE8DE;--surface:#FFFDF9;--surface-2:#F2EDE4;
  --text:#0A2E44;--muted:#4A5E69;--border:#DCD8CE;--border-strong:#C9D1CE;
  --accent:#0A2E44;--accent-2:#173A33;--accent-text:#1A5A8A;--on-accent:#F6F1E9;
  --gold:#9A7432;--dot:#0A2E441a;--shade:246, 241, 233;--shadow:0 30px 70px -35px #0a2e4459}
.logo__mark path:last-child{fill:var(--gold)}
/* Green decorative photos and the hero video, recoloured to sapphire */
img.tint-a{filter:hue-rotate(100deg) saturate(.85)}
img.tint-b{filter:hue-rotate(140deg) saturate(.7)}
.hero__media .video-bg,.showreel__stage>.video-bg{filter:grayscale(1) sepia(.8) hue-rotate(172deg) saturate(1.8) brightness(.95)}

/* Text effects (headline letter/word reveals) */
.js [data-te]{opacity:0;transition:opacity .3s cubic-bezier(.25,.1,.35,1)}
.js [data-te] .te-seg[aria-hidden=true]{opacity:0;filter:blur(12px);transform:translateY(20px);transition:opacity .3s ease-out,filter .3s ease-out,transform .3s ease-out}
.js [data-te].is-in,.js [data-te].is-in .te-seg[aria-hidden=true]{opacity:1;filter:blur(0);transform:none}

/* Staggered card groups */
.js [data-ag]{opacity:0;transform:translateY(24px);transition:opacity .6s cubic-bezier(.22,1,.36,1),transform .6s cubic-bezier(.22,1,.36,1),filter .6s cubic-bezier(.22,1,.36,1)}
.js [data-ag=blur]{filter:blur(8px)}
.js [data-ag].is-in{opacity:1;transform:none;filter:none}

@media (prefers-reduced-motion:reduce){
  .js [data-te],.js [data-te] .te-seg,.js [data-ag]{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}
}

/* Light that travels around the call-to-action border */
@media (prefers-reduced-motion:no-preference){.border-trail__light{animation:blx-trail 7s linear infinite}}
@keyframes blx-trail{from{offset-distance:0%}to{offset-distance:100%}}

/* Rotating word in the hero pill: old and new words share one grid cell while they swap */
.text-loop>.text-loop__item{grid-area:1/1}
.text-loop>.text-loop__item.is-leaving{pointer-events:none}

.wa-ready__title{font-size:clamp(1.8rem,1.4rem + 1.6vw,2.6rem)}
.quote-steps{margin-bottom:2rem}
.quote-steps[hidden]{display:none}
.acc-item[hidden],.faq-empty[hidden]{display:none}

/* Footer "Cookie settings" control, styled like the neighbouring legal links */
.link-btn{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;min-height:0}
.link-btn:hover{color:var(--text);text-decoration:underline}

/* Cookie consent banner */
.cookie{position:fixed;z-index:80;left:max(1rem,env(safe-area-inset-left));bottom:max(1rem,env(safe-area-inset-bottom));
  width:min(34rem,calc(100% - 2rem));background:var(--surface);color:var(--text);border:1px solid var(--border-strong,var(--border));
  border-radius:var(--r-card,18px);box-shadow:0 18px 50px rgba(0,0,0,.35);padding:1.1rem 1.2rem;
  opacity:0;transform:translateY(12px);transition:opacity .3s ease,transform .3s ease}
.cookie.is-visible{opacity:1;transform:none}
.cookie[hidden]{display:none}
.cookie__title{font-weight:700;margin:0 0 .35rem;font-size:1rem}
.cookie p{margin:0;font-size:.9rem;line-height:1.5;color:var(--muted)}
.cookie p a{color:var(--text);text-decoration:underline;text-underline-offset:2px}
.cookie__actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.9rem}
.cookie__actions .btn{flex:1 1 9rem;justify-content:center}
@media (prefers-reduced-motion:reduce){.cookie{transition:none}}

/* Netlify's free-plan "Powered by Netlify" badge sits bottom-right: keep our floating UI clear of it */
.has-nl-badge .wa-float{bottom:calc(max(1rem,env(safe-area-inset-bottom)) + 56px)}
@media (max-width:800px){.has-nl-badge .cookie{bottom:calc(max(1rem,env(safe-area-inset-bottom)) + 52px)}}

/* Keep the WhatsApp button clear of the cookie banner while it is open */
.cookie.is-visible~.wa-wrap .wa-float.is-visible{bottom:calc(max(1rem,env(safe-area-inset-bottom)) + 11rem)}

/* Maintenance step: optional for redesigns ("Continue without maintenance") */
.btn[hidden]{display:none}
.step-actions__go{display:flex;flex-wrap:wrap;gap:.7rem}

/* Redesign maintenance terms: accept or decline before a plan is added to the quote */
.maint-terms{width:min(36rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;margin:auto;padding:clamp(1.3rem,4vw,2rem);
  background:var(--surface);color:var(--text);border:1.5px solid var(--accent-text);border-radius:var(--r-card,20px);box-shadow:var(--shadow)}
.maint-terms::backdrop{background:rgba(var(--shade),.78);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.maint-terms h2{font-size:var(--fs-h3,1.35rem);line-height:1.2;margin:0 0 .9rem}
.maint-terms p{margin:0 0 .8rem;line-height:1.55;color:var(--muted)}
.maint-terms strong{color:var(--text)}
.maint-terms__small{font-size:.88rem}
.maint-terms__actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.3rem}
.maint-terms__actions .btn{flex:1 1 11rem}
@media (prefers-reduced-motion:no-preference){.maint-terms[open]{animation:blx-pop .22s cubic-bezier(.22,1,.36,1)}}
@keyframes blx-pop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
