/* Bloom & Crust — static build, polished from the React original. */
:root {
  --bg: #FDF8F3;
  --bg-alt: #F5EDE4;
  --surface: #FFFFFF;
  --accent: #C4733B;          /* brand terracotta: fills, rules, icons */
  --accent-strong: #A4571F;   /* text-safe and button fill (white text 4.9:1) */
  --accent-soft: rgba(196, 115, 59, 0.10);
  --honey: #E8A87C;
  --text: #3D2B1F;
  --text-muted: #735A40;      /* 5.9:1 on --bg */
  --line: rgba(61, 43, 31, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(61, 43, 31, 0.28);
  --font: 'Inter', 'Noto Sans Thai', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  accent-color: var(--accent);
  scrollbar-color: rgba(61, 43, 31, 0.28) var(--bg);
}
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(196, 115, 59, 0.24); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }

/* LANGUAGE */
.th, .th-i { display: none; }
.en { display: block; }
.en-i { display: inline; }
body.lang-th .en, body.lang-th .en-i { display: none; }
body.lang-th .th { display: block; }
body.lang-th .th-i { display: inline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 243, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-size: 22px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--accent-strong); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none;
  opacity: 0.72; padding: 6px 0; position: relative; transition: opacity 0.2s;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { transform: scaleX(1); }
.lang-switch {
  min-width: 56px; min-height: 44px; padding: 6px 18px;
  border: 1.5px solid var(--line); border-radius: 999px; background: transparent;
  font: 600 13px/1 var(--font); color: var(--text); cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.lang-switch:hover { background: var(--text); border-color: var(--text); color: #fff; }

.hamburger {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.nav.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .hamburger span:nth-child(2) { opacity: 0; }
.nav.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font: 700 15px/1 var(--font); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #8F4A18; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(164, 87, 31, 0.55); }
.btn-secondary { border-color: rgba(61, 43, 31, 0.24); color: var(--text); background: transparent; }
.btn-secondary:hover { border-color: var(--text); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: "copy media" "stats media";
  column-gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero-copy { grid-area: copy; max-width: 560px; }
.hero-title {
  font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.035em; text-wrap: balance; margin-bottom: 24px;
}
.hero-desc { font-size: 17px; color: var(--text-muted); line-height: 1.75; max-width: 46ch; margin-bottom: 36px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-where {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
}
.hero-where svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-media { grid-area: media; position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-bakes {
  grid-area: stats; align-self: start; margin-top: 44px; max-width: 520px;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.bakes-title { font-size: 13px; font-weight: 600; color: var(--accent-strong); margin-bottom: 14px; }
.bakes { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
.bakes > div { display: flex; flex-direction: column-reverse; gap: 6px; padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--line); }
.bakes > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.bakes dd { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.bakes dt { font-size: 14px; color: var(--text-muted); }

/* Entrance: one authored moment, from a visible default */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: settle 1.1s var(--ease-out) both; }
  .hero-copy > * { animation: rise 0.8s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
}
@keyframes settle { from { transform: scale(1.04); filter: saturate(0.7) blur(6px); } to { transform: none; filter: none; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0.001; } to { transform: none; opacity: 1; } }

/* SECTIONS */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 620px; }
.section-title {
  font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; line-height: 1.06;
  letter-spacing: -0.03em; text-wrap: balance;
}
.section-sub { margin-top: 16px; font-size: 17px; color: var(--text-muted); line-height: 1.7; max-width: 52ch; }

/* MENU */
.menu-section { background: var(--bg-alt); border-block: 1px solid var(--line); }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.menu-cat {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.menu-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.menu-cat img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.menu-cat:hover img { transform: scale(1.03); }
.menu-body { padding: 26px 28px 28px; }
.menu-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.menu-note { margin-top: 6px; font-size: 15px; color: var(--text-muted); }
.menu-list { margin-top: 18px; border-top: 1px solid var(--line); }
.menu-list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px;
}
.menu-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.menu-list .item { flex: 1; font-weight: 500; }
.menu-list .price { font-weight: 700; color: var(--accent-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ABOUT / REVIEWS */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.promise .section-title { margin-bottom: 20px; }
.promise-img { margin-top: 36px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.quotes-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--accent-strong); margin-bottom: 4px; }
.promise-text { font-size: 17px; color: var(--text-muted); line-height: 1.75; max-width: 46ch; }
.quotes { display: grid; gap: 20px; padding-top: 10px; }
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px;
}
.stars { display: flex; gap: 3px; margin-bottom: 14px; }
.stars svg { width: 18px; height: 18px; fill: var(--accent); }
.quote blockquote { font-size: 18px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.quote figcaption { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--text-muted); }
.quote figcaption::before { content: '— '; }

/* CONTACT */
.contact-section { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-panel {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 52px); box-shadow: 0 10px 40px -24px rgba(61, 43, 31, 0.3);
}
.info-list { display: grid; gap: 22px; }
.info-list dt { font-size: 13px; font-weight: 600; color: var(--accent-strong); margin-bottom: 4px; }
.info-list dd { font-size: 17px; font-weight: 600; color: var(--text); }
.info-list a { display: inline-block; padding: 8px 0; margin: -8px 0; text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.3s var(--ease-out); }
.info-list a:hover { background-size: 100% 2px; }
.info-list a { background-position: 0 calc(100% - 8px); }
.social-row { display: flex; gap: 10px; margin-top: 28px; }
.social {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text); transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease-out);
}
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.social:hover { background: var(--text); border-color: var(--text); color: #fff; transform: translateY(-2px); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; min-height: 50px;
  font: 400 16px/1.5 var(--font); color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.contact-form textarea { resize: vertical; min-height: 128px; }
.contact-form ::placeholder { color: #7A634C; }
.contact-form input:hover, .contact-form textarea:hover { border-color: rgba(61, 43, 31, 0.24); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.contact-form [aria-invalid="true"] { border-color: #B42318; }
.btn-submit { width: 100%; margin-top: 6px; }
.btn-submit .label-busy { display: none; }
.btn-submit[aria-busy="true"] .label-idle { display: none; }
.btn-submit[aria-busy="true"] .label-busy { display: inline; }
.btn-submit:disabled { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }
.form-error { color: #B42318; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.form-success {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-strong); font-weight: 600;
}

.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-art { display: block; width: 100%; height: clamp(220px, 30vw, 340px); }
.m-ground { fill: #EFE6DA; }
.m-block { fill: #F7F1E9; }
.m-park { fill: #DCE3CC; }
.m-road { stroke: #FFFFFF; stroke-width: 26; fill: none; }
.m-road-main { stroke-width: 40; }
.m-soi { stroke: #FFFFFF; stroke-width: 14; fill: none; }
.m-label { font: 700 17px/1 var(--font); letter-spacing: 0.12em; fill: #7A634C; }
.m-label-soft { fill: #6E7F55; }
.m-pin-halo { fill: rgba(196, 115, 59, 0.18); }
.m-pin-body { fill: var(--accent-strong); }
.m-pin-dot { fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .m-pin-halo { transform-origin: center; transform-box: fill-box; animation: halo 2.6s var(--ease-out) infinite; }
}
@keyframes halo { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.map-cap { padding: 16px clamp(20px, 3vw, 28px); font-size: 15px; font-weight: 500; color: var(--text-muted); border-top: 1px solid var(--line); }

/* FOOTER */
.footer { background: var(--text); color: rgba(255, 255, 255, 0.72); padding: 36px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-note { display: grid; gap: 4px; }
.concept a { display: inline-block; padding: 6px 0; font-size: 13px; color: rgba(255, 255, 255, 0.72); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; transition: color 0.2s; }
.concept a:hover { color: var(--honey); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; transition: color 0.2s; }
.footer :focus-visible { outline-color: var(--honey); }
.footer-links a:hover { color: var(--honey); }

/* THAI TYPOGRAPHY */
body.lang-th .hero-title { font-family: 'Noto Sans Thai', var(--font); line-height: 1.25; letter-spacing: 0; }
body.lang-th .section-title { line-height: 1.3; letter-spacing: 0; }
body.lang-th .hero-desc, body.lang-th .section-sub, body.lang-th .promise-text, body.lang-th .quote blockquote { line-height: 1.85; }
body.lang-th .menu-title, body.lang-th .bakes dd { letter-spacing: 0; }
body.lang-th .quotes-title { line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "media" "copy" "stats"; row-gap: 32px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-copy { max-width: none; }
  .hero-bakes { margin-top: 8px; max-width: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .menu-body { padding: 22px 22px 24px; }
  .quote { padding: 26px 24px; }
  .quote blockquote { font-size: 17px; }
}
@media (max-width: 640px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(61, 43, 31, 0.4);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }
  .nav.open .nav-links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-link { font-size: 17px; opacity: 1; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .lang-switch { align-self: flex-start; margin-top: 16px; min-height: 44px; }
  .hero { padding-top: 20px; }
  .hero-title { font-size: clamp(36px, 10.5vw, 44px); }
  .hero-desc { font-size: 16px; margin-bottom: 28px; }
  .hero-btns { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-btns .btn { padding: 0 16px; }
  .hero-where { align-items: flex-start; }
  .bakes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bakes > div { padding-right: 12px; margin-right: 12px; }
  .bakes dd { font-size: 24px; }
  .bakes dt { font-size: 13px; line-height: 1.35; }
  .section-sub, .promise-text { font-size: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

.nw { white-space: nowrap; }

/* Footer always meets the bottom edge */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }
