/*! รักประมูล (Rakpramool) — Premium Homepage Hero */
/* โหลดเฉพาะหน้าแรก (index.php) เพื่อไม่กระทบหน้าอื่น */

.rk-hero-wrap {
    position: relative;
    margin: 18px 15px 26px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(1200px 420px at 85% -10%, rgba(212, 175, 55, .30), transparent 60%),
        radial-gradient(900px 420px at 5% 110%, rgba(30, 64, 175, .38), transparent 60%),
        linear-gradient(135deg, #05091c 0%, #0e1a45 45%, #14275a 100%);
    box-shadow: 0 30px 70px rgba(5, 9, 28, .34);
    border: 1px solid rgba(212, 175, 55, .22);
    color: #fff;
    font-family: 'Sarabun', 'Kanit', sans-serif;
    isolation: isolate;
}
.rk-hero-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 72%);
    mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}
.rk-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .5;
    z-index: 0;
    pointer-events: none;
    animation: rkFloat 9s ease-in-out infinite;
}
.rk-hero-orb.a { width: 220px; height: 220px; background: #d4af37; top: -70px; right: 12%; }
.rk-hero-orb.b { width: 180px; height: 180px; background: #1e40af; bottom: -80px; left: 8%; animation-delay: -3s; }
.rk-hero-orb.c { width: 120px; height: 120px; background: #f5c451; top: 45%; left: 45%; animation-delay: -6s; opacity: .35; }
@keyframes rkFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-18px, 22px) scale(1.08); }
}

.rk-hero-inner {
    position: relative;
    z-index: 1;
    padding: 44px 46px 34px;
}
.rk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    color: #ffe9a8;
    background: rgba(255, 233, 168, .12);
    border: 1px solid rgba(255, 233, 168, .35);
    backdrop-filter: blur(6px);
}
.rk-hero-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80;
    animation: rkPulse 1.8s infinite;
}
@keyframes rkPulse {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
    70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.rk-hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.18;
    margin: 18px 0 14px;
    color: #fff;
}
.rk-hero-title .gold {
    background: linear-gradient(120deg, #ffe9a8 0%, #f5c451 45%, #e0a84b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rk-hero-desc {
    font-size: 1.02rem;
    line-height: 1.85;
    color: rgba(226, 232, 240, .88);
    max-width: 560px;
    margin-bottom: 26px;
}
.rk-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.rk-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .98rem;
    text-decoration: none !important;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, background .3s;
    border: 1.5px solid transparent;
}
.rk-btn:hover { transform: translateY(-3px); text-decoration: none !important; }
.rk-btn-primary {
    background: linear-gradient(135deg, #f5c451 0%, #e0a84b 55%, #c98f1c 100%);
    color: #2b1c05 !important;
    box-shadow: 0 12px 28px rgba(224, 168, 75, .38);
}
.rk-btn-primary:hover { box-shadow: 0 18px 38px rgba(224, 168, 75, .5); }
.rk-btn-ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .32);
    color: #fff !important;
    backdrop-filter: blur(6px);
}
.rk-btn-ghost:hover { background: rgba(255, 255, 255, .16); }

.rk-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.rk-hero-visual img {
    width: 100%;
    max-width: 460px;
    filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .45));
    animation: rkHover 6s ease-in-out infinite;
}
@keyframes rkHover {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* ---------- Trust chips ---------- */
.rk-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.rk-trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .88rem;
    font-weight: 600;
    color: rgba(226, 232, 240, .92);
}
.rk-trust-item i { color: #f5c451; font-size: 1rem; }

/* ---------- Stats strip ---------- */
.rk-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .12);
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.rk-stat {
    background: rgba(9, 20, 44, .55);
    backdrop-filter: blur(8px);
    padding: 20px 18px;
    text-align: center;
}
.rk-stat b {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(120deg, #ffe9a8, #f5c451);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}
.rk-stat span {
    display: block;
    margin-top: 4px;
    font-size: .82rem;
    color: rgba(203, 213, 225, .85);
    font-weight: 500;
}

/* ---------- Why-us premium cards ---------- */
.rk-why {
    max-width: 1200px;
    margin: 0 auto 26px;
    padding: 0 15px;
}
.rk-why-head { text-align: center; margin-bottom: 22px; }
.rk-why-head .eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #14275a;
    background: linear-gradient(135deg, rgba(255,233,168,.7), rgba(212,175,55,.3));
    border: 1px solid rgba(212, 175, 55, .45);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.rk-why-head h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
}
.rk-why-head p {
    color: #64748b;
    max-width: 720px;
    margin: 0 auto;
    font-size: .95rem;
    line-height: 1.8;
}
.rk-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.rk-why-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 20px;
    padding: 26px 20px 22px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s, border-color .35s;
}
.rk-why-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #d4af37 55%, #f5c451);
    transform: scaleX(0);
    transition: transform .35s;
}
.rk-why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(10, 17, 48, .16);
    border-color: rgba(212, 175, 55, .45);
}
.rk-why-card:hover::after { transform: scaleX(1); }
.rk-why-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #274a9e, #14275a);
    box-shadow: 0 10px 22px rgba(20, 39, 90, .35);
}
.rk-why-card:nth-child(2) .rk-why-icon { background: linear-gradient(135deg, #f5c451, #a8801f); box-shadow: 0 10px 22px rgba(212, 175, 55, .38); }
.rk-why-card:nth-child(3) .rk-why-icon { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 10px 22px rgba(16, 185, 129, .3); }
.rk-why-card:nth-child(4) .rk-why-icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 10px 22px rgba(139, 92, 246, .3); }
.rk-why-card h3 { font-size: 1.02rem; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.rk-why-card p { font-size: .87rem; color: #64748b; line-height: 1.75; margin: 0; }

/* ---------- Reveal on scroll ---------- */
.rk-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.rk-reveal.rk-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .rk-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
    .rk-hero-inner { padding: 34px 30px 28px; }
    .rk-hero-title { font-size: 2.15rem; }
    .rk-hero-visual { order: -1; margin-bottom: 10px; }
    .rk-hero-visual img { max-width: 300px; }
    .rk-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .rk-hero-wrap { margin: 12px 10px 20px; border-radius: 22px; }
    .rk-hero-inner { padding: 26px 20px 22px; }
    .rk-hero-title { font-size: 1.7rem; }
    .rk-hero-desc { font-size: .92rem; line-height: 1.75; }
    .rk-btn { width: 100%; justify-content: center; }
    .rk-stat b { font-size: 1.4rem; }
    .rk-why-grid { grid-template-columns: 1fr; }
    .rk-why-head h2 { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rk-hero-orb, .rk-hero-visual img, .rk-hero-badge .dot { animation: none !important; }
    .rk-reveal { opacity: 1; transform: none; }
}



