:root {
    --jo-espresso: #2B1B12;
    --jo-cocoa: #5B3A29;
    --jo-brown: #7A5238;
    --jo-caramel: #C79A63;
    --jo-gold-soft: #E8C994;
    --jo-cream: #F8F1E7;
    --jo-warm: #FFFCF8;
    --jo-card: #FFFFFF;
    --jo-text: #2B1B12;
    --jo-muted: #7B6A5E;
    --jo-border: #E8DDD2;
    --jo-radius: 24px;
    --jo-shadow: 0 22px 55px rgba(43, 27, 18, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Anuphan", "Segoe UI", Tahoma, Arial, sans-serif;
    background: var(--jo-warm);
    color: var(--jo-text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea,
.btn,
.navbar,
.dropdown-menu {
    font-family: "Anuphan", "Segoe UI", Tahoma, Arial, sans-serif;
}

a {
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
}

.jo-skip-link {
    position: absolute;
    top: -80px;
    left: 16px;
    background: var(--jo-espresso);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    z-index: 9999;
}

.jo-skip-link:focus {
    top: 16px;
}

/* Topbar */

.jo-topbar {
    background: var(--jo-espresso);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    padding: 9px 0;
}

.jo-topbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.jo-topbar a:hover {
    color: var(--jo-gold-soft);
}

.jo-topbar-contact {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Header / Navbar */

.jo-navbar {
    background: rgba(255, 252, 248, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 221, 210, 0.9);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.jo-brand,
.jo-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--jo-espresso);
}

.jo-brand:hover,
.jo-footer-logo:hover {
    color: var(--jo-espresso);
}

.jo-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--jo-espresso), var(--jo-cocoa));
    color: var(--jo-gold-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: -1px;
    box-shadow: 0 14px 30px rgba(43, 27, 18, 0.22);
}

.jo-brand strong,
.jo-footer-logo strong {
    display: block;
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: -0.3px;
}

.jo-brand small,
.jo-footer-logo small {
    display: block;
    font-size: 0.72rem;
    color: var(--jo-muted);
    margin-top: -2px;
}

.jo-navbar .nav-link {
    color: var(--jo-espresso);
    font-weight: 650;
    padding: 10px 13px !important;
    border-radius: 999px;
}

.jo-navbar .nav-link:hover,
.jo-navbar .nav-link.active {
    background: var(--jo-cream);
    color: var(--jo-cocoa);
}

.jo-toggler {
    border: 1px solid var(--jo-border);
    border-radius: 14px;
    padding: 10px 12px;
    background: #fff;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(199, 154, 99, 0.25);
}

/* Buttons */

.jo-btn-primary {
    background: linear-gradient(135deg, var(--jo-espresso), var(--jo-cocoa));
    border: 0;
    color: #fff;
    border-radius: 999px;
    font-weight: 750;
    padding: 12px 22px;
    box-shadow: 0 14px 30px rgba(43, 27, 18, 0.18);
}

.jo-btn-primary:hover {
    background: var(--jo-espresso);
    color: var(--jo-gold-soft);
    transform: translateY(-2px);
}

.jo-btn-outline {
    border: 1px solid rgba(43, 27, 18, 0.18);
    color: var(--jo-espresso);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    font-weight: 750;
    padding: 12px 22px;
}

.jo-btn-outline:hover {
    background: var(--jo-espresso);
    color: #fff;
    transform: translateY(-2px);
}

.jo-btn-light {
    background: #fff;
    color: var(--jo-espresso);
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    padding: 12px 24px;
}

.jo-btn-light:hover {
    background: var(--jo-cream);
    color: var(--jo-espresso);
    transform: translateY(-2px);
}

/* Hero */

.jo-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 76px;
    background:
        radial-gradient(circle at top left, rgba(199, 154, 99, 0.22), transparent 34%),
        linear-gradient(180deg, #FFFCF8 0%, #F8F1E7 100%);
}

.jo-hero-bg {
    position: absolute;
    right: -180px;
    top: 60px;
    width: 420px;
    height: 420px;
    background: rgba(199, 154, 99, 0.16);
    filter: blur(44px);
    border-radius: 999px;
    z-index: 0;
}

.jo-hero .container {
    position: relative;
    z-index: 1;
}

.jo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--jo-cocoa);
    background: rgba(199, 154, 99, 0.16);
    border: 1px solid rgba(199, 154, 99, 0.28);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 850;
    margin-bottom: 16px;
}

.jo-hero h1 {
    font-size: clamp(2.15rem, 4.8vw, 4.35rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.6px;
    margin-bottom: 22px;
    color: var(--jo-espresso);
}

.jo-hero h1 span {
    color: var(--jo-brown);
}

.jo-hero-lead {
    color: var(--jo-muted);
    font-size: 1.12rem;
    max-width: 620px;
    margin-bottom: 28px;
}

.jo-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.jo-hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.jo-hero-trust div {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--jo-border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 12px 26px rgba(43, 27, 18, 0.06);
}

.jo-hero-trust strong {
    display: block;
    font-size: 1rem;
    color: var(--jo-espresso);
}

.jo-hero-trust span {
    color: var(--jo-muted);
    font-size: 0.88rem;
}

.jo-hero-card {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    background: #fff;
    padding: 12px;
    box-shadow: var(--jo-shadow);
}

.jo-hero-card img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 26px;
    background: var(--jo-cream);
}

.jo-floating-card {
    position: absolute;
    background: rgba(255, 252, 248, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    padding: 13px 16px;
    box-shadow: 0 18px 40px rgba(43, 27, 18, 0.14);
}

.jo-floating-card strong {
    display: block;
    color: var(--jo-espresso);
    font-size: 1.1rem;
    font-weight: 900;
}

.jo-floating-card span {
    color: var(--jo-muted);
    font-size: 0.88rem;
}

.jo-floating-card-1 {
    left: 24px;
    bottom: 28px;
}

.jo-floating-card-2 {
    right: 24px;
    top: 28px;
}

/* Sections */

.jo-section {
    padding: 78px 0;
}

.jo-section-head {
    max-width: 760px;
    margin: 0 auto 36px;
}

.jo-section h2,
.jo-promo h2,
.jo-products h2,
.jo-why h2,
.jo-cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.9rem);
    font-weight: 900;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    color: var(--jo-espresso);
}

.jo-section-head p,
.jo-products p,
.jo-why p,
.jo-cta p {
    color: var(--jo-muted);
    font-size: 1.05rem;
}

/* Service Cards */

.jo-service-card {
    display: block;
    height: 100%;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--jo-border);
    border-radius: var(--jo-radius);
    padding: 26px;
    box-shadow: 0 14px 30px rgba(43, 27, 18, 0.05);
}

.jo-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--jo-shadow);
    border-color: rgba(199, 154, 99, 0.48);
}

.jo-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--jo-cream);
    color: var(--jo-brown);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 20px;
}

.jo-service-card h3 {
    color: var(--jo-espresso);
    font-size: 1.22rem;
    font-weight: 850;
    margin-bottom: 10px;
}

.jo-service-card p {
    color: var(--jo-muted);
    margin: 0;
}

/* Promotion */

.jo-promo {
    position: relative;
    padding: 76px 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(199, 154, 99, 0.20), transparent 32%),
        linear-gradient(180deg, #fffaf3 0%, #f1e2cf 100%);
    border-top: 1px solid rgba(199, 154, 99, 0.18);
    border-bottom: 1px solid rgba(199, 154, 99, 0.18);
}

.jo-promo .container {
    position: relative;
    z-index: 1;
}

.jo-promo-box {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at right top, rgba(232, 201, 148, 0.28), transparent 34%),
        linear-gradient(135deg, #2B1B12 0%, #5B3A29 58%, #7A5238 100%);
    color: #fff;
    border-radius: 34px;
    padding: 48px;
    border: 1px solid rgba(232, 201, 148, 0.42);
    box-shadow:
        0 28px 70px rgba(43, 27, 18, 0.24),
        0 0 0 8px rgba(255, 252, 248, 0.72);
}

.jo-promo-box::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    pointer-events: none;
}

.jo-promo-box .row {
    position: relative;
    z-index: 1;
}

.jo-promo-box .jo-kicker {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(232, 201, 148, 0.48);
    color: #F8E4BD;
}

.jo-promo-box h2 {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.jo-promo-box p {
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 0;
    font-size: 1.06rem;
}

.jo-promo-box .jo-btn-light {
    background: #FFFCF8;
    color: #2B1B12;
    border: 1px solid rgba(232, 201, 148, 0.58);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.jo-promo-box .jo-btn-light:hover {
    background: #E8C994;
    color: #2B1B12;
}

/* Dark mode promotion */
html[data-jo-theme="dark"] .jo-promo {
    background:
        radial-gradient(circle at 12% 20%, rgba(224, 180, 124, 0.12), transparent 32%),
        linear-gradient(180deg, #120c08 0%, #1b120d 100%);
    border-color: #3d2a1f;
}

html[data-jo-theme="dark"] .jo-promo-box {
    background:
        radial-gradient(circle at right top, rgba(224, 180, 124, 0.22), transparent 34%),
        linear-gradient(135deg, #24150f 0%, #3a2418 58%, #5b3a29 100%);
    border-color: rgba(224, 180, 124, 0.38);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.38),
        0 0 0 8px rgba(255, 255, 255, 0.03);
}

html[data-jo-theme="dark"] .jo-promo-box .jo-kicker {
    background: rgba(224, 180, 124, 0.16);
    border-color: rgba(224, 180, 124, 0.42);
    color: #f2d29d;
}

html[data-jo-theme="dark"] .jo-promo-box h2 {
    color: #fff7ed;
}

html[data-jo-theme="dark"] .jo-promo-box p {
    color: rgba(255, 247, 237, 0.78);
}

/* Contrast mode promotion */
html[data-jo-theme="contrast"] .jo-promo {
    background: #000 !important;
    border-top: 2px solid #fff !important;
    border-bottom: 2px solid #fff !important;
}

html[data-jo-theme="contrast"] .jo-promo-box {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #ffff00 !important;
    box-shadow: none !important;
}

html[data-jo-theme="contrast"] .jo-promo-box::before {
    border-color: #fff !important;
}

html[data-jo-theme="contrast"] .jo-promo-box .jo-kicker,
html[data-jo-theme="contrast"] .jo-promo-box .jo-btn-light {
    background: #ffff00 !important;
    color: #000 !important;
    border-color: #ffff00 !important;
}

/* Mobile promotion */
@media (max-width: 767.98px) {
    .jo-promo {
        padding: 54px 0;
    }

    .jo-promo-box {
        border-radius: 24px;
        padding: 32px 22px;
        box-shadow:
            0 18px 42px rgba(43, 27, 18, 0.22),
            0 0 0 5px rgba(255, 252, 248, 0.78);
    }

    .jo-promo-box::before {
        inset: 10px;
        border-radius: 18px;
    }
}

/* Products */

.jo-product-card {
    background: #fff;
    border: 1px solid var(--jo-border);
    border-radius: var(--jo-radius);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 14px 30px rgba(43, 27, 18, 0.05);
}

.jo-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--jo-shadow);
}

.jo-product-card img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    background: var(--jo-cream);
}

.jo-product-card div {
    padding: 22px;
}

.jo-product-card h3 {
    color: var(--jo-espresso);
    font-size: 1.26rem;
    font-weight: 850;
    margin-bottom: 8px;
}

.jo-product-card p {
    color: var(--jo-muted);
    margin: 0;
}

.jo-link-more {
    color: var(--jo-espresso);
    font-weight: 850;
    text-decoration: none;
}

.jo-link-more:hover {
    color: var(--jo-brown);
}

/* Why */

.jo-why {
    background: #fff;
}

.jo-why-card {
    background: var(--jo-warm);
    border: 1px solid var(--jo-border);
    border-radius: var(--jo-radius);
    padding: 24px;
    height: 100%;
}

.jo-why-card strong {
    color: var(--jo-brown);
    font-weight: 900;
    display: block;
    margin-bottom: 10px;
}

.jo-why-card h3 {
    color: var(--jo-espresso);
    font-size: 1.12rem;
    font-weight: 850;
    margin-bottom: 8px;
}

.jo-why-card p {
    color: var(--jo-muted);
    margin: 0;
    font-size: 0.96rem;
}

/* CTA */

.jo-cta {
    padding-bottom: 88px;
}

.jo-cta-box {
    background: #fff;
    border: 1px solid var(--jo-border);
    border-radius: 34px;
    padding: 54px 24px;
    box-shadow: var(--jo-shadow);
}

/* Footer */

.jo-footer {
    background:
        radial-gradient(circle at top left, rgba(199, 154, 99, 0.12), transparent 32%),
        var(--jo-espresso);
    color: rgba(255, 255, 255, 0.78);
    padding: 62px 0 26px;
}

.jo-footer-logo {
    color: #fff;
    margin-bottom: 18px;
}

.jo-footer-logo:hover {
    color: #fff;
}

.jo-footer-logo small {
    color: rgba(255, 255, 255, 0.58);
}

.jo-footer-brand p {
    max-width: 390px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 20px;
}

.jo-footer-title {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 850;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.jo-footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--jo-caramel);
    border-radius: 999px;
}

.jo-footer-menu,
.jo-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jo-footer-menu li,
.jo-footer-contact li {
    margin-bottom: 10px;
}

.jo-footer a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
}

.jo-footer a:hover {
    color: var(--jo-gold-soft);
}

.jo-footer-contact strong {
    color: #fff;
}

.jo-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.jo-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.jo-footer-social a:hover {
    background: var(--jo-caramel);
    color: var(--jo-espresso);
}

.jo-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 40px;
    padding-top: 22px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
}

.jo-footer-bottom span {
    color: rgba(255, 255, 255, 0.28);
    margin: 0 8px;
}

/* Mobile UX */

@media (max-width: 991.98px) {
    .jo-navbar {
        padding: 12px 0;
    }

    .jo-navbar .navbar-collapse {
        padding-top: 16px;
    }

    .jo-navbar .nav-link {
        padding: 12px 14px !important;
        border-radius: 14px;
        margin-bottom: 4px;
    }

    .jo-nav-cta {
        margin-top: 8px;
        width: 100%;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .jo-hero {
        padding: 56px 0 58px;
    }

    .jo-hero-card img {
        height: 420px;
    }

    .jo-hero-trust {
        grid-template-columns: 1fr;
    }

    .jo-section {
        padding: 56px 0;
    }
}

@media (max-width: 767.98px) {
    body {
        line-height: 1.7;
    }

    .jo-topbar {
        display: none;
    }

    .jo-brand small {
        display: none;
    }

    .jo-brand strong {
        font-size: 1rem;
    }

    .jo-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .jo-hero {
        padding: 42px 0 48px;
    }

    .jo-hero h1 {
        letter-spacing: -0.8px;
        margin-bottom: 16px;
    }

    .jo-hero-lead {
        font-size: 1rem;
        margin-bottom: 22px;
    }

    .jo-hero-actions {
        gap: 10px;
    }

    .jo-hero-actions .btn {
        width: 100%;
        min-height: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .jo-hero-trust div {
        padding: 13px 14px;
    }

    .jo-hero-card {
        border-radius: 24px;
        padding: 9px;
    }

    .jo-hero-card img {
        height: 300px;
        border-radius: 18px;
    }

    .jo-floating-card {
        position: static;
        margin-top: 10px;
        box-shadow: 0 10px 24px rgba(43, 27, 18, 0.10);
    }

    .jo-section-head {
        margin-bottom: 26px;
    }

    .jo-service-card,
    .jo-why-card {
        padding: 22px;
        border-radius: 20px;
    }

    .jo-product-card {
        border-radius: 22px;
    }

    .jo-product-card img {
        height: 205px;
    }

    .jo-cta {
        padding-bottom: 60px;
    }

    .jo-cta-box {
        border-radius: 24px;
        padding: 36px 20px;
    }

    .jo-cta-box .btn {
        width: 100%;
        min-height: 50px;
    }

    .jo-footer {
        padding-top: 46px;
    }

    .jo-footer-title {
        margin-top: 10px;
    }

    .jo-footer-bottom,
    .jo-footer-bottom .text-md-end {
        text-align: center !important;
    }
}

@media (max-width: 420px) {
    .jo-hero h1 {
        font-size: 2rem;
    }

    .jo-section h2,
    .jo-promo h2,
    .jo-products h2,
    .jo-why h2,
    .jo-cta h2 {
        font-size: 1.65rem;
    }

    .jo-hero-card img {
        height: 260px;
    }
}

/* Product image popup */
.jo-product-image-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.jo-product-image-btn img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    background: var(--jo-cream);
    display: block;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.jo-product-image-btn:hover img,
.jo-product-image-btn:focus img {
    transform: scale(1.04);
    filter: brightness(0.88);
}

.jo-product-zoom-label {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(43, 27, 18, 0.84);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.22s ease;
}

.jo-product-image-btn:hover .jo-product-zoom-label,
.jo-product-image-btn:focus .jo-product-zoom-label {
    opacity: 1;
    transform: translateY(0);
}

.jo-product-modal .modal-content {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    background: var(--jo-warm);
    box-shadow: 0 30px 80px rgba(43, 27, 18, 0.28);
}

.jo-product-modal .modal-header {
    border-bottom: 1px solid var(--jo-border);
    padding: 22px 24px;
    background: #fff;
}

.jo-product-modal .modal-title {
    color: var(--jo-espresso);
    font-size: 1.35rem;
    font-weight: 850;
    margin: 0;
}

.jo-product-modal-desc {
    color: var(--jo-muted);
    font-size: 0.95rem;
}

.jo-product-modal .modal-body {
    padding: 14px;
}

.jo-product-modal-img {
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    display: block;
    border-radius: 20px;
    background: var(--jo-cream);
}

@media (max-width: 767.98px) {
    .jo-product-image-btn img {
        height: 205px;
    }

    .jo-product-zoom-label {
        opacity: 1;
        transform: none;
        font-size: 0.78rem;
    }

    .jo-product-modal .modal-dialog {
        margin: 12px;
    }

    .jo-product-modal .modal-header {
        padding: 18px;
    }

    .jo-product-modal .modal-title {
        font-size: 1.15rem;
    }

    .jo-product-modal .modal-body {
        padding: 10px;
    }

    .jo-product-modal-img {
        max-height: 70vh;
        border-radius: 16px;
    }
}

/* =========================================================
   January Optical Theme Mode
   Light / Dark / Contrast
   ========================================================= */

html[data-jo-theme="light"] {
    color-scheme: light;
}

html[data-jo-theme="dark"] {
    color-scheme: dark;

    --jo-espresso: #130c08;
    --jo-cocoa: #24150f;
    --jo-brown: #c99a68;
    --jo-caramel: #e0b47c;
    --jo-gold-soft: #f2d29d;
    --jo-cream: #241711;
    --jo-warm: #120c08;
    --jo-card: #1b120d;
    --jo-text: #fff7ed;
    --jo-muted: #d6c2af;
    --jo-border: #3d2a1f;
    --jo-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

html[data-jo-theme="contrast"] {
    color-scheme: dark;

    --jo-espresso: #000000;
    --jo-cocoa: #000000;
    --jo-brown: #ffff00;
    --jo-caramel: #ffff00;
    --jo-gold-soft: #ffff00;
    --jo-cream: #000000;
    --jo-warm: #000000;
    --jo-card: #000000;
    --jo-text: #ffffff;
    --jo-muted: #ffffff;
    --jo-border: #ffffff;
    --jo-shadow: none;
}

/* Theme buttons */
.jo-theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(199, 154, 99, 0.14);
    border: 1px solid rgba(199, 154, 99, 0.28);
}

.jo-theme-btn {
    border: 0;
    background: transparent;
    color: var(--jo-espresso);
    font-family: "Anuphan", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 9px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jo-theme-btn:hover {
    background: rgba(199, 154, 99, 0.22);
}

.jo-theme-btn.is-active {
    background: var(--jo-espresso);
    color: #fff;
}

/* Dark mode */
html[data-jo-theme="dark"] body {
    background: var(--jo-warm);
    color: var(--jo-text);
}

html[data-jo-theme="dark"] .jo-navbar {
    background: rgba(19, 12, 8, 0.96);
    border-bottom-color: var(--jo-border);
}

html[data-jo-theme="dark"] .jo-brand,
html[data-jo-theme="dark"] .jo-navbar .nav-link,
html[data-jo-theme="dark"] .jo-link-more {
    color: var(--jo-text);
}

html[data-jo-theme="dark"] .jo-navbar .nav-link:hover,
html[data-jo-theme="dark"] .jo-navbar .nav-link.active {
    background: rgba(224, 180, 124, 0.16);
    color: var(--jo-gold-soft);
}

html[data-jo-theme="dark"] .jo-hero {
    background:
        radial-gradient(circle at top left, rgba(224, 180, 124, 0.15), transparent 34%),
        linear-gradient(180deg, #18100b 0%, #120c08 100%);
}

html[data-jo-theme="dark"] .jo-service-card,
html[data-jo-theme="dark"] .jo-product-card,
html[data-jo-theme="dark"] .jo-why,
html[data-jo-theme="dark"] .jo-cta-box,
html[data-jo-theme="dark"] .jo-hero-trust div,
html[data-jo-theme="dark"] .jo-hero-card,
html[data-jo-theme="dark"] .jo-why-card {
    background: var(--jo-card);
    border-color: var(--jo-border);
    color: var(--jo-text);
}

html[data-jo-theme="dark"] h1,
html[data-jo-theme="dark"] h2,
html[data-jo-theme="dark"] h3,
html[data-jo-theme="dark"] .jo-service-card h3,
html[data-jo-theme="dark"] .jo-product-card h3,
html[data-jo-theme="dark"] .jo-why-card h3,
html[data-jo-theme="dark"] .jo-hero h1,
html[data-jo-theme="dark"] .jo-section h2 {
    color: var(--jo-text);
}

html[data-jo-theme="dark"] p,
html[data-jo-theme="dark"] .jo-hero-lead,
html[data-jo-theme="dark"] .jo-section-head p,
html[data-jo-theme="dark"] .jo-products p,
html[data-jo-theme="dark"] .jo-why p,
html[data-jo-theme="dark"] .jo-cta p,
html[data-jo-theme="dark"] .jo-service-card p,
html[data-jo-theme="dark"] .jo-product-card p,
html[data-jo-theme="dark"] .jo-why-card p,
html[data-jo-theme="dark"] .jo-hero-trust span {
    color: var(--jo-muted);
}

html[data-jo-theme="dark"] .jo-btn-outline {
    background: transparent;
    border-color: var(--jo-border);
    color: var(--jo-text);
}

html[data-jo-theme="dark"] .jo-btn-outline:hover {
    background: var(--jo-caramel);
    color: #130c08;
}

html[data-jo-theme="dark"] .jo-theme-switcher {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--jo-border);
}

html[data-jo-theme="dark"] .jo-theme-btn {
    color: var(--jo-text);
}

html[data-jo-theme="dark"] .jo-theme-btn.is-active {
    background: var(--jo-caramel);
    color: #130c08;
}

/* Contrast mode */
html[data-jo-theme="contrast"] body {
    background: #000 !important;
    color: #fff !important;
}

html[data-jo-theme="contrast"] .jo-topbar,
html[data-jo-theme="contrast"] .jo-navbar,
html[data-jo-theme="contrast"] .jo-footer,
html[data-jo-theme="contrast"] .jo-hero,
html[data-jo-theme="contrast"] .jo-why {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

html[data-jo-theme="contrast"] .jo-service-card,
html[data-jo-theme="contrast"] .jo-product-card,
html[data-jo-theme="contrast"] .jo-why-card,
html[data-jo-theme="contrast"] .jo-cta-box,
html[data-jo-theme="contrast"] .jo-hero-card,
html[data-jo-theme="contrast"] .jo-hero-trust div,
html[data-jo-theme="contrast"] .jo-promo-box {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
}

html[data-jo-theme="contrast"] h1,
html[data-jo-theme="contrast"] h2,
html[data-jo-theme="contrast"] h3,
html[data-jo-theme="contrast"] p,
html[data-jo-theme="contrast"] span,
html[data-jo-theme="contrast"] strong,
html[data-jo-theme="contrast"] small,
html[data-jo-theme="contrast"] .nav-link,
html[data-jo-theme="contrast"] .jo-brand,
html[data-jo-theme="contrast"] .jo-link-more {
    color: #fff !important;
}

html[data-jo-theme="contrast"] a {
    color: #ffff00 !important;
}

html[data-jo-theme="contrast"] .jo-btn-primary,
html[data-jo-theme="contrast"] .jo-btn-outline,
html[data-jo-theme="contrast"] .jo-btn-light {
    background: #ffff00 !important;
    color: #000 !important;
    border: 2px solid #ffff00 !important;
    box-shadow: none !important;
}

html[data-jo-theme="contrast"] .jo-kicker,
html[data-jo-theme="contrast"] .jo-service-icon,
html[data-jo-theme="contrast"] .jo-theme-btn.is-active {
    background: #ffff00 !important;
    color: #000 !important;
    border: 2px solid #ffff00 !important;
}

html[data-jo-theme="contrast"] .jo-theme-switcher {
    background: #000 !important;
    border: 2px solid #fff !important;
}

html[data-jo-theme="contrast"] .jo-theme-btn {
    color: #fff !important;
    border: 1px solid #fff;
}

/* Mobile theme switcher */
@media (max-width: 991.98px) {
    .jo-theme-switcher {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
        border-radius: 16px;
    }

    .jo-theme-btn {
        flex: 1;
        min-height: 42px;
    }
}

/* =========================================================
   Clean Mobile Hamburger Button
   ไม่ให้เพี้ยน / ไม่ให้กลืนพื้นหลัง
   ========================================================= */

.jo-toggler {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(91, 58, 41, 0.24);
    background: rgba(255, 252, 248, 0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(43, 27, 18, 0.08);
}

.jo-toggler:focus {
    box-shadow: 0 0 0 3px rgba(199, 154, 99, 0.28);
}

.jo-toggler .navbar-toggler-icon {
    width: 24px;
    height: 18px;
    background-image: none !important;
    position: relative;
    display: block;
}

.jo-toggler .navbar-toggler-icon::before,
.jo-toggler .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--jo-espresso);
    transition: all 0.2s ease;
}

.jo-toggler .navbar-toggler-icon::before {
    top: 0;
    box-shadow: 0 8px 0 var(--jo-espresso);
}

.jo-toggler .navbar-toggler-icon::after {
    top: 16px;
}

html[data-jo-theme="dark"] .jo-toggler {
    background: #241711;
    border-color: #5b4030;
}

html[data-jo-theme="dark"] .jo-toggler .navbar-toggler-icon::before,
html[data-jo-theme="dark"] .jo-toggler .navbar-toggler-icon::after {
    background: #f2d29d;
}

html[data-jo-theme="dark"] .jo-toggler .navbar-toggler-icon::before {
    box-shadow: 0 8px 0 #f2d29d;
}

html[data-jo-theme="contrast"] .jo-toggler {
    background: #000 !important;
    border: 2px solid #ffff00 !important;
    box-shadow: none !important;
}

html[data-jo-theme="contrast"] .jo-toggler .navbar-toggler-icon::before,
html[data-jo-theme="contrast"] .jo-toggler .navbar-toggler-icon::after {
    background: #ffff00 !important;
}

html[data-jo-theme="contrast"] .jo-toggler .navbar-toggler-icon::before {
    box-shadow: 0 8px 0 #ffff00 !important;
}

/* =========================================================
   Font Size Mode: Small / Normal / Large
   ========================================================= */

:root {
    --jo-font-scale: 1;
}

html[data-jo-font="small"] {
    --jo-font-scale: 0.94;
}

html[data-jo-font="normal"] {
    --jo-font-scale: 1;
}

html[data-jo-font="large"] {
    --jo-font-scale: 1.12;
}

html {
    font-size: calc(16px * var(--jo-font-scale));
}

.jo-font-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(199, 154, 99, 0.14);
    border: 1px solid rgba(199, 154, 99, 0.28);
}

.jo-font-btn {
    border: 0;
    background: transparent;
    color: var(--jo-espresso);
    font-family: "Anuphan", "Segoe UI", Tahoma, Arial, sans-serif;
    font-weight: 800;
    line-height: 1;
    padding: 9px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jo-font-btn[data-jo-font-btn="small"] {
    font-size: 0.74rem;
}

.jo-font-btn[data-jo-font-btn="normal"] {
    font-size: 0.86rem;
}

.jo-font-btn[data-jo-font-btn="large"] {
    font-size: 1rem;
}

.jo-font-btn:hover {
    background: rgba(199, 154, 99, 0.22);
}

.jo-font-btn.is-active {
    background: var(--jo-espresso);
    color: #fff;
}

html[data-jo-theme="dark"] .jo-font-switcher {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--jo-border);
}

html[data-jo-theme="dark"] .jo-font-btn {
    color: var(--jo-text);
}

html[data-jo-theme="dark"] .jo-font-btn.is-active {
    background: var(--jo-caramel);
    color: #130c08;
}

html[data-jo-theme="contrast"] .jo-font-switcher {
    background: #000 !important;
    border: 2px solid #fff !important;
}

html[data-jo-theme="contrast"] .jo-font-btn {
    color: #fff !important;
    border: 1px solid #fff;
}

html[data-jo-theme="contrast"] .jo-font-btn.is-active {
    background: #ffff00 !important;
    color: #000 !important;
    border: 2px solid #ffff00 !important;
}

@media (max-width: 991.98px) {
    .jo-font-switcher {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
        border-radius: 16px;
    }

    .jo-font-btn {
        flex: 1;
        min-height: 42px;
    }
}

/* =========================================================
   Header Logo Dark Mode Visibility Fix
   แก้เฉพาะโลโก้ด้านบน ไม่กระทบ Footer
   ========================================================= */

.jo-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 18px;
    line-height: 1;
}

.jo-logo-img {
    width: 190px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

/* Dark mode: รองพื้นเฉพาะโลโก้ Header */
html[data-jo-theme="dark"] .jo-brand-logo {
    background: #FFFCF8;
    border: 1px solid rgba(232, 201, 148, 0.42);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

/* Contrast mode: เฉพาะโลโก้ Header */
html[data-jo-theme="contrast"] .jo-brand-logo {
    background: #ffffff !important;
    border: 2px solid #ffff00 !important;
    box-shadow: none !important;
}

/* Mobile header logo */
@media (max-width: 767.98px) {
    .jo-brand-logo {
        padding: 5px 8px;
        border-radius: 15px;
    }

    .jo-logo-img {
        width: 150px;
        max-height: 48px;
    }
}

