/*
 Theme Name:   GeneratePress Child
 Template:     generatepress
 Version:      1.0.0
 Author:       EXDS
 Description:  A sleek, scalable child theme built by EXDS.
 Text Domain:  generatepress-child
*/

/* ==========================================================================
   🔥 EXDS CUSTOM CSS STYLES
   Includes: Marquee Button, Laser Pointer, Cursor, Sticky Header
   ========================================================================== */

/* ==============================
   Continuous, Centered Marquee
   ============================== */

.btn-lets-talk {
  position: relative;
  display: inline-flex;
  align-items: center;      /* vertical centering */
  overflow: hidden;
  width: 140px;
  height: 48px;
  background-color: #FC421B; /* deep magenta bg */
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font: 600 14px/1 'Inter', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* The fast-moving container */
.btn-lets-talk .marquee-wrap {
  display: flex;
  align-items: center;      /* vertical centering of text */
  /* width is twice the button to fit two spans back to back */
  width: 280px;             
  animation: marqueeLoop 6s linear infinite;
}

/* Each text block */
.btn-lets-talk .marquee {
  flex: 0 0 140px;          /* exactly the width of the button */
  text-align: center;       /* center text horizontally */
}

/* Move left by one full button width (140px) */
@keyframes marqueeLoop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-140px); }
}

/* Hover state: speed up + highlight color */
.btn-lets-talk:hover {
	color: #FC421B;
  background-color: #FFFFFF; /* highlight red */
}
.btn-lets-talk:hover .marquee-wrap {
  animation-duration: 4s;
}

/* Hide “Let’s Talk” button on mobile */
@media (max-width: 767px) {
  .btn-lets-talk {
    display: none !important;
  }
}


/* ==============================
   1. HIDING ALL SYSTEM CURSORS
   ============================== */

/* Hide native cursor everywhere, including links/buttons */
* {
  cursor: none !important;
}

/* ==============================
   2. LASER POINTER + TARGET RING
   ============================== */

/* The laser-dot element */
.laser-pointer {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;          /* center on pointer */
  background: #FC421B;            /* highlight red */
  border-radius: 50%;
  box-shadow:
    0 0 6px rgba(252,66,27,0.8),
    0 0 12px rgba(252,66,27,0.6);
  pointer-events: none;
  transition: transform 0.1s ease-out;
  z-index: 9999;
}

/* The outer ring around the laser dot */
.laser-pointer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;        /* center the ring */
  border: 2px solid rgba(252,66,27,0.6);
  border-radius: 50%;
  pointer-events: none;
}

/* ==============================
   3. (Optional) PULSING ANIMATION
   ============================== */
/* Uncomment to add a subtle pulse to the ring */

@keyframes laserPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  50%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1); opacity: 0.6; }
}

.laser-pointer::after {
  animation: laserPulse 1.5s ease-out infinite;
}

/*==========================================================================
  0) FORCE FULL-WIDTH OVERRIDES (GP containers)
===========================================================================*/
.top-bar .inside-top-bar,
.site-header .inside-header {
  max-width: none !important;
  width: 100% !important;
  padding: 0 2rem !important;
}

/*==========================================================================
  1) BASE STATE: transparent + absolute + full-width
===========================================================================*/
.top-bar,
.site-header {
  position: absolute;
  left: 0; right: 0;
  width: 100% !important;
  background: transparent !important;
  transition: all .3s ease-in-out;
  box-sizing: border-box;
  z-index: 10000;
}

/* — top-bar — */
.top-bar {
  top: 10px;                       /* lift off the very top of browser */
  height: 36px;                   /* 8px pad top + bot + line-height */
  padding: 10px 2rem;
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  z-index: 10010;
}

/* — site-header — */
.site-header {
  top: 44px;                      /* 8px gap + 32px bar height */
  height: 82px;                   /* 20px pad top + bot + line-height */
  padding: 25px 2rem;
  display: flex; align-items: center;
  z-index: 10009;
}

/*==========================================================================
  2) SCROLLED STATE: sticky + glass + shrink
===========================================================================*/
/* turn both into fixed shells */
.top-bar.scrolled,
.site-header.scrolled {
  position: fixed;
  left: 0; right: 0;
  background: transparent !important;
}

/* full-area blur behind content */
.top-bar.scrolled::before,
.site-header.scrolled::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(17,17,17,0.55);
  backdrop-filter: blur(6px);
  z-index: -1;
}

/* — top-bar shrinks — */
.top-bar.scrolled {
  top: 8px;                       /* maintain the 8px gap */
  height: 24px;                   /* 4px pad top + bot */
  padding: 4px 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  z-index: 10010;
}

/* — header shrinks & tucks under new bar — */
.site-header.scrolled {
  top: 33px;                      /* 8px gap + 24px bar + 1px border */
  height: 52px;                   /* 12px pad top + bot */
  padding: 14px 2rem;
  z-index: 10009;
}

/*==========================================================================
  3) MOBILE TWEAKS
===========================================================================*/
@media(max-width:767px){
  .top-bar { top:6px; height:28px; padding:6px 1rem; }
  .site-header { top:34px; height:60px; padding:16px 1rem; }

  .top-bar.scrolled { top:6px; height:24px; padding:4px 1rem; }
  .site-header.scrolled {
    top:31px; height:40px; padding:8px 1rem;
  }
}

/*───────────────────────────────────────
  FINAL SCROLL‑STATE TWEAKS (10/10)
────────────────────────────────────────*/

/* 1) Snap bar to top & restore full text height */
.top-bar.scrolled {
  top: 0 !important;               /* no gap at browser edge */
  height: 44px !important;         /* full 8px+text+8px so no clipping */
  padding: 14px 2rem !important;    /* match height */
}

/* 2) Tuck header exactly under bar + 1px divider */
.site-header.scrolled {
  top: 43px !important;            /* 32px bar + 1px border */
  height: 56px !important;         /* your “compact” header height */
  padding: 14px 2rem !important;   /* breathing room top/bottom */
}

/* 3) Make the glass blur cover both bars seamlessly */
.top-bar.scrolled::before,
.site-header.scrolled::before {
  content: "";
  position: absolute;
  inset: 0 !important;             /* covers the full box */
  background: rgba(17,17,17,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;                     /* sits behind logo/nav */
}

/* 4) Scale logo slightly so it never peeks out */
.site-header.scrolled .site-logo img {
  transform: scale(0.7) !important;
  transition: transform .35s ease-in-out;
}

/* ============================================================
   0. VIEWPORT BREAKPOINTS
   ------------------------------------------------------------
   • Desktop / Wide:  min‑width: 1025px
   • Tablet + Mobile: max‑width: 1024px
   ============================================================ */

/* ------------------------------------------------------------
   A) TABLET + MOBILE  ( ≤ 1024px )
   ------------------------------------------------------------ */
@media (max-width: 1024px) {

  /* 1) Kill custom cursor + laser pointer ------------------- */
  * { cursor: auto !important; }
  .laser-pointer { display: none !important; }

  /* 2) Hide “Let’s Talk” marquee button --------------------- */
  .btn-lets-talk { display: none !important; }

  /* 3) Remove EXDS top‑bar completely ----------------------- */
  .top-bar { display: none !important; }

  /* 4) Restore normal header (no sticky / no blur) ---------- */
  .site-header,
  .site-header.scrolled {
    position: relative !important;   /* back to flow */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    padding: 0 !important;           /* inherit GP customizer */
    background: transparent !important;
  }

  /* nix the glass‑blur overlays on scroll */
  .top-bar::before,
  .site-header::before { display: none !important; }

  /* undo logo shrink */
  .site-logo img { transform: none !important; }
}

/* ------------------------------------------------------------
   B) DESKTOP / WIDE  ( ≥ 1025px )
   ------------------------------------------------------------ */
@media (min-width: 1025px) {

  /* 1) Custom cursor & laser pointer ------------------------ */
  * { cursor: none !important; }          /* hide native */
  /* .laser-pointer styles already in your CSS stay active */

  /* 2) Show “Let’s Talk” CTA ------------------------------- */
  .btn-lets-talk { display: inline-flex !important; }

  /* 3) Sticky glass header & top bar ----------------------- */
  /* Your existing .top-bar / .site-header rules remain intact.
     No changes needed here—this media query simply guarantees
     they’re desktop‑only. */
}

/* ============================================================
   THAT’S IT.  Happy scrolling! 🪄✨
   ============================================================ */

