/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: system-ui, "Kanit", sans-serif;
}

/* SCROLL */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

/* PAGE */
.page {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 32px;
}

/* BACKGROUND */
.page {
  background: linear-gradient(
    to bottom,
    #FFC72D 0%,
    #FFC72D 80%,
    #000 100%
  );
  color: #000;
}

/* TEXT */
h1, h2 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-align: center;
}

p {
  font-size: 1.1rem;
  line-height: 1.55;
  text-align: center;
}

/* HERO IMAGE – EXPANDED SIZE */
.hero-image {
  flex: 1;                /* fill remaining space */
  max-height: 66vh;       /* hard cap at 2/3 screen */

  width: 100%;
  max-width: 100%;

  margin-top: 12px;
  margin-bottom: 72px;    /* space for arrow */
}

/* HERO LAYOUT */
.hero {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* text stays natural height */
.hero-text {
  flex: 0 0 auto;
}

/* POLICY */
.policy-intro {
  margin-bottom: 10px;
}

.policy-viewer {
  position: relative;
  max-width: 340px;
}

.policy-viewer img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

/* NAV */
.policy-viewer .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
}

.prev { left: 8px; }
.next { right: 8px; }

/* TEXT */
.policy-text {
  margin-top: 6px;
  font-size: 1.05rem;
  max-width: 360px;
  white-space: pre-line;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

/* DOTS */
.policy-dots {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.policy-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
}

.policy-dots span.active {
  background: #000;
}

/* GUIDE ARROW */
.guide-arrow {
  position: fixed;
  bottom: 32px;                 /* ⬆ move it higher */
  left: 50%;
  transform: translateX(-50%);

  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;

  padding: 10px 16px;
  border-radius: 24px;

  display: flex;
  align-items: center;
  gap: 8px;

  cursor: pointer;
  z-index: 9999;                /* ⬆ always above images */
  pointer-events: auto;

  transition: opacity 0.3s ease, transform 0.3s ease;
}

.policy-arrow {
  display: inline-block;
  transform: rotate(90deg);
  font-size: 1.6rem;
  animation: bounce 1.4s infinite;
}

/* ================= LOGO FOOTER IMAGE ================= */
.policy-footer-image {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.policy-footer-image img {
  width: 100%;
  max-width: 240px;   /* ← increase this */
  height: auto;
  opacity: 0.95;
}

/* ================= POLICY SLOGAN ================= */
.policy-slogan {
  margin-top: 12px;
  font-family: "Kanit", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #000;
  text-align: center;
  letter-spacing: 0.2px;
}

@keyframes bounce {
  0%,100% { transform: translateY(0) rotate(90deg); }
  50% { transform: translateY(6px) rotate(90deg); }
}

.guide-arrow.hide {
  opacity: 0;
  pointer-events: none;
}

.guide-arrow.home {
  background: #000;
}

.guide-arrow.home .policy-arrow {
  display: none;
}

@media (min-width: 768px) {
  .hero-image {
    max-width: 620px;
  }
}
