/* Custom Styles for HST Site */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --hst-green: #8DC63F;
  --hst-teal: #00838F;
  --hst-dark: #1A1A1A; /* Darker for better contrast */
  --hst-light: #F0F9FA;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
  color: var(--hst-dark);
}

/* Colors */
.text-hst-green { color: var(--hst-green); }
.text-hst-teal { color: var(--hst-teal); }
.text-hst-dark { color: var(--hst-dark); }
.bg-hst-green { background-color: var(--hst-green); }
.bg-hst-teal { background-color: var(--hst-teal); }
.bg-hst-dark { background-color: var(--hst-dark); }
.bg-hst-light { background-color: var(--hst-light); }
.border-hst-teal { border-color: var(--hst-teal); }

.hst-gradient {
  background: linear-gradient(135deg, var(--hst-green) 0%, var(--hst-teal) 100%);
}

.hst-text-gradient {
  background: linear-gradient(135deg, var(--hst-green) 0%, var(--hst-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-in-bottom {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

@keyframes slow-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.animate-slow-zoom {
  animation: slow-zoom 20s linear infinite alternate;
}

/* Hero Transitions */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide .hero-content-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0.4s;
}

.hero-slide.active .hero-content-anim {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide .hero-bg-zoom {
  transform: scale(1.1);
  transition: transform 6s cubic-bezier(0.2, 0, 0.2, 1);
}

.hero-slide.active .hero-bg-zoom {
  transform: scale(1);
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--hst-dark) 0%, #0d3d42 50%, var(--hst-teal) 100%);
}

/* Cards */
.hst-card {
  background: white;
  border-radius: 2rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 25px 50px -12px rgba(26, 26, 26, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hst-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 131, 143, 0.15);
}

/* Forms */
.hst-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid #e2e8f0;
  background: white;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hst-input:focus {
  outline: none;
  border-color: var(--hst-teal);
  box-shadow: 0 0 0 3px rgba(0, 131, 143, 0.15);
}

.hst-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
  background: linear-gradient(135deg, var(--hst-green) 0%, var(--hst-teal) 100%);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hst-btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 131, 143, 0.25);
}

/* Flash messages */
.flash-message {
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.flash-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.flash-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* FAQ accordion */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

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

/* Gallery lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 26, 26, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.hidden {
  display: none;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: var(--hst-teal);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: var(--hst-teal);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-weight: 600;
  text-align: center;
  max-width: 80%;
}

/* Gallery filter */
.gallery-filter.active {
  background: var(--hst-teal);
  color: white;
  border-color: var(--hst-teal);
}

/* Placeholder */
.img-placeholder {
  background: linear-gradient(135deg, var(--hst-light) 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hst-teal);
}

/* Utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--hst-teal);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--hst-green);
}

/* Responsive Table/Grid Overrides */
@media (max-width: 768px) {
  .rounded-\[60px\] {
    border-radius: 40px !important;
  }

  .rounded-\[40px\] {
    border-radius: 28px !important;
  }
}
