/* Shaghf Coffee — custom layer over Tailwind CDN.
   Fonts, brand components, reveals, tracker. */

body {
  font-family: "Outfit", -apple-system, sans-serif;
  font-weight: 300;
}
.font-serif { font-family: "Cormorant Garamond", Georgia, serif !important; }
.font-arabic { font-family: "Aref Ruqaa", serif !important; }

[hidden] { display: none !important; }

/* buttons */
.btn-solid {
  display: inline-block; text-align: center;
  background: #a8c686; color: #221712;
  border-radius: 9999px; padding: 0.75rem 2rem;
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-solid:hover { background: #7fa35c; transform: translateY(-1px); }
.btn-solid:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost {
  display: inline-block; text-align: center;
  border: 1px solid #a8c686; color: #a8c686;
  border-radius: 9999px; padding: 0.5rem 1.4rem; font-weight: 600;
  transition: all 0.18s;
}
.btn-ghost:hover { background: #a8c686; color: #221712; }
.btn-gold {
  display: inline-block; text-align: center;
  border: 1px solid #d4af7a; color: #f3e9dc;
  border-radius: 9999px; padding: 0.75rem 2rem; font-weight: 500;
  transition: all 0.18s;
}
.btn-gold:hover { background: rgba(212, 175, 122, 0.12); }

/* form fields */
.field {
  width: 100%;
  background: #221712;
  border: 1px solid rgba(212, 175, 122, 0.4);
  border-radius: 0.65rem;
  padding: 0.7rem 0.9rem;
  color: #f3e9dc;
}
.field::placeholder { color: rgba(203, 185, 166, 0.7); }
.field:focus { outline: 2px solid #a8c686; outline-offset: 1px; border-color: transparent; }

.qty-btn {
  width: 1.6rem; height: 1.6rem; border-radius: 9999px; line-height: 1;
  border: 1px solid #d4af7a; color: #f3e9dc; background: none;
}
.qty-btn:hover { background: rgba(212, 175, 122, 0.15); }

/* cart pulse */
@keyframes cartpulse { 40% { transform: scale(1.12); } }
.cart-pulse { animation: cartpulse 0.45s ease; }

/* steam */
.steam { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.steam i {
  position: absolute; bottom: -8rem; width: 16rem; height: 16rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 233, 220, 0.06), transparent 70%);
  filter: blur(28px);
  animation: steam 11s linear infinite;
}
.steam i:nth-child(1) { left: 18%; }
.steam i:nth-child(2) { left: 48%; animation-delay: 3.5s; }
.steam i:nth-child(3) { left: 72%; animation-delay: 7s; }
@keyframes steam {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(-46rem) scale(1.5); opacity: 0; }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* order tracker */
#timeline { display: flex; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.track-step {
  position: relative; flex: 1; min-width: 7rem; padding: 1.4rem 0.5rem 0;
  color: #cbb9a6; font-size: 0.88rem; text-align: center;
}
.track-step::before {
  content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px;
  background: rgba(212, 175, 122, 0.4);
}
.track-dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: #382a20; border: 2px solid #d4af7a;
}
.track-step.done { color: #f3e9dc; }
.track-step.done::before { background: #a8c686; }
.track-step.done .track-dot { background: #a8c686; border-color: #a8c686; }
.track-step.now { color: #a8c686; font-weight: 600; }
.track-step.now .track-dot {
  background: #a8c686; border-color: #a8c686;
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  70% { box-shadow: 0 0 0 12px rgba(168, 198, 134, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 198, 134, 0); }
}

/* hero image treatment */
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34, 23, 18, 0.55) 0%, rgba(34, 23, 18, 0.85) 70%, #221712 100%);
}

@media (prefers-reduced-motion: reduce) {
  .steam i, .track-step.now .track-dot { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
