/*
Theme Name:   Hello Elementor Child — Flybyhosting
Theme URI:    https://flybyhosting.com/
Description:  Flybyhosting v3 (GSAP motion). Elementor-built header/footer (no extra plugin), [fbh_menu] mega menu + mobile menu, [fbh_form] Forminator wrapper, [fbh_lang] TranslatePress switcher, one-click site setup (Appearance → Flyby Setup).
Author:       Flybyhosting
Template:     hello-elementor
Version:      3.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain:  fbh
License:      GPL-2.0-or-later
*/

:root{
  --fbh-ink:#0A1220; --fbh-muted:#4D5868; --fbh-line:#DDE3EA; --fbh-bg:#F3F5F8; --fbh-tint:#E5F0FD;
  --fbh-blue:#037DEE; --fbh-blue-text:#0264C4; --fbh-border:#CDD6E0; --fbh-navy:#071A33; --fbh-mist:#9FC6F2;
  --fbh-font:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --fbh-header-h:80px;
}
body{background:var(--fbh-bg);font-family:var(--fbh-font);-webkit-font-smoothing:antialiased}
html{scroll-padding-top:calc(var(--fbh-header-h) + 16px)}

/* ---------- Header: the whole header is sticky, offset by the top bar's height,
   so the top bar scrolls away and only the main header bar stays on screen ---------- */
:root{--fbh-admin:0px;--fbh-topbar-h:0px}
.admin-bar{--fbh-admin:32px}
@media (max-width:782px){.admin-bar{--fbh-admin:46px}}
@media (max-width:600px){.admin-bar{--fbh-admin:0px}}
.fbh-site-header{position:sticky;top:calc(var(--fbh-admin) - var(--fbh-topbar-h));z-index:1000;display:block}
.fbh-site-header .fbh-sticky{position:relative}
.fbh-site-header .fbh-sticky{transition:background-color .3s,box-shadow .3s}
.fbh-site-header.is-stuck .fbh-sticky{background-color:rgba(243,245,248,.82)!important;-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);box-shadow:0 1px 0 var(--fbh-line)}
.fbh-site-header .elementor-widget-shortcode,.fbh-site-header .elementor-shortcode{min-width:0}
.fbh-site-header .elementor-widget-image img{display:block}
html.fbh-lock{overflow:hidden}

/* ---------- [fbh_menu] desktop ---------- */
.fbh-menu{position:relative;font-family:var(--fbh-font)}
.fbh-menu__list,.fbh-menu__list ul{list-style:none;margin:0;padding:0}
.fbh-menu__list{display:flex;align-items:center;gap:4px}
.fbh-menu__list>li{position:relative}
.fbh-menu__list>li>a{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:10px;color:var(--fbh-ink);font-size:15px;font-weight:500;text-decoration:none;white-space:nowrap;transition:background .15s}
.fbh-menu__list>li>a:hover,.fbh-menu__list>li:focus-within>a,.fbh-menu__list>li.is-open>a{background:#EAEAE5;color:var(--fbh-ink)}
.fbh-menu__list>.current-menu-item:not(.menu-item-type-custom)>a,.fbh-menu__list>li:has(>.sub-menu>.current-menu-item:not(.fbh-mega-cta))>a{color:var(--fbh-blue-text)}
.fbh-menu__list>.menu-item-has-children>a::after{content:"";width:7px;height:7px;margin-left:2px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.fbh-menu__list>li.is-open>a::after,.fbh-menu__list>li:hover>a::after{transform:translateY(1px) rotate(225deg)}
/* dropdown (regular) */
.fbh-menu__list .sub-menu{position:absolute;top:100%;left:0;min-width:240px;padding:8px;margin-top:10px;background:#fff;border:1px solid var(--fbh-line);border-radius:18px;box-shadow:0 30px 60px -24px rgba(11,13,16,.35);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .16s,transform .16s,visibility .16s;z-index:50}
.fbh-menu__list .sub-menu::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.fbh-menu__list>li:hover>.sub-menu,.fbh-menu__list>li:focus-within>.sub-menu,.fbh-menu__list>li.is-open>.sub-menu{opacity:1;visibility:visible;transform:none}
.fbh-menu__list .sub-menu a{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:12px;color:var(--fbh-ink);text-decoration:none;font-weight:700;font-size:16px;line-height:1.3}
.fbh-menu__list .sub-menu a:hover,.fbh-menu__list .sub-menu a:focus-visible{background:var(--fbh-bg)}
.fbh-menu__desc{font-weight:400;font-size:14px;line-height:1.45;color:var(--fbh-muted)}
/* mega (parent item with class fbh-mega) */
.fbh-menu__list>li.fbh-mega{position:static}
.fbh-menu__list>li.fbh-mega>.sub-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:min(920px,calc(100vw - 48px));padding:16px;left:0}
.fbh-menu__list .sub-menu li.fbh-mega-cta>a{height:100%;justify-content:space-between;background:var(--fbh-ink);color:#fff}
.fbh-menu__list .sub-menu li.fbh-mega-cta>a:hover{background:#1E2228}
.fbh-menu__list .sub-menu li.fbh-mega-cta .fbh-menu__desc{color:#B9BEC7}
/* toggle (hidden on desktop) */
.fbh-menu .fbh-menu__toggle,.fbh-menu .fbh-menu__toggle:hover,.fbh-menu .fbh-menu__toggle:focus{min-height:44px;box-shadow:none;background:#fff;color:var(--fbh-ink)}
.fbh-menu__toggle{display:none;width:44px;height:44px;padding:0;border:1px solid var(--fbh-border);border-radius:12px;background:#fff;color:var(--fbh-ink);cursor:pointer;align-items:center;justify-content:center;position:relative;z-index:3}
.fbh-menu__bars,.fbh-menu__bars::before,.fbh-menu__bars::after{display:block;width:18px;height:2px;background:currentColor;border-radius:2px;position:relative;transition:.2s}
.fbh-menu__bars::before,.fbh-menu__bars::after{content:"";position:absolute;left:0}
.fbh-menu__bars::before{top:-6px}.fbh-menu__bars::after{top:6px}
.fbh-menu.is-open .fbh-menu__bars{background:transparent}
.fbh-menu.is-open .fbh-menu__bars::before{top:0;transform:rotate(45deg)}
.fbh-menu.is-open .fbh-menu__bars::after{top:0;transform:rotate(-45deg)}
.fbh-menu__extra{display:none}
.fbh-menu-empty{margin:0;font-size:13px;color:#8A3B00}

/* ---------- [fbh_menu] tablet + mobile (≤1200px) ---------- */
@media (max-width:1200px){
  .fbh-menu{display:flex;justify-content:flex-end}
  .fbh-menu__toggle{display:inline-flex}
  .fbh-menu__panel{display:none;position:fixed;left:0;right:0;bottom:0;top:var(--fbh-panel-top,var(--fbh-header-h));overflow-y:auto;-webkit-overflow-scrolling:touch;background:var(--fbh-bg);padding:12px 20px 28px;z-index:2;flex-direction:column}
  .fbh-menu.is-open .fbh-menu__panel{display:flex}
  .fbh-menu__list{flex-direction:column;align-items:stretch;gap:0}
  .fbh-menu__list>li>a{min-height:56px;padding:0;border-radius:0;border-bottom:1px solid var(--fbh-line);font-size:19px;font-weight:700;justify-content:space-between}
  .fbh-menu__list>li>a:hover,.fbh-menu__list>li:focus-within>a,.fbh-menu__list>li.is-open>a{background:none}
  .fbh-menu__list .sub-menu,.fbh-menu__list>li.fbh-mega>.sub-menu{position:static;display:none;width:auto;opacity:1;visibility:visible;transform:none;margin:0;padding:6px 0 10px;border:0;border-radius:0;box-shadow:none;background:none;grid-template-columns:1fr;gap:0}
  .fbh-menu__list>li.is-open>.sub-menu{display:block}
  .fbh-menu__list>li:hover>.sub-menu,.fbh-menu__list>li:focus-within>.sub-menu{display:none}
  .fbh-menu__list>li.is-open:hover>.sub-menu,.fbh-menu__list>li.is-open:focus-within>.sub-menu{display:block}
  .fbh-menu__list .sub-menu a{padding:12px 0;border-radius:0;font-size:16px}
  .fbh-menu__list .sub-menu a:hover{background:none}
  .fbh-menu__list .sub-menu li.fbh-mega-cta>a{padding:16px;margin-top:8px;border-radius:14px}
  .fbh-menu__extra{display:flex;flex-direction:column;gap:10px;margin-top:auto;padding-top:24px}
  .fbh-menu__extra a{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:999px;font-weight:700;font-size:16px;text-decoration:none}
  .fbh-menu__extra .fbh-btn-primary{background:var(--fbh-blue);color:#fff}
  .fbh-menu__extra .fbh-btn-ghost{border:1px solid var(--fbh-border);color:var(--fbh-ink);background:#fff}
}

/* ---------- [fbh_lang] text switcher:  EN | FR ---------- */
.fbh-lang{display:inline-flex;align-items:center;gap:8px;font-family:var(--fbh-font);font-size:14px;font-weight:600;letter-spacing:.02em;white-space:nowrap}
.fbh-lang a,.fbh-lang a:visited{color:var(--fbh-muted)!important;text-decoration:none!important;padding:6px 0;background:none!important}
.fbh-lang a:hover,.fbh-lang a:focus{color:var(--fbh-ink)!important}
.fbh-lang a.is-active{color:var(--fbh-ink)!important;color:var(--fbh-ink);font-weight:800;pointer-events:none}
.fbh-lang__sep{color:var(--fbh-border)}
.fbh-menu__extra .fbh-lang{justify-content:center;font-size:16px;padding-top:6px}

/* TranslatePress floating box is replaced by the header's "Eng | Fr" */
#trp-floater-ls,.trp-floating-switcher{display:none!important}

/* ---------- Elementor heading links keep the heading's own colour (no theme link colour) ---------- */
.elementor-widget-heading .elementor-heading-title a{color:inherit;text-decoration:none}
.elementor-widget-heading .elementor-heading-title a:hover{opacity:.75}
.elementor-widget-text-editor a{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* ---------- Back to top ---------- */
.fbh-top,.fbh-top:focus{background:var(--fbh-ink)!important;color:#fff!important}
.fbh-top{position:fixed;padding:0!important;min-height:0!important;right:24px;bottom:24px;z-index:990;width:48px;height:48px;border:0;border-radius:999px;background:var(--fbh-ink);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 12px 30px -10px rgba(11,13,16,.45);opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .2s,transform .2s,visibility .2s,background .15s}
.fbh-top.is-visible{opacity:1;visibility:visible;transform:none}
.fbh-top:hover{background:var(--fbh-blue)!important}
.fbh-top svg{display:block;width:20px;height:20px}
.fbh-top:focus-visible{outline:3px solid var(--fbh-blue);outline-offset:3px}
html.fbh-lock .fbh-top{display:none}
@media (max-width:600px){.fbh-top{right:16px;bottom:16px;width:44px;height:44px}}
@media (prefers-reduced-motion:reduce){.fbh-top{transition:none}}

/* ---------- Forminator (form uses Design style "None") ---------- */
.fbh-form-wrap .forminator-ui{font-family:var(--fbh-font)!important}
.fbh-form-wrap .forminator-row{display:flex;gap:16px;margin-bottom:16px!important}
.fbh-form-wrap .forminator-row>.forminator-col{flex:1 1 0;min-width:0}
.fbh-form-wrap .forminator-char-count{font-size:12px;color:var(--fbh-muted)}
@media (max-width:600px){.fbh-form-wrap .forminator-row{flex-direction:column;gap:16px}}
.fbh-form-wrap .forminator-label{display:block;margin-bottom:6px;font-size:14px!important;font-weight:600!important;color:var(--fbh-ink)!important}
.fbh-form-wrap input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.fbh-form-wrap select,.fbh-form-wrap textarea{width:100%;min-height:48px;padding:10px 14px!important;border:1px solid var(--fbh-border)!important;border-radius:12px!important;background:#fff!important;color:var(--fbh-ink)!important;font:400 15px var(--fbh-font)!important;box-sizing:border-box;box-shadow:none!important}
.fbh-form-wrap textarea{min-height:120px;resize:vertical}
.fbh-form-wrap input:focus,.fbh-form-wrap select:focus,.fbh-form-wrap textarea:focus{outline:2px solid var(--fbh-blue)!important;outline-offset:1px;border-color:var(--fbh-blue)!important}
.fbh-form-wrap .forminator-button-submit{width:100%;min-height:54px;border:0!important;border-radius:999px!important;background:var(--fbh-ink)!important;color:#fff!important;font:700 17px var(--fbh-font)!important;cursor:pointer}
.fbh-form-wrap .forminator-button-submit:hover{background:var(--fbh-blue-text)!important}
.fbh-form-wrap .forminator-error-message{font-size:13px}
.fbh-form-missing{padding:16px;border:1px dashed #F5C999;border-radius:12px;background:#FFF4E8;color:#8A3B00;font-size:14px}

/* ---------- Elementor details ---------- */
.e-n-tabs-heading .e-n-tab-title{text-align:start;justify-content:flex-start}
.elementor-widget-n-accordion .e-n-accordion-item-title-text{font-family:var(--fbh-font)}
a.e-con{text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
a.e-con:hover{transform:translateY(-3px);box-shadow:0 24px 48px -28px rgba(11,13,16,.35)}

/* ---------- WooCommerce ---------- */
.woocommerce ul.products li.product{background:#fff;border:1px solid var(--fbh-line);border-radius:22px;padding:24px;box-sizing:border-box}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price{font-family:var(--fbh-font);font-weight:800;font-size:20px;color:var(--fbh-ink)}
.woocommerce ul.products li.product .button{background:var(--fbh-ink);color:#fff;border-radius:999px;padding:12px 20px;font-weight:700}
.woocommerce ul.products li.product .button:hover{background:var(--fbh-blue);color:#fff}


/* =================== v3 motion layer =================== */
/* pre-states only while JS motion is active (html.fbh-motion is added in <head>, removed if GSAP is unavailable) */
html.fbh-motion .fbh-split{visibility:hidden}
html.fbh-motion .fbh-rv{opacity:0;visibility:hidden}
.fbh-wm{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.06em;margin-bottom:-.06em}
.fbh-w{display:inline-block;will-change:transform}

/* hero flight path (injected by motion.js) */
.fbh-hero{position:relative;overflow:hidden}
.fbh-hero>.e-con-inner{position:relative;z-index:1}
.fbh-flight{position:absolute;left:50%;top:40px;width:1500px;height:520px;margin-left:-750px;pointer-events:none;z-index:0}
.fbh-flight path:first-child{fill:none;stroke:var(--fbh-blue);stroke-width:1.5;stroke-linecap:round;opacity:.45}
.fbh-flight .fbh-plane{fill:var(--fbh-ink)}
@media (max-width:767px){.fbh-flight{top:10px;width:900px;height:340px;margin-left:-450px}}

/* client marquee */
.fbh-marquee{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.fbh-marquee .fbh-track{display:flex;gap:72px;width:max-content;flex-wrap:nowrap}
.fbh-marquee .fbh-track>.elementor-element{flex:0 0 auto;width:auto!important;white-space:nowrap}

/* pinned story */
.fbh-step{opacity:.4;transition:opacity .35s,border-color .35s}
.fbh-step.is-on{opacity:1;border-left-color:var(--fbh-blue)!important}
.fbh-panel{position:relative}
.fbh-story.is-pinned .fbh-panel{height:440px}
.fbh-story.is-pinned .fbh-scene{position:absolute!important;inset:0;width:100%!important}
@media (max-width:1100px){.fbh-step{opacity:1}.fbh-panel{gap:0}.fbh-scene+.fbh-scene{border-top:1px solid rgba(255,255,255,.08)}}

/* closing line fills with ink on scroll */
.fbh-fill .elementor-heading-title{background:linear-gradient(90deg,var(--fbh-ink) 0 50%,#C3CCD8 50% 100%);background-size:200% 100%;background-position:0 0;-webkit-background-clip:text;background-clip:text;color:transparent!important}
html.fbh-motion .fbh-fill .elementor-heading-title{background-position:100% 0}

@media (prefers-reduced-motion:reduce){html.fbh-motion .fbh-split,html.fbh-motion .fbh-rv{visibility:visible;opacity:1}}
