/* ============================================
   SIAM SPA – Scroll Animations & Micro-interactions
   ============================================ */

/* ── Reveal base state ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Directional variants ── */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Stagger delay helpers ── */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ── Banner entrance animation (CSS only, triggers on load) ── */
@keyframes bannerFadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 30px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.banner-content {
  animation: bannerFadeUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

/* ── Scroll-down bounce indicator ── */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0) translateX(-50%); opacity: 0.8; }
  50% { transform: translateY(10px) translateX(-50%); opacity: 1; }
}

/* ── Shimmer line decoration ── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Section divider line ── */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #590000, #a57b5b, #590000);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  margin: 0 auto 20px;
  border-radius: 2px;
}

/* ── Page transition fade ── */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  animation: pageFadeIn 0.5s ease both;
}

/* ── Hover lift effect ── */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(89, 0, 0, 0.15);
}

/* ── Gold accent line for headings ── */
.accent-line::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #590000, #a57b5b);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ── Loading overlay ── */
#fullScreenLoader {
  position: fixed;
  inset: 0;
  background: #590000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#fullScreenLoader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#fullScreenLoader img {
  width: 100px;
  margin-bottom: 30px;
  filter: brightness(0) invert(1);
}

.loader-bar-container {
  width: 220px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 10px;
  transition: width 0.15s ease;
}

#progressPercent {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  letter-spacing: 2px;
}

/* ============================================================
   SHARED PAGE HERO (ใช้กับทุกหน้าที่ไม่ใช่ index.html)
   เพิ่ม class="page-hero" ใน section แทน about-section
   ============================================================ */
.page-hero {
  background: linear-gradient(150deg, #3a0000 0%, #590000 55%, #7a0000 100%);
  padding: clamp(80px, 12vw, 130px) 6% clamp(60px, 8vw, 100px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.page-hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}

/* Re-use the same element classes as partner-hero */
.page-hero .about-subtitle,
.page-hero .hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  font-family: 'ath-semibold', sans-serif;
  margin-bottom: 18px;
}

.page-hero .about-title,
.page-hero .hero-title {
  font-size: clamp(28px, 5vw, 50px);
  color: #fff;
  font-family: 'ath-bold', sans-serif;
  letter-spacing: 3px;
  margin-bottom: 22px;
  line-height: 1.15;
}

.page-hero .hero-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,162,124,0.8), transparent);
  margin: 0 auto 24px;
}

.page-hero .about-text,
.page-hero .hero-text {
  font-size: 15px;
  color: rgba(255,255,255,0.76);
  line-height: 1.9;
  max-width: 620px;
  margin: 0 auto;
}

/* Override old about-section if still present on older pages */
.about-section.page-hero {
  background: linear-gradient(150deg, #3a0000 0%, #590000 55%, #7a0000 100%);
  color: #fff;
  padding: clamp(80px, 12vw, 130px) 6% clamp(60px, 8vw, 100px);
}

