/* ============================================================
   BAGEMA - Custom Asset CSS
   public/assets/css/style.css
   ============================================================ */

/* ---- Swiper Custom Pagination ---- */
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(175, 16, 26, 0.3);
  opacity: 1;
  transition: all 0.3s;
}
.swiper-pagination-bullet-active {
  width: 24px;
  background: #af101a;
  border-radius: 4px;
}

/* ---- AOS Pointer Events ---- */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ---- Section Badge ---- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff5f5;
  color: #af101a;
  border: 1px solid rgba(175, 16, 26, 0.15);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Float Label Form ---- */
.float-label { position: relative; }

.float-label input,
.float-label select,
.float-label textarea {
  padding: 22px 16px 8px;
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.875rem;
  background: #fafafa;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: #1a1c1c;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Custom select arrow */
.float-label select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
  cursor: pointer;
}

.float-label input:focus,
.float-label select:focus,
.float-label textarea:focus {
  border-color: #af101a;
  box-shadow: 0 0 0 3px rgba(175, 16, 26, 0.08);
  background: #fff;
}

.float-label label {
  position: absolute;
  left: 16px;
  top: 15px;
  font-size: 0.875rem;
  color: #6b7280;
  transition: all 0.18s ease;
  pointer-events: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
}

/* Label floats on focus / filled content */
.float-label input:focus ~ label,
.float-label input:not(:placeholder-shown) ~ label,
.float-label select:focus ~ label,
.float-label.select-filled label,
.float-label textarea:focus ~ label,
.float-label textarea:not(:placeholder-shown) ~ label {
  top: 7px;
  font-size: 0.68rem;
  color: #af101a;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---- Hide Scrollbar ---- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- Hero Gradient ---- */
.hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(10, 5, 5, 0.85) 0%,
    rgba(139, 12, 20, 0.5) 55%,
    transparent 100%
  );
}

/* ---- CTA Gradient ---- */
.cta-gradient {
  background: linear-gradient(135deg, #af101a 0%, #8a0c14 60%, #6a0a10 100%);
}

/* ---- Hover Lift ---- */
.hover-lift {
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.4, 1.1),
              box-shadow 0.28s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.13);
}

/* ---- Glass ---- */
.glass {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---- Skeleton Loader ---- */
.skeleton {
  background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f4f4f4; }
::-webkit-scrollbar-thumb { background: #af101a; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #8a0c14; }

/* ---- Focus Accessibility ---- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #af101a;
  outline-offset: 3px;
}

/* ---- Alpine / x-cloak ---- */
[x-cloak] { display: none !important; }

/* ---- Pricing Popular Card (disable scale on mobile) ---- */
.pricing-popular-card {
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.4, 1.1),
              box-shadow 0.28s ease;
}
@media (max-width: 767px) {
  .pricing-popular-card {
    transform: none !important;
  }
}

/* ---- Nav Active ---- */
.nav-link-active { color: #af101a !important; }
.nav-link-active::after {
  content: '';
  display: block;
  height: 2px;
  background: #af101a;
  border-radius: 2px;
  margin-top: 2px;
}

/* ---- Card Image Zoom ---- */
.card-img-zoom { overflow: hidden; }
.card-img-zoom img { transition: transform 0.5s ease; }
.card-img-zoom:hover img { transform: scale(1.06); }

/* ---- WhatsApp FAB Pulse ---- */
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-fab { animation: wa-pulse 2.5s infinite; }

/* ---- SweetAlert2 Overrides ---- */
.swal2-popup {
  border-radius: 1.25rem !important;
  font-family: 'DM Sans', sans-serif !important;
}
.swal2-confirm { background: #af101a !important; border-radius: 0.75rem !important; }
.swal2-cancel { border-radius: 0.75rem !important; }

/* ---- Timeline ---- */
.timeline-connector {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: #e5e7eb;
  transform: translateX(-50%);
}

/* Timeline mobile — vertical left line */
@media (max-width: 1023px) {
  .timeline-mobile-line {
    border-left: 2px solid #e5e7eb;
    padding-left: 1.25rem;
    margin-left: 1rem;
    position: relative;
  }
  .timeline-mobile-line::before {
    content: '';
    position: absolute;
    left: -0.4rem;
    top: 1.2rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #af101a;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #af101a;
  }
}

/* ---- Responsive Typography ---- */
@media (max-width: 640px) {
  .font-heading { letter-spacing: 0.02em; }
  h1 { line-height: 1.08; }
}

/* ---- Print ---- */
@media print {
  nav, footer, .fixed, .wa-fab { display: none !important; }
  main { padding-top: 0 !important; }
}
