/* ===== PEAK HORIZON ADVENTURES — styles.css ===== */

/* --- Required spec block --- */
.scroll-progress{position:fixed;top:0;left:0;height:3px;z-index:9999;width:0%}
.reveal-section{opacity:0;transform:translateY(28px);transition:opacity 0.8s ease,transform 0.8s ease}
.reveal-section.revealed{opacity:1;transform:translateY(0)}
.mobile-menu{max-height:0;overflow:hidden;transition:max-height 0.3s ease}
.mobile-menu.open{max-height:500px}
.modal-overlay{opacity:0;transition:opacity 0.3s ease}
.modal-overlay.active{opacity:1}
.modal-content{transform:translate(-50%,-50%) scale(0.95);transition:transform 0.3s ease,opacity 0.3s ease;opacity:0}
.modal-overlay.active .modal-content{transform:translate(-50%,-50%) scale(1);opacity:1}
.carousel-slide{display:none}
.carousel-slide.active{display:block}
.carousel-dot{width:8px;height:8px;border-radius:50%;cursor:pointer;border:none;transition:all 0.3s}
.carousel-dot.active{width:24px;border-radius:4px}
.faq-answer{max-height:0;overflow:hidden;transition:max-height 0.4s ease}
.faq-item.open .faq-answer{max-height:300px}
.faq-icon{transition:transform 0.3s ease}
.faq-item.open .faq-icon{transform:rotate(180deg)}
.back-to-top{opacity:0;visibility:hidden;transition:all 0.3s ease}
.back-to-top.visible{opacity:1;visibility:visible}
html{scroll-behavior:smooth}

/* --- Project-specific --- */
.scroll-progress { background: #ea580c; }

#navbar { transition: background 0.3s ease, padding 0.3s ease; }
#navbar.scrolled {
  background: rgba(15,23,42,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234,88,12,0.2);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.btn-primary {
  background: #ea580c;
  color: #ffffff;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid #ea580c;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: #c2410c; border-color: #c2410c; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: #ea580c;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid #ea580c;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-outline:hover { background: #ea580c; color: #fff; transform: translateY(-2px); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-tagline { animation: fadeSlideUp 0.8s ease forwards; animation-delay: 0.2s; opacity: 0; }
.hero-title   { animation: fadeSlideUp 0.9s ease forwards; animation-delay: 0.4s; opacity: 0; }
.hero-subtitle{ animation: fadeSlideUp 0.9s ease forwards; animation-delay: 0.6s; opacity: 0; }
.hero-cta     { animation: fadeSlideUp 0.9s ease forwards; animation-delay: 0.8s; opacity: 0; }

.hero-bg { transform: translateZ(0); will-change: transform; }

.carousel-slide { animation: fadeIn 0.5s ease; }
.carousel-dot { background: rgba(234,88,12,0.3); }
.carousel-dot.active { background: #ea580c; }

.faq-item { border: 1px solid rgba(234,88,12,0.15); transition: border-color 0.3s; }
.faq-item.open { border-color: rgba(234,88,12,0.5); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  pointer-events: none;
}
.modal-overlay.active { pointer-events: all; }
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  max-height: 90vh;
  overflow-y: auto;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #ea580c;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
}
.back-to-top:hover { background: #c2410c; }

.lazy-img { filter: blur(8px); transition: filter 0.6s ease; }
.lazy-img.loaded { filter: blur(0); }

.tour-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tour-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,0.35); }

.field-error { display: none; color: #f87171; font-size: 0.75rem; margin-top: 0.25rem; }
.field-error.visible { display: block; }

.nav-link.active-nav { color: #ea580c; }
