/* Custom Theme Styles for गौ लोक महातीर्थ एवं गौ चिकित्सालय */
/* Google Fonts loaded via parallel <link rel="preload"> in <head> for zero render-blocking */

:root {
  --primary-saffron: #E8600A;
  --primary-gold: #D4920A;
  --primary-amber: #F59E0B;
  --dark-earth: #1E0F02;
  --sacred-red: #8B0000;
  --cream-bg: #FFFDF9;
  --card-cream: #FFF9F0;
  --grass-green: #15803D;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GPU hardware acceleration for smooth sliders & carousels */
.hero-slider-wrapper,
.guest-card-inner,
.guest-carousel-card,
#guest-gallery-track,
#full-carousel-track {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform;
}

/* Global responsive image smoothness */
img {
  content-visibility: auto;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--cream-bg);
  color: #1F2937;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

.font-sanskrit {
  font-family: 'Rozha One', 'Yatra One', serif;
}

/* Gradients */
.bg-gradient-saffron {
  background: linear-gradient(135deg, #FF7A00 0%, #E8600A 50%, #C2410C 100%);
}

.bg-gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D4920A 100%);
}

.bg-gradient-sacred {
  background: linear-gradient(135deg, #1E0F02 0%, #3B1C04 100%);
}

.text-gradient-saffron {
  background: linear-gradient(135deg, #E8600A 0%, #D4920A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glow & Shadows */
.shadow-saffron {
  box-shadow: 0 10px 25px -5px rgba(232, 96, 10, 0.3), 0 8px 10px -6px rgba(232, 96, 10, 0.2);
}

.shadow-gold {
  box-shadow: 0 10px 25px -5px rgba(212, 146, 10, 0.25);
}

.border-gold {
  border-color: #D4920A;
}

/* Tuladan Card Hover Effect */
.tuladan-item-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tuladan-item-card:hover {
  transform: translateY(-4px);
  border-color: #E8600A;
  box-shadow: 0 12px 20px -8px rgba(232, 96, 10, 0.25);
}

.tuladan-item-card.active {
  border-color: #E8600A;
  background-color: #FFF7ED;
  box-shadow: 0 0 0 2px #E8600A;
}

/* Animations */
@keyframes pulseSlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.95; }
}

.animate-pulse-slow {
  animation: pulseSlow 3s infinite ease-in-out;
}

/* ==================== HERO SLIDER / CAROUSEL ==================== */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 116px);
  height: calc(100dvh - 116px);
  min-height: 520px;
  max-height: 820px;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  display: flex;
  align-items: center;
  background-color: #1E0F02;
  touch-action: pan-y pinch-zoom;
}

@media (max-width: 640px) {
  .hero-slider-wrapper {
    height: auto;
    min-height: auto;
    padding-top: 1.5rem;
    padding-bottom: 2.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 7s ease-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.05);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  /* Clean, vibrant, translucent overlay so image is 100% visible from top to bottom */
  background: 
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.20) 0%,
      rgba(0, 0, 0, 0.35) 40%,
      rgba(18, 9, 2, 0.65) 100%
    );
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero-slide-overlay {
    background: 
      linear-gradient(
        90deg,
        rgba(18, 9, 2, 0.85) 0%,
        rgba(24, 12, 3, 0.65) 50%,
        rgba(30, 15, 2, 0.25) 100%
      ),
      linear-gradient(
        180deg,
        rgba(18, 9, 2, 0.40) 0%,
        transparent 40%,
        rgba(18, 9, 2, 0.75) 100%
      );
  }
}

/* Slide Indicator Dots */
.hero-dot {
  width: 10px;
  height: 10px;
  min-height: 10px !important;
  max-height: 10px !important;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.hero-dot.active {
  width: 28px;
  height: 10px;
  min-height: 10px !important;
  max-height: 10px !important;
  background: #F59E0B;
  border-color: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .hero-heading {
    font-size: 1.35rem !important;
    line-height: 1.85rem !important;
    word-break: normal;
    overflow-wrap: break-word;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero-heading {
    font-size: 2rem !important;
    line-height: 2.5rem !important;
  }
}

/* ==================== PRESET AMOUNT BUTTONS (WHITE BG + SAFFRON FONT WHEN ACTIVE) ==================== */
.preset-amt-btn {
  background-color: #FFFDF9;
  color: #4B5563; /* gray-600 */
  border: 1.5px solid #FCD34D; /* amber-300 */
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  outline: none;
}

.preset-amt-btn:hover {
  background-color: #FFFFFF;
  color: #D97706; /* amber-600 */
  border-color: #D97706;
}

.preset-amt-btn.active {
  background-color: #FFFFFF !important;
  color: #D97706 !important; /* Theme Saffron Font */
  border: 2px solid #D97706 !important; /* Theme Saffron Border */
  font-weight: 800 !important;
  box-shadow: 0 4px 12px -2px rgba(217, 119, 6, 0.3) !important;
  transform: translateY(-1px);
}

/* Modal Amount Chips */
.modal-amt-chip {
  background-color: #FFFDF9;
  color: #4B5563;
  border: 1.5px solid #FCD34D;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  outline: none;
}

.modal-amt-chip:hover {
  background-color: #FFFFFF;
  color: #D97706;
  border-color: #D97706;
}

.modal-amt-chip.active {
  background-color: #FFFFFF !important;
  color: #D97706 !important; /* Theme Saffron Font */
  border: 2px solid #D97706 !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 8px -1px rgba(217, 119, 6, 0.25) !important;
}

/* Tuladan Quick Weight Preset Buttons */
.tula-wt-btn {
  background-color: #FFFDF9;
  color: #4B5563;
  border: 1.5px solid #FCD34D;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  outline: none;
}

.tula-wt-btn:hover {
  background-color: #FFFFFF;
  color: #D97706;
  border-color: #D97706;
}

.tula-wt-btn.active {
  background-color: #FFFFFF !important;
  color: #D97706 !important;
  border: 2px solid #D97706 !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 8px -1px rgba(217, 119, 6, 0.25) !important;
}

/* Guest Gallery Carousel Performance & 3D Coverflow Optimization */
#guest-gallery-track {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
  display: flex;
  align-items: center;
}

.guest-carousel-card {
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.45s ease, box-shadow 0.45s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-origin: center center;
}

/* ==================== GLOBAL RESPONSIVE ENHANCEMENTS ==================== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Ensure no images or iframes overflow their parent containers on small devices */
img, iframe, svg, video, canvas {
  max-width: 100%;
}

img:not([class*="h-"]):not([class*="object-cover"]):not(.hero-slide-bg) {
  height: auto;
}

/* Prevent text overflow and word breaks on ultra-compact mobile screens */
.break-words-safe {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Keep table horizontally scrollable on mobile screens smoothly */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Optimize touch targets for buttons on mobile devices without stretching icon dots */
@media (max-width: 640px) {
  button:not(.hero-dot):not([class*="w-"]):not([class*="h-"]),
  a.btn,
  input[type="button"],
  input[type="submit"] {
    min-height: 42px;
  }
}




