/* ============================================================
   nm9 — "Ruby Rush" theme
   แดงสด-ทอง-ขาว พลังงานจัดจ้านสไตล์ GEN Z (ตามโทนจริงจาก H1/H2/H3.webp + BG)
   ฟอนต์ Itim (หัวข้อ) + Mali (เนื้อหา) — คู่ใหม่ยังไม่เคยใช้ในแบรนด์อื่น
   ============================================================ */

:root {
  --red: #e8112d;
  --red-bright: #ff4d5e;
  --red-deep: #9c0d1f;
  --gold: #ffc93c;
  --gold-deep: #d99a10;
  --bg: #1a0405;
  --bg-alt: #240608;
  --panel: #2c0a0c;
  --line: #4a1418;
  --ink: #fff3e8;
  --muted: #f0cfc8;
  --ink-dark: #2c0a0c;
  --muted-dark: #7a4d47;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(0,0,0,0.5);
  --font-head: 'Itim', cursive;
  --font-body: 'Mali', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(rgba(26,4,5,.25), rgba(26,4,5,.25)), url("assets/img/Bg web.webp") center/cover fixed;
}
@media (max-width: 760px) {
  body { background: linear-gradient(rgba(26,4,5,.25), rgba(26,4,5,.25)), url("assets/img/Bg mobile.webp") center/cover fixed; background-attachment: scroll; }
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 0.6rem; color: var(--ink); line-height: 1.3; }
p { line-height: 1.85; margin: 0 0 1rem; }
.grad-text { background: linear-gradient(135deg, var(--gold), var(--red-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== HEADER — single row, logo left ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(26, 4, 5, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.2rem; }
.logo-link img { height: 32px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-menu a { color: var(--muted); font-weight: 700; font-size: 0.96rem; }
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }
.header-btns { display: flex; align-items: center; gap: 0.5rem; }
.img-btn img { height: 32px; width: auto; transition: transform 0.18s ease; }
.img-btn:hover img { transform: translateY(-2px) scale(1.03); }
.img-btn.lg img { height: 44px; }

/* ===== ANNOUNCE STRIP — static badges (not marquee) ===== */
.announce-strip { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; padding: 0.6rem 1rem; background: rgba(0,0,0,0.25); }
.announce-strip span { background: rgba(255,201,60,0.12); border: 1px solid var(--gold-deep); color: var(--gold); font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.9rem; border-radius: 999px; }

/* ===== HERO ===== */
.hero { position: relative; padding: 2.2rem 1.2rem 1rem; overflow: hidden; }
.hero-banner { max-width: 1100px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gold-deep); }
.hero-copy { max-width: 900px; margin: 1.8rem auto 0; text-align: center; }
.hero-copy .eyebrow { justify-content: center; display: flex; }

/* ===== MASCOT TRIO — centered showcase, not corner decoration ===== */
.mascot-trio { display: flex; justify-content: center; align-items: flex-end; gap: 1.6rem; max-width: 720px; margin: 2.2rem auto 0; }
.mascot-trio img { width: 33%; max-width: 210px; filter: drop-shadow(0 16px 28px rgba(0,0,0,0.55)); }
@media (max-width: 640px) { .mascot-trio { gap: 0.6rem; } .mascot-trio img { width: 32%; } }
.hero-copy p { color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.2rem; flex-wrap: wrap; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--gold); font-weight: 700; margin-bottom: 0.7rem; font-family: var(--font-body); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 3px rgba(232,17,45,0.35); display: inline-block; }

/* ===== BUTTONS (fallback) ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.8rem 1.9rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem; border: 2px solid transparent; cursor: pointer; font-family: var(--font-body); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--ink-dark); }
.btn-outline { border-color: var(--gold-deep); color: var(--gold); background: transparent; }

/* ===== SECTIONS ===== */
.section { padding: 3.2rem 1.2rem; }
.section.alt { background: rgba(0,0,0,0.18); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 2.2rem; }
.section-head p { color: var(--muted); }

/* ===== STEP LIST (H2-2 auto deposit) ===== */
.step-list { display: flex; flex-direction: column; gap: 1.1rem; max-width: 820px; margin: 0 auto; }
.step-item { display: flex; gap: 1.1rem; background: #fff6ec; border: 1px solid #f0d9c8; border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: 0 10px 26px rgba(0,0,0,0.2); }
.step-item .step-num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); }
.step-item h3 { color: var(--ink-dark); margin-bottom: 0.35rem; }
.step-item p { color: var(--muted-dark); font-size: 0.94rem; margin: 0; }

/* ===== PROVIDER GRID ===== */
.provider-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 1.6rem; }
.provider-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.provider-card img { width: 100%; }

/* ===== REVIEW BLOCK — stacked full-width (long RTP text) ===== */
.review-block { display: flex; flex-direction: column; gap: 1.4rem; max-width: 900px; margin: 0 auto; }
.review-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 2rem; }
.review-item h3 { color: var(--gold); font-size: 1.25rem; }
.review-item p { color: var(--muted); font-size: 0.96rem; }
.review-item p:last-child { margin-bottom: 0; }

/* ===== FEATURE BANNER (H1/H2/H3 landscape) ===== */
.feature-banner { max-width: 1100px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gold-deep); }
.feature-banner img { width: 100%; }

/* ===== MINI CARD STRIP (portrait feature cards) ===== */
.mini-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.mini-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-deep); background: var(--panel); transition: transform 0.18s ease; }
.mini-card:hover { transform: translateY(-6px); }
.mini-card img { width: 100%; }

/* ===== TEASER SPLIT ===== */
.teaser-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.teaser-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.teaser-card img { width: 100%; height: 200px; object-fit: cover; }
.teaser-card-body { padding: 1.4rem; }
.teaser-card-body h3 { color: var(--gold); }
.teaser-card-body p { color: var(--muted); font-size: 0.92rem; }

/* ===== CTA ===== */
.cta-section { position: relative; padding: 1rem 1.2rem 4rem; }
.cta-panel { max-width: 980px; margin: 0 auto; text-align: center; padding: 2.8rem 1.6rem; border-radius: 26px; background: linear-gradient(150deg, var(--red-deep), var(--panel) 70%); border: 1px solid var(--gold); }
.cta-btns { display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.3rem; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { text-align: center; padding: 2.6rem 1.2rem 6.5rem; border-top: 1px solid var(--line); }
.footer-logo { height: 34px; margin: 0 auto 1rem; }
.footer-tagline { color: var(--muted); max-width: 560px; margin: 0 auto 0.6rem; font-size: 0.92rem; }
.footer-copy { color: var(--muted-dark); font-size: 0.82rem; }
.footer-tagline a, .footer-tagline b { color: var(--gold); }

/* ===== LINE FAB ===== */
.line-fab { position: fixed; right: 18px; bottom: 100px; z-index: 60; display: flex; align-items: center; gap: 0.4rem; background: #06c755; color: #fff; padding: 0.6rem 1rem; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,0.4); font-weight: 700; font-size: 0.85rem; }
.line-fab svg { width: 20px; height: 20px; fill: #fff; }
@media (max-width: 760px) { .line-fab { bottom: 84px; right: 12px; padding: 0.55rem 0.75rem; } .line-fab span { display: none; } }

/* ===== STICKY BAR — split pill bars + floating center circle ===== */
.sticky-bar { display: none; position: fixed; left: 0; right: 0; bottom: 14px; z-index: 55; padding: 0 0.8rem; align-items: center; justify-content: center; gap: 0.6rem; }
.mnav-group { display: flex; background: rgba(26, 4, 5, 0.94); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.5rem; gap: 0.2rem; flex: 1; justify-content: space-around; box-shadow: 0 10px 22px rgba(0,0,0,0.45); }
.mnav-item { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; font-size: 0.6rem; color: var(--muted); font-weight: 700; padding: 0.35rem 0.4rem; }
.mnav-item svg { width: 17px; height: 17px; fill: var(--gold); }
.mnav-item.active { color: var(--gold); }
.mnav-item.active svg { fill: var(--gold); }
.mnav-center { flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--red-bright)); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(0,0,0,0.5); border: 2px solid var(--bg); }
.mnav-center svg { width: 24px; height: 24px; fill: #fff; }

/* ===== reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== PAGE (promotion/article) SHARED ===== */
.page-hero { text-align: center; padding: 3rem 1.2rem 1.2rem; max-width: 820px; margin: 0 auto; }
.page-hero h1 { font-size: 1.7rem; }
.page-hero p { color: var(--muted); }
.page-main { max-width: 820px; margin: 0 auto; padding: 1rem 1.2rem 3rem; }
.page-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; border: 1px solid var(--gold-deep); }
.page-content, .article-main { background: #fff6ec; border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow); }
.page-content h2, .page-content h3, .article-main h1, .article-main h2, .article-main h3 { color: var(--ink-dark); }
.page-content p, .article-main p { color: var(--muted-dark); }
.article-main { max-width: 820px; margin: 2rem auto 3rem; padding: 2rem 1.8rem; }
.article-meta { color: var(--muted-dark); font-size: 0.85rem; margin-top: -0.4rem; }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1.6rem 0 2rem; }
.promo-card { background: #fff; border: 1px solid #f0d9c8; border-radius: 16px; padding: 1.5rem; }
.promo-card .promo-tag { display: inline-block; background: rgba(232,17,45,0.1); color: var(--red); font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem; }
.promo-card h3 { color: var(--ink-dark); }
.promo-card p { color: var(--muted-dark); font-size: 0.9rem; margin: 0; }
.action-btns { display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
  .mini-strip { grid-template-columns: repeat(2, 1fr); }
  .teaser-split { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-menu { display: none; }
  .announce-strip span:nth-child(n+3) { display: none; }
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
  body { padding-bottom: 5.4rem; }
  .sticky-bar { display: flex; }
}
