/* ============================================================
   BAABA MOBILE WORLD — custom styles
   Tailwind (CDN) handles layout utilities. This file covers
   fonts, the signature "signal-wave" motif, and small pieces
   Tailwind utility classes can't express cleanly.
   ============================================================ */

:root {
  --saffron: #ff6a00;
  --saffron-dark: #e85d04;
  --saffron-tint: #fff4ea;
  --ink: #1b1b1f;
  --ink-soft: #4a4a52;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
}

h1,
h2,
h3,
.font-display {
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- focus states (accessibility) ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--saffron-dark);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- signature motif: layered signal-wave arcs ----------
   Echoes the flame/wave curves in the Baaba Mobile World logo.
   Used once, boldly, behind the hero — not repeated everywhere. */

.signal-waves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.signal-waves svg {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 130%;
  max-width: 1100px;
  height: auto;
  opacity: 0.9;
}

.signal-waves .wave-1 {
  stroke: var(--saffron);
}
.signal-waves .wave-2 {
  stroke: var(--saffron-dark);
}
.signal-waves .wave-3 {
  stroke: #ffd6ad;
}

/* ---------- sticky header ---------- */

#site-header {
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
#site-header.is-scrolled {
  box-shadow: 0 8px 30px -12px rgba(27, 27, 31, 0.18);
}

/* ---------- mobile nav ---------- */

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease;
}
#mobile-menu.is-open {
  max-height: 480px;
}
body.nav-open {
  overflow: hidden;
}

/* ---------- product cards ---------- */

.product-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f1e4d6;
  box-shadow: 0 1px 2px rgba(27, 27, 31, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(255, 106, 0, 0.35);
  border-color: #ffd8ae;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--saffron-tint);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-new {
  background: var(--ink);
  color: #fff;
}
.badge-instock {
  background: #ecfdf3;
  color: #15803d;
}
.badge-unavailable {
  background: #fef2f2;
  color: #b91c1c;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-brand {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--saffron-dark);
}

.product-model {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 6px;
  padding: 0;
  list-style: none;
}

.product-specs li {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #f6f3ef;
  border-radius: 999px;
  padding: 3px 9px;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}

.product-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.product-card.is-unavailable {
  opacity: 0.72;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  white-space: nowrap;
}

.btn-whatsapp {
  background: #1b1b1f;
  color: #fff;
}
.btn-whatsapp:hover {
  background: var(--saffron-dark);
  transform: translateY(-1px);
}

.btn-disabled {
  background: #eee;
  color: #999;
  cursor: not-allowed;
}

/* ---------- brand pills ---------- */

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid #f1e4d6;
  background: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 160ms ease;
}

.brand-pill:hover {
  border-color: var(--saffron);
}

.brand-pill.is-active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

/* ---------- new arrivals horizontal track ---------- */

#new-arrivals-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
}

#new-arrivals-track .product-card {
  min-width: 240px;
  max-width: 240px;
  scroll-snap-align: start;
}

#new-arrivals-track::-webkit-scrollbar {
  height: 8px;
}
#new-arrivals-track::-webkit-scrollbar-thumb {
  background: #ffd8ae;
  border-radius: 999px;
}
#new-arrivals-track::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- trust strip marquee-free stat cards ---------- */

.stat-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #f1e4d6;
  transition: transform 200ms ease;
}
.stat-card:hover {
  transform: translateY(-3px);
}

/* ---------- review card ---------- */

.review-tag {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--saffron-tint);
  color: var(--saffron-dark);
  border: 1px solid #ffdcb0;
}

/* ---------- whatsapp floating button ---------- */

.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #1ebe5d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(30, 190, 93, 0.6);
  animation: float-pulse 2.6s ease-in-out infinite;
}

@keyframes float-pulse {
  0%,
  100% {
    box-shadow: 0 12px 30px -10px rgba(30, 190, 93, 0.6);
  }
  50% {
    box-shadow: 0 12px 34px -6px rgba(30, 190, 93, 0.85);
  }
}

/* ---------- reveal-on-scroll (subtle, minimal) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HOME APPLIANCES PAGE — additive styles
   Reuses existing tokens (--saffron, --ink, .stat-card, .btn
   patterns) so the new page matches the established theme.
   ============================================================ */

/* ---------- appliance category cards ---------- */

.category-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #f1e4d6;
  padding: 22px 18px;
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(255, 106, 0, 0.3);
  border-color: #ffd8ae;
}

.category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--saffron-tint);
  font-size: 1.6rem;
}

/* ---------- featured appliance cards ---------- */

.appliance-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f1e4d6;
  box-shadow: 0 1px 2px rgba(27, 27, 31, 0.04);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.appliance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(255, 106, 0, 0.35);
  border-color: #ffd8ae;
}

.appliance-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--saffron-tint);
  font-size: 1.5rem;
}

/* ---------- FAQ accordion (native details/summary) ---------- */

.faq-item {
  background: #fff;
  border: 1px solid #f1e4d6;
  border-radius: 16px;
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--saffron-tint);
  color: var(--saffron-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-answer {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================================
   SERVICE CENTER PAGE — additive styles
   Reuses existing tokens and card patterns established above.
   ============================================================ */

/* ---------- service process steps ---------- */

.process-step {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f1e4d6;
  padding: 26px 22px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(255, 106, 0, 0.3);
  border-color: #ffd8ae;
}

.process-step .step-number {
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--saffron);
  opacity: 0.55;
  line-height: 1;
}

/* ---------- service enquiry form fields ---------- */

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.field {
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid #f1e4d6;
  background: #fff;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field:focus-visible {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.14);
}

.field::placeholder {
  color: #9a9aa0;
}

textarea.field {
  resize: vertical;
  min-height: 110px;
}