/* PADTHAI MAK — Warm Bangkok Street-Wok Editorial */

@font-face {
  font-family: "Kanit";
  src: url("../fonts/Kanit-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kanit";
  src: url("../fonts/Kanit-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Prompt";
  src: url("../fonts/Prompt-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Prompt";
  src: url("../fonts/Prompt-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sarabun";
  src: url("../fonts/Sarabun-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sarabun";
  src: url("../fonts/Sarabun-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FBF6EE;
  --tamarind: #C94A14;
  --tamarind-dark: #9C360C;
  --peanut: #E89B2D;
  --peanut-deep: #C47D16;
  --charcoal: #1E1916;
  --ink: #3A322C;
  --muted: #6B5E54;
  --line: #E8DCCB;
  --card: #FFFFFF;
  --shadow: 0 10px 28px rgba(30, 25, 22, 0.08);
  --radius: 16px;
  --header-h: 72px;
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Sarabun", "Tahoma", sans-serif;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  min-width: 0;
}

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

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

button,
input {
  font: inherit;
}

h1, h2, h3 {
  font-family: "Kanit", "Sarabun", sans-serif;
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 238, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding: 8px 0;
}

.logo {
  font-family: "Kanit", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--tamarind);
  white-space: nowrap;
}

.logo span {
  color: var(--charcoal);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.nav a {
  font-family: "Prompt", "Sarabun", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  border-radius: 999px;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--tamarind);
  background: rgba(201, 74, 20, 0.08);
  outline: none;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  background: var(--cream);
}

.hero-copy {
  padding: 36px 16px 28px;
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.eyebrow {
  font-family: "Prompt", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tamarind);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--tamarind);
  display: block;
}

.hero-lead {
  margin: 16px 0 24px;
  color: var(--ink);
  font-size: 1.05rem;
  max-width: 38ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: "Prompt", "Sarabun", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  background: var(--tamarind);
  color: #fff;
  box-shadow: 0 8px 18px rgba(201, 74, 20, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--tamarind-dark);
  outline: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  box-shadow: none;
  border: 1.5px solid var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: #fff;
  color: var(--tamarind);
  border-color: var(--tamarind);
}

.hero-media {
  margin: 0;
  min-width: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 16px 0;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    min-height: calc(100vh - var(--header-h));
    max-height: 820px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 56px 24px 56px clamp(24px, 5vw, 72px);
    width: auto;
    margin: 0;
    max-width: none;
  }

  .hero-media {
    min-height: 100%;
  }

  .hero-media img {
    height: 100%;
    min-height: 520px;
    aspect-ratio: auto;
  }

  .hero-caption {
    display: none;
  }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 46ch;
}

.kicker {
  font-family: "Prompt", sans-serif;
  font-weight: 500;
  color: var(--peanut-deep);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin: 0 0 6px;
}

/* Signature trio */
.trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.trio-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.trio-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.trio-body {
  padding: 16px 18px 20px;
}

.trio-num {
  font-family: "Kanit", sans-serif;
  font-size: 0.8rem;
  color: var(--peanut);
  letter-spacing: 0.12em;
}

.trio-body h3 {
  font-size: 1.25rem;
  margin-top: 2px;
}

.latin {
  display: block;
  font-family: "Prompt", sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 2px 0 8px;
}

.price {
  font-family: "Kanit", sans-serif;
  font-weight: 600;
  color: var(--tamarind);
  font-size: 1.15rem;
}

@media (min-width: 700px) {
  .trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Filters + menu grid */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.filter-btn {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: "Prompt", "Sarabun", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--tamarind);
  color: var(--tamarind);
  outline: none;
}

.filter-btn.is-active {
  background: var(--tamarind);
  border-color: var(--tamarind);
  color: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card.is-hidden {
  display: none;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eee5d6;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card-body h3 {
  font-size: 1.12rem;
  font-weight: 600;
  font-family: "Kanit", sans-serif;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.95rem;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.add-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--peanut);
  color: var(--charcoal);
  font-family: "Prompt", "Sarabun", sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}

.add-btn:hover,
.add-btn:focus-visible {
  background: var(--peanut-deep);
  color: #fff;
  outline: none;
}

.add-btn.is-added {
  background: var(--tamarind);
  color: #fff;
}

/* Order + contact */
.order-section {
  background: #fff7ea;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 880px) {
  .order-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tamarind);
  color: #fff;
  font-family: "Kanit", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  font-size: 1.05rem;
}

.steps p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.order-panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  min-width: 0;
}

.order-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 72px;
}

.order-empty {
  color: var(--muted);
  margin: 0;
  padding: 12px 0;
}

.order-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.order-item .name {
  font-family: "Sarabun", sans-serif;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-item .sub {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: "Prompt", sans-serif;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.qty-btn,
.remove-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover,
.remove-btn:hover,
.qty-btn:focus-visible,
.remove-btn:focus-visible {
  border-color: var(--tamarind);
  color: var(--tamarind);
  outline: none;
}

.qty-val {
  min-width: 1.5ch;
  text-align: center;
  font-family: "Kanit", sans-serif;
  font-weight: 600;
}

.line-price {
  grid-column: 1 / -1;
  text-align: right;
  color: var(--tamarind);
  font-family: "Kanit", sans-serif;
  font-weight: 600;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0;
  font-size: 1.15rem;
  font-family: "Kanit", sans-serif;
  font-weight: 700;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-note {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.copy-note.is-ok {
  color: #2c6b2f;
}

.price-note {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-list .label {
  font-family: "Prompt", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-value {
  overflow-wrap: anywhere;
}

.contact-value.is-pending {
  color: var(--muted);
  font-style: italic;
}

/* Footer */
.site-footer {
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer strong {
  font-family: "Kanit", sans-serif;
  color: var(--charcoal);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.site-footer p {
  margin: 6px 0 0;
}

/* Skip link */
.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--tamarind);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 50;
}

.skip:focus {
  top: 8px;
}
