/* Thai Panda. Colours come from the logo (green, gold, cream) and the dining room (blush mural). */
/* Fonts are served from this site (SIL Open Font License, see assets/fonts/OFL-*.txt),
   so visitors' browsers never contact Google Fonts. Latin subset: covers French accents and œ. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/marcellus-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #FFF6F1;
  --blush: #F5E1D7;
  --blush-deep: #E9C4B2;
  --green: #154B29;
  --green-ink: #233F27;
  --green-soft: #2F6B42;
  --gold: #B99660;
  --gold-ink: #8A6A35;
  --gold-on-dark: #D4B680;  /* gold labels on the dark greens: 5.2:1 and 6:1 contrast (WCAG AA needs 4.5) */
  --text: #2A2A26;
  --muted: #6B665E;
  --line: #E8D9CF;
  --white: #FFFFFF;
  --radius: 14px;
  --wrap: 1120px;
  --font-display: "Marcellus", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-soft); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--green-ink);
  line-height: 1.15;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  background: var(--green); color: var(--white);
  border: 2px solid var(--green); border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--green-soft); border-color: var(--green-soft); color: var(--white); }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 246, 241, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; color: var(--green-ink); letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { color: var(--green-ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--gold-ink); }
.site-nav .lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  font-size: .85rem; font-weight: 700; letter-spacing: .05em;
}

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 12px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--green-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .lang { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 4px; font-size: 1rem; letter-spacing: 0; }
  .site-nav .lang [aria-hidden] { display: none; }
  .site-nav .lang .sr { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; }
  .site-nav .btn { margin-top: 16px; }
}

/* Mural background for the menu header: the dining room's brushstroke wall, redrawn as SVG. */
.mural-bg {
  background-color: #EBC7B5;
  background-image: url("../images/mural.svg");
  background-size: cover;
  background-position: center;
}
.mural-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 28px 28px 30px;
  box-shadow: 0 16px 40px rgba(110, 60, 40, .14);
}

/* Hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21, 75, 41, .35) 0%, rgba(21, 75, 41, 0) 60%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 48px; padding-bottom: 48px; }
.hero-card {
  max-width: 440px;
  background: var(--cream);
  border-radius: 20px;
  padding: 28px 28px 30px;
  box-shadow: 0 20px 50px rgba(20, 40, 25, .22);
}
.hero-logo { width: 170px; margin: -6px auto 6px; }
.eyebrow {
  text-align: center; margin: 0 0 14px;
  color: var(--gold-ink); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.hero-lead { font-size: 1.12rem; margin: 0 0 12px; text-align: center; }
.status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 0 20px; color: var(--muted); font-size: .95rem; text-align: center;
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.status.is-open::before { background: #2E9D52; }
.status.is-closed::before { background: #C2553A; }
.hero-card .actions { justify-content: center; }
.hero-card .btn { flex: 1 1 160px; }

@media (max-width: 700px) {
  .hero { min-height: 0; display: block; }
  .hero picture, .hero-img { position: static; height: 240px; }
  .hero::after { display: none; }
  .hero-inner { padding-top: 0; padding-bottom: 24px; }
  .hero-card { margin-top: -48px; padding: 22px 20px 24px; box-shadow: 0 12px 30px rgba(20, 40, 25, .15); }
  .hero-logo { width: 140px; }
}

/* Info strip */
.info-strip { background: var(--green); color: var(--cream); }
.info-strip a { color: var(--cream); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.info-grid p { margin: 0; }
.info-label, .footer-label {
  margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-on-dark);
}
.big-link { font-size: 1.3rem; font-weight: 700; text-decoration: none; }
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; gap: 18px; } }

/* Sections */
.section { padding: 72px 0; }
.section-tint { background: var(--blush); }
.section-lead { color: var(--muted); margin: 0 0 32px; font-size: 1.05rem; }
@media (max-width: 700px) { .section { padding: 52px 0; } }

/* Favourite dishes */
.dish-grid {
  list-style: none; margin: 0 0 36px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .dish-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.dish-card a {
  display: block; height: 100%; text-decoration: none; color: inherit;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(60, 40, 30, .06);
  transition: transform .2s, box-shadow .2s;
}
.dish-card a:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 14px 30px rgba(60, 40, 30, .12); }
.dish-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dish-card-body { display: block; padding: 14px 16px 16px; }
.dish-card-name { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--green-ink); }
.dish-card-price { display: block; color: var(--gold-ink); font-weight: 500; font-size: .95rem; }
@media (max-width: 500px) {
  .dish-card-body { padding: 10px 12px 12px; }
  .dish-card-name { font-size: 1.05rem; }
  .dish-card-price { font-size: .85rem; }
}

/* Order */
.order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .order-grid { grid-template-columns: 1fr; } }
.order-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; background: var(--cream); border-radius: var(--radius);
  border: 1px solid var(--blush-deep); text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.order-card:hover { border-color: var(--green); transform: translateY(-2px); color: var(--text); }
.order-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--green-ink); }
.order-text { color: var(--muted); flex: 1; }
.order-cta { font-weight: 700; color: var(--green); margin-top: 8px; }

/* Dining room and catering */
.split-inner { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.split-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
#traiteur .catering { max-width: 620px; margin: 0 auto; text-align: center; }
#traiteur .btn { margin-top: 8px; }
@media (max-width: 800px) {
  .split-inner { grid-template-columns: 1fr; gap: 28px; }
  .split-img { aspect-ratio: 4 / 3; }
}

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.visit-address { font-size: 1.15rem; margin: 0 0 20px; }
.map { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); background: var(--blush-deep); }
@media (max-width: 800px) { .visit-grid { grid-template-columns: 1fr; } .map { min-height: 300px; } }

.hours { width: 100%; max-width: 380px; margin-top: 28px; border-collapse: collapse; }
.hours caption { text-align: left; font-family: var(--font-display); font-size: 1.3rem; color: var(--green-ink); padding-bottom: 6px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--blush-deep); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--green); }

/* Footer */
.site-footer { background: var(--green-ink); color: var(--cream); padding: 52px 0 24px; }
.site-footer a { color: var(--cream); }
.footer-inner { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-inner p { margin: 0 0 6px; }
.footer-logo { width: 110px; border-radius: 12px; }
.copyright { margin-top: 36px; font-size: .85rem; opacity: .7; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }

/* Menu page */
.menu-head { padding: 48px 0; }
.menu-head .mural-card { max-width: 520px; }
.menu-head .mural-card p { margin: 0; color: var(--muted); font-size: 1.05rem; }
@media (max-width: 700px) { .menu-head { padding: 28px 0; } }
.menu-chips {
  position: sticky; top: 68px; z-index: 40;
  background: rgba(255, 246, 241, .96); border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; padding: 8px 16px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); text-decoration: none; color: var(--green-ink); font-weight: 500; font-size: .95rem;
}
.chips a:hover, .chips a.active { background: var(--green); border-color: var(--green); color: var(--white); }

.menu-body { padding-bottom: 72px; }
.menu-section { padding-top: 48px; }
.menu-section h2 { border-bottom: 2px solid var(--gold); padding-bottom: 10px; margin-bottom: 14px; }

.photo-strip {
  display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px 24px; padding: 4px 16px 10px;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px;
}
.photo-strip:has(figure:only-child) { overflow: visible; }
@media (min-width: 700px) { .photo-strip { margin: 0 -28px 24px; padding: 4px 28px 10px; scroll-padding: 0 28px; } }
.photo-strip figure { flex: none; width: 210px; margin: 0; scroll-snap-align: start; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.photo-strip figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }

.items { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.items-compact { max-width: 760px; }
@media (max-width: 760px) { .items { columns: 1; } }
.item {
  break-inside: avoid;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px dashed var(--blush-deep);
}
.item-main { display: flex; flex-direction: column; }
.item-name { font-weight: 700; color: var(--green-ink); }
.item-alt { font-size: .88rem; color: var(--muted); }
.item-note { font-size: .88rem; color: var(--gold-ink); }
.item-price { white-space: nowrap; font-weight: 700; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.price-opt { font-weight: 700; }
.price-label { font-weight: 400; color: var(--muted); font-size: .85rem; }

.grid-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 28px; align-items: start; }
@media (max-width: 760px) { .grid-block { grid-template-columns: 1fr; gap: 20px; } }
.dish-list { list-style: none; margin: 0; padding: 0; }
.dish-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px dashed var(--blush-deep); }
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.price-table th, .price-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.price-table th[scope="row"], .price-table thead th:first-child { text-align: left; font-weight: 500; }
.price-table thead th { background: var(--green); color: var(--cream); font-weight: 700; font-size: .9rem; }
.price-table td { font-weight: 700; white-space: nowrap; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }

.price-note { color: var(--muted); font-size: .9rem; margin-top: 40px; }
.menu-order { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* Privacy page */
.legal-inner { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.draft-banner {
  background: #FFF1C9; border: 1px solid #E5C766; border-radius: 10px;
  padding: 12px 16px; margin: 0 0 24px; font-weight: 500; color: #5C4710;
}
mark.todo { background: #FFE58A; color: #3D2F00; padding: 0 4px; border-radius: 4px; }

/* Call and order bar, phones only */
.quick-bar { display: none; }
@media (max-width: 700px) {
  .quick-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 246, 241, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(35, 63, 39, .08);
  }
  .quick-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 48px;
    border-radius: 999px; font-weight: 700; text-decoration: none;
  }
  .quick-call { background: var(--green); color: var(--white); }
  .quick-order { border: 2px solid var(--green); color: var(--green); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* Page not found */
.not-found { text-align: center; }
.not-found-logo { width: 140px; margin: 0 auto 24px; border-radius: 16px; }
.not-found-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 760px; margin: 0 auto; }
.not-found-cols h1, .not-found-cols h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.not-found .actions { justify-content: center; }
.not-found-phone { margin-top: 32px; color: var(--muted); }
.page-404 .site-footer { padding: 24px 0; }
.page-404 .copyright { margin-top: 0; }
@media (max-width: 700px) { .not-found-cols { grid-template-columns: 1fr; gap: 28px; } }
