/* ================================================================
   02_utilities.css — ExpertNeighbor Standalone Visual Utilities
   ----------------------------------------------------------------
   ZERO dependencies.  Does NOT require tokens.css.
   (Can be paired with any framework: Tailwind, Bootstrap, vanilla.)

   Load order: Any order.  All selectors are prefixed with `en-u-`.
   ================================================================ */

/* ============================================================
   🎨 GRADIENT TEXT  (multi-stop headline utilities)
   Usage: <h2 class="en-u-gtext-brand">Professional headline</h2>
   ============================================================ */
.en-u-gtext-brand {
  background: linear-gradient(135deg, #0B1120 0%, #0B1120 55%, #0047ABcc 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.en-u-gtext-split {
  background: linear-gradient(135deg, #0B1120 0%, #0047AB 50%, #FF7D1E 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.en-u-gtext-fire {
  background: linear-gradient(135deg, #FF7D1E 0%, #FF7D1E 40%, #BA1A1A 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.en-u-gtext-emerald {
  background: linear-gradient(135deg, #0B1120 0%, #009879 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.en-u-gtext-hero {
  background: linear-gradient(90deg, #ffffff 0%, #B5C8FF 55%, #FFDCC1 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* ============================================================
   ✨ SHIMMER SWEEP  (hover activated; put shimmer sweep on a CTA)
   Usage: <button class="en-u-shimmer en-u-shimmer-on-hover">Book</button>
   ============================================================ */
.en-u-shimmer { position: relative; isolation: isolate; overflow: hidden; }
.en-u-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.48) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 1.05s cubic-bezier(.22,.61,.36,1);
}
.en-u-shimmer-on-hover:hover::after,
.en-u-shimmer:hover::after { transform: translateX(120%); }
.en-u-shimmer-always::after {
  animation: en-sweep 3.4s ease-in-out infinite;
}
@keyframes en-sweep {
  0%   { transform: translateX(-120%); }
  45%  { transform: translateX( 120%); }
  100% { transform: translateX( 120%); }
}

/* Subtle white inner sheen (glass bezel) */
.en-u-sheen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 35%);
  mix-blend-mode: screen;
  opacity: .85;
}

/* ============================================================
   🧱 DUAL-LAYER 3D SHADOWS  (outer tint + inner highlight for faux bezel)
   Usage: <div class="en-u-shadow-primary-tint en-u-shadow-bezel">…</div>
   ============================================================ */
.en-u-shadow-bezel {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.9) inset;
}
.en-u-shadow-bezel-dark {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset;
}
.en-u-shadow-primary-tint {
  box-shadow: 0 10px 35px -18px rgba(0,71,171,0.40);
}
.en-u-shadow-primary-tint-lg {
  box-shadow: 0 24px 60px -20px rgba(0,71,171,0.55);
}
.en-u-shadow-secondary-tint {
  box-shadow: 0 10px 35px -18px rgba(255,125,30,0.45);
}
.en-u-shadow-secondary-tint-lg {
  box-shadow: 0 24px 60px -20px rgba(255,125,30,0.72);
}
.en-u-shadow-tertiary-tint {
  box-shadow: 0 10px 35px -18px rgba(0,152,121,0.45);
}
.en-u-shadow-tertiary-tint-lg {
  box-shadow: 0 24px 60px -20px rgba(0,152,121,0.65);
}
.en-u-shadow-neutral {
  box-shadow: 0 10px 35px -18px rgba(11,17,32,0.35);
}
/* Combined tint + bezel = signature 3D ExpertNeighbor card look */
.en-u-card-blue     { box-shadow: 0 10px 35px -18px rgba(0,71,171,0.40),   0 0 0 1px rgba(255,255,255,0.9) inset; }
.en-u-card-orange   { box-shadow: 0 10px 35px -18px rgba(255,125,30,0.45),  0 0 0 1px rgba(255,255,255,0.9) inset; }
.en-u-card-teal     { box-shadow: 0 10px 35px -18px rgba(0,152,121,0.45),   0 0 0 1px rgba(255,255,255,0.9) inset; }
.en-u-card-dark     { box-shadow: 0 10px 30px -12px rgba(11,17,32,0.45),   0 0 0 1px rgba(255,255,255,0.08) inset; }

/* ============================================================
   ☁️ AMBIENT BLUR BLOBS  (add depth to sections — see §10 blog, §11 CTA)
   Usage:
     <section class="en-u-blob-section">
       <span class="en-u-blob en-u-blob-tl en-u-blob-primary"></span>
       <span class="en-u-blob en-u-blob-br en-u-blob-secondary"></span>
       …content…
     </section>
   ============================================================ */
.en-u-blob-section { position: relative; isolation: isolate; overflow: hidden; }

.en-u-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(72px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.en-u-blob-xl { filter: blur(100px); opacity: 0.35; }
.en-u-blob-sm { filter: blur(36px); opacity: 0.6; }

/* Position presets */
.en-u-blob-tl { top: -140px; left: -120px; width: 420px; height: 420px; }
.en-u-blob-tr { top: -140px; right: -120px; width: 420px; height: 420px; }
.en-u-blob-bl { bottom: -180px; left: -160px; width: 520px; height: 520px; }
.en-u-blob-br { bottom: -180px; right: -160px; width: 520px; height: 520px; }
.en-u-blob-center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 680px; height: 680px; opacity: 0.22; }

/* Color presets */
.en-u-blob-primary    { background: #0047AB; }
.en-u-blob-secondary  { background: #FF7D1E; }
.en-u-blob-tertiary   { background: #009879; }
.en-u-blob-error      { background: #BA1A1A; }
.en-u-blob-purple     { background: #6E59C9; }
.en-u-blob-slate      { background: #334155; }

/* ============================================================
   🎬 MOTION UTILITIES  (float, ping pulse, hover lift)
   Usage: <div class="en-u-float">…</div>
   ============================================================ */
.en-u-float { animation: en-float 6s ease-in-out infinite; }
.en-u-float-slow { animation: en-float 9s ease-in-out infinite; }
.en-u-float-delay { animation: en-float 6s ease-in-out infinite; animation-delay: -3s; }
@keyframes en-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.en-u-ping { position: relative; display: inline-flex; }
.en-u-ping::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: currentColor;
  opacity: .45;
  animation: en-ping 1.6s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes en-ping {
  0%   { transform: scale(.75); opacity: .65; }
  80%,100% { transform: scale(1.7); opacity: 0; }
}

.en-u-pulse {
  animation: en-pulse 2.4s ease-in-out infinite;
}
@keyframes en-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .8; transform: scale(1.04); }
}

/* Hover lift + shadow grow */
.en-u-hover-lift {
  transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s;
}
.en-u-hover-lift:hover {
  transform: translateY(-6px);
}
.en-u-hover-lift-sm:hover { transform: translateY(-3px); }
.en-u-hover-lift-lg:hover { transform: translateY(-10px); }

.en-u-hover-zoom-img img {
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.en-u-hover-zoom-img:hover img,
.en-u-hover-zoom-img:focus-within img {
  transform: scale(1.10);
}

/* Slow 20px wide side-scroll on hover (for arrow forward chevrons) */
.en-u-slide-x > *:last-child { transition: transform .35s; }
.en-u-slide-x:hover > *:last-child { transform: translateX(6px); }

/* ============================================================
   🎯 BACKGROUND GRADIENTS — full section / banner presets
   Usage: <section class="en-u-bg-cta-hero">…</section>
   ============================================================ */
.en-u-bg-cta-hero {
  background:
    radial-gradient(ellipse at top left,    rgba(255,125,30,0.28) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(0,152,121,0.22)  0%, transparent 55%),
    linear-gradient(135deg, #0047AB 0%, #0A4FA0 55%, #D8E2FF 160%);
  color: #fff;
}
.en-u-bg-cta-banner {
  background: linear-gradient(135deg, #0047AB 0%, #FF7D1E 140%);
  color: #fff;
}
.en-u-bg-grid-overlay {
  background-image:
    linear-gradient(rgba(11,17,32,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,17,32,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.en-u-bg-grid-overlay-light {
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .6;
}

/* ============================================================
   🧭 EYEBROW PILL  (section eyebrow label with small icon)
   Usage:
     <span class="en-u-eyebrow en-u-eyebrow-primary">
       <svg…/>&nbsp; Our Services
     </span>
   ============================================================ */
.en-u-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-width: 1px;
  border-style: solid;
}
.en-u-eyebrow-primary {
  background: rgba(0, 71, 171, 0.10);
  border-color: rgba(0, 71, 171, 0.22);
  color: #0047AB;
}
.en-u-eyebrow-secondary {
  background: rgba(255, 125, 30, 0.10);
  border-color: rgba(255, 125, 30, 0.22);
  color: #FF7D1E;
}
.en-u-eyebrow-tertiary {
  background: rgba(0, 152, 121, 0.10);
  border-color: rgba(0, 152, 121, 0.22);
  color: #009879;
}
.en-u-eyebrow-dark {
  background: rgba(216, 226, 255, 0.14);
  border-color: rgba(255,255,255,0.22);
  color: #D8E2FF;
  backdrop-filter: blur(8px);
}

/* ============================================================
   🧻 DIAGONAL RIBBON  (★ MOST POPULAR / ★ MOST HELPUL etc)
   Usage:
     <div class="en-u-ribbon-wrapper">
       <div class="en-u-ribbon en-u-ribbon-secondary">★ MOST POPULAR</div>
       …card content…
     </div>
   ============================================================ */
.en-u-ribbon-wrapper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.en-u-ribbon {
  position: absolute;
  top: 22px;
  right: -40px;
  transform: rotate(45deg);
  width: 170px;
  padding: 6px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  z-index: 20;
  box-shadow: 0 4px 14px -2px rgba(11,17,32,0.25);
  border-top: 1px solid rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.en-u-ribbon-primary {
  background: linear-gradient(90deg, #0047AB 0%, #D8E2FF 180%);
  color: #fff;
}
.en-u-ribbon-secondary {
  background: linear-gradient(90deg, #FF7D1E 0%, #FFDCC1 160%);
  color: #fff;
}
.en-u-ribbon-tertiary {
  background: linear-gradient(90deg, #009879 0%, #B8F1DF 170%);
  color: #fff;
}
.en-u-ribbon-red {
  background: linear-gradient(90deg, #DC2626 0%, #FCA5A5 160%);
  color: #fff;
}

/* ============================================================
   🔗 DROP-IN LINK / CHEVRON CTA  (Read Article / View All)
   Usage: <a href="#" class="en-u-chevron en-u-chevron-primary">Read</a>
   ============================================================ */
.en-u-chevron {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
  transition: gap .3s cubic-bezier(.22,.61,.36,1), color .3s, transform .3s;
  cursor: pointer;
}
.en-u-chevron::after {
  content: "→";
  transition: transform .3s;
  font-weight: 700;
  font-family: var(--en-font-sans, system-ui);
}
.en-u-chevron:hover { gap: 0.75rem; }
.en-u-chevron-primary    { color: #0047AB; }
.en-u-chevron-secondary  { color: #FF7D1E; }
.en-u-chevron-tertiary   { color: #009879; }
.en-u-chevron-white      { color: #ffffff; }

/* ============================================================
   📏 GENERAL WIDTH UTILITIES  (1440p / 4K optimization)
   ============================================================ */
.en-u-w-container { max-width: 1800px; margin-inline: auto; }
.en-u-w-prose      { max-width: 68ch;  }
.en-u-w-prose-lg   { max-width: 82ch;  }
.en-u-mx-auto      { margin-inline: auto; }

.en-u-unset-list { list-style: none; padding: 0; margin: 0; }
.en-u-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.en-u-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Backdrop-blur helpers (glass) */
.en-u-glass-sm { backdrop-filter: blur(8px);   -webkit-backdrop-filter: blur(8px);   }
.en-u-glass-md { backdrop-filter: blur(14px);  -webkit-backdrop-filter: blur(14px);  }
.en-u-glass-lg { backdrop-filter: blur(24px);  -webkit-backdrop-filter: blur(24px);  }

/* Focus ring accessibility */
.en-u-focus-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,71,171,0.35), 0 0 0 1px rgba(0,71,171,0.6) inset;
  border-radius: .4em;
}

/* Hide native scrollbars (applied via .no-scrollbar class) */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0;
  height: 0;
}
