/* ==========================================================================
   CEOFLIGHTS site header v1 (cfsh). Paired with cf-site-header.html + .js.
   Everything is namespaced .cfsh-* and resets its own inherited styles, so the
   legacy .cf-header / born-reset / Bootstrap rules can't leak in.
   ========================================================================== */
:root {
  --cfsh-h: 76px;
  --cfsh-ink: #0f172a;
  --cfsh-slate: #334155;
  --cfsh-mute: #64748b;
  --cfsh-line: #e3e8f2;
  --cfsh-cta: #333b48;
  --cfsh-blue: #0049ef;
  --cfsh-ease: cubic-bezier(.2, .7, .2, 1);
  --cfsh-f-head: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --cfsh-f-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (max-width: 992px) { :root { --cfsh-h: 64px; } }

/* Pages with a hero under a transparent header: the hero adds --cfsh-offset to its own top padding. */
body[data-cfsh-overlay] { --cfsh-offset: var(--cfsh-h); }
html { scroll-padding-top: calc(var(--cfsh-h) + 16px); }
/* The CMS stylesheet still pads <body> by 70px on desktop for the old header. This header reserves its own height
   (.cfsh-spacer, or the hero's --cfsh-offset), so that padding doubled the gap under it on every CMS page. */
html body { padding-top: 0; }

/* ---------- Bar ---------- */
.cfsh, .cfsh *, .cfsh-drawer, .cfsh-drawer * { box-sizing: border-box; }
.cfsh {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: var(--cfsh-h);
  font: 400 15px/1.2 var(--cfsh-f-body); color: var(--cfsh-ink);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 var(--cfsh-line);
  -webkit-font-smoothing: antialiased;
  transform: translateY(0);
  transition: transform .38s var(--cfsh-ease), background-color .25s ease, box-shadow .25s ease, color .25s ease;
  will-change: transform;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .cfsh { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}
/* Revealed mid-page by an upward scroll: lift it off the content */
.cfsh.is-raised { box-shadow: 0 1px 0 rgba(15, 23, 42, .06), 0 10px 30px -18px rgba(15, 23, 42, .35); }
/* Scrolling down: out of the way. Only transform animates here so the
   transparent → white switch (done while off-screen) never flashes. */
.cfsh.is-hidden { transform: translateY(calc(-100% - 2px)); transition: transform .38s var(--cfsh-ease); }
body.bc-modal-active .cfsh { transform: translateY(calc(-100% - 2px)); }

/* Transparent over a photo hero, only while at the top of the page */
body[data-cfsh-overlay] .cfsh.is-top { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body[data-cfsh-overlay] .cfsh.is-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150%; z-index: -1; pointer-events: none;
}
body[data-cfsh-overlay="light"] .cfsh.is-top::before { background: linear-gradient(180deg, rgba(251, 249, 251, .55), rgba(251, 249, 251, 0)); }
@media (max-width: 992px) { body[data-cfsh-overlay="light"] .cfsh.is-top::before { display: none; } }
body[data-cfsh-overlay="dark"] .cfsh.is-top::before { background: linear-gradient(180deg, rgba(6, 11, 22, .5), rgba(6, 11, 22, 0)); }
body[data-cfsh-overlay="dark"] .cfsh.is-top { color: #fff; }

.cfsh-in {
  max-width: 1288px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 48px;
}
.cfsh a { text-decoration: none; color: inherit; }
.cfsh a:hover, .cfsh a:focus { text-decoration: none; }
.cfsh :focus-visible, .cfsh-drawer :focus-visible { outline: 2px solid var(--cfsh-blue); outline-offset: 3px; }
body[data-cfsh-overlay="dark"] .cfsh.is-top :focus-visible { outline-color: #fff; }

/* Logo: ink version by default, white version on dark heroes */
.cfsh-logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; } /* 44px tap target */
.cfsh-logo img { display: block; height: 30px; width: auto; max-width: none; } /* 30px (was 26, Oct 14): the "on board with your vision" slogan has to be readable */
.cfsh-logo-white { display: none !important; }
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-logo-ink { display: none !important; }
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-logo-white { display: block !important; }

/* Links: visible on desktop, a hairline grows in on hover, quiet underline for the current page */
.cfsh-nav { display: flex; align-items: center; gap: 32px; margin: 0 auto 0 0; padding: 0; }
.cfsh-nav a {
  position: relative; display: inline-flex; align-items: center; height: 44px;
  font: 500 15px/1 var(--cfsh-f-body); letter-spacing: -.003em; color: var(--cfsh-slate); white-space: nowrap;
  transition: color .2s ease;
}
.cfsh-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--cfsh-ease);
}
.cfsh-nav a:hover { color: var(--cfsh-ink); }
.cfsh-nav a:hover::after, .cfsh-nav a[aria-current="page"]::after { transform: scaleX(1); }
.cfsh-nav a[aria-current="page"] { color: var(--cfsh-ink); }
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-nav a { color: rgba(255, 255, 255, .86); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-nav a:hover,
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-nav a[aria-current="page"] { color: #fff; }

/* Phone: dark pill (white on dark heroes) */
.cfsh-call {
  display: inline-flex; align-items: center; gap: 12px; flex: none;
  height: 48px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--cfsh-cta); color: #fff !important;
  transition: background-color .2s ease, color .2s ease, transform .2s var(--cfsh-ease);
}
.cfsh-call:hover { background: var(--cfsh-ink); }
.cfsh-call:active { transform: translateY(1px); }
.cfsh-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cfsh-call-txt { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.cfsh-call-txt small { font: 500 12px/1 var(--cfsh-f-body); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
.cfsh-call-txt b { font: 700 15.5px/1 var(--cfsh-f-head); letter-spacing: -.005em; font-variant-numeric: tabular-nums; }
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-call { background: #fff; color: var(--cfsh-ink) !important; box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .5); }
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-call:hover { background: #f3f6fc; }
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-call-txt small { color: var(--cfsh-mute); }

/* Mobile-only controls */
.cfsh-icon-btn, .cfsh-menu-btn { display: none; }
.cfsh-menu-btn {
  align-items: center; gap: 10px; height: 44px; margin: 0; padding: 0 2px 0 12px;
  border: 0; background: none; color: inherit; cursor: pointer; border-radius: 0;
  font: 600 15px/1 var(--cfsh-f-body); letter-spacing: -.003em; -webkit-appearance: none; appearance: none;
}
.cfsh-burger { position: relative; display: block; width: 20px; height: 10px; }
.cfsh-burger i { position: absolute; left: 0; right: 0; height: 1.75px; border-radius: 2px; background: currentColor; }
.cfsh-burger i:first-child { top: 0; }
.cfsh-burger i:last-child { bottom: 0; left: 6px; }
.cfsh-icon-btn {
  align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto;
  border-radius: 999px; color: inherit;
}

@media (max-width: 1140px) and (min-width: 993px) {
  .cfsh-in { gap: 36px; }
  .cfsh-nav { gap: 24px; }
}
@media (max-width: 992px) {
  .cfsh-in { gap: 4px; padding: 0 12px 0 20px; }
  .cfsh-logo img { height: 26px; }
  .cfsh-nav, .cfsh-call { display: none; }
  .cfsh-icon-btn, .cfsh-menu-btn { display: inline-flex; }
}

/* ---------- Phones: the phone-deals button (SkyLux-style call-out, in our ink) ----------
   A filled ink circle with a white handset and a green "online" dot, "Phone-exclusive / deals · 24/7" beside it.
   Every 6s the handset rings (two short wiggles) and a soft halo spreads, to draw the eye without looping
   constantly. Reduced motion: still. */
.cfsh .cfsh-call-m { width: auto; gap: 8px; padding: 0 2px 0 0; border-radius: 999px; }
.cfsh .cfsh-call-m + .cfsh-menu-btn { gap: 8px; padding-left: 8px; }
.cfsh-call-m-ico {
  position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--cfsh-ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .55);
}
.cfsh-call-m-ico::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cfsh-ink);
  opacity: 0; pointer-events: none;
  animation: cfsh-halo 6s ease-out 1.2s infinite;
}
.cfsh-call-m-svg {
  display: block; fill: currentColor; stroke: none; transform-origin: 50% 50%;
  animation: cfsh-ring 6s ease-in-out 1.2s infinite;
}
.cfsh-call-m-dot {
  position: absolute; right: -1px; top: -1px; width: 11px; height: 11px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff;
}
.cfsh-call-m-txt { display: flex; flex-direction: column; gap: 3px; line-height: 1; text-align: left; white-space: nowrap; }
.cfsh-call-m-txt b { font: 700 12px/1 var(--cfsh-f-head); letter-spacing: -.005em; color: var(--cfsh-ink); }
.cfsh-call-m-txt small { font: 500 11px/1 var(--cfsh-f-body); color: var(--cfsh-mute); }
/* transparent over a dark photo: a white circle with an ink handset, white text */
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-call-m-ico { background: #fff; color: var(--cfsh-ink); }
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-call-m-ico::before { border-color: #fff; }
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-call-m-txt b { color: #fff; }
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-call-m-txt small { color: rgba(255, 255, 255, .82); }
body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-call-m-txt { text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
@keyframes cfsh-ring {
  0%, 12%, 100% { transform: rotate(0); }
  2% { transform: rotate(-14deg); }
  4% { transform: rotate(14deg); }
  6% { transform: rotate(-12deg); }
  8% { transform: rotate(10deg); }
  10% { transform: rotate(-4deg); }
}
@keyframes cfsh-halo {
  0% { opacity: .5; transform: scale(1); }
  22% { opacity: 0; transform: scale(1.55); }
  100% { opacity: 0; transform: scale(1.55); }
}
/* 360–374px (most Android phones, iPhone SE): a slightly smaller logo keeps the label; below 360 the circle alone */
@media (max-width: 374px) {
  .cfsh-in { padding-left: 16px; }
  .cfsh-logo img { height: 21px; }
}
@media (max-width: 359px) {
  .cfsh-call-m-txt { display: none; }
  .cfsh .cfsh-call-m { padding: 0 3px; }
}

/* ---------- Trust marks (opt-in: body[data-cfsh-trust], generated SEO pages only) ----------
   ASTA · TRUE · Trustpilot · Authorize.net with their full text, each linking to its verification page.
   Desktop only: the marks take the place of the text links, which stay reachable in the Menu drawer.
   Pages without the attribute (homepage, deals, about, contacts, blog) never show them. Phones: unchanged. */
.cfsh-trust { display: none; }
@media (min-width: 993px) {
  body[data-cfsh-trust] .cfsh-in { gap: 32px; }
  body[data-cfsh-trust] .cfsh-nav { display: none; }
  body[data-cfsh-trust] .cfsh-menu-btn { display: inline-flex; }
  body[data-cfsh-trust] .cfsh-trust { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; list-style: none; margin: 0 auto; padding: 0; }
  .cfsh-trust li { display: flex; align-items: center; margin: 0; padding: 0; }
  .cfsh-trust li + li { border-left: 1px solid rgba(15, 23, 42, .14); }
  .cfsh .cfsh-trust a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; color: var(--cfsh-ink); transition: opacity .2s ease; }
  .cfsh .cfsh-trust li:first-child a { padding-left: 0; }
  .cfsh .cfsh-trust li:last-child a { padding-right: 0; }
  .cfsh .cfsh-trust a:hover { opacity: .75; }
  .cfsh-trust svg { display: block; width: 19px; height: 19px; flex: none; fill: currentColor; }
  .cfsh-trust span { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
  .cfsh-trust b { font: 700 11px/1.2 var(--cfsh-f-body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
  .cfsh-trust small { font: 400 12px/1.2 var(--cfsh-f-body); color: var(--cfsh-mute); white-space: nowrap; }
  /* Transparent over the photo: white */
  body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-trust a { color: #fff; }
  body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-trust li + li { border-left-color: rgba(255, 255, 255, .3); }
  body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-trust small { color: rgba(255, 255, 255, .82); }
  body[data-cfsh-overlay="dark"] .cfsh.is-top .cfsh-trust span { text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
}
/* Small laptops: keep all four marks, drop the second line (codes / notes stay one click away via the links) */
@media (min-width: 993px) and (max-width: 1279px) {
  body[data-cfsh-trust] .cfsh-trust small { display: none; }
  .cfsh .cfsh-trust a { padding: 0 12px; }
}

/* ---------- Spacer (plain pages only) ---------- */
.cfsh-spacer { height: var(--cfsh-h); }
body[data-cfsh-overlay] .cfsh-spacer { display: none; }

/* ---------- Skip link ---------- */
.cfsh-skip {
  position: fixed; left: 12px; top: 12px; z-index: 9600; padding: 12px 18px;
  background: var(--cfsh-ink); color: #fff !important; font: 600 14px/1 var(--cfsh-f-body); text-decoration: none;
  transform: translateY(-200%); transition: transform .2s ease;
}
.cfsh-skip:focus { transform: none; outline: 2px solid var(--cfsh-blue); outline-offset: 2px; }

/* ---------- Drawer (mobile) ---------- */
.cfsh-backdrop {
  position: fixed; inset: 0; z-index: 10000; background: rgba(15, 23, 42, .42);
  opacity: 0; transition: opacity .3s ease;
}
.cfsh-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 10001;
  width: min(420px, 100%); display: flex; flex-direction: column;
  background: #fff; color: var(--cfsh-ink); font: 400 16px/1.4 var(--cfsh-f-body);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  /* visibility waits for the slide-out, so closing animates too (it switches at once when opening, below) */
  transform: translateX(100%); transition: transform .38s var(--cfsh-ease), visibility 0s linear .38s; visibility: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.cfsh-backdrop[hidden], .cfsh-drawer[hidden] { display: none !important; }
html.cfsh-open .cfsh-backdrop { opacity: 1; }
html.cfsh-open .cfsh-drawer { transform: none; visibility: visible; transition-delay: 0s; box-shadow: -30px 0 60px -30px rgba(15, 23, 42, .35); }
html.cfsh-lock, html.cfsh-lock body { overflow: hidden !important; }
html.cfsh-open .bc-sticky-cta-bar { visibility: hidden; }

.cfsh-drawer a { color: inherit; text-decoration: none; }
.cfsh-drawer-top {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  height: 64px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--cfsh-line);
}
.cfsh-drawer-top .cfsh-logo img { height: 26px; }
.cfsh-close {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; margin: 0;
  border: 0; background: none; color: var(--cfsh-ink); cursor: pointer; border-radius: 0;
  font: 600 15px/1 var(--cfsh-f-body); -webkit-appearance: none; appearance: none;
}
.cfsh-close svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.cfsh-drawer-nav { display: flex; flex-direction: column; padding: 8px 20px 0; }
.cfsh-drawer-nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 58px;
  border-bottom: 1px solid var(--cfsh-line);
  font: 700 21px/1.2 var(--cfsh-f-head); letter-spacing: -.015em; color: var(--cfsh-ink);
}
.cfsh-drawer-nav a::after { content: "→"; font: 400 18px/1 var(--cfsh-f-body); color: #94a3b8; transition: transform .25s var(--cfsh-ease), color .2s ease; }
.cfsh-drawer-nav a:hover::after, .cfsh-drawer-nav a:focus-visible::after { transform: translateX(4px); color: var(--cfsh-ink); }
.cfsh-drawer-nav a[aria-current="page"] { color: var(--cfsh-blue); }

.cfsh-drawer-talk { display: flex; flex-direction: column; padding: 28px 20px 8px; }
.cfsh-kicker { margin: 0 0 10px; font: 600 12px/1.3 var(--cfsh-f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--cfsh-mute); }
.cfsh-talk { display: flex; align-items: center; gap: 12px; min-height: 48px; font: 500 16px/1.3 var(--cfsh-f-body); color: var(--cfsh-slate) !important; }
.cfsh-talk:hover { color: var(--cfsh-ink) !important; }
.cfsh-talk .cfsh-ico { color: var(--cfsh-mute); }
.cfsh-talk-phone { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding-left: 14px; margin-bottom: 6px; border-left: 2px solid var(--cfsh-ink); }
.cfsh-talk-phone b { font: 800 26px/1.1 var(--cfsh-f-head); letter-spacing: -.02em; color: var(--cfsh-ink); font-variant-numeric: tabular-nums; }
.cfsh-talk-phone small { font: 500 13px/1.2 var(--cfsh-f-body); color: var(--cfsh-mute); }
.cfsh-wa { flex: none; color: #25d366; }

.cfsh-drawer-foot { margin-top: auto; padding: 20px 20px 24px; }
.cfsh-quote {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; margin: 0;
  border: 0; border-radius: 2px; background: var(--cfsh-cta); color: #fff; cursor: pointer;
  font: 700 14px/1 var(--cfsh-f-body); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .6); -webkit-appearance: none; appearance: none;
  transition: background-color .2s ease;
}
.cfsh-quote:hover { background: var(--cfsh-ink); }
.cfsh-wa-quote { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 6px; font: 500 15px/1.3 var(--cfsh-f-body); color: var(--cfsh-slate) !important; }
.cfsh-wa-txt { border-bottom: 1px solid rgba(15, 23, 42, .2); padding-bottom: 1px; }
/* visually hidden, read by screen readers ("opens WhatsApp") */
.cfsh-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cfsh-wa-quote:hover { color: var(--cfsh-ink) !important; }
.cfsh-note { margin: 8px 0 0; text-align: center; font: 400 13px/1.4 var(--cfsh-f-body); color: var(--cfsh-mute); }
.cfsh-star { color: var(--cfsh-ink); } /* neutral ink star: never Trustpilot green */

@media (prefers-reduced-motion: reduce) {
  .cfsh, .cfsh.is-hidden, .cfsh-drawer, .cfsh-backdrop, .cfsh-nav a::after { transition: none !important; }
  .cfsh-call-m-svg, .cfsh-call-m-ico::before { animation: none !important; }
}
@media print { .cfsh, .cfsh-spacer, .cfsh-drawer, .cfsh-backdrop, .cfsh-skip { display: none !important; } }
