/* ============================================================
   Thai Taste — styles.css
   Warm cream base · deep red & gold accents · herbal green
   ============================================================ */

:root {
  --cream: #faf6ee;
  --cream-dark: #f2e9d8;
  --red: #9e2b25;
  --red-dark: #7c1f1a;
  --gold: #c9a227;
  --gold-light: #e6c96b;
  --green: #2e5339;
  --green-dark: #243d2b;
  --ink: #2b2118;
  --muted: #6f6152;
  --white: #fff;
  --shadow: 0 6px 24px rgba(43, 33, 24, .08);
  --radius: 14px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Lato", "Segoe UI", Arial, sans-serif;
}

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--ink); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
::selection { background: var(--gold); color: var(--ink); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section[id], .menu-section { scroll-margin-top: 120px; }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: .2s; border: 0; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--ink); }

/* ---- Top bar ---- */
.topbar { background: var(--green-dark); color: #ece5d3; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 20px; }
.topbar a { color: #ece5d3; text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--gold-light); }
.topbar .sep { color: var(--gold); }
.status { margin-left: auto; font-weight: 700; font-size: .8rem; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.status.open { background: #e7f2e7; color: var(--green); border: 1px solid #b9d4b9; }
.status.closed { background: #f8e6e4; color: var(--red-dark); border: 1px solid #e3bcb8; }

/* ---- Header / nav ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 238, .96); backdrop-filter: blur(6px); border-bottom: 1px solid #e8dcc3; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; position: relative; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--red); }
.brand-sub { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.brand-logo { height: 58px; width: auto; display: block; }

/* Home hero logo */
.hero-logo {
  width: 300px;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  margin: 0 auto 26px;
}
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; margin-left: 24px; position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: .25s; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--red); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; border-radius: 2px; background: var(--red); transition: .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Hero & page banners ---- */
.hero { min-height: 72vh; display: grid; place-items: center; text-align: center; color: var(--white); padding: 90px 20px; background-color: var(--green-dark); background-image: linear-gradient(rgba(28, 20, 12, .55), rgba(28, 20, 12, .6)), url("../hero.jpg"); background-size: cover; background-position: center; }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 4.2rem); text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.hero .tagline { color: #f5e7c4; font-size: 1.15rem; max-width: 640px; margin: 14px auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.page-banner { text-align: center; color: var(--white); padding: 76px 20px; background-color: var(--green-dark); background-image: linear-gradient(rgba(30, 24, 14, .6), rgba(30, 24, 14, .65)), url("../banner.jpg"); background-size: cover; background-position: center; }
.page-banner h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); }
.page-banner p { color: var(--gold-light); font-weight: 700; letter-spacing: .06em; margin-top: 6px; }

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-dark); }
.section-title { text-align: center; font-family: var(--font-head); font-size: 2.1rem; color: var(--red); margin-bottom: 10px; }
.section-title::after { content: "✦ ✦ ✦"; display: block; color: var(--gold); font-size: .75rem; letter-spacing: .7em; text-indent: .7em; margin-top: 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 30px; }
.center-cta { text-align: center; }

/* ---- Cards & grids ---- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; text-align: center; }
.card h3 { font-family: var(--font-head); font-size: 1.25rem; color: var(--green); margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(43, 33, 24, .14); }
.ico { font-size: 2rem; display: block; margin-bottom: 10px; }

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.award-card { border: 2px solid var(--gold); background: linear-gradient(160deg, #fffdf6, #faf1da); }

.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 34px; }
.dish-card { padding: 0; overflow: hidden; }
.dish-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.dish-card figcaption { padding: 18px; }
.dish-card figcaption p { margin: 2px 0 0; }

.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.teaser-grid .section-title { text-align: left; }
.teaser-grid .section-title::after { text-indent: 0; letter-spacing: .4em; }
.teaser-grid p { margin-bottom: 22px; }
.imgbox { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.imgbox img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---- Menu page ---- */
.menu-subnav { background: var(--white); border-bottom: 1px solid #eadfc6; padding: 14px 0; }
.menu-subnav .container { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-block; padding: 8px 18px; border: 1.5px solid var(--gold); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .88rem; background: var(--white); transition: .2s; }
.chip:hover { background: var(--gold); }

.lunch-special { max-width: 780px; margin: 0 auto; text-align: center; background: linear-gradient(150deg, #fffdf7, #f9efd3); border: 2px solid var(--gold); border-radius: var(--radius); padding: 38px 30px; box-shadow: var(--shadow); }
.lunch-special h3 { font-family: var(--font-head); font-size: 1.7rem; color: var(--red); margin-bottom: 10px; }
.lunch-price { color: var(--green); }
.lunch-includes { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--gold); color: var(--ink); }
.menu-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 16px; }

.menu-section { max-width: 780px; margin: 0 auto 44px; }
.menu-section > h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--green); display: inline-block; border-bottom: 3px solid var(--gold); padding-bottom: 4px; margin: 30px 0 8px; }
.dish-row { padding: 16px 0; border-bottom: 1px dashed #e0d2b4; }
.dish-row:last-child { border-bottom: 0; }
.dish-head { display: flex; align-items: baseline; gap: 10px; }
.dish-head h4 { font-family: var(--font-head); font-size: 1.08rem; }
.dots { flex: 1; border-bottom: 2px dotted #cdb98c; transform: translateY(-4px); }
.price { font-weight: 800; color: var(--red); white-space: nowrap; }
.dish-desc { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 2px 10px; border-radius: 999px; margin: 8px 6px 0 0; }
.tag.spicy { background: #fbe3e0; color: var(--red-dark); }
.tag.veg { background: #e6f0e4; color: var(--green); }
.tag.gf { background: #fdf3d7; color: #8a6d1a; }

/* ---- Hours page ---- */
.hours-wrap { max-width: 640px; }
.status-banner { text-align: center; margin-bottom: 22px; }
.status-banner .status { font-size: 1rem; padding: 8px 20px; margin: 0; }
.hours-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hours-table th { background: var(--green); color: var(--white); text-align: left; padding: 14px 18px; font-family: var(--font-head); letter-spacing: .03em; }
.hours-table td { padding: 14px 18px; border-top: 1px solid #eee3cc; }
.hours-table td:last-child { font-weight: 700; }
.hours-table tr.today td { background: #fbf3da; }
.hours-table tr.today td:first-child::after { content: " · Today"; color: var(--red); font-size: .8rem; font-weight: 800; }

/* ---- Family page ---- */
.family-hero { max-width: 860px; margin: 0 auto 28px; }
.family-hero img { aspect-ratio: 16/9; }
.family-story { max-width: 760px; margin: 0 auto; text-align: center; font-size: 1.05rem; }
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.member-card { padding: 0; overflow: hidden; }
.member-card .imgbox { border-radius: 0; box-shadow: none; }
.member-card img { aspect-ratio: 1/1; }
.member-body { padding: 22px; }
.member-role { color: #a3841f; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.member-card .member-body p:last-child { text-align: left; }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phone { font-size: 1.5rem; font-weight: 800; color: var(--red); text-decoration: none; }
.phone:hover { text-decoration: underline; }
.contact-card .btn { margin: 8px 4px 0; }
.map-wrap { max-width: 960px; margin: 0 auto; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { text-align: left; font-style: italic; }
.stars { color: var(--gold); font-size: 1.15rem; letter-spacing: 3px; margin-bottom: 8px; }
.review-card cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; color: var(--green); }
.review-cta { text-align: center; }
.review-cta p { margin-bottom: 22px; color: var(--muted); }
.review-cta .btn { margin: 4px; }

/* ---- Gallery page ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.gallery-item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: 12px; text-align: center; font-weight: 700; color: var(--green); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(24, 17, 9, .92); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox p { color: #f3e3bb; font-weight: 700; margin-top: 14px; }

/* ---- Footer ---- */
.site-footer { background: var(--green-dark); color: #d9d2c0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 20px 40px; }
.footer-col h3 { font-family: var(--font-head); color: var(--gold-light); margin-bottom: 12px; font-size: 1.15rem; }
.footer-col a { display: block; color: #d9d2c0; text-decoration: none; margin: 6px 0; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col p { font-size: .95rem; }
.footer-bottom { background: #1a2c20; text-align: center; padding: 16px 20px; font-size: .88rem; color: #bfb7a2; }

/* ---- Missing-photo placeholder ---- */
.img-fallback { display: grid; place-items: center; min-height: 230px; background: repeating-linear-gradient(45deg, #f4ead3, #f4ead3 14px, #efe2c4 14px, #efe2c4 28px); border: 1px dashed #d6c193; border-radius: var(--radius); color: #8a7657; font-weight: 700; text-align: center; padding: 16px; }
.img-fallback::after { content: "📷 " attr(data-label); max-width: 90%; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .info-cards, .awards-grid, .dish-grid, .member-grid, .contact-grid, .review-grid { grid-template-columns: 1fr 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 10px 24px 20px; display: none; border-top: 1px solid #e8dcc3; box-shadow: var(--shadow); }
  .main-nav a { margin: 10px 0; font-size: 1.05rem; }
  .nav-open .main-nav { display: flex; }
}
@media (max-width: 560px) {
  .info-cards, .awards-grid, .dish-grid, .member-grid, .contact-grid, .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .address { display: none; }
  .section { padding: 48px 0; }
  .brand-logo { height: 44px; }
  .hero-logo { width: 210px; }
}

/* ---- Gallery placeholder frames ---- */
.ph {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #f2ead6, #e9ddc1);
  border: 1.5px dashed #cdb98c;
  border-radius: var(--radius);
  color: #b7a578;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
}

/* ---- Lunch menu list ---- */
.lunch-subhead { text-align: center; font-family: var(--font-head); font-size: 1.6rem; color: var(--green); margin: 44px 0 20px; }
.lunch-subhead::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--gold); margin: 8px auto 0; }
.lunch-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; max-width: 940px; margin: 0 auto; }
.lunch-item { padding: 12px 0; }
.lunch-item .dish-head { align-items: center; }
.lunch-item .dish-head h4 { flex: 1; }
.num { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border: 1.5px solid var(--gold); border-radius: 50%; background: #fffdf6; color: var(--red); font-family: var(--font-head); font-weight: 800; font-size: .9rem; }
@media (max-width: 700px) {
  .lunch-grid { grid-template-columns: 1fr; }
}

/* ---- Two-size prices (cup/pot) & option notes ---- */
.price-pair { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.4; white-space: nowrap; }
.price-pair span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.price-pair b { color: var(--red); font-size: 1rem; }
.dish-desc em { font-style: normal; font-weight: 700; color: var(--green); }

/* ---- Upcharge pills (end of description) ---- */
.upcharge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 10px 2px;
  border: 1px solid #ddc98f;
  border-radius: 999px;
  background: #fbf4df;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
  vertical-align: 1px;
}

/* ---- Sub-options (e.g., Salmon sauce choices) ---- */
.dish-opts { margin: 6px 0 0; padding-left: 20px; color: var(--muted); font-size: .95rem; }
.dish-opts li { margin: 2px 0; }