/* ==========================================================================
   ENTERPRISE BUTTON DESIGN SYSTEM (Apple + Stripe + Linear + Vercel Aesthetics)
   Project: Parul Beauty Care (Singhana, Rajasthan)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CORE BASE BUTTON CLASS
   -------------------------------------------------------------------------- */
.btn,
button.btn,
a.btn,
input[type="submit"].btn,
input[type="button"].btn {
  /* Box & Display */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  min-height: 56px;
  padding: 0 1.75rem;
  box-sizing: border-box;

  /* Shape & Borders */
  border-radius: 18px;
  border: 1.5px solid transparent;

  /* Typography */
  font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.3px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;

  /* Interactions & Performance */
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  background-clip: padding-box;
}

/* Base Icon Styling Inside Buttons */
.btn svg,
.btn i,
.btn .btn-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: currentColor;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Icon Subtle Shift */
.btn:hover svg,
.btn:hover i {
  transform: scale(1.08);
}

/* Focus & Active States for Accessibility */
.btn:focus-visible {
  outline: 3px solid var(--accent) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px var(--accent-glow) !important;
}

.btn:active {
  transform: translateY(-1px) scale(0.99) !important;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(40%);
}

/* --------------------------------------------------------------------------
   2. SIZE MODIFIERS
   -------------------------------------------------------------------------- */
/* Small Button */
.btn-sm {
  height: 44px;
  min-height: 44px;
  padding: 0 1.25rem;
  font-size: 14px;
  border-radius: 14px;
  gap: 8px;
}
.btn-sm svg,
.btn-sm i {
  width: 16px;
  height: 16px;
}

/* Medium / Standard Button (Default) */
.btn-md {
  height: 52px;
  min-height: 52px;
  padding: 0 1.6rem;
  font-size: 15px;
  border-radius: 16px;
}

/* Large Hero Button */
.btn-lg {
  height: 60px;
  min-height: 60px;
  padding: 0 2.25rem;
  font-size: 17px;
  font-weight: 700;
  border-radius: 20px;
  gap: 12px;
}
.btn-lg svg,
.btn-lg i {
  width: 22px;
  height: 22px;
}

/* Full Width & Block Modifiers */
.btn-block,
.btn-full {
  display: flex;
  width: 100%;
}


/* --------------------------------------------------------------------------
   3. COLOR & STYLE VARIANTS
   -------------------------------------------------------------------------- */

/* PRIMARY CTA BUTTON (Deep Burgundy Gradient + Soft Gold Shimmer) */
.btn-primary,
.btn-primary-cta,
.btn-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff !important;
  border-color: var(--border-gold);
  box-shadow: 0 8px 24px rgba(92, 13, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover,
.btn-primary-cta:hover,
.btn-hero:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, #4a050e 100%);
  color: #ffffff !important;
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(92, 13, 24, 0.5), 0 0 20px var(--accent-glow);
}


/* WHATSAPP BUTTON (Official WhatsApp Green + Soft Glow) */
.btn-whatsapp,
.btn-wa,
.btn-book-now {
  background: #25d366;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp:hover,
.btn-wa:hover,
.btn-book-now:hover {
  background: #1eb954;
  color: #ffffff !important;
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5), 0 0 16px rgba(30, 185, 84, 0.4);
}


/* CALL & PHONE BUTTON (White Luxury Card + Gold Border -> Burgundy Hover) */
.btn-call,
.btn-phone,
.btn-secondary,
.btn-view-details {
  background: #ffffff;
  color: #3b040b !important;
  border-color: #d4af37;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-call:hover,
.btn-phone:hover,
.btn-secondary:hover,
.btn-view-details:hover {
  background: #3b040b;
  color: #ffffff !important;
  border-color: #d4af37;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(59, 4, 11, 0.35), 0 0 16px rgba(212, 175, 55, 0.3);
}


/* OUTLINE BUTTON (Transparent + Gold Border) */
.btn-outline {
  background: transparent;
  color: var(--accent) !important;
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--primary-deep) !important;
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px var(--accent-glow);
}


/* ACCENT / GOLD BUTTON */
.btn-accent,
.btn-gold {
  background: linear-gradient(135deg, #f7e7b4 0%, #d4af37 100%);
  color: #1c0205 !important;
  border-color: #d4af37;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-accent:hover,
.btn-gold:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f7e7b4 100%);
  color: #3b040b !important;
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.45);
}


/* GHOST BUTTON */
.btn-ghost {
  background: transparent;
  color: currentColor;
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #d4af37 !important;
  border-color: rgba(212, 175, 55, 0.3);
}


/* ICON ONLY BUTTON */
.btn-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  padding: 0;
  border-radius: 18px;
}
.btn-icon.btn-sm {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
}
.btn-icon.btn-lg {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 20px;
}


/* FILTER CHIPS & CATEGORY BUTTONS */
.filter-chip,
.btn-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 14px;
  background: #f7f1e5;
  color: #3b040b;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: all 250ms ease;
  white-space: nowrap;
}

.filter-chip:hover,
.btn-chip:hover {
  background: #ffffff;
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.filter-chip.active,
.btn-chip.active {
  background: #3b040b;
  color: #ffffff;
  border-color: #d4af37;
  box-shadow: 0 4px 14px rgba(59, 4, 11, 0.25);
}


/* BACK TO TOP BUTTON */
.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 250ms ease;
}

.back-to-top-btn:hover {
  background: var(--accent, #d4af37);
  color: #1c0205;
  border-color: var(--accent, #d4af37);
}


/* SKIP TO MAIN CONTENT LINK FOR ACCESSIBILITY */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #3b040b;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: 2px solid #d4af37;
  z-index: 10000;
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 1rem;
}


/* --------------------------------------------------------------------------
   4. FLOATING MOBILE CTA BAR (FIXED BOTTOM ACTION)
   -------------------------------------------------------------------------- */
.floating-cta-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 440px;
  background: rgba(28, 2, 5, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.5rem 0.75rem;
  border-radius: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.25);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
}

.floating-cta-bar .btn {
  flex: 1;
  height: 48px;
  min-height: 48px;
  font-size: 14px;
  border-radius: 16px;
  padding: 0 0.75rem;
}

@media (min-width: 912px) {
  .floating-cta-bar {
    display: none !important;
  }
}


/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINT ADAPTATIONS (320px to 4K)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .btn {
    height: 52px;
    min-height: 52px;
    padding: 0 1.5rem;
    font-size: 15px;
  }
  .btn-lg {
    height: 54px;
    min-height: 54px;
    padding: 0 1.75rem;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .btn {
    height: 48px;
    min-height: 48px;
    padding: 0 1.25rem;
    font-size: 15px;
    border-radius: 16px;
    gap: 8px;
  }
  .btn-lg {
    height: 50px;
    min-height: 50px;
    padding: 0 1.5rem;
    font-size: 15px;
  }
  .btn-sm {
    height: 40px;
    min-height: 40px;
    padding: 0 1rem;
    font-size: 13px;
    border-radius: 12px;
  }
  .btn-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
}

@media (max-width: 480px) {
  .btn-responsive {
    display: flex;
    width: 100%;
  }
}

/* ====================================================
   GLASSMORPHIC UP & DOWN SCROLL WIDGET
   ==================================================== */
.glass-scroll-widget {
  position: fixed;
  right: 18px;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(31, 2, 6, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 15px rgba(212, 175, 55, 0.2);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.glass-scroll-widget.hidden-scroll {
  opacity: 0;
  transform: translateY(15px) scale(0.9);
  pointer-events: none;
}

.glass-scroll-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #f7e7b4;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.glass-scroll-btn:hover,
.glass-scroll-btn:active {
  background: var(--accent, #d4af37);
  color: #1f0206;
  border-color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

@media (max-width: 768px) {
  .glass-scroll-widget {
    right: 14px;
    bottom: 24px;
    padding: 5px;
    gap: 6px;
  }
  .glass-scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
}
