:root {
    --bg: #fffbf5;
    --bg-warm: #fff7ed;
    --bg-card: #ffffff;
    --bg-dark: #1c1710;
    --gold-50: #fff8e7;
    --gold-100: #ffefc2;
    --gold-200: #ffe49a;
    --gold-400: #f0c040;
    --gold-500: #d4a32a;
    --gold-600: #b8891a;
    --orange-50: #fff3e8;
    --orange-100: #ffe0c2;
    --orange-400: #ff9a50;
    --orange-500: #ff7a28;
    --orange-600: #e86510;
    --text-dark: #0f0c08;
    --text: #1c1710;
    --text-soft: #3d3428;
    --text-muted: #6b5f4e;
    --line: #06c755;
    --line-dark: #05a847;
    --border: rgba(180, 160, 130, 0.2);
    --border-strong: rgba(180, 160, 130, 0.35);
    --shadow-sm: 0 2px 8px rgba(140, 120, 80, 0.07);
    --shadow-md: 0 4px 20px rgba(140, 120, 80, 0.09);
    --shadow-lg: 0 12px 40px rgba(140, 120, 80, 0.12);
    --shadow-warm: 0 8px 32px rgba(212, 163, 42, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --max-w: 1160px;
    --nav-h: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: Outfit, "Noto Sans Thai", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3 {
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.wrap {
    width: min(var(--max-w), calc(100% - 32px));
    margin-inline: auto;
}

.grad {
    background: linear-gradient(135deg, var(--orange-500), var(--gold-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius-full);
    padding: 12px 18px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange-500), var(--gold-500));
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 122, 40, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 122, 40, 0.35);
}

.btn-line {
    background: var(--line);
    color: #fff;
}

.btn-line:hover {
    background: var(--line-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    border: 1.5px solid var(--border-strong);
}

.btn-ghost:hover {
    background: #fff;
    border-color: var(--gold-400);
    color: var(--gold-600);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--gold-50);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--bg-dark);
    color: #fff;
}

.btn-dark:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 22px;
    font-size: 1rem;
}

.btn-sm {
    padding: 9px 14px;
    font-size: 0.84rem;
    border-radius: 12px;
}

.btn:focus-visible,
.topbar a:focus-visible,
.product a:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 2px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #fff;
}

.mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex: none;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--orange-400), var(--gold-400));
}

.brand-name {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.brand-sub {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 18px;
}

.nav-desktop a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-desktop a:hover {
    color: var(--gold-400);
}

.top-actions {
    display: flex;
    gap: 8px;
    flex: none;
}

.hero {
    position: relative;
    padding: 28px 0 40px;
    background:
        radial-gradient(820px 360px at 100% -10%, #ffe0c2, transparent 62%),
        radial-gradient(640px 320px at -8% 10%, #fff3c4, transparent 58%),
        var(--bg);
}

.hero-grid {
    display: grid;
    gap: 22px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    color: var(--gold-600);
    font-size: 0.8rem;
    font-weight: 700;
}

.pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange-500);
    font-style: normal;
}

.hero h1 {
    font-size: clamp(1.85rem, 5vw, 3.15rem);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 14px;
}

.hero h1 em {
    font-style: normal;
}

.lead {
    max-width: 38em;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.facts li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.facts b {
    display: block;
    font-size: 0.95rem;
}

.facts span {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.hero-card,
.card,
.acc,
.step,
.branch,
.product {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.hero-card {
    border-radius: var(--radius-xl);
    padding: 22px 18px;
}

.hero-card h2 {
    font-size: 1.08rem;
    margin-bottom: 12px;
}

.offer-list {
    display: grid;
    gap: 10px;
}

.offer-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--bg-warm);
    border-radius: 14px;
    padding: 12px;
}

.ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex: none;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--orange-500);
    box-shadow: var(--shadow-sm);
}

.offer-list b,
.card h3,
.product h3,
.branch h3 {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
}

.offer-list span,
.card p,
.sec-desc,
.step span,
.meta {
    color: var(--text-muted);
}

.offer-list span {
    font-size: 0.84rem;
}

section {
    padding: 56px 0;
    scroll-margin-top: 88px;
}

.band {
    background: #fff;
}

.sec-kicker {
    color: var(--gold-600);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sec-title {
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    margin: 6px 0 8px;
}

.sec-desc {
    max-width: 40em;
    margin-bottom: 22px;
}

.cards,
.acc-grid,
.products,
.steps,
.branches {
    display: grid;
    gap: 14px;
}

.card {
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover,
.product:hover,
.branch:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-warm);
    border-color: var(--gold-200);
}

.card .ico {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    background: var(--bg-warm);
}

.card h3,
.product h3 {
    margin-bottom: 6px;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.ask {
    margin-top: auto;
    margin-bottom: 12px;
    color: var(--orange-600);
    font-weight: 700;
}

.acc-grid {
    grid-template-columns: 1fr 1fr;
}

.acc {
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
}

.acc .ico {
    margin: 0 auto 8px;
}

.acc b {
    display: block;
    font-size: 0.95rem;
}

.acc span {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.catalog-head {
    margin-top: 36px;
}

.products {
    grid-template-columns: 1fr;
}

.product {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.product img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: #fff;
    padding: 12px;
}

.product-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product h3 {
    font-size: 1rem;
    min-height: 2.4em;
}

.price {
    color: var(--orange-600);
    font-size: 1.25rem;
    font-weight: 700;
}

.product .btn {
    margin-top: auto;
}

.steps {
    counter-reset: step;
}

.step {
    border-radius: var(--radius-md);
    padding: 18px 16px 16px;
}

.step b {
    display: block;
    margin: 8px 0 4px;
}

.num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--orange-500), var(--gold-400));
}

.branch {
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    display: grid;
    gap: 8px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.meta {
    display: grid;
    gap: 4px;
    font-size: 0.92rem;
}

.meta a {
    color: var(--text-dark);
    font-weight: 700;
}

.meta a:hover,
footer a:hover {
    color: var(--orange-600);
}

.branch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.cta-box {
    background: linear-gradient(135deg, var(--orange-500), var(--gold-500));
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 36px 20px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(255, 122, 40, 0.22);
}

.cta-box h2 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
}

.cta-box .hero-cta {
    justify-content: center;
}

.note-en {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.note-en a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.78);
    padding: 48px 0 28px;
}

.foot-grid {
    display: grid;
    gap: 26px;
}

footer h2,
footer h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 10px;
}

footer p,
footer li,
footer a {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
}

footer a:hover {
    color: var(--gold-400);
}

.foot-links {
    display: grid;
    gap: 6px;
}

.foot-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.copy {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.dock {
    position: sticky;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 251, 245, 0.96);
    border-top: 1px solid var(--border);
}

.dock .btn {
    border-radius: 14px;
    padding: 13px 8px;
}

@media (min-width: 720px) {
    .facts {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
        gap: 36px;
    }

    .cards,
    .products,
    .branches {
        grid-template-columns: 1fr 1fr;
    }

    .acc-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .foot-grid {
        grid-template-columns: 1.4fr 0.8fr 0.9fr;
    }
}

@media (min-width: 960px) {
    body {
        padding-bottom: 0;
    }

    .nav-desktop {
        display: flex;
    }

    .cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .products {
        grid-template-columns: repeat(3, 1fr);
    }

    .branches {
        grid-template-columns: repeat(3, 1fr);
    }

    .dock {
        display: none;
    }
}

@media (min-width: 1200px) {
    .products {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .card,
    .product,
    .branch {
        transition: none;
    }
}
