/* =============================
   KegBaza — Custom Styles
   ============================= */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER ===== */
#header.scrolled .bg-white\/95 {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 640px) {
  #hero {
    height: 100vh;
    height: 100dvh;
    min-height: unset;
  }
}

/* ===== BENEFITS CARD HOVER ===== */
.benefit-card {
  will-change: transform;
}

/* ===== PRICE CARDS ===== */
.price-card {
  will-change: transform;
}

/* Mobile price grid fix */
@media (max-width: 768px) {
  .price-card.scale-105 {
    transform: none;
  }
}

/* ===== KEG TYPE CARDS ===== */
.keg-type-card img {
  transition: transform 0.3s ease;
}
.keg-type-card:hover img {
  transform: scale(1.1) translateY(-4px);
}

/* ===== FAQ ===== */
.faq-item {
  transition: box-shadow 0.2s ease;
}

.faq-item.open {
  box-shadow: 0 4px 24px rgba(249, 115, 22, 0.08);
  border-color: #fed7aa;
}

.faq-trigger i {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-trigger i {
  transform: rotate(180deg);
}

.faq-content {
  animation: slideDown 0.25s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ===== FORM INPUTS ===== */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

input.error,
textarea.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* ===== FLOATING BUTTON PULSE ===== */
.fixed.bg-green-500::after,
.fixed.bg-brand-500::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse-ring 2s ease-out infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay variants */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== MOBILE MENU ANIMATION ===== */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

#mobile-menu.open {
  display: block;
}

/* ===== PHONE MASK INPUT ===== */
#phone::placeholder {
  color: #9ca3af;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f3f4f6;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

/* ===== SELECTION ===== */
::selection {
  background: #fed7aa;
  color: #7c2d12;
}

/* ===== LOADING SKELETON (for images) ===== */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* ===== STAT COUNTER ===== */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ===== BRAND BUTTON GLOW ===== */
.btn-glow {
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
}
.btn-glow:hover {
  box-shadow: 0 0 0 8px rgba(249, 115, 22, 0);
  animation: btn-pulse 0.6s ease;
}

@keyframes btn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
  h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .price-card {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  #hero {
    padding-top: 80px;
  }
}
