/* Field Force Media: cookie bar, page transitions, small interactions (see js/fx.js). */

/* ---- Cookie bar ---- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900;
  max-width: 560px; margin-left: auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; background: #151515; color: var(--white-70);
  border: 1px solid var(--white-08); border-left: 3px solid var(--gold);
  font: 400 0.82rem/1.5 'Inter', sans-serif;
  transition: opacity .25s ease, translate .25s ease;
}
.cookie-bar.out { opacity: 0; translate: 0 8px; }
.cookie-bar p { margin: 0; flex: 1 1 260px; }
.cookie-bar a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.cookie-btns { display: flex; gap: 8px; }
.cookie-btns button {
  min-height: 44px; padding: 0 18px; cursor: pointer;
  font: 600 0.8rem 'Montserrat', sans-serif; letter-spacing: .01em;
  border: 1px solid var(--white-20); background: transparent; color: var(--white);
}
.cookie-btns button[data-c="granted"] { background: var(--white); color: #0A0A0A; border-color: var(--white); }
.cookie-btns button:hover { border-color: var(--gold); }
.cookie-btns button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 759px) {
  /* Compact on phones (Josh 2026-11-25): one short line of text, small buttons beside it. */
  .cookie-bar { left: 8px; right: 8px; bottom: 8px; gap: 10px; padding: 8px 10px; flex-wrap: nowrap; font-size: 0.72rem; line-height: 1.35; }
  .cookie-bar p { flex: 1 1 auto; }
  .cookie-btns { gap: 6px; flex-shrink: 0; }
  .cookie-btns button { min-height: 40px; padding: 0 12px; font-size: 0.72rem; }
}
/* The GoHighLevel chat bubble waits until the visitor answers the cookie bar, so it never covers the buttons. */
body:has(> .cookie-bar) chat-widget { display: none; }

/* ---- Sticky call-to-action bar (phones only) ---- */
.sticky-cta { display: none; }
@media (max-width: 759px) {
  .sticky-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
    min-height: 56px; padding: 0 16px calc(env(safe-area-inset-bottom) * .6);
    background: var(--gold); color: #0A0A0A; text-decoration: none;
    font: 700 0.95rem 'Montserrat', sans-serif;
    translate: 0 100%; transition: translate .25s ease;
  }
  .sticky-cta.on { translate: 0 0; }
  /* Cookie bar sits above the sticky bar. */
  .has-sticky .cookie-bar { bottom: 64px; }
  .has-sticky .footer { padding-bottom: 72px; }
}
@media (max-width: 759px) and (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---- Page transitions: a quick cross-fade between pages (browsers that support it). ---- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }

/* ---- Magnetic button: the lean eases back when the pointer leaves. ---- */
[data-magnetic] { transition: translate .35s cubic-bezier(.2,.8,.2,1), var(--transition); }

/* ---- Context cursor label ---- */
.ctx-cursor {
  position: fixed; left: 0; top: 0; z-index: 950; pointer-events: none;
  padding: 5px 10px; background: var(--gold); color: #0A0A0A;
  font: 700 0.72rem 'Montserrat', sans-serif; letter-spacing: .02em;
  opacity: 0; scale: .85; transition: opacity .15s ease, scale .15s ease;
}
.ctx-cursor.on { opacity: 1; scale: 1; }

/* ---- Parallax target moves smoothly ---- */
[data-parallax] { will-change: translate; }

/* ---- Easter egg: hover the big mark and the azure slice slides out along the logo's 45-degree cut. ---- */
@media (hover: hover) and (pointer: fine) {
  .hero2-mark .p2 { transition: translate .45s cubic-bezier(.2,.8,.2,1); }
  .hero2-mark:hover .p2 { translate: 34px -34px; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .cookie-bar, [data-magnetic], .ctx-cursor, .hero2-mark .p2 { transition: none; }
  .hero2-mark:hover .p2 { translate: none; }
}

/* ---- Footer legal links ---- */
.footer-bottom .legal-links { display: inline-flex; gap: 20px; }
.footer-bottom .legal-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--white-20); }
.footer-bottom .legal-links a:hover { color: var(--white); }

/* Images now carry width/height (stops layout jumps). Keep their proportions unless a rule sets a size. */
:where(img[width][height]) { height: auto; }
