/* ================================================
   REDBOX BARBERSHOP — GRADIENT & MOTION ANIMATIONS
   ================================================ */

/* ── SCROLL PROGRESS BAR ───────────────────────── */
.rb-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #C1121F 0%, #E63946 50%, #C1121F 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 10000;
  pointer-events: none;
}

/* ── HERO GRADIENT ORBS ─────────────────────────── */
.rb-hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.rb-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  pointer-events: none;
}

.rb-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle at center, rgba(193,18,31,.22) 0%, transparent 65%);
  filter: blur(90px);
  top: -250px; right: -120px;
}

.rb-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle at center, rgba(100,0,10,.20) 0%, transparent 65%);
  filter: blur(80px);
  bottom: -150px; left: -80px;
}

.rb-orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle at center, rgba(230,57,70,.12) 0%, transparent 65%);
  filter: blur(70px);
  top: 40%; left: 30%;
}

/* ── GRADIENT SECTION DIVIDER ───────────────────── */
.rb-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(193,18,31,.25) 30%,
    rgba(230,57,70,.4) 50%,
    rgba(193,18,31,.25) 70%,
    transparent 100%
  );
  margin: 0;
}

/* ── HERO TITLE GRADIENT ────────────────────────── */
.hero-line2 em {
  font-style: italic;
  padding-right: 0.08em; /* italic glyphs extend past border-box; prevent clip */
  background: linear-gradient(135deg, #E63946 0%, #C1121F 40%, #E63946 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rb-txt-shift 5s ease infinite;
}

/* ── ANIMATED GRADIENT TEXT ─────────────────────── */
.rb-grad {
  background: linear-gradient(135deg, #ffffff 0%, #E63946 45%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rb-txt-shift 6s ease infinite;
}

@keyframes rb-txt-shift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ── BUTTON GRADIENT SHIMMER ────────────────────── */
.btn-primary {
  overflow: hidden;
  position: relative;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255,255,255,.15) 50%,
    transparent 75%
  );
  transform: translateX(-100%);
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: rb-shimmer .55s ease forwards;
}

@keyframes rb-shimmer {
  to { transform: translateX(100%); }
}

/* ── SERVICE CARD GRADIENT HOVER ────────────────── */
.service-card {
  transition: border-color .3s ease, box-shadow .3s ease, transform .25s ease !important;
}

.service-card:hover {
  border-color: rgba(193,18,31,.35) !important;
  box-shadow:
    0 0 0 1px rgba(193,18,31,.18),
    0 8px 32px rgba(193,18,31,.10),
    0 2px 8px rgba(0,0,0,.3) !important;
  transform: translateY(-3px) !important;
}

/* ── REVIEW CARD GRADIENT GLOW ──────────────────── */
.review-card {
  transition: box-shadow .3s ease, transform .25s ease !important;
}

.review-card:hover {
  box-shadow:
    0 0 0 1px rgba(193,18,31,.15),
    0 12px 40px rgba(193,18,31,.10) !important;
  transform: translateY(-4px) !important;
}

/* ── PRO CARD GRADIENT GLOW ─────────────────────── */
.pro-card {
  transition: box-shadow .3s ease, transform .25s ease !important;
}

.pro-card:hover {
  box-shadow: 0 8px 32px rgba(193,18,31,.14) !important;
  transform: translateY(-4px) !important;
}

/* ── GALLERY ITEM OVERLAY ────────────────────────── */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(193,18,31,.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  border-radius: inherit;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ── LOCATION CARD GLOW ─────────────────────────── */
.loc-card {
  transition: box-shadow .3s ease, border-color .3s ease !important;
}

.loc-card:hover {
  border-color: rgba(193,18,31,.25) !important;
  box-shadow: 0 0 0 1px rgba(193,18,31,.12), 0 6px 24px rgba(193,18,31,.07) !important;
}

/* ── FOOTER GRADIENT BORDER ─────────────────────── */
.footer {
  border-top: 1px solid transparent;
  background:
    linear-gradient(var(--bg, #0A0A0A), var(--bg, #0A0A0A)) padding-box,
    linear-gradient(90deg, transparent 0%, rgba(193,18,31,.35) 50%, transparent 100%) border-box;
}

/* ── WA FLOAT GLOW PULSE ────────────────────────── */
.wa-float {
  animation: rb-wa-pulse 2.8s ease infinite;
}

@keyframes rb-wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193,18,31,.35), 0 4px 20px rgba(0,0,0,.35); }
  50%       { box-shadow: 0 0 0 12px rgba(193,18,31,0), 0 4px 20px rgba(0,0,0,.35); }
}

/* ── FILTER BUTTON ACTIVE GLOW ──────────────────── */
.svc-filter-btn.active,
.filter-btn.active,
.loc-branch-btn.active {
  box-shadow: 0 0 0 1px rgba(193,18,31,.3), 0 4px 16px rgba(193,18,31,.15);
}

/* ── NAV LINK ACTIVE GRADIENT ───────────────────── */
.nav-link.active::after {
  background: linear-gradient(90deg, #C1121F, #E63946) !important;
}

/* ── SECTION TITLE GRADIENT ACCENT LINE ─────────── */
.rb-title-line {
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #C1121F, #E63946);
  border-radius: 2px;
  margin-top: 10px;
}

.section-header.center .rb-title-line {
  margin-left: auto;
  margin-right: auto;
}

/* ── BOOKING SUCCESS OVERLAY ────────────────────── */
.rb-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.rb-success-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.rb-confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.rb-success-popup {
  position: relative;
  z-index: 2;
  background: #141414;
  border: 1px solid rgba(193,18,31,.3);
  border-radius: 24px;
  padding: 52px 40px 44px;
  max-width: 400px;
  width: 88%;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(193,18,31,.1), 0 32px 80px rgba(0,0,0,.65), 0 0 60px rgba(193,18,31,.12);
  transform: scale(.82) translateY(24px);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
.rb-success-overlay.active .rb-success-popup {
  transform: scale(1) translateY(0);
}

/* emoji burst */
.rb-success-emoji {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 18px;
  display: inline-block;
  opacity: 0;
  transform: scale(0) rotate(-20deg);
  transition: opacity .4s ease .25s, transform .5s cubic-bezier(.34,1.56,.64,1) .25s;
}
.rb-success-overlay.active .rb-success-emoji {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* animated SVG check */
.rb-success-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}
.rb-check-circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  transition: stroke-dashoffset .6s ease .4s;
}
.rb-check-tick {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset .45s ease .9s;
}
.rb-success-overlay.active .rb-check-circle { stroke-dashoffset: 0; }
.rb-success-overlay.active .rb-check-tick   { stroke-dashoffset: 0; }

.rb-success-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease .55s, transform .4s ease .55s;
}
.rb-success-overlay.active .rb-success-title {
  opacity: 1;
  transform: translateY(0);
}

.rb-success-msg {
  font-size: .93rem;
  color: rgba(255,255,255,.58);
  line-height: 1.65;
  margin: 0 0 30px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease .65s, transform .4s ease .65s;
}
.rb-success-overlay.active .rb-success-msg {
  opacity: 1;
  transform: translateY(0);
}

.rb-success-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #C1121F, #E63946);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .02em;
  box-shadow: 0 4px 20px rgba(193,18,31,.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease .75s, transform .4s ease .75s, box-shadow .25s ease, scale .15s ease;
}
.rb-success-overlay.active .rb-success-cta {
  opacity: 1;
  transform: translateY(0);
}
.rb-success-cta:hover {
  box-shadow: 0 6px 28px rgba(193,18,31,.55);
}
.rb-success-cta:active {
  scale: .96;
}

/* ── LOGO TRANSPARENCY ──────────────────────────── */
.nav-logo img,
.footer-logo-img {
  mix-blend-mode: screen;
}

/* ── MOBILE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .rb-orb-1 { width: 400px; height: 400px; }
  .rb-orb-2 { width: 300px; height: 300px; }
  .rb-orb-3 { display: none; }
}

/* ── REDUCED MOTION ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rb-orb,
  .wa-float,
  .rb-grad,
  .hero-line2 em,
  .btn-primary::after {
    animation: none !important;
  }
}
