/* ============================================================
   components.css — Loader + misc small components
   ============================================================ */

/* ── Loader ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--clr-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  animation: logoPulse 1.4s ease infinite alternate;
}
.loader__car {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--clr-primary);
  letter-spacing: 0.1em;
}
.loader__brand {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--clr-white);
  letter-spacing: 0.05em;
}
.loader__bar {
  width: 200px;
  height: 3px;
  background: var(--clr-surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  background: var(--clr-primary);
  border-radius: 99px;
  animation: loaderProgress 1.4s ease forwards;
}

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--clr-primary);
  color: var(--clr-black);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transition: all var(--dur-base) var(--ease);
  pointer-events: none;
  z-index: 2000;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   WhatsApp Floating Button & Section Buttons
   ============================================================ */

/* ── Floating WhatsApp FAB (always visible) ── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 13px 20px 13px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, padding 0.3s ease;
  white-space: nowrap;
  max-width: calc(100vw - 56px);
}
.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
  background: #1ebe5d;
}
.whatsapp-fab svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.whatsapp-fab__text { line-height: 1.2; }
.whatsapp-fab__label { font-size: 0.7rem; font-weight: 400; opacity: 0.85; display: block; }

/* Pulse ring animation */
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  border: 2px solid #25D366;
  animation: waPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.1); opacity: 0;   }
  100% { transform: scale(1.1); opacity: 0;   }
}

/* Mobile: icon-only circle, proper position, no overlap */
@media (max-width: 767px) {
  .whatsapp-fab {
    bottom: 18px;
    right: 14px;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
    justify-content: center;
    align-items: center;
  }
  .whatsapp-fab svg { width: 26px; height: 26px; }
  .whatsapp-fab__text { display: none; }
  .whatsapp-fab::before { border-radius: 50%; }
}

/* ── Inline section WhatsApp button ── */
.whatsapp-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff !important;
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(37,211,102,0.35);
  width: fit-content;
}
.whatsapp-section-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.whatsapp-section-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}
@media (max-width: 600px) {
  .whatsapp-section-btn { width: 100%; justify-content: center; }
}

/* ── WhatsApp strip banner (between sections) ── */
.whatsapp-strip {
  background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
  padding: 20px 0;
  text-align: center;
}
.whatsapp-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.whatsapp-strip p {
  color: #e8f5e9;
  font-size: 1rem;
  font-weight: 500;
}
.whatsapp-strip p strong { color: #fff; }
@media (max-width: 600px) {
  .whatsapp-strip__inner { flex-direction: column; gap: var(--space-md); }
  .whatsapp-strip p { font-size: 0.9rem; }
}
