/* ============================================================
   Stemisphere – Custom CSS
   Slick carousel overrides + misc helpers
   ============================================================ */

/* ----- Splash Screen ----- */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(22, 42, 118, 0.72);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#splash-screen.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#splash-logo {
  width: 200px;
  height: auto;
  filter: brightness(1.6) drop-shadow(0 0 18px rgba(255,255,255,0.45));
  animation: splash-pulse 1.4s ease-in-out infinite;
}
@keyframes splash-pulse {
  0%, 100% { transform: scale(1);    opacity: 1;    }
  50%       { transform: scale(1.08); opacity: 0.82; }
}

/* ----- Top Page Loading Bar ----- */
#page-loader-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 10000;
  background: linear-gradient(to right, #FF9800, #FFD54F);
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.55);
  transition: width 0.25s ease, opacity 0.4s ease;
}

/* ----- Hero Slider ----- */
#hero-container {
  position: relative;
  height: 600px;
  overflow: hidden;
}
@media (min-width: 768px) {
  #hero-container { height: 700px; }
}

#hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}
#hero-slider .slick-list,
#hero-slider .slick-track,
#hero-slider .slick-slide,
#hero-slider .slick-slide > div,
.hero-slide {
  height: 100%;
}

/* Dots */
.slick-dots {
  bottom: 20px;
  z-index: 10;
}
.slick-dots li button:before {
  color: white;
  font-size: 10px;
  opacity: 0.5;
}
.slick-dots li.slick-active button:before {
  color: white;
  opacity: 1;
}

/* ----- Offering Cards ----- */
.offering-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.offering-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.1);
}
.offering-card.active {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  outline: 4px solid white;
}

/* ----- Gallery hover overlay ----- */
.gallery-item .overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay {
  opacity: 1;
}
.gallery-item img {
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

/* ----- Card base (matches shadcn/ui Card) ----- */
.card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
}

/* ----- Form inputs ----- */
.form-input,
.form-textarea {
  display: flex;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #111827;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}
.form-input:focus,
.form-textarea:focus {
  border-color: #8dd8f8;
  box-shadow: 0 0 0 2px rgba(141,216,248,0.25);
}
.form-textarea {
  resize: vertical;
}

/* ----- Submit button loading spinner ----- */
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  vertical-align: middle;
}
