/* =========================================================
   My Little Boss Design System
   Direction: The Easy Bite Studio
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Noto+Sans+Thai:wght@400;500;600;700;800&family=Nunito:wght@500;600;700;800&display=swap');

:root {
  --mlb-green-900: #063d2c;
  --mlb-green-800: #084b35;
  --mlb-green-700: #0d5e43;
  --mlb-green-100: #e8f3e6;
  --mlb-red-600: #ef342f;
  --mlb-red-500: #ff4d38;
  --mlb-yellow-500: #f8c31a;
  --mlb-yellow-100: #fff3c6;
  --mlb-blue-200: #cfe8fb;
  --mlb-blue-300: #abd3f0;
  --mlb-rice-50: #fffdf8;
  --mlb-rice-100: #fff8ee;
  --mlb-rice-200: #f7ecdc;
  --mlb-sesame: #1d2d28;
  --mlb-muted: #66756f;
  --mlb-line: #06c755;
  --mlb-border: rgba(6, 61, 44, 0.16);
  --mlb-border-soft: rgba(6, 61, 44, 0.09);
  --mlb-shadow-soft: 0 18px 48px rgba(6, 61, 44, 0.12);
  --mlb-shadow-card: 0 12px 28px rgba(6, 61, 44, 0.1);
  --mlb-font-display: "Baloo 2", "Noto Sans Thai", system-ui, sans-serif;
  --mlb-font-body: "Nunito", "Noto Sans Thai", system-ui, sans-serif;
  --mlb-font-thai: "Noto Sans Thai", "Nunito", system-ui, sans-serif;
  --mlb-max: 1240px;
  --mlb-radius-sm: 8px;
  --mlb-radius-md: 14px;
  --mlb-radius-lg: 24px;
  --mlb-radius-xl: 34px;
  --mlb-radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mlb-rice-50);
  color: var(--mlb-sesame);
  font-family: var(--mlb-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lang-th {
  font-family: var(--mlb-font-thai);
}

[data-th] {
  display: none !important;
}

[data-en] {
  display: inline !important;
}

body.lang-th [data-en] {
  display: none !important;
}

body.lang-th [data-th] {
  display: inline !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.mlb-page {
  overflow: hidden;
  background: var(--mlb-rice-50);
}

.mlb-shell {
  width: min(100% - 56px, var(--mlb-max));
  margin: 0 auto;
}

.mlb-section {
  padding: 72px 0;
}

.mlb-section-tight {
  padding: 48px 0;
}

.mlb-band {
  background: #fff;
}

.mlb-soft-band {
  background: var(--mlb-rice-100);
}

.mlb-title {
  font-family: var(--mlb-font-display);
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--mlb-green-900);
  font-weight: 800;
}

body.lang-th .mlb-title,
body.lang-th .mlb-display {
  font-family: var(--mlb-font-thai);
  font-weight: 800;
}

.mlb-title .red,
.mlb-display .red {
  color: var(--mlb-red-600);
}

.mlb-copy {
  color: var(--mlb-muted);
  font-size: 18px;
  line-height: 1.72;
}

.mlb-center {
  text-align: center;
}

.mlb-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 18px 0;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0));
}

.mlb-nav {
  width: min(100%, 1404px);
  min-height: 96px;
  margin: 0 auto;
  padding: 12px 28px 12px 24px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--mlb-border-soft);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(6, 61, 44, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mlb-logo {
  width: 112px;
}

.mlb-nav-links {
  display: flex;
  justify-content: center;
  gap: 54px;
  color: var(--mlb-green-900);
  font-weight: 800;
  font-size: 15px;
}

.mlb-nav-links a {
  padding: 10px 0;
}

.mlb-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mlb-lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mlb-green-900);
  font-size: 12px;
  font-weight: 800;
}

.mlb-lang button {
  padding: 4px 2px;
  opacity: 0.62;
}

.mlb-lang button.active {
  opacity: 1;
}

.mlb-btn {
  min-height: 46px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--mlb-radius-sm);
  border: 1px solid transparent;
  font-family: var(--mlb-font-thai);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.mlb-btn:hover {
  transform: translateY(-1px);
}

.mlb-btn-line {
  background: linear-gradient(180deg, #16d964 0%, var(--mlb-line) 100%);
  color: #fff;
  box-shadow: 0 11px 22px rgba(6, 199, 85, 0.28);
}

.mlb-btn-ghost {
  background: #fff;
  color: var(--mlb-green-900);
  border-color: var(--mlb-border);
  box-shadow: 0 6px 14px rgba(6, 61, 44, 0.06);
}

.mlb-btn-large {
  min-height: 58px;
  padding: 15px 24px;
  font-size: 17px;
}

.mlb-line-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--mlb-line);
  font-family: var(--mlb-font-display);
  font-size: 10px;
  font-weight: 800;
  flex: 0 0 auto;
}

.mlb-icon-box {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--mlb-radius-sm);
  border: 1px solid var(--mlb-border);
  background: #fff;
  color: var(--mlb-green-800);
}

.mlb-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid var(--mlb-border);
  border-radius: var(--mlb-radius-pill);
  background: rgba(255, 255, 255, 0.82);
  color: var(--mlb-green-900);
  font-size: 14px;
  font-weight: 800;
}

.mlb-card {
  border: 1px solid var(--mlb-border-soft);
  border-radius: var(--mlb-radius-lg);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--mlb-shadow-card);
}

.mlb-hash {
  color: var(--mlb-red-600);
  font-family: var(--mlb-font-display);
  font-weight: 800;
}

.mlb-mobile-menu,
.mlb-hamburger,
.mlb-sticky-cta {
  display: none;
}

.mlb-mobile-line-cta {
  display: none;
}

.mlb-hamburger {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--mlb-radius-sm);
  border: 1px solid var(--mlb-border);
  background: #fff;
}

.mlb-hamburger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--mlb-green-900);
  box-shadow: 0 6px 0 var(--mlb-green-900), 0 -6px 0 var(--mlb-green-900);
}

@media (max-width: 980px) {
  .mlb-shell {
    width: min(100% - 36px, var(--mlb-max));
  }

  .mlb-section {
    padding: 58px 0;
  }

  .mlb-nav {
    position: relative;
    display: flex;
    min-height: 78px;
    gap: 10px;
    padding: 10px 116px 10px 18px;
  }

  .mlb-nav > a:first-child {
    margin-right: 0;
  }

  .mlb-logo {
    width: 92px;
  }

  .mlb-nav-links,
  .mlb-nav-actions {
    display: none;
  }

  .mlb-nav-actions {
    position: absolute;
    top: 50%;
    right: 64px;
    transform: translateY(-50%);
    display: flex;
    flex: 0 0 auto;
    margin-left: 0;
    justify-content: flex-end;
    gap: 0;
  }

  .mlb-nav-actions .mlb-lang {
    flex-direction: row-reverse;
    min-height: 38px;
    padding: 5px 10px;
    border: 1px solid var(--mlb-border);
    border-radius: var(--mlb-radius-pill);
    background: #fff;
  }

  .mlb-nav-actions .mlb-lang span {
    font-size: 0;
  }

  .mlb-nav-actions .mlb-lang span::before {
    content: "/";
    font-size: 12px;
  }

  .mlb-nav-actions .mlb-btn-line {
    display: none;
  }

  .mlb-hamburger {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    flex: 0 0 auto;
    display: inline-flex;
  }

  .mlb-mobile-menu.open {
    display: flex;
  }

  .mlb-mobile-menu {
    position: fixed;
    inset: 96px 18px auto;
    z-index: 60;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    border: 1px solid var(--mlb-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--mlb-shadow-soft);
  }

  .mlb-mobile-menu a,
  .mlb-mobile-menu button {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-weight: 800;
  }

  .mlb-mobile-menu a {
    padding: 8px 0;
  }

  body .mlb-sticky-cta,
  .mlb-page .mlb-sticky-cta {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 40;
    display: block;
  }

  .mlb-mobile-line-cta {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 40;
    display: block;
  }

  .mlb-sticky-cta .mlb-btn,
  .mlb-mobile-line-cta .mlb-btn {
    width: 100%;
    box-shadow: 0 14px 26px rgba(6, 199, 85, 0.35);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .mlb-shell {
    width: min(100% - 28px, var(--mlb-max));
  }

  .mlb-title {
    font-size: 30px;
    line-height: 1.2;
  }

  .mlb-copy {
    font-size: 16px;
  }

  .mlb-sticky-cta,
  .mlb-mobile-line-cta {
    right: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    left: 50%;
    width: auto;
    transform: translateX(-50%);
  }

  .mlb-sticky-cta .mlb-btn,
  .mlb-mobile-line-cta .mlb-btn {
    width: auto;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: var(--mlb-radius-pill);
    font-size: 15px;
    box-shadow: 0 8px 18px rgba(6, 199, 85, 0.28);
  }

  .mlb-sticky-cta .mlb-line-icon,
  .mlb-mobile-line-cta .mlb-line-icon {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }

  .mlb-nav-wrap {
    padding: 10px 10px 0;
  }
}
