/* App-like polish */
body {
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* Prevent scrolling when modal is open */
body.modal-active {
  overflow: hidden;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Safe area padding for mobile app footer */
.pb-safe {
  padding-bottom: 0px; 
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* --- Mobile Compact Header & Spacing Fix --- */
@media (max-width: 767px) {
  #global-header header > div {
    height: 56px !important;    /* h-14 = 3.5rem = 56px */
    padding-left: 16px !important;  /* Aligned to 16px for consistency */
    padding-right: 16px !important; /* Aligned to 16px for consistency */
  }

  #global-header header img {
    height: 28px !important;    /* h-7 = 1.75rem = 28px */
  }

  #global-header #mobile-menu-btn svg {
    width: 24px !important;     
    height: 24px !important;    
  }

  /* Overrides the 5rem padding on mobile to match the 3.5rem (56px) header */
  .pt-20 {
    padding-top: 3.5rem !important;
  }
}

/* --- Responsive Subheader Banner Backgrounds --- */
/* Default to Mobile Images */
.bg-banner-corporate { background-image: url('../images/subheadermobile/Coporate.png'); }
.bg-banner-events { background-image: url('../images/subheadermobile/Events.png'); }
.bg-banner-kids { background-image: url('../images/subheadermobile/Kids.png'); }
.bg-banner-wedding { background-image: url('../images/subheadermobile/Wedding.png'); }

/* Switch to Desktop/Tablet Images at 768px */
@media (min-width: 768px) {
  .bg-banner-corporate { background-image: url('../images/subheader/Coporate.png'); }
  .bg-banner-events { background-image: url('../images/subheader/Events.png'); }
  .bg-banner-kids { background-image: url('../images/subheader/Kids.png'); }
  .bg-banner-wedding { background-image: url('../images/subheader/Wedding.png'); }
}

/* --- Smooth Scroll Animations --- */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Note: .animate-marquee class removed as we are using smooth manual scroll now */

/* --- Modal Animations --- */
.modal-fade-in {
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-scale-up {
  transform: scale(1) translateY(0) !important;
}

/* --- Hero Background Slider Animations --- */
.animate-slider-1 {
  animation: fadeSlide1 12s infinite;
  will-change: opacity, transform;
}

.animate-slider-2 {
  animation: fadeSlide2 12s infinite;
  will-change: opacity, transform;
}

@keyframes fadeSlide1 {
  0%, 40% { opacity: 1; transform: scale(1); }
  50%, 90% { opacity: 0; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeSlide2 {
  0%, 40% { opacity: 0; transform: scale(1.03); }
  50%, 90% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.03); }
}

/* --- Footer Image Overlay --- */
.footer-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/Footer_Design.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2; /* Change this to 1 if you want the image fully opaque */
  z-index: 1; 
  pointer-events: none; /* Ensures the image doesn't block clicks on links */
}

/* =========================================================================
   Kids Return Gifts Page - Form Builder & Lightbox Styles
   ========================================================================= */

/* Fix for thin white line under global header */
#global-header > div, 
#global-header > header {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Step Transitions */
.step-pane { display: none; opacity: 0; transform: translateY(15px); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.step-pane.active { display: block; opacity: 1; transform: translateY(0); }

/* Builder Form States - Premium Upgrades */
.theme-card, .size-card, .path-card, .toy-card, .chip-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-card:hover, .size-card:hover, .path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(22, 51, 36, 0.1);
  border-color: #C9A961;
}

.theme-card[aria-pressed="true"], .size-card[aria-pressed="true"], .path-card[aria-pressed="true"] {
  border-color: #B08D3F;
  box-shadow: 0 0 0 1px #B08D3F, 0 12px 24px -10px rgba(176, 141, 63, 0.15);
  background-color: #FDFBF6;
  transform: translateY(-2px);
}

.toy-card[aria-pressed="true"], .chip-btn[aria-pressed="true"] {
  background-color: #163324;
  border-color: #163324;
  color: #C9A961;
  font-weight: 500;
  box-shadow: 0 8px 16px -6px rgba(22, 51, 36, 0.3);
}
.toy-card[aria-pressed="true"] span { color: #FAF8F3; opacity: 0.8; }

/* Swatches & Elements */
.sw-uni { background: linear-gradient(150deg, #F6E6EE, #EBD9E6); }
.sw-ted { background: linear-gradient(150deg, #F1E6D8, #E6D6C2); }
.sw-din { background: linear-gradient(150deg, #DFEBDF, #CADCCB); }
.sw-cus { background: linear-gradient(150deg, #E9E6F1, #DAD5E8); }

.zoom {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(14,35,24,.4); color: #fff; display: grid; place-items: center;
  cursor: pointer; opacity: 0; transition: all .3s ease; backdrop-filter: blur(4px);
}
.zoom:hover { background: rgba(14,35,24,.9); transform: scale(1.1); }
.has-img:hover .zoom, .zoom:focus-visible { opacity: 1; }
@media (hover:none){ .zoom { opacity: 1; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,22,16,.95); display: none; align-items: center; justify-content: center; padding: 28px; backdrop-filter: blur(8px); }
.lightbox.open { display: flex; animation: lbin .3s ease-out; }
@keyframes lbin { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* Reveal */
.reveal { display: none; }
.reveal.show { display: block; animation: fade .4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fade { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Progress Bar Dots */
.step-dot { transition: all 0.4s ease; }
.step-dot.active { background-color: #B08D3F; transform: scale(1.2); }
.step-dot.completed { background-color: #163324; }

/* Modern Premium Input Styling */
input[type=text], input[type=date], textarea {
  width: 100%; border: 1px solid transparent; border-radius: 0.5rem; 
  background: rgba(22, 51, 36, 0.04); color: #1B2A21; font-family: inherit; 
  font-size: 15px; font-weight: 400; padding: 14px 16px; transition: all 0.2s ease;
}
input:focus, textarea:focus { outline: none; background: #fff; border-color: #C9A961; box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15); }
input::placeholder, textarea::placeholder { color: rgba(27, 42, 33, 0.4); font-weight: 300; }
textarea { resize: vertical; min-height: 80px; }