/* ===============================
   HERO – VIPHAT
================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(56px, 6vw, 96px);
  overflow: hidden;
  background: #f5f5f5;
}

:root {
  --header-h: 96px; /* ปรับตาม header จริง */
}

.hero {
  min-height: calc(100svh - var(--header-h));
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.65),
      rgba(0, 0, 0, 0.9)
    ),
    url("../../picture/images/product/hero.png") center / cover no-repeat;
  z-index: 0;
}

.hero-title,
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;

  color: #ffffff;
  opacity: 0.18; /* ปรับได้ตามความชัด */
  pointer-events: none;
  user-select: none;
  white-space: nowrap;

  z-index: 1;
}

.hero-watermark {
  will-change: transform;
  transition: transform .1s linear;
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: auto;
  min-height: calc(100svh - 200px);

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.hero-product {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-product {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
  }
}

.hero-product-inner {
  will-change: transform;
}

.hero-product-inner img {
  width: clamp(720px, 78vw, 1140px);
  max-height: 90svh;

  filter: drop-shadow(0 30px 50px rgba(0,0,0,.22));

  animation:
    float 6s ease-in-out infinite,
    rotateZoom 14s cubic-bezier(.19,1,.22,1) infinite;
}

/*
.hero-product-inner {
  will-change: transform;
}

.hero-product-inner img {
  width: clamp(360px, 39vw, 570px);
  max-height: 80svh;

  filter: drop-shadow(0 30px 50px rgba(0,0,0,.22));

  animation:
    float 6s ease-in-out infinite,
    rotateZoom 14s cubic-bezier(.19,1,.22,1) infinite;
}
*/

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

@keyframes rotateZoom {
  0%   { transform: scale(1) rotate(0deg); }
  50%  { transform: scale(1.035) rotate(1.2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.hero-info,
.hero-info:link,
.hero-info:visited,
.hero-info:hover,
.hero-info:active{
  text-decoration: none;
  color: inherit; /* ใช้สีจาก design */
}

.hero-info {
  max-width: 280px;
  padding: 20px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  font-size: 14px;
  line-height: 1.5;
}

.hero-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

@media (min-width: 1024px) {
  .hero-info-right {
    position: absolute;
    right: 24px;   /* ชิดขวา แต่ยังหรู */
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .hero-info-right {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
  }
}

.hero-info-right {
  backdrop-filter: blur(6px);
}

.hero-info-right .play {
  font-size: 14px;
  opacity: 0.8;
}

.hero-tags{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-tag{
  position: relative;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;

  background: rgba(255,255,255,.9);
  color: #0b2a55;
  text-decoration: none;

  transition: all .35s ease;
}

.hero-tags{
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: clamp(28px, 6vh, 56px);

  justify-content: flex-end;
  max-width: 90vw;
  overflow: hidden;
}

.hero-tags{
  gap: 10px;
}

.hero-tags span {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.reveal {
  transition:
    opacity .9s cubic-bezier(.22,1,.36,1),
    transform .9s cubic-bezier(.22,1,.36,1);
}

.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }

@media (hover: hover) {
  .hero-product img:hover {
    transform: scale(1.06) rotate(1.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {

  .hero-watermark {
    font-size: clamp(48px, 14vw, 96px);
    opacity: 0.15;

    top: 44%; /* เดิม 50% → ขยับขึ้น */
    transform: translate(-50%, -50%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }

  .hero-info-left,
  .hero-info-right {
    justify-self: center;
  }

  .hero-product {
    margin: 48px 0;
  }

  .hero-tags {
    position: static;
    justify-content: center;
    margin-top: 32px;
  }
}

@media (max-width: 768px){

  .hero-tags{
    position: relative;          /* เอา absolute desktop ออก */
    right: auto;
    bottom: auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 ปุ่มต่อแถว */
    gap: 12px;

    justify-content: center;
    align-items: center;

    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
  }

  .hero-tags a,
  .hero-tags span{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;                 /* เท่ากันทุกปุ่ม */
    height: 40px;                /* ความสูง fix */
    padding: 0;

    font-size: 13px;
    letter-spacing: .04em;
    text-align: center;
  }

}

/* Mobile default */
@media (max-width: 480px){
  .hero-tags{
    grid-template-columns: repeat(2, 1fr);
    max-width: 320px;
  }
}

/* Mobile ใหญ่ / iPhone Plus / Pixel / Galaxy */
@media (min-width: 481px) and (max-width: 768px){
  .hero-tags{
    grid-template-columns: repeat(3, 1fr);
    max-width: 420px;
  }
}

/* CONTENT SECTION */
.content {
  background: #ffffff;
  padding: clamp(80px, 10vw, 140px) clamp(40px, 8vw, 120px);
}

.content-grid {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}

.text-box small {
  font-size: 12px;
  letter-spacing: .18em;
  color: #777;
}

.text-box h2 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  margin: 18px 0 22px;
}

.text-box p {
  max-width: 520px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ================= VIP BUTTON ================= */

.vip-btn-link{
  text-decoration: none;
}

/* base */
.btn-vip{
  padding: 14px 36px;
  border-radius: 999px;
  border: none;

  background: linear-gradient(
    180deg,
    #0b2a55 0%,
    #081f3f 100%
  );

  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;

  cursor: pointer;
  transition:
    transform .3s cubic-bezier(.4,0,.2,1),
    box-shadow .35s ease,
    background .35s ease;
}

/* hover */
.btn-vip:hover{
  transform: translateY(-3px);
  box-shadow:
    0 16px 36px rgba(11,42,85,.45);
  background: linear-gradient(
    180deg,
    #123a73 0%,
    #0b2a55 100%
  );
}

/* active */
.btn-vip:active{
  transform: translateY(-1px) scale(.97);
  box-shadow:
    0 8px 20px rgba(11,42,85,.35);
}

/* focus (accessibility) */
.btn-vip:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(11,42,85,.35),
    0 16px 36px rgba(11,42,85,.45);
}

.btn-vip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* arrow */
.btn-arrow{
  display: inline-block;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}

/* hover arrow move */
.btn-vip:hover .btn-arrow{
  transform: translateX(6px);
}

/* IMAGE BOX */
.image-box img {
  width: 100%;
  border-radius: 28px;
}

/* MOTION */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeBlink {
  0%,100% { opacity: .4; }
  50% { opacity: .9; }
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
  .info-card.left { left: -200px; }
  .info-card.right { right: -200px; }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 24px;
  }

  .hero-title {
    font-size: 120px;
    top: 8%;
  }

  .product-wrapper {
    height: auto;
    margin-top: 120px;
  }

  .info-card {
    position: static;
    margin-top: 24px;
    width: 100%;
  }

  .tags {
    position: static;
    margin-top: 40px;
    justify-content: center;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   SCROLL REVEAL
================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .8s ease,
    transform .8s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delay */
.reveal.delay-1 { transition-delay: .15s; }
.reveal.delay-2 { transition-delay: .3s; }
.reveal.delay-3 { transition-delay: .45s; }


