/*
Theme Name: Hanoi Cooking Class
Description: Lightweight marketplace theme for Hanoi cooking classes — listings, dish guides, blog. Built for speed (no page builder).
Version: 1.0.0
Author: HTmotortour Team
Text Domain: hcc
*/

/* ============ TOKENS — unified with the approved demo (magazine system) ============ */
:root{
  --bg:#fbfaf4;            /* demo paper */
  --surface:#FFFFFF;
  --surface-warm:#f3f0e4;  /* demo paper-2 */
  --text:#17231d;          /* demo ink */
  --muted:#59675f;         /* demo muted */
  --border:#d8dbcf;        /* demo line */
  --accent:#bb3a2b;        /* demo terracotta red */
  --accent-dark:#8f2a1e;
  --accent-soft:#f9e9e2;
  --green:#174f3a;         /* demo deep green */
  --green-soft:#e0eee6;    /* demo green-2 */
  --gold:#f2b83f;          /* demo yellow */
  --radius:18px;           /* demo --r */
  --shadow:0 18px 50px rgba(24,46,34,.12);
  --font:'Manrope',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --serif:'Newsreader',Georgia,'Times New Roman',serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.7;font-size:17px;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-dark)}
h1,h2,h3,h4{font-family:var(--serif);line-height:1.15;color:var(--text);font-weight:650;letter-spacing:-.02em}
h1{font-size:2.4rem;margin-bottom:1rem}
h2{font-size:1.7rem;margin:2.2rem 0 1rem}
h3{font-size:1.25rem;margin:1.6rem 0 .7rem}
p{margin-bottom:1.1rem}
ul,ol{margin:0 0 1.1rem 1.4rem}
.container{max-width:1140px;margin:0 auto;padding:0 20px}
.narrow{max-width:780px;margin:0 auto}

/* ============ HEADER ============ */
.site-header{background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:70px}
.brand{font-weight:900;font-size:1.35rem;color:var(--text);display:flex;align-items:center;gap:.5rem}
.brand .logo-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--accent),var(--gold));display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:1.3rem}
.brand small{display:block;font-size:.68rem;font-weight:600;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}
.main-nav{display:flex;gap:1.6rem;align-items:center}
.main-nav a{color:var(--text);font-weight:600;font-size:.98rem}
.main-nav a:hover{color:var(--accent)}
.btn{display:inline-block;background:var(--accent);color:#fff!important;font-weight:700;padding:.75rem 1.5rem;border-radius:12px;border:0;cursor:pointer;font-size:1rem;transition:transform .15s,box-shadow .15s}
.btn:hover{background:var(--accent-dark);transform:translateY(-1px);box-shadow:var(--shadow)}
.btn-outline{background:transparent;color:var(--accent)!important;border:2px solid var(--accent)}
.btn-outline:hover{background:var(--accent-soft)}
.btn-wa{background:var(--gold);color:#2a220e!important}
.btn-email{background:var(--surface);color:var(--accent)!important;border:2px solid var(--accent)}
.btn-email:hover{background:var(--accent-soft)}
.hcc-email-inline{font-weight:600}
.btn-wa:hover{background:#e0a92f}
.btn-sm{padding:.5rem 1.1rem;font-size:.9rem}
.mobile-toggle{display:none;background:none;border:0;font-size:1.6rem;cursor:pointer;color:var(--text)}

/* ============ HERO ============ */
.hero{background:linear-gradient(180deg,var(--surface-warm),var(--bg));padding:4rem 0 3rem;text-align:center}
.hero h1{font-size:2.9rem;max-width:800px;margin:0 auto 1rem}
.hero p.lead{font-size:1.2rem;color:var(--muted);max-width:640px;margin:0 auto 2rem}
.search-bar{display:flex;max-width:620px;margin:0 auto;background:var(--surface);border-radius:999px;padding:6px;box-shadow:var(--shadow);border:1px solid var(--border)}
.search-bar input{flex:1;border:0;outline:0;padding:.8rem 1.2rem;font-size:1rem;background:transparent;color:var(--text)}
.search-bar button{border-radius:999px}
.hero-stats{display:flex;gap:2.5rem;justify-content:center;margin-top:2rem;flex-wrap:wrap}
.hero-stats div{text-align:center}
.hero-stats strong{font-size:1.5rem;display:block}
.hero-stats span{color:var(--muted);font-size:.9rem}

/* ============ CARDS ============ */
.section{padding:3.5rem 0}
.section-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:1.8rem}
.section-head h2{margin:0}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.4rem}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:transform .15s,box-shadow .15s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.card-img{aspect-ratio:16/10;background:var(--surface-warm);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:.9rem;overflow:hidden}
.card-body{padding:1.3rem;display:flex;flex-direction:column;flex:1}
.card-body h3{margin:0 0 .5rem;font-size:1.15rem}
.card-body h3 a{color:var(--text)}
.card-meta{display:flex;flex-wrap:wrap;gap:.45rem;margin:.6rem 0}
.tag{font-size:.78rem;font-weight:600;background:var(--surface-warm);border:1px solid var(--border);color:var(--muted);padding:.2rem .65rem;border-radius:999px}
.tag.hot{background:var(--accent-soft);border-color:#F5C9B5;color:var(--accent-dark)}
.rating{color:var(--gold);font-weight:700}
.card-price{margin-top:auto;padding-top:1rem;display:flex;align-items:baseline;gap:.6rem}
.price{font-size:1.4rem;font-weight:800;color:var(--text)}
.price-note{font-size:.82rem;color:var(--muted)}
.price-ota{font-size:.85rem;color:var(--muted);text-decoration:line-through}

/* ============ FILTERS ============ */
.filters{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.2rem 1.4rem;margin-bottom:2rem;display:flex;flex-wrap:wrap;gap:.7rem;align-items:center}
.filters label{font-weight:700;font-size:.9rem;margin-right:.3rem}
.filter-chip{border:1px solid var(--border);background:var(--bg);border-radius:999px;padding:.45rem 1rem;font-size:.88rem;cursor:pointer;font-weight:600;color:var(--text)}
.filter-chip.active{background:var(--text);color:#fff;border-color:var(--text)}

/* ============ LISTING SINGLE ============ */
.class-hero{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:2rem;margin:2rem 0;display:grid;grid-template-columns:1fr 340px;gap:2rem}
.booking-box{background:var(--surface-warm);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;align-self:start;position:sticky;top:90px}
.booking-box .price{font-size:2rem}
.booking-box ul{list-style:none;margin:1rem 0}
.booking-box li{padding:.35rem 0;font-size:.95rem;border-bottom:1px dashed var(--border)}
.booking-box .btn{width:100%;text-align:center;margin-top:.6rem}
.price-table{width:100%;border-collapse:collapse;margin:1rem 0;background:var(--surface);border-radius:var(--radius);overflow:hidden}
.price-table th,.price-table td{padding:.8rem 1rem;text-align:left;border-bottom:1px solid var(--border)}
.price-table th{background:var(--surface-warm);font-size:.9rem;text-transform:uppercase;letter-spacing:.04em}
.price-table tr.best td{background:var(--green-soft);font-weight:700}
.toc{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.2rem 1.5rem;margin:1.5rem 0}
.toc strong{display:block;margin-bottom:.5rem}
.toc ol{margin:0 0 0 1.2rem}
.direct-answer{background:var(--accent-soft);border-left:4px solid var(--accent);border-radius:0 var(--radius) var(--radius) 0;padding:1rem 1.3rem;margin:1.2rem 0}
.direct-answer strong{display:block;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--accent-dark);margin-bottom:.3rem}
.faq{margin:1.5rem 0}
.faq details{background:var(--surface);border:1px solid var(--border);border-radius:10px;margin-bottom:.6rem;padding:.9rem 1.1rem}
.faq summary{font-weight:700;cursor:pointer}
.pros-cons{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.2rem 0}
.pros-cons div{border-radius:var(--radius);padding:1.1rem 1.3rem}
.pros{background:var(--green-soft)}
.cons{background:#FFF1F0}
.pros h4{color:var(--green)}.cons h4{color:#C92A2A}
.pros-cons ul{margin:0 0 0 1.1rem}

/* ============ DISH ============ */
.dish-price{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.3rem 1.6rem;margin:1.4rem 0}
.dish-price .big{font-size:1.8rem;font-weight:800;color:var(--accent-dark)}
.spot{border:1px solid var(--border);border-radius:10px;padding:1rem 1.2rem;margin-bottom:.8rem;background:var(--surface)}
.spot strong{display:block}

/* ============ BLOG / PILLAR ============ */
.post-card{display:flex;gap:1.2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.2rem;margin-bottom:1.1rem}
.post-card .thumb{width:150px;height:110px;flex-shrink:0;border-radius:10px;background:var(--surface-warm)}
.post-card h3{margin:0 0 .4rem;font-size:1.1rem}
.post-card h3 a{color:var(--text)}
.post-card p{font-size:.93rem;color:var(--muted);margin:0}
.rank-table{width:100%;border-collapse:collapse;background:var(--surface);border-radius:var(--radius);overflow:hidden;margin:1.5rem 0;font-size:.93rem}
.rank-table th,.rank-table td{padding:.75rem .9rem;border-bottom:1px solid var(--border);text-align:left}
.rank-table th{background:var(--text);color:#fff;font-size:.82rem;text-transform:uppercase;letter-spacing:.04em}
.rank-badge{display:inline-flex;width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff;font-weight:800;align-items:center;justify-content:center;font-size:.85rem}

/* ============ CHATBOT ============ */
#hcc-chat-fab{position:fixed;right:22px;bottom:22px;width:62px;height:62px;border-radius:50%;background:var(--accent);color:#fff;border:0;font-size:1.7rem;cursor:pointer;box-shadow:0 8px 28px rgba(187,58,43,.4);z-index:999}
#hcc-chat-panel{position:fixed;right:22px;bottom:96px;width:380px;max-width:calc(100vw - 44px);height:520px;max-height:70vh;background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:0 20px 60px rgba(46,42,37,.18);display:none;flex-direction:column;overflow:hidden;z-index:999}
#hcc-chat-panel.open{display:flex}
.hcc-chat-head{background:var(--text);color:#fff;padding:.9rem 1.2rem;font-weight:700;display:flex;justify-content:space-between;align-items:center}
.hcc-chat-head small{display:block;font-weight:400;font-size:.78rem;opacity:.75}
.hcc-chat-head button{background:none;border:0;color:#fff;font-size:1.3rem;cursor:pointer}
#hcc-chat-msgs{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.7rem}
.hcc-msg{max-width:85%;padding:.65rem .95rem;border-radius:14px;font-size:.93rem;line-height:1.55}
.hcc-msg.bot{background:var(--surface-warm);border:1px solid var(--border);align-self:flex-start;border-bottom-left-radius:4px}
.hcc-msg.user{background:var(--accent);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.hcc-msg.typing{opacity:.6}
.hcc-chat-input{display:flex;border-top:1px solid var(--border);padding:.7rem}
.hcc-chat-input input{flex:1;border:1px solid var(--border);border-radius:999px;padding:.6rem 1rem;font-size:.93rem;outline:0;color:var(--text)}
.hcc-chat-input button{background:var(--accent);color:#fff;border:0;border-radius:999px;padding:.6rem 1.1rem;margin-left:.5rem;cursor:pointer;font-weight:700}
.hcc-quick{display:flex;gap:.5rem;flex-wrap:wrap;padding:0 1rem .7rem}
.hcc-quick button{font-size:.8rem;border:1px solid var(--border);background:var(--bg);border-radius:999px;padding:.35rem .8rem;cursor:pointer}

/* ============ FOOTER ============ */
.site-footer{background:var(--surface);border-top:1px solid var(--border);margin-top:4rem;padding:3rem 0 1.5rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2rem;margin-bottom:2rem}
.footer-grid h4{font-size:.95rem;margin-bottom:.8rem}
.footer-grid ul{list-style:none;margin:0}
.footer-grid li{margin-bottom:.45rem}
.footer-grid a{color:var(--muted);font-size:.93rem}
.footer-bottom{border-top:1px solid var(--border);padding-top:1.2rem;display:flex;justify-content:space-between;color:var(--muted);font-size:.85rem;flex-wrap:wrap;gap:.5rem}

/* ============ SOCIAL / LANG / NEWSLETTER / TRUST ============ */
.social-row{display:flex;gap:.6rem;margin-top:1rem}
.social-icon{width:38px;height:38px;border-radius:50%;background:var(--surface-warm);border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;color:var(--text);transition:all .15s}
.social-icon:hover{background:var(--accent);border-color:var(--accent);color:#fff;transform:translateY(-2px)}
.lang-switcher{font-size:.88rem;font-weight:600;color:var(--muted);white-space:nowrap}
.lang-switcher .lang-active{color:var(--text)}
.lang-switcher .lang-soon{opacity:.55;cursor:help}
.lang-switcher ul{list-style:none;display:flex;gap:.6rem;margin:0}
.contact-list{list-style:none;margin:0 0 1rem}
.contact-list li{margin-bottom:.5rem;font-size:.93rem;color:var(--muted)}
.newsletter-mini{display:flex;gap:.5rem;margin-top:.4rem}
.newsletter-mini input{flex:1;border:1px solid var(--border);border-radius:999px;padding:.55rem 1rem;font-size:.9rem;outline:0;color:var(--text);min-width:0}
/* Back-to-top (all pages) */
#hcc-to-top{position:fixed;left:22px;bottom:22px;width:52px;height:52px;border-radius:50%;background:var(--text);color:#fbfaf4;border:0;font-size:1.4rem;line-height:1;cursor:pointer;box-shadow:0 8px 24px rgba(23,35,29,.35);z-index:999;opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .25s,transform .25s}
#hcc-to-top.show{opacity:1;pointer-events:auto;transform:none}
#hcc-to-top:hover{background:var(--accent)}
.trust-row{display:flex;gap:1.8rem;flex-wrap:wrap;justify-content:center;padding:1.2rem 0;border-top:1px solid var(--border);margin-bottom:1rem;color:var(--muted);font-size:.9rem;font-weight:600}
.reviews-showcase .card{text-align:left}

/* ============ RESPONSIVE ============ */
@media(max-width:900px){
  .class-hero{grid-template-columns:1fr}
  .booking-box{position:static}
  .footer-grid{grid-template-columns:1fr 1fr}
  .hero h1{font-size:2.1rem}
}
@media(max-width:700px){
  .main-nav{display:none;position:absolute;top:70px;left:0;right:0;background:var(--surface);flex-direction:column;padding:1rem 20px 1.5rem;border-bottom:1px solid var(--border);gap:1rem;align-items:flex-start}
  .main-nav.open{display:flex}
  .mobile-toggle{display:block}
  .pros-cons{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  #hcc-chat-panel{right:12px;bottom:92px}
}

/* ============ v4: images, hero bg, offers, chips ============ */
.hero-bg{background-size:cover;background-position:center;position:relative;color:#fff}
.hero-bg::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(24,14,6,.62),rgba(24,14,6,.42))}
.hero-bg .container{position:relative;z-index:1}
.hero-bg h1{color:#fff}
.hero-bg p.lead{color:#f7efe2}
.hero-bg .hero-stats strong{color:#fff}
.hero-bg .hero-stats span{color:#f0e6d4}
.card-img img{width:100%;height:100%;object-fit:cover;display:block}
.post-card .thumb{overflow:hidden;padding:0}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cover-wide{margin:0 0 1.6rem}
.cover-wide img{width:100%;max-height:420px;object-fit:cover;border-radius:14px;display:block}
.content-img{margin:1.8rem 0}
.content-img img{width:100%;border-radius:12px;display:block}
.offers-band{background:linear-gradient(180deg,#fff1c9,var(--bg))}
.offer-card{border:2px solid var(--accent)}
.offer-badge{display:inline-block;background:var(--accent);color:#fff;font-weight:800;font-size:.85rem;padding:.3rem .8rem;border-radius:999px;margin-bottom:.7rem}
.chip-row{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.4rem}
.chip{display:inline-block;padding:.4rem 1rem;border:1px solid var(--border);border-radius:999px;font-size:.88rem;color:var(--text);background:var(--surface);text-decoration:none}
.chip:hover{border-color:var(--accent);color:var(--accent)}
@media(max-width:640px){.hero-bg h1{font-size:2rem}}

/* ============ v6: magazine article ============ */
.article-body{font-size:1.07rem;line-height:1.85;overflow-wrap:break-word}
.article-body > p:first-of-type{font-size:1.19rem;line-height:1.7}
.article-body h2{font-size:1.85rem;margin:2.8rem 0 1.1rem;letter-spacing:-.02em}
.article-body h3{font-size:1.32rem;margin:2.1rem 0 .8rem}
.article-body blockquote{border-left:4px solid var(--accent);background:var(--surface);border-radius:0 var(--radius) var(--radius) 0;padding:1.1rem 1.4rem;margin:1.8rem 0;font-family:var(--serif);font-size:1.18rem;font-style:italic;line-height:1.6}
.article-body blockquote p{margin:0}
.article-body ul li::marker,.article-body ol li::marker{color:var(--accent);font-weight:700}

/* TOC — magazine card (content already ships nav.toc "In this guide") */
.toc{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.4rem 1.7rem;margin:1.8rem 0;box-shadow:var(--shadow)}
.toc p{margin:0 0 .6rem}
.toc strong{font-family:var(--serif);font-size:1.3rem;font-weight:650;letter-spacing:-.01em}
.toc ul,.toc ol{margin:0 0 0 1.15rem;columns:2;column-gap:2.5rem}
.toc li{margin-bottom:.4rem;font-size:.96rem;break-inside:avoid}
.toc a{color:var(--text);font-weight:600}
.toc a:hover{color:var(--accent)}
@media(max-width:700px){.toc ul,.toc ol{columns:1}}

/* Tables — uniform magazine treatment, swipeable on mobile */
.table-wrap{overflow-x:auto;margin:1.8rem 0;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}
.table-wrap table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:600px;margin:0}
.table-wrap thead th{background:var(--text);color:#fff;text-align:left;padding:.85rem 1.05rem;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}
.table-wrap tbody th{background:var(--surface-warm);text-align:left;padding:.85rem 1.05rem;font-size:.9rem}
.table-wrap tbody td{padding:.85rem 1.05rem;border-top:1px solid var(--border);vertical-align:top;line-height:1.6}
.table-wrap tbody tr:nth-child(even){background:var(--surface-warm)}
.table-wrap tbody tr.best td{background:var(--green-soft);font-weight:700}

/* Mid-article CTA (tour-blog standard) */
.cta-box{background:var(--text);color:#fbfaf4;border-radius:var(--radius);padding:2.2rem 2rem;margin:2.4rem 0;text-align:center;box-shadow:var(--shadow)}
.cta-box h3{font-family:var(--serif);font-size:1.65rem;font-weight:650;margin:0 0 .6rem;color:#fff;letter-spacing:-.01em}
.cta-box p{color:#cfd8d1;margin:0 auto 1.3rem;max-width:560px;font-size:.99rem}
.btn-cta{display:inline-block;background:var(--gold);color:#2a220e!important;font-weight:800;padding:.9rem 2rem;border-radius:12px;text-decoration:none;font-size:1.02rem}
.btn-cta:hover{filter:brightness(1.06)}
.cta-note{display:block;margin-top:.9rem;font-size:.83rem;color:#9fb0a6}
