/* ========================================
   CUSTOM STYLES & OVERRIDES
   Supplements Tailwind utility classes
   ======================================== */

/* --- Glassmorphism --- */
.glass {
  background: rgba(44, 48, 52, 0.5);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-light {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Accent orbs (floating background blurs) --- */
.accent-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  will-change: transform;
}

.accent-orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(196, 30, 58, 0.06);
  animation: float 14s ease-in-out infinite;
}

.accent-orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(240, 165, 0, 0.04);
  animation: float 18s ease-in-out infinite reverse;
}

.accent-orb-3 {
  width: 260px;
  height: 260px;
  background: rgba(160, 140, 255, 0.035);
  animation: float 20s ease-in-out infinite 4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(18px, -22px); }
  66% { transform: translate(-12px, 14px); }
}

/* --- Pulse dot --- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.pulse-dot {
  animation: pulse 2s ease-in-out infinite;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.25s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.3s; }

/* --- Card top-line accent --- */
.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C41E3A, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-accent:hover::before {
  opacity: 1;
}

/* --- Gallery images --- */
.cs-gallery img {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cs-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- STAR blocks --- */
.star-block {
  border-left: 3px solid #C41E3A;
}

/* --- Process step arrow --- */
.process-arrow::after {
  content: '\2192';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: #C41E3A;
  font-size: 1.25rem;
  z-index: 1;
}

@media (max-width: 768px) {
  .process-arrow::after { display: none; }
}

/* --- Timeline line --- */
.timeline-line::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

/* --- Timeline dot --- */
.timeline-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 3px solid #C41E3A;
}

.timeline-dot-active {
  background: #C41E3A;
  box-shadow: 0 0 0 6px rgba(196, 30, 58, 0.15);
}

/* --- Bullet dots --- */
.custom-bullet {
  position: relative;
  padding-left: 20px;
}

.custom-bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: #C41E3A;
  border-radius: 50%;
}

/* --- Testimonial quote mark --- */
.testimonial-quote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 3rem;
  color: #C41E3A;
  opacity: 0.3;
  position: absolute;
  top: 12px;
  left: 20px;
  line-height: 1;
}

/* --- Footer logo --- */
.footer-mason {
  width: 36px;
  height: auto;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.footer-mason:hover {
  opacity: 0.6;
}

/* --- Nav solidify on scroll --- */
.nav-solid {
  background: rgba(26, 29, 33, 0.95) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

/* --- Metric divider --- */
.metric-divider::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .metric-divider:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .metric-divider::after { display: none !important; }
}

/* --- Smooth hover lifts --- */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* --- Active nav link --- */
#navLinks a.nav-active {
  color: #C41E3A;
}

/* --- Back to top visible --- */
#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
