/* Site footer — yellow statement band + dark link footer (all pages using layouts/main.php) */
footer.ll-footer {
    background: #1d1d1f;
    color: #d8d8dc;
    font-family: "Inter", "IBM Plex Sans Thai", sans-serif;
    margin: 0;
}

footer.ll-footer a { color: inherit; text-decoration: none; }

/* statement band */
.ll-footer__band {
    background: #ffc629;
    overflow: hidden;
    padding: 64px clamp(24px, 7vw, 104px) 56px;
    position: relative;
}
.ll-footer__band::after {
    border: 60px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    content: "";
    height: 420px;
    pointer-events: none;
    position: absolute;
    right: -80px;
    top: -120px;
    width: 420px;
}
.ll-footer__kicker {
    color: #6b4d00;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    position: relative;
    z-index: 1;
}
.ll-footer__headline {
    color: #1b1b1b;
    font-size: clamp(32px, 3.8vw, 54px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.04;
    margin: 12px 0 0;
    max-width: 900px;
    position: relative;
    z-index: 1;
}
.ll-footer__headline > span { display: block; }
.ll-footer__headline:lang(th) { letter-spacing: -.01em; line-height: 1.3; }

/* main footer */
.ll-footer__main { padding: 56px clamp(24px, 7vw, 104px) 0; }
.ll-footer__grid {
    display: grid;
    gap: 40px 48px;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    padding-bottom: 40px;
}

.ll-footer__brand img { display: block; height: auto; max-width: 172px; width: 172px; }
.ll-footer__brand p { color: #9a9aa2; font-size: 14px; line-height: 1.6; margin: 16px 0 22px; max-width: 290px; }

.ll-footer__social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ll-footer__social a {
    align-items: center;
    background: #2a2a2e;
    border-radius: 12px;
    color: #e6e6ea !important;
    display: flex;
    height: 42px;
    justify-content: center;
    transition: background .2s, color .2s, transform .2s;
    width: 42px;
}
footer.ll-footer .ll-footer__social i { font-size: 17px; margin: 0; }
.ll-footer__social a:hover,
.ll-footer__social a:focus-visible { background: #ffc629; color: #1b1b1b !important; transform: translateY(-2px); }

.ll-footer__col h3 { color: #ffc629; font-size: 12px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; margin: 6px 0 16px; }
.ll-footer__col ul { list-style: none; margin: 0; padding: 0; }
.ll-footer__col li { margin: 0 0 11px; }
.ll-footer__col li a { font-size: 15px; transition: color .2s; }
.ll-footer__col li a:hover,
.ll-footer__col li a:focus-visible { color: #ffc629; }

.ll-footer__contact p { align-items: flex-start; display: flex; font-size: 15px; gap: 12px; line-height: 1.5; margin: 0 0 12px; }
footer.ll-footer .ll-footer__contact i { color: #ffc629; flex: none; font-size: 15px; margin-top: 3px; text-align: center; width: 18px; }
.ll-footer__contact a:hover { color: #ffc629; }

.ll-footer__bottom {
    align-items: center;
    border-top: 1px solid #2e2e33;
    color: #77777f;
    display: flex;
    flex-wrap: wrap;
    font-size: 12.5px;
    gap: 10px 24px;
    justify-content: space-between;
    padding: 18px 0 24px;
}
.ll-footer__lang { align-items: center; display: inline-flex; gap: 6px; }
footer.ll-footer .ll-footer__lang a { color: #77777f; font-weight: 600; }
footer.ll-footer .ll-footer__lang a.is-active { color: #ffc629; }

/* tablet */
@media (max-width: 1100px) {
    .ll-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* phone */
@media (max-width: 767px) {
    .ll-footer__band { padding: 44px 22px 40px; }
    .ll-footer__band::after { border-width: 40px; height: 260px; right: -110px; top: -90px; width: 260px; }
    .ll-footer__headline { font-size: clamp(27px, 8vw, 34px); }
    .ll-footer__main { padding: 40px 22px 0; }
    .ll-footer__grid { gap: 32px 20px; grid-template-columns: 1fr 1fr; padding-bottom: 28px; }
    .ll-footer__brand, .ll-footer__contact { grid-column: 1 / -1; }
    .ll-footer__brand img { max-width: 145px; width: 145px; }
    .ll-footer__social a { height: 44px; width: 44px; }
    .ll-footer__col li { margin: 0; }
    .ll-footer__col li a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; }
    .ll-footer__contact p { font-size: 14px; }
    .ll-footer__contact a { display: inline-flex; align-items: center; min-height: 32px; }
    /* keep the bottom bar clear of the floating chat button */
    .ll-footer__bottom { flex-direction: column; align-items: flex-start; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* refinements after render check */
html[lang="th"] .ll-footer__col h3 { letter-spacing: .02em; font-size: 14px; }
.ll-footer__headline > span { text-wrap: balance; }
.ll-footer__nowrap { white-space: nowrap; }
@media (max-width: 1100px) { .ll-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
@media (max-width: 959px) { .ll-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
    .ll-footer__headline:lang(th) { font-size: clamp(23px, 6.6vw, 28px); }
    footer.ll-footer .ll-footer__lang a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; }
    .ll-footer__lang { margin-left: -6px; }
}
@media (min-width: 960px) and (max-width: 1100px) {
    .ll-footer__grid { column-gap: 32px; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
    .ll-footer__social { gap: 6px; }
    .ll-footer__social a { height: 36px; width: 36px; }
}

/* Guard: beat the legacy mobile footer rules (body.main-page>footer … !important) even if an old mobile-site.css is cached */
body.main-page > footer.ll-footer { background: #1d1d1f !important; color: #d8d8dc !important; }
body.main-page > footer.ll-footer .ll-footer__band { background: #ffc629 !important; }
body.main-page > footer.ll-footer .ll-footer__kicker { color: #6b4d00 !important; font-size: 12px !important; line-height: 1.4 !important; }
body.main-page > footer.ll-footer .ll-footer__headline,
body.main-page > footer.ll-footer .ll-footer__headline span { color: #1b1b1b !important; font-size: clamp(32px, 3.8vw, 54px) !important; line-height: 1.04 !important; }
body.main-page > footer.ll-footer .ll-footer__headline:lang(th),
body.main-page > footer.ll-footer .ll-footer__headline:lang(th) span { line-height: 1.3 !important; }
body.main-page > footer.ll-footer .ll-footer__brand p { color: #9a9aa2 !important; font-size: 14px !important; line-height: 1.6 !important; }
body.main-page > footer.ll-footer .ll-footer__brand img { max-width: 172px !important; width: 172px !important; }
body.main-page > footer.ll-footer .ll-footer__contact p,
body.main-page > footer.ll-footer .ll-footer__contact span { color: #d8d8dc !important; font-size: 15px !important; line-height: 1.5 !important; }
body.main-page > footer.ll-footer .ll-footer__bottom,
body.main-page > footer.ll-footer .ll-footer__bottom span { color: #77777f !important; font-size: 12.5px !important; line-height: 1.5 !important; }
body.main-page > footer.ll-footer .ll-footer__lang a { color: #77777f !important; }
body.main-page > footer.ll-footer .ll-footer__lang a.is-active { color: #ffc629 !important; }
@media (max-width: 767px) {
    body.main-page > footer.ll-footer .ll-footer__headline,
    body.main-page > footer.ll-footer .ll-footer__headline span { font-size: clamp(27px, 8vw, 34px) !important; }
    body.main-page > footer.ll-footer .ll-footer__headline:lang(th),
    body.main-page > footer.ll-footer .ll-footer__headline:lang(th) span { font-size: clamp(23px, 6.6vw, 28px) !important; }
    body.main-page > footer.ll-footer .ll-footer__brand img { max-width: 145px !important; width: 145px !important; }
    body.main-page > footer.ll-footer .ll-footer__contact p,
    body.main-page > footer.ll-footer .ll-footer__contact span { font-size: 14px !important; }
}

/* Back to top (all main-site pages) — same idea as the gaming footer link */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.main-page > footer.ll-footer .ll-footer__top {
    align-items: center;
    color: #d8d8dc !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    letter-spacing: .04em;
    margin-top: 22px;
    min-height: 44px;
    transition: color .2s;
}
.ll-footer__top > span {
    align-items: center;
    border: 1.5px solid #ffc629;
    border-radius: 50%;
    color: #ffc629;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    transition: background .2s, color .2s, transform .2s;
    width: 30px;
}
footer.ll-footer .ll-footer__top i { font-size: 12px; margin: 0; }
body.main-page > footer.ll-footer .ll-footer__top:hover,
body.main-page > footer.ll-footer .ll-footer__top:focus-visible { color: #ffc629 !important; }
.ll-footer__top:hover > span,
.ll-footer__top:focus-visible > span { background: #ffc629; color: #1b1b1b; transform: translateY(-2px); }

/* the old mobile-only button is retired; hide it if a cached script still adds it */
#ll-back-to-top { display: none !important; }
