/* ==========================================================================
   Tabien Chrome — site-wide branded header/footer
   Ported from the front-page (page-special-design.php) so every page (blog,
   articles, shop, etc.) shares the same dark-luxury header/footer.
   Loaded only on NON-front pages (front page keeps its own inline styles).
   ========================================================================== */

:root{
  --bg:#07060a; --bg-deep:#050407;
  --surface-1:#0e0c10; --surface-2:#15121a; --surface-3:#1c1822;
  --border:#2a2330; --border-bright:#3a3142;
  --text:#b8b1a3; --text-dim:#6e6a5e; --text-mute:#4a4640; --text-bright:#f2ecdb; --text-white:#fff;
  --gold-bright:#e4c87a; --gold:#c9a961; --gold-deep:#a07c2c; --gold-dim:#6a5520;
  --line:#06C755; --line-hover:#05a847;
  --radius-lg:18px; --radius:14px; --radius-sm:8px; --radius-xs:4px;
  --shadow-gold:0 8px 32px rgba(201,169,97,.25);
  --ease:cubic-bezier(.4,0,.2,1);
}

/* Scope a clean box model + brand font to the chrome only (don't touch page content).
   Force the font on EVERY header/footer descendant with !important so no theme rule
   leaks a fallback Thai font into the logo/nav (which rendered taller on non-front pages). */
.top-bar, .site-header, .site-footer, .floating-line{
  font-family:'Prompt','Sarabun','Sukhumvit Set',-apple-system,BlinkMacSystemFont,sans-serif;
  font-weight:300; letter-spacing:.2px;
  /* pin line-height + base colour so the chrome doesn't inherit theme-dependent values
     (front page body = 1.6, other themes = 1.4 → top-bar/CTA rendered shorter elsewhere). */
  line-height:1.6; color:var(--text);
}
.top-bar, .top-bar *, .site-header, .site-header *, .site-footer, .site-footer *{
  font-family:'Prompt','Sarabun','Sukhumvit Set',-apple-system,BlinkMacSystemFont,sans-serif !important;
}
.top-bar *, .site-header *, .site-footer *, .floating-line *{ box-sizing:border-box; }
.top-bar a, .site-header a, .site-footer a{ text-decoration:none; color:inherit; }
.site-header svg, .site-footer svg, .floating-line svg, .top-bar svg{ display:inline-block; }
.site-header button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }

/* .container scoped to the chrome only — the front page uses a bare .container for its
   OWN content sections, so an unscoped rule would fight it if this sheet loads there. */
.top-bar .container, .site-header .container, .site-footer .container{ max-width:1340px; margin:0 auto; padding-inline:clamp(16px,4vw,50px); }

/* ========== ANNOUNCEMENT BAR ========== */
.top-bar{
  background:linear-gradient(90deg,#0a0810 0%,#15121a 50%,#0a0810 100%);
  border-bottom:1px solid var(--border);
  font-size:12px; color:var(--text-dim); letter-spacing:.3px;
}
.top-bar .top-bar-inner{ display:flex; justify-content:space-between; align-items:center; padding-block:9px; gap:20px; flex-wrap:wrap; }
.top-bar-left{ display:flex; gap:22px; align-items:center; flex-wrap:wrap; }
.top-bar-item{ display:inline-flex; align-items:center; gap:6px; }
.top-bar-item svg{ width:13px; height:13px; fill:var(--gold-dim); }
.top-bar-right{ display:flex; gap:16px; align-items:center; }
.top-bar-right a{ color:var(--text-dim); transition:color .2s; }
.top-bar-right a:hover{ color:var(--gold); }

/* ========== HEADER ========== */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(7,6,10,.88);
  backdrop-filter:blur(16px) saturate(150%);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  border-bottom:1px solid var(--border);
}
body.admin-bar .site-header{ top:32px; }
@media screen and (max-width:782px){ body.admin-bar .site-header{ top:46px; } }
/* scoped + padding-block so the chrome inner beats the front page's own bare `.container`
   rule (the header element carries BOTH `container` and `header-inner` classes). */
.site-header .header-inner{ display:flex; align-items:center; justify-content:space-between; padding-block:16px; gap:24px; }
.logo{ display:inline-flex; align-items:center; gap:10px; font-size:22px; font-weight:600; color:var(--text-bright); letter-spacing:.5px; flex-shrink:0; line-height:1.6; }
.logo-mark{
  width:38px; height:38px; border-radius:50%;
  background:url('https://toetabien.com/wp-content/themes/twentytwentyfive/assets/favicon/logo-mark-96.png') center/cover no-repeat;
  box-shadow:0 2px 12px rgba(201,169,97,.4); flex-shrink:0;
}
.logo span{ color:var(--gold); }
.logo-tagline{ display:block; font-size:10px; font-weight:300; color:var(--text-dim); letter-spacing:2px; margin-top:-2px; text-transform:uppercase; }
.nav{ display:flex; gap:28px; align-items:center; flex:1; justify-content:center; }
.nav a{ font-size:14px; font-weight:400; color:var(--text); transition:color .2s; position:relative; padding:6px 2px; letter-spacing:.2px; }
.nav a:hover, .nav a.active{ color:var(--text-bright); }
.nav a::after{ content:''; position:absolute; bottom:0; left:0; width:0; height:1px; background:linear-gradient(90deg,var(--gold-bright),var(--gold-deep)); transition:width .3s var(--ease); }
.nav a:hover::after, .nav a.active::after{ width:100%; }
.header-actions{ display:flex; gap:10px; align-items:center; flex-shrink:0; }
.header-cta{
  background:var(--line); color:#fff; padding:11px 22px; border-radius:100px;
  font-weight:500; font-size:14px; transition:all .2s;
  display:inline-flex; align-items:center; justify-content:center; gap:8px; flex-shrink:0;
}
.site-header .header-cta{ color:#fff; }
.header-cta svg{ width:16px; height:16px; flex-shrink:0; fill:currentColor; }
.header-cta:hover{ background:var(--line-hover); transform:translateY(-1px); }
.mobile-menu-btn{ display:none; }

/* ========== FOOTER ========== */
.site-footer{
  background:linear-gradient(180deg,var(--surface-1),var(--bg-deep));
  border-top:1px solid var(--border); padding:68px 0 30px; position:relative;
}
.site-footer::before{ content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,var(--gold),transparent); }
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr 1.2fr; gap:36px; margin-bottom:44px; }
.footer-brand .logo{ margin-bottom:18px; }
.footer-brand p{ font-size:14px; color:var(--text); line-height:1.7; margin-bottom:20px; max-width:320px; }
.footer-social{ display:flex; gap:10px; }
.social-btn{ width:38px; height:38px; border-radius:50%; border:1px solid var(--border); color:var(--text); display:inline-flex; align-items:center; justify-content:center; transition:all .2s; }
.social-btn:hover{ border-color:var(--gold); color:var(--gold); transform:translateY(-2px); }
.social-btn svg{ width:16px; height:16px; fill:currentColor; }
.footer-col h4{ font-size:13px; color:var(--text-bright); font-weight:500; margin-bottom:18px; text-transform:uppercase; letter-spacing:1.5px; position:relative; padding-bottom:12px; }
.footer-col h4::after{ content:''; position:absolute; bottom:0; left:0; width:24px; height:1px; background:var(--gold); }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin-bottom:12px; }
.footer-col a{ font-size:13px; color:var(--text); transition:color .2s; display:inline-flex; align-items:center; gap:6px; }
.footer-col a:hover{ color:var(--gold); }
.footer-col a::before{ content:'›'; color:var(--gold-dim); transition:transform .2s; }
.footer-col a:hover::before{ transform:translateX(2px); color:var(--gold); }
.footer-contact-item{ margin-bottom:14px; padding-left:24px; position:relative; font-size:13px; color:var(--text); line-height:1.6; }
.footer-contact-item svg{ position:absolute; left:0; top:3px; width:14px; height:14px; fill:var(--gold); }
.footer-contact-item strong{ display:block; color:var(--text-bright); font-weight:500; font-size:12px; margin-bottom:2px; letter-spacing:.5px; }
.footer-payment{ margin-top:8px; }
.footer-payment-label{ font-size:11px; color:var(--text-dim); letter-spacing:1px; text-transform:uppercase; margin-bottom:10px; }
.footer-payment-badges{ display:flex; gap:8px; flex-wrap:wrap; }
.payment-badge{ padding:6px 12px; background:var(--surface-3); border:1px solid var(--border); border-radius:var(--radius-sm); font-size:11px; color:var(--text); font-weight:500; }
.footer-bottom{ border-top:1px solid var(--border); padding-top:26px; display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--text-dim); flex-wrap:wrap; gap:16px; }
.footer-bottom-links{ display:flex; gap:18px; }
.footer-bottom-links a:hover{ color:var(--gold); }

/* ========== FLOATING LINE BUTTON ========== */
.floating-line{
  position:fixed; bottom:24px; right:24px; width:60px; height:60px; border-radius:50%;
  background:var(--line); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.4); z-index:90; transition:all .2s;
}
.floating-line:hover{ transform:scale(1.08); background:var(--line-hover); }
.floating-line svg{ width:28px; height:28px; fill:currentColor; }
.floating-line-label{
  position:absolute; right:70px; background:#0a0810; color:var(--text-bright); padding:8px 14px; border-radius:8px;
  font-size:12px; white-space:nowrap; border:1px solid var(--gold-dim); opacity:0; transform:translateX(10px);
  transition:all .3s; pointer-events:none;
}
.floating-line:hover .floating-line-label{ opacity:1; transform:translateX(0); }

/* ========== RESPONSIVE (chrome only) ========== */
@media (max-width:1100px){
  .footer-grid{ grid-template-columns:1.5fr 1fr 1fr; }
  .footer-col:nth-child(4), .footer-col:nth-child(5){ grid-column:span 1; }
}
@media (max-width:900px){
  .nav{
    display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column; gap:0;
    background:rgba(7,6,10,.98); border-bottom:1px solid var(--border); padding:8px 16px 16px;
    backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  }
  .site-header{ position:sticky; }
  .header-inner{ position:relative; }
  .nav.open{ display:flex; }
  .nav.open a{ padding:12px 4px; border-bottom:1px solid var(--border); width:100%; justify-content:flex-start; }
  .mobile-menu-btn{ display:inline-flex; width:40px; height:40px; flex-shrink:0; border:1px solid var(--border); border-radius:50%; align-items:center; justify-content:center; color:var(--text); }
  .mobile-menu-btn svg{ width:18px; height:18px; fill:currentColor; }
  .top-bar{ display:none; }
  .header-actions .header-cta span{ display:none; }
  .header-actions .header-cta{ width:40px; height:40px; padding:0; gap:0; border-radius:50%; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; gap:12px; text-align:center; }
  .footer-bottom-links{ flex-wrap:wrap; justify-content:center; gap:12px; }
  .floating-line{ width:54px; height:54px; bottom:16px; right:16px; }
  .floating-line-label{ display:none; }
  .top-bar .container, .site-header .container, .site-footer .container{ padding-inline:16px; }
}
@media (max-width:400px){
  .top-bar .container, .site-header .container, .site-footer .container{ padding-inline:12px; }
  .header-inner{ padding:12px 0; gap:8px; }
  .logo-mark{ width:36px; height:36px; }
  .logo-tagline{ display:none; }
  .header-actions{ gap:6px; }
  .mobile-menu-btn{ width:36px; height:36px; }
  .header-actions .header-cta{ width:36px; height:36px; padding:0; }
}

/* ==========================================================================
   DARK ARTICLE / BLOG THEME — scoped to single posts + the blog listing only
   (body.single-post / body.blog). Other pages (shop, about, …) are untouched.
   Makes the article body match the dark-luxury site, so the white Plate Tiles
   read like the homepage Catalog.
   ========================================================================== */
body.single-post, body.blog{ background:#07060a; }
body.single-post .wp-site-blocks, body.blog .wp-site-blocks{ background:#07060a; }
body.single-post main.wp-block-group, body.blog main.wp-block-group{
  background:#07060a;
  color:#cfc7b6;
  font-family:'Prompt','Sarabun',-apple-system,sans-serif;
}

/* readable long-form body text on dark */
body.single-post .entry-content,
body.single-post .wp-block-post-content{
  color:#d2ccbe; font-size:17px; line-height:1.85; font-weight:300;
}
body.single-post .entry-content p{ color:#cfc7b6; margin:0 0 1.1em; }
body.single-post .entry-content strong,
body.single-post .entry-content b{ color:#f2ecdb; font-weight:600; }

/* titles + headings in gold/bright */
body.single-post .wp-block-post-title,
body.single-post h1.wp-block-post-title{ color:#f2ecdb; }
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4{ color:#c9a961; font-weight:700; }
body.single-post .entry-content h2{ border-bottom:1px solid rgba(201,169,97,.25); padding-bottom:.3em; }

/* links + lists + quotes */
body.single-post .entry-content a{ color:#e4c87a; text-decoration:underline; text-underline-offset:3px; }
body.single-post .entry-content a:hover{ color:#f2ecdb; }
body.single-post .entry-content li{ color:#cfc7b6; }
body.single-post .entry-content blockquote{ border-left:3px solid #c9a961; color:#d2ccbe; }
body.single-post .entry-content hr{ border-color:rgba(201,169,97,.2); }

/* post meta (date / author / "more posts" / related) */
body.single-post main .wp-block-post-date,
body.single-post main .wp-block-post-author,
body.single-post main .wp-block-post-terms,
body.single-post main .wp-block-query-title,
body.single-post main .wp-block-post-navigation-link,
body.single-post main figcaption{ color:#9b958a !important; }
body.single-post main .wp-block-post-date a,
body.single-post main .wp-block-post-title a{ color:#e4c87a; }

/* blog listing (/blog/) */
body.blog main.wp-block-group{ color:#cfc7b6; }
body.blog main .wp-block-post-title,
body.blog main .wp-block-query-title,
body.blog main h1, body.blog main h2{ color:#f2ecdb; }
body.blog main .wp-block-post-title a{ color:#f2ecdb; }
body.blog main .wp-block-post-title a:hover{ color:#c9a961; }
body.blog main .wp-block-post-excerpt,
body.blog main .wp-block-post-date,
body.blog main p{ color:#9b958a; }
body.blog main .wp-block-post-date a{ color:#c9a961; }

/* ==========================================================================
   PLATE ANALYSIS POPUP — front.js builds #tb-booking-popup (.tb-popup-overlay)
   but NO CSS existed for it anywhere, so it rendered as a static block at the
   bottom of the page. Make it a proper centered modal. (Loads on non-front
   pages; the homepage uses its own #plateModal and is unaffected.)
   ========================================================================== */
.tb-popup-overlay{
  position:fixed !important; inset:0 !important; z-index:100000 !important;
  display:none; align-items:flex-start; justify-content:center;
  background:rgba(5,4,7,.78); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
  padding:5vh 16px; overflow-y:auto;
}
.tb-popup-overlay.active{ display:flex !important; }
.tb-popup-card{
  position:relative; width:100%; max-width:560px; margin:auto;
  background:#fff; border-radius:18px; box-shadow:0 24px 70px rgba(0,0,0,.6);
  padding:30px 20px 22px;
}
.tb-popup-close{
  position:absolute; top:10px; right:12px; width:34px; height:34px;
  border:none; background:#f1eee6; color:#1c1f2e; border-radius:50%;
  font-size:18px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:2;
}
.tb-popup-close:hover{ background:#e4c87a; }

/* ==========================================================================
   BLOG COVER IMAGE (16:9, YouTube-style) — article hero + listing card.
   Featured image, else a branded placeholder so every post has a cover.
   ========================================================================== */
.tbart-cover{ position:relative; width:100%; aspect-ratio:16/9; border-radius:16px; overflow:hidden; background:#0e0c10; }
.tbart-cover img.tbart-cover-img{ width:100%; height:100%; object-fit:cover; display:block; }
.tbart-cover--ph{ display:flex; align-items:center; justify-content:center;
  background:radial-gradient(circle at 30% 25%,rgba(201,169,97,.18),transparent 60%),linear-gradient(135deg,#0e0c10,#1c1822);
  border:1px solid #2a2330; }
.tbart-cover-ph-inner{ text-align:center; padding:10px; }
.tbart-cover-ph-num{ font-family:'Prompt',sans-serif; font-weight:800; font-size:clamp(54px,12vw,128px); line-height:1; letter-spacing:4px; color:#c9a961; text-shadow:0 4px 30px rgba(201,169,97,.4); }
.tbart-cover-ph-num--word{ letter-spacing:2px; }
.tbart-cover-ph-brand{ margin-top:12px; color:#9b958a; letter-spacing:2px; font-size:clamp(12px,2.5vw,15px); }

/* article hero spacing */
body.single-post .tbart-cover{ margin:0 0 28px; border:1px solid #2a2330; }

/* ==========================================================================
   /blog/ — YouTube-style card grid
   ========================================================================== */
.tbart-blog-h1{ color:#f2ecdb !important; text-align:center; margin:8px auto 26px; }
.tbart-blog-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,340px)); justify-content:center; gap:24px; max-width:1100px; margin:0 auto; }
.tbart-card{ position:relative; display:flex; flex-direction:column; text-decoration:none; background:#0e0c10; border:1px solid #2a2330; border-radius:14px; overflow:hidden; transition:transform .15s, box-shadow .15s, border-color .15s; }
.tbart-card:hover{ transform:translateY(-4px); box-shadow:0 14px 36px rgba(0,0,0,.5); border-color:#c9a961; }
.tbart-card-link{ position:absolute; inset:0; z-index:2; }
.tbart-card-cover .tbart-cover{ border-radius:0; }
.tbart-card-body{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.tbart-card-title{ color:#f2ecdb; font-size:17px; font-weight:700; line-height:1.4; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tbart-card-excerpt{ color:#9b958a; font-size:14px; line-height:1.6; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tbart-card-date{ color:#6e6a5e; font-size:12.5px; margin-top:auto; padding-top:4px; }
.tbart-blog-empty{ text-align:center; color:#c9a961; padding:48px 16px; }
.tbart-blog-pager{ margin:36px auto 0; }
.tbart-blog-pager ul{ list-style:none; display:flex; gap:8px; justify-content:center; padding:0; flex-wrap:wrap; }
.tbart-blog-pager li{ margin:0; }
.tbart-blog-pager a, .tbart-blog-pager span{ display:inline-flex; min-width:40px; height:40px; align-items:center; justify-content:center; padding:0 12px; border:1px solid #2a2330; border-radius:8px; color:#cfc7b6; text-decoration:none; }
.tbart-blog-pager a:hover{ border-color:#c9a961; color:#c9a961; }
.tbart-blog-pager .current{ background:#c9a961; color:#0a0810; border-color:#c9a961; font-weight:700; }
@media(max-width:900px){ .tbart-blog-grid{ grid-template-columns:repeat(2,1fr); gap:16px; } }
@media(max-width:560px){ .tbart-blog-grid{ grid-template-columns:1fr; } }

/* TABIEN-BKK-DROPDOWN — Bangkok plate categories dropdown */
.nav .has-sub{position:relative;}
.nav .nav-top{font-size:14px;font-weight:400;color:var(--text);background:none;border:none;font-family:inherit;cursor:pointer;padding:6px 2px;letter-spacing:.2px;display:inline-flex;align-items:center;gap:5px;transition:color .2s;}
.nav .has-sub:hover .nav-top,.nav .has-sub.sub-open .nav-top{color:var(--text-bright);}
.nav .nav-top .caret{width:9px;height:9px;fill:currentColor;transition:transform .25s;}
.nav .has-sub:hover .caret,.nav .has-sub.sub-open .caret{transform:rotate(180deg);}
.nav .submenu{position:absolute;top:100%;left:50%;transform:translateX(-50%) translateY(8px);min-width:268px;background:rgba(14,12,16,.99);border:1px solid var(--border-bright);border-radius:14px;padding:8px;box-shadow:0 18px 50px rgba(0,0,0,.55);opacity:0;visibility:hidden;transition:.22s var(--ease);z-index:200;}
.nav .has-sub:hover .submenu,.nav .has-sub.sub-open .submenu{opacity:1;visibility:visible;transform:translateX(-50%) translateY(6px);}
.nav .submenu a{display:block;padding:11px 14px;border-radius:9px;font-size:14px;color:var(--text);transition:.15s;border-bottom:1px solid rgba(255,255,255,.04);white-space:nowrap;}
.nav .submenu a:last-child{border-bottom:none;}
.nav .submenu a:hover{background:linear-gradient(90deg,rgba(201,169,97,.16),rgba(201,169,97,.04));color:var(--gold-bright);}
.nav .submenu a::after{content:none;display:none;}
@media (max-width:900px){
  .nav .has-sub{width:100%;}
  .nav .nav-top{display:flex;justify-content:space-between;width:100%;padding:12px 4px;border-bottom:1px solid var(--border);font-size:15px;color:var(--gold-bright);}
  .nav .submenu{position:static;transform:none;opacity:1;visibility:visible;min-width:0;max-height:0;overflow:hidden;padding:0;margin:0;border:none;border-radius:10px;background:rgba(255,255,255,.03);box-shadow:none;transition:max-height .3s ease;}
  .nav .has-sub.sub-open .submenu{max-height:640px;padding:4px 6px;margin:2px 0 6px;}
  .nav .submenu a{padding:11px 12px 11px 22px;font-size:14px;}
}

/* TABIEN-BKK-DROPDOWN-FIX */
@media (max-width:900px){.nav .has-sub{position:static;}.nav .has-sub.sub-open .submenu{transform:none;}.nav .submenu{left:auto;right:auto;transform:none;background:rgba(255,255,255,.05);}}

/* TABIEN-BKK-NAV-FIT */
.nav>a,.nav .nav-top{white-space:nowrap;}
@media (min-width:901px){.nav{gap:18px;}}
@media (min-width:901px) and (max-width:1180px){.nav{gap:13px;}.nav>a,.nav .nav-top{font-size:13px;}}
