/*
 * Hover Footer — พอร์ตจาก React component (hover-footer.tsx + demo.tsx) มาเป็น CSS ล้วน
 *
 * โครงเดิม: footer มืดขอบมน · กริด 4 คอลัมน์ · เส้นคั่น · ไอคอนโซเชียล + ลิขสิทธิ์
 *           ตัวอักษรยักษ์แบบเส้นขอบที่มีวงไล่สีวิ่งตามเมาส์ · พื้นหลังไล่สีวงกลม
 * ที่เปลี่ยน: สีน้ำเงิน #3ca2fa ของต้นฉบับ → ชมพู/ม่วงตามแบรนด์ และฟอนต์ helvetica → Prompt
 *
 * ใช้ selector แบบ footer.hf ให้ specificity สูงกว่ากฎ footer{} เดิมในหน้าเว็บ
 */

footer.hf{
  position:relative;margin:32px 24px 0;border-radius:24px;overflow:hidden;
  background:#141024;color:#b9aedb;border:none;padding:0;
}

/* พื้นหลัง — FooterBackgroundGradient */
footer.hf .hf-bg{
  position:absolute;inset:0;z-index:0;
  background:radial-gradient(125% 125% at 50% 10%, rgba(29,20,54,.45) 50%, rgba(236,72,153,.28) 100%);
}

footer.hf .hf-in{position:relative;z-index:4;max-width:1180px;margin:0 auto;padding:56px 40px 0}

/* ---------- กริด 4 คอลัมน์ ---------- */
footer.hf .hf-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr 1.1fr;gap:48px;padding-bottom:44px}

footer.hf .hf-brand{display:flex;flex-direction:column;gap:14px}
footer.hf .hf-brand .logo{display:flex;align-items:center;gap:11px;font-weight:800;font-size:26px;letter-spacing:-.4px}
footer.hf .hf-brand .logo .mark{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.12);
  color:#fff;display:grid;place-items:center;flex:0 0 auto}
footer.hf .hf-brand .logo .mark svg{width:58%;height:58%;display:block}
footer.hf .hf-brand .logo .wm{display:inline-flex;align-items:baseline;font-weight:700}
footer.hf .hf-brand .logo .wm b{color:#fff}
footer.hf .hf-brand .logo .wm i{font-style:normal;color:#f9a8d4}
footer.hf .hf-brand p{font-size:14.5px;line-height:1.7;color:#b9aedb;margin:0;max-width:340px}

footer.hf h3{color:#fff;font-size:17px;font-weight:600;margin:0 0 22px}
footer.hf ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
footer.hf li{position:relative;font-size:14.5px;color:#b9aedb;margin:0;list-style:none}
footer.hf li a{color:inherit;text-decoration:none;transition:color .2s}
footer.hf li a:hover{color:#f9a8d4}
/* จุดกระพริบ (pulse) ตามต้นฉบับ */
footer.hf li .pulse{position:absolute;top:2px;right:-12px;width:8px;height:8px;border-radius:50%;
  background:#ec4899;animation:hfPulse 2s cubic-bezier(.4,0,.6,1) infinite}
@keyframes hfPulse{50%{opacity:.35}}

footer.hf .hf-contact li{display:flex;align-items:center;gap:12px}
footer.hf .hf-contact svg{width:18px;height:18px;flex:0 0 auto;color:#ec4899}

footer.hf hr{border:none;border-top:1px solid rgba(255,255,255,.14);margin:0 0 32px}

/* ---------- แถวล่าง ---------- */
footer.hf .hf-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;
  flex-wrap:wrap;font-size:13.5px;color:#9a8fc2;padding-bottom:40px}
footer.hf .hf-social{display:flex;gap:22px;color:#9a8fc2}
footer.hf .hf-social a{color:inherit;display:grid;place-items:center;transition:color .2s}
footer.hf .hf-social a:hover{color:#f9a8d4}
footer.hf .hf-social svg{width:20px;height:20px}
footer.hf .hf-legal a{color:#9a8fc2;text-decoration:none}
footer.hf .hf-legal a:hover{color:#f9a8d4;text-decoration:underline}

/* ---------- ตัวอักษรยักษ์ — TextHoverEffect ---------- */
footer.hf .hf-text{display:none;position:relative;z-index:5;height:30rem;margin-top:-11rem;margin-bottom:-8.5rem}
@media(min-width:1024px){footer.hf .hf-text{display:flex}}
footer.hf .hf-svg{width:100%;height:100%;user-select:none;cursor:pointer;
  font-family:'Prompt',system-ui,sans-serif;font-weight:800;text-transform:uppercase}
footer.hf .hf-svg text{fill:transparent;stroke-width:.35px;font-size:56px;letter-spacing:-1px}

/* ชั้น 1: เส้นขอบจาง โผล่ตอนโฮเวอร์ */
footer.hf .hf-svg .l1{stroke:rgba(255,255,255,.4);opacity:0;transition:opacity .35s}
footer.hf .hf-svg.is-hover .l1{opacity:.7}

/* ชั้น 2: เส้นสีแบรนด์ วาดตัวเองตอนโหลด (strokeDashoffset 1000→0 ใน 4 วิ ตามต้นฉบับ) */
footer.hf .hf-svg .l2{stroke:rgba(236,72,153,.7);stroke-dasharray:3000;stroke-dashoffset:3000;
  animation:hfDraw 4s ease-in-out forwards}
@keyframes hfDraw{to{stroke-dashoffset:0}}

/* ชั้น 3: เส้นไล่สี มองเห็นเฉพาะในวง mask ที่วิ่งตามเมาส์ */
footer.hf .hf-svg .l3{stroke:url(#hfTextGradient);opacity:0;transition:opacity .25s}
footer.hf .hf-svg.is-hover .l3{opacity:1}

@media(max-width:900px){
  footer.hf{margin:24px 12px 0;border-radius:18px}
  footer.hf .hf-in{padding:40px 24px 0}
  footer.hf .hf-grid{grid-template-columns:1fr 1fr;gap:32px}
}
@media(max-width:560px){
  footer.hf .hf-grid{grid-template-columns:1fr}
  footer.hf .hf-bottom{flex-direction:column;align-items:flex-start}
}
