/* Thai Ordering Food - calm, mobile-first, same family as Thai Kitchen */
:root {
 --teal: #0d5c4d;
 --teal-dark: #093f35;
 --gold-soft: #f5edd8;
 --bg: #faf8f4;
 --card: #ffffff;
 --text: #2b2b2b;
 --muted: #6b6b6b;
 --line: #e4ddd0;
 --warn: #8a4b00;
 --warn-bg: #fdf3e3;
 --red: #a11d1d;
 --red-bg: #fdecea;
 --ok-bg: #e7f2ee;
 --radius: 10px;
}

* { box-sizing: border-box; }

body {
 margin: 0;
 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 background: var(--bg);
 color: var(--text);
 line-height: 1.6;
 font-size: 18px;
}

.site-header {
 background: var(--teal);
 color: #fff;
 padding: 0.9rem 1rem;
 position: sticky;
 top: 0;
 z-index: 10;
}
.site-header .brand {
 display: flex;
 align-items: baseline;
 justify-content: space-between;
 gap: 0.5rem;
 flex-wrap: wrap;
}
.site-header h1 { font-size: 1.25rem; margin: 0; }
.site-header h1 a { color: #fff; text-decoration: none; }
.site-header .tagline { font-size: 0.85rem; opacity: 0.85; margin: 0; }
nav.main-nav { display: flex; gap: 0.5rem; margin-top: 0.7rem; flex-wrap: wrap; }
nav.main-nav a { color: #fff; text-decoration: none; font-size: 0.95rem; padding: 0.35rem 0.7rem; border: 1px solid rgba(255,255,255,0.5); border-radius: 999px; }

main { max-width: 860px; margin: 0 auto; padding: 1rem; }
h2 { color: var(--teal-dark); font-size: 1.5rem; margin: 1.6rem 0 0.4rem; }
.lead { font-size: 1.05rem; }
.small { font-size: 0.9rem; color: var(--muted); }

.disclaimer {
 background: var(--warn-bg);
 border: 2px solid var(--warn);
 border-radius: var(--radius);
 padding: 0.9rem 1.1rem;
 margin: 1rem 0;
 font-size: 1rem;
}
.disclaimer strong { color: var(--warn); }

.hero h2 { font-size: 1.8rem; }

.card {
 background: var(--card);
 border: 1px solid var(--line);
 border-radius: var(--radius);
 padding: 1.1rem;
 margin: 0.8rem 0;
}
.card h3 { margin: 0.2rem 0; color: var(--teal-dark); font-size: 1.25rem; }

.help-card { background: var(--red-bg); border: 2px solid var(--red); }
.help-thai { font-size: 2.2rem; color: var(--red); font-weight: 700; text-align: center; }

.sym-thai { font-size: 1.7rem; color: var(--teal-dark); margin: 0.3rem 0 0.1rem; }
.sym-phon { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.5rem; }
.sym-note { font-size: 1rem; }
.pattern-note { font-size: 0.9rem; color: var(--muted); font-style: italic; }
.urgent { border: 2px solid var(--red); }
.urgent-flag {
 background: var(--red); color: #fff; border-radius: 999px;
 padding: 0.15rem 0.7rem; font-size: 0.85rem; font-weight: 700; white-space: nowrap;
}
.sym-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }

.actions { display: flex; gap: 0.6rem; margin: 0.5rem 0 0.7rem; flex-wrap: wrap; }
.actions button {
 background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
 padding: 0.7rem 1.1rem; font-size: 1.05rem; cursor: pointer;
 display: flex; flex-direction: column; align-items: center; gap: 0.2rem; min-width: 96px;
}
.actions button span { font-size: 0.95rem; }

.btn {
 display: inline-block; background: var(--teal); color: #fff; text-decoration: none;
 border: none; border-radius: 10px; padding: 0.7rem 1.2rem; font-size: 1rem;
 font-weight: 600; cursor: pointer; margin: 0.2rem 0;
}
.btn:hover { background: var(--teal-dark); }
.btn.secondary { background: #fff; color: var(--teal-dark); border: 2px solid var(--teal-dark); }

.map-btn {
 display: inline-block; background: var(--teal-dark); color: #fff; text-decoration: none;
 border-radius: 10px; padding: 0.6rem 1rem; font-weight: 600; margin: 0.3rem 0.3rem 0.3rem 0;
}
.call-btn {
 display: inline-block; background: var(--red); color: #fff; text-decoration: none;
 border-radius: 10px; padding: 0.8rem 1.3rem; font-weight: 700; font-size: 1.15rem; margin: 0.3rem 0;
}
.big-call { font-size: 1.3rem; padding: 1rem 1.5rem; }
.em-thai { color: var(--muted); font-size: 1.1rem; }

.big-search { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.6rem 0; }
.big-search input[type="search"] {
 flex: 1; min-width: 220px; font-size: 1.05rem; padding: 0.7rem;
 border: 1.5px solid var(--line); border-radius: 10px;
}
.big-search select { font-size: 1rem; padding: 0.7rem; border: 1.5px solid var(--line); border-radius: 10px; }

.card-form label { display: block; font-weight: 600; margin: 0.8rem 0 0.2rem; }
.card-form input, .card-form select, .card-form textarea {
 width: 100%; font-size: 1.05rem; padding: 0.65rem 0.7rem;
 border: 1.5px solid var(--line); border-radius: 8px; font-family: inherit;
}
.form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
#card-status { font-weight: 600; color: var(--teal-dark); }
.card-view { background: var(--ok-bg); }

.site-footer { text-align: center; color: var(--muted); padding: 1.5rem 1rem; font-size: 0.95rem; }

@media print {
 .site-header, .disclaimer, .hero, #help, #emergency, #symptoms, #phrases, .card-form, .site-footer { display: none !important; }
 #card-view { border: 2px solid #000; }
 body { font-size: 14pt; }
}

/* ---- Visual polish, Nov 9 2026: warm Thai identity, shared across the suite ---- */
:root {
 --gold: #c9971c;
 --gold-deep: #a87e12;
 --cream: #fbf6ec;
 --shadow: 0 6px 18px rgba(9, 63, 53, 0.10);
 --shadow-lg: 0 10px 28px rgba(9, 63, 53, 0.15);
}
body { background: linear-gradient(180deg, #fdfaf3 0, var(--bg, #faf8f4) 240px); }
.site-header {
 background: linear-gradient(135deg, #07382d 0%, var(--teal, #0d5c4d) 55%, #14705c 100%);
 border-bottom: 4px solid var(--gold);
 box-shadow: 0 4px 16px rgba(9, 63, 53, 0.25);
}
nav.main-nav a { border-color: rgba(255, 255, 255, 0.35); }
nav.main-nav a.active { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22); }
h2 { position: relative; padding-bottom: 0.45rem; }
h2::after {
 content: ""; display: block; width: 56px; height: 4px;
 background: linear-gradient(90deg, var(--gold), #e3b94a);
 border-radius: 2px; margin-top: 0.35rem;
}
.hero h2::after { margin-left: auto; margin-right: auto; }
.eyebrow {
 font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
 text-transform: uppercase; color: var(--gold-deep); margin: 0 0 0.3rem;
}
.hero {
 background: linear-gradient(180deg, #fff8e6, #fdfaf3);
 border: 1px solid #f0e2bd; border-radius: 20px;
 padding: 1.4rem 1.2rem; box-shadow: var(--shadow); margin: 1rem 0;
}
.card, .route-card, .dash-item {
 border-radius: 16px; box-shadow: var(--shadow); border-color: #eadfc8;
}
.route-card { transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease; }
.route-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.btn {
 background: linear-gradient(180deg, #12836b, var(--teal, #0d5c4d));
 box-shadow: 0 3px 10px rgba(13, 92, 77, 0.35);
 border-radius: 12px; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(13, 92, 77, 0.4); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(13, 92, 77, 0.35); }
.map-btn {
 background: linear-gradient(180deg, #0d5c4d, var(--teal-dark, #093f35));
 box-shadow: 0 3px 10px rgba(9, 63, 53, 0.35); border-radius: 12px;
}
.actions button { transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease; }
.actions button:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-1px); }
.actions button:active { transform: translateY(0); }
input[type="search"], input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea { border-radius: 12px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(201, 151, 28, 0.45); border-color: var(--teal, #0d5c4d); }
.flag, .ing-cat, .urgent-flag { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.site-footer { border-top: 3px solid var(--gold); }

/* Thai Ordering Food polish */
.help-card { box-shadow: 0 8px 22px rgba(161, 29, 29, 0.18); }
.call-btn {
 background: linear-gradient(180deg, #c22a2a, var(--red, #a11d1d));
 box-shadow: 0 4px 12px rgba(161, 29, 29, 0.35); border-radius: 12px;
 transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.call-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(161, 29, 29, 0.4); }
.card-view { border: 1px solid #bcd8c9; box-shadow: var(--shadow); }
.urgent { box-shadow: 0 6px 18px rgba(161, 29, 29, 0.14); }
.sym-thai { text-shadow: 0 1px 0 #fff; }

/* Thai Ordering Food: dishes grid and allergy card */
.dish-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
@media (min-width: 640px) { .dish-grid { grid-template-columns: 1fr 1fr; } }
.dish-card h3 { margin: 0.2rem 0; }
.phrase-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.allergy-card { background: #fdf6e3; border: 2px solid var(--gold, #c9971c); }
.allergy-thai { font-size: 1.5rem; color: var(--teal-dark); font-weight: 700; margin: 0.3rem 0; }
.ing-cat {
 background: var(--teal); color: #fff; border-radius: 999px;
 padding: 0.15rem 0.7rem; font-size: 0.85rem; font-weight: 700; white-space: nowrap;
}

/* Thai flag banner, Nov 9 2026. Thai flag colours and proportions: red 1, white 1,
   dark blue 2, white 1, red 1. Pure CSS, no image. */
.thai-flag {
 height: 12px;
 background: linear-gradient(to bottom,
  #A51931 0%, #A51931 16.66%,
  #F4F5F8 16.66%, #F4F5F8 33.33%,
  #2D2A4A 33.33%, #2D2A4A 66.66%,
  #F4F5F8 66.66%, #F4F5F8 83.33%,
  #A51931 83.33%, #A51931 100%);
}
.site-header h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
.site-header .thai-word {
 color: #f2c14e;
 font-size: 1.15em;
 font-weight: 700;
 letter-spacing: 0.02em;
 white-space: nowrap;
}

/* Hero banner image, Nov 9 2026: generated Thai hero art, framed like the cover art. */
.hero-img {
 display: block; width: 100%; max-width: 880px; height: auto;
 margin: 0 auto 1rem; border-radius: 16px;
 box-shadow: var(--shadow-lg, 0 10px 28px rgba(9, 63, 53, 0.15));
 border: 3px solid #fff; outline: 1px solid #eadfc8;
}

/* Gold top border on cards, Nov 9 2026. */
.card { border-top: 4px solid var(--gold); }
