/* ==========================================================================
   Pinnafy — Restaurant Menu Directory Stylesheet
   Palette: Tomato / Amber / Charcoal / Cream / Green
   Type: Poppins (display) + Inter (body)
   ========================================================================== */

:root {
  --tomato: #E0432F;
  --tomato-deep: #BE3320;
  --amber: #F0A035;
  --amber-deep: #D07F16;
  --charcoal: #24211E;
  --charcoal-2: #322E29;
  --cream: #FBF6EF;
  --cream-2: #FEFBF6;
  --green: #3E9B6B;
  --panel: #FFFFFF;
  --ink: #2A2622;
  --ink-soft: #6E665C;
  --line: #EAE2D5;
  --line-dark: #3D3831;
  --gold: #E0A93B;

  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --article-w: 820px;
  --radius: 12px;
  --radius-sm: 7px;
  --shadow: 0 16px 40px rgba(36, 33, 30, 0.14);
  --shadow-sm: 0 4px 16px rgba(36, 33, 30, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-2);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tomato-deep); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; border-radius: 3px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: var(--article-w); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; color: var(--charcoal); }

.eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tomato); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { background: var(--cream-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 22px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo .mark { width: 42px; height: 42px; flex: none; border-radius: 12px; background: linear-gradient(140deg, var(--tomato), var(--amber)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.logo .name { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--charcoal); line-height: 1; letter-spacing: -0.02em; }

.main-nav ul { display: flex; gap: 3px; list-style: none; align-items: center; }
.main-nav a { font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--ink); padding: 9px 14px; border-radius: var(--radius-sm); }
.main-nav a:hover { color: var(--tomato-deep); background: var(--cream); }

.nav-toggle { display: none; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 13px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--charcoal); cursor: pointer; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .94rem; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background .18s ease, color .18s ease, transform .1s ease, box-shadow .18s ease; }
.btn-tomato { background: var(--tomato); color: #fff; }
.btn-tomato:hover { background: var(--tomato-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-charcoal { background: var(--charcoal); color: #fff; }
.btn-charcoal:hover { background: var(--charcoal-2); color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--tomato); color: var(--tomato-deep); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 32px; font-size: 1.04rem; }
.btn-sm { padding: 9px 18px; font-size: .86rem; }

/* --------------------------------------------------------------------------
   Hero + search
   -------------------------------------------------------------------------- */
.hero { position: relative; color: #fff; padding: 74px 0 66px; overflow: hidden; background: linear-gradient(rgba(36,33,30,.8), rgba(36,33,30,.74)), linear-gradient(135deg, #E0432F, #7A1E12); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--amber), var(--tomato)); }
.hero .eyebrow { color: var(--amber); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; margin-bottom: 14px; max-width: 780px; color: #fff; letter-spacing: -0.02em; }
.hero h1 span { color: var(--amber); }
.hero p { max-width: 560px; font-size: 1.08rem; color: #EDE4DA; margin-bottom: 26px; }
.search-bar { display: flex; gap: 10px; max-width: 560px; background: #fff; padding: 8px; border-radius: 999px; box-shadow: var(--shadow); }
.search-bar input { flex: 1; border: 0; padding: 12px 18px; font-family: var(--font-body); font-size: .98rem; border-radius: 999px; color: var(--ink); }
.search-bar input:focus { outline: none; }
.search-bar button { flex: none; }
.hero-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats .s b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: #fff; display: block; }
.hero-stats .s span { font-size: .82rem; color: #EDE4DA; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 66px 0; }
.section.charcoal { background: var(--charcoal); color: #fff; }
.section.cream { background: var(--cream); }

.section-head { max-width: 640px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; }
.section-head p { margin-top: 10px; color: var(--ink-soft); }
.section.charcoal .section-head h2 { color: #fff; }
.section.charcoal .section-head p { color: #C3BBB0; }

/* --------------------------------------------------------------------------
   Cuisine chips + listing cards
   -------------------------------------------------------------------------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.chip { font-family: var(--font-display); font-weight: 500; font-size: .88rem; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.chip:hover, .chip.active { border-color: var(--tomato); background: var(--tomato); color: #fff; }

.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.lcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--tomato); }
.lcard .thumb { aspect-ratio: 16/9; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lcard .thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, rgba(255,255,255,.06) 0 3px, transparent 3px 26px); }
.lcard .thumb .ic { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; text-align: center; padding: 0 16px; letter-spacing: -0.01em; }
.lcard .thumb .cuisine { position: absolute; top: 10px; left: 10px; z-index: 3; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); background: var(--amber); padding: 4px 10px; border-radius: 4px; }
.lcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.lcard h3 { font-size: 1.14rem; font-weight: 700; line-height: 1.22; margin-bottom: 5px; }
.lcard h3 a { color: var(--charcoal); }
.lcard:hover h3 a { color: var(--tomato-deep); }
.lcard .loc { font-size: .86rem; color: var(--ink-soft); margin-bottom: 12px; flex: 1; }
.lcard .loc::before { content: "\1F4CD"; margin-right: 5px; }
.lcard .readmore { font-family: var(--font-display); font-weight: 600; font-size: .84rem; color: var(--tomato); }

/* Thumb gradient variants by cuisine */
.g-chinese { background: linear-gradient(140deg, #C0392B, #6E1409); }
.g-pizza { background: linear-gradient(140deg, #E0432F, #7A1E12); }
.g-italian { background: linear-gradient(140deg, #8A6D3B, #3E2E14); }
.g-mexican { background: linear-gradient(140deg, #E08A2F, #7A3E12); }
.g-japanese { background: linear-gradient(140deg, #4A4A55, #1E1E28); }
.g-vietnamese { background: linear-gradient(140deg, #3E9B6B, #14432B); }
.g-american { background: linear-gradient(140deg, #B4472E, #5E2010); }
.g-diner { background: linear-gradient(140deg, #C77D2E, #6E3E12); }
.g-bbq { background: linear-gradient(140deg, #8A3B22, #3E160A); }
.g-deli { background: linear-gradient(140deg, #6E8A3B, #2E3E14); }
.g-grocery { background: linear-gradient(140deg, #3B6E8A, #142E3E); }
.g-asian { background: linear-gradient(140deg, #A03B4A, #431420); }

/* --------------------------------------------------------------------------
   Category tiles (home)
   -------------------------------------------------------------------------- */
.cuisine-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cuisine-tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 12px; text-align: center; transition: transform .16s ease, box-shadow .16s ease; }
.cuisine-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--tomato); }
.cuisine-tile .emoji { font-size: 1.8rem; margin-bottom: 6px; }
.cuisine-tile .t { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--charcoal); }

/* --------------------------------------------------------------------------
   Listing page
   -------------------------------------------------------------------------- */
.page-hero { position: relative; color: #fff; padding: 52px 0 46px; background: linear-gradient(rgba(36,33,30,.82), rgba(36,33,30,.72)), linear-gradient(135deg, #E0432F, #7A1E12); border-bottom: 4px solid var(--amber); }
.page-hero .breadcrumbs { font-size: .8rem; color: #E3D8CD; margin-bottom: 12px; }
.page-hero .breadcrumbs a { color: #fff; }
.page-hero .cuisine-badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal); background: var(--amber); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); font-weight: 800; color: #fff; max-width: 860px; }
.page-hero .loc { margin-top: 10px; color: #E3D8CD; font-size: .98rem; }
.page-hero .loc::before { content: "\1F4CD"; margin-right: 6px; }

.info-bar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin: -30px auto 0; position: relative; z-index: 5; max-width: var(--article-w); display: grid; grid-template-columns: repeat(4, 1fr); box-shadow: var(--shadow-sm); overflow: hidden; }
.info-bar .cell { padding: 16px 18px; border-right: 1px solid var(--line); }
.info-bar .cell:last-child { border-right: 0; }
.info-bar .k { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.info-bar .v { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--charcoal); }
@media (max-width: 640px) { .info-bar { grid-template-columns: 1fr 1fr; } .info-bar .cell:nth-child(2) { border-right: 0; } }

.listing-body { max-width: var(--article-w); margin: 0 auto; padding: 40px 22px 30px; }
.listing-body > p { margin-bottom: 1.1em; color: #38332D; }
.listing-body h2 { font-size: 1.5rem; font-weight: 800; margin: 1.5em 0 .5em; color: var(--charcoal); }

.tpl-note { background: #FBF3E4; border: 1px solid #EAD9B4; border-radius: var(--radius-sm); padding: 13px 16px; font-size: .84rem; color: #8A6516; margin-bottom: 24px; }
.tpl-note strong { color: #6E4E0E; }

.menu-section { margin-bottom: 30px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.menu-section .ms-head { background: var(--charcoal); color: #fff; padding: 13px 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.menu-section .ms-head .em { font-size: 1.2rem; }
.menu-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); align-items: baseline; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi-info { flex: 1; }
.menu-item .mi-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--charcoal); }
.menu-item .mi-desc { font-size: .86rem; color: var(--ink-soft); margin-top: 2px; }
.menu-item .mi-price { font-family: var(--font-display); font-weight: 700; color: var(--tomato-deep); white-space: nowrap; }
.menu-item .mi-price.sample { color: var(--ink-soft); font-weight: 600; }

.disclaimer-box { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--tomato); border-radius: var(--radius-sm); padding: 16px 20px; font-size: .86rem; color: var(--ink-soft); margin: 26px 0; }
.disclaimer-box strong { color: var(--charcoal); }

.faq { margin: 26px 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--panel); }
.faq summary { padding: 15px 18px; font-family: var(--font-display); font-weight: 600; font-size: .96rem; color: var(--charcoal); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tomato); font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq .fa-body { padding: 0 18px 16px; color: var(--ink-soft); font-size: .92rem; }

.related-strip { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 32px; }

/* Plain */
.page-plain { max-width: var(--article-w); margin: 0 auto; padding: 52px 22px 80px; }
.page-plain h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: .3em; }
.page-plain .updated { color: var(--ink-soft); font-size: .88rem; margin-bottom: 1.6em; }
.page-plain h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5em 0 .4em; }
.page-plain p { color: var(--ink-soft); margin-bottom: 1em; }
.page-plain ul { margin: 0 0 1.1em 1.3em; color: var(--ink-soft); }
.page-plain li { margin-bottom: .4em; }
.center { text-align: center; }

/* Nutrition */
.nutri-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.nutri-table th { background: var(--charcoal); color: #fff; text-align: left; padding: 12px 18px; font-family: var(--font-display); font-size: .9rem; }
.nutri-table td { padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.nutri-table tr:last-child td { border-bottom: 0; }
.nutri-table td.v { font-family: var(--font-display); font-weight: 700; color: var(--tomato-deep); text-align: right; }

.site-footer { background: var(--charcoal); color: #C3BBB0; padding: 54px 0 26px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 32px; }
.site-footer .logo { margin-bottom: 14px; }
.site-footer .logo .name { color: #fff; }
.site-footer p { color: #948B80; }
.site-footer h4 { font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 13px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #C3BBB0; }
.site-footer a:hover { color: var(--amber); }
.footer-disclaimer { border-top: 1px solid var(--line-dark); padding-top: 20px; font-size: .8rem; color: #948B80; line-height: 1.5; }
.footer-disclaimer strong { color: #C3BBB0; }
.footer-bottom { margin-top: 14px; font-size: .8rem; color: #948B80; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .lcard, .btn, .cuisine-tile { transition: none; } }

/* Responsive */
@media (max-width: 1000px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .cuisine-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .listing-grid { grid-template-columns: 1fr; }
  .cuisine-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; align-items: stretch; padding: 8px 0; }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav a { display: block; padding: 12px 6px; border-radius: 0; }
  .header-inner { flex-wrap: wrap; }
  .search-bar { flex-direction: column; border-radius: var(--radius); background: transparent; box-shadow: none; padding: 0; gap: 8px; }
  .search-bar input { background: #fff; border-radius: var(--radius-sm); }
}
