/* =========================================================
   ติดต่อเรา — พื้นน้ำเงินทึบ (Royal Blue) + QR WhatsApp
   ========================================================= */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: clamp(72px, 8vw, 120px) 0 0;
}
.ct-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ct-deco { position: absolute; display: block; }
/* ภาพประกอบย้อมเป็นเงาสีน้ำเงิน ให้พื้นยังดูทึบ */
.ct-mtn { left: -6%; bottom: 40px; width: 70%; opacity: .1; filter: grayscale(1) brightness(2); }
.ct-wall { right: -6%; bottom: 30px; width: 46%; opacity: .1; filter: grayscale(1) brightness(2); }
.ct-cloud-a { right: 8%; top: 8%; width: 20%; opacity: .1; }
.ct-cloud-b { left: 30%; top: 4%; width: 18%; opacity: .07; }
.ct-plane { left: 6%; top: 10%; width: 180px; opacity: .14; filter: grayscale(1) brightness(2.2); }

.ct-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) clamp(64px, 7vw, 100px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 90px); align-items: center;
}
.ct-script { margin: 0; font-family: var(--font-script); font-size: clamp(36px, 3.4vw, 52px); color: var(--gold); line-height: 1; }
.contact h2 { margin: 6px 0 14px; font-size: clamp(34px, 4vw, 56px); font-weight: 700; letter-spacing: -.01em; }
.contact h2::after { content: ""; display: block; width: 70px; height: 3px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), rgba(214, 173, 101, 0)); }
.ct-lead { margin: 0 0 28px; max-width: 30em; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; color: rgba(255, 255, 255, .82); }
.ct-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.ct-list li {
  display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(214, 173, 101, .22);
  transition: background .3s, border-color .3s, transform .3s;
}
.ct-list li:hover { background: rgba(255, 255, 255, .09); border-color: rgba(214, 173, 101, .6); transform: translateX(6px); }
.ct-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.ct-ico svg { width: 24px; height: 24px; }
.ct-ico.is-wa { background: #25D366; } .ct-ico.is-wa svg { fill: none; stroke: #fff; stroke-width: 1.6; } .ct-ico.is-wa .f { fill: #fff; stroke: none; }
.ct-ico.is-line { background: #06C755; } .ct-ico.is-line svg { fill: #fff; }
.ct-ico.is-mail { background: var(--gold); } .ct-ico.is-mail svg { fill: none; stroke: var(--navy); stroke-width: 1.9; stroke-linejoin: round; }
.ct-list small { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); }
.ct-list a { font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; color: #fff; word-break: break-word; }
.ct-list a:hover { color: var(--gold); }
.ct-cta { background: var(--gold); color: var(--navy); font-weight: 600; box-shadow: 0 14px 30px -14px rgba(214, 173, 101, .8); }
.ct-cta:hover { background: #e4c07e; transform: translateY(-2px); }

/* การ์ด QR */
.ct-card {
  position: relative; margin: 0; justify-self: center; width: min(100%, 400px);
  padding: 76px 34px 30px; border-radius: 40px; text-align: center; color: #111;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(214, 173, 101, .6), 0 0 0 10px rgba(214, 173, 101, .12), 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.ct-badge {
  position: absolute; left: 50%; top: -52px; width: 112px; height: 112px; margin-left: -56px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--gold), 0 16px 30px -12px rgba(0, 0, 0, .5);
}
.ct-card figcaption b { display: block; font-size: 26px; font-weight: 600; color: #111; }
.ct-card figcaption span { display: block; margin-top: 2px; font-size: 15px; color: #9aa0a8; }
.ct-qr { position: relative; margin: 22px auto 0; width: min(100%, 290px); aspect-ratio: 1; max-width: 100%; }
.ct-qr img { width: 100%; height: 100%; display: block; image-rendering: auto; }
.ct-scanline {
  position: absolute; left: 4%; right: 4%; height: 3px; top: 6%; border-radius: 3px;
  background: linear-gradient(90deg, rgba(37, 211, 102, 0), #25D366, rgba(37, 211, 102, 0));
  box-shadow: 0 0 14px 2px rgba(37, 211, 102, .55); opacity: 0;
}
.ct-card.is-in .ct-scanline { animation: ct-scan 3.2s ease-in-out 1.2s infinite; }
@keyframes ct-scan { 0% { top: 6%; opacity: 0; } 10% { opacity: 1; } 50% { top: 92%; opacity: 1; } 60%, 100% { top: 92%; opacity: 0; } }
.ct-scan { margin: 18px 0 0; font-size: 14px; color: #374151; }

/* แอนิเมชันเข้า */
.ct-copy > * { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform 1s cubic-bezier(.16, .8, .24, 1); }
.ct-copy.is-in > * { opacity: 1; transform: none; }
.ct-copy.is-in > :nth-child(2) { transition-delay: .1s; }
.ct-copy.is-in > :nth-child(3) { transition-delay: .2s; }
.ct-copy.is-in > :nth-child(4) { transition-delay: .3s; }
.ct-copy.is-in > :nth-child(5) { transition-delay: .45s; }
.ct-card { opacity: 0; transform: translateY(40px) scale(.94) rotate(-2deg); transition: opacity .9s ease .2s, transform 1.2s cubic-bezier(.16, .8, .24, 1) .2s; }
.ct-card.is-in { opacity: 1; transform: none; }

.contact .site-footer { background: #0b2146; border-top: 1px solid rgba(214, 173, 101, .2); color: rgba(255, 255, 255, .6); }

@media (max-width: 860px) {
  .ct-inner { grid-template-columns: minmax(0, 1fr); }
  .ct-card { margin-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-copy > *, .ct-card { opacity: 1 !important; transform: none !important; }
  .ct-scanline { display: none; }
}
