/*
Theme Name: Best Home Use (BHG)
Theme URI: https://besthomeuse.com
Author: Best Home Use
Author URI: https://besthomeuse.com
Description: SSR-first, AI-native WordPress theme. Locked section types, configurable content, clean semantic HTML for SEO/GEO.
Version: 0.1.0
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.3
License: GPL-2.0-or-later
Text Domain: bhg
*/
:root{--bhg-ink:#0A0A0A;--bhg-paper:#fff;--bhg-accent:#FFD200;--bhg-muted:#6B6B6B;--bhg-line:#E6E6E6;--bhg-soft:#F6F6F6;--bhg-wrap:1200px;--bhg-radius:2px}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bhg-paper);color:var(--bhg-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.65}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4{margin:0 0 .5em;line-height:1.2}
p{margin:0 0 1em}
.wrap{max-width:var(--bhg-wrap);margin-inline:auto;padding-inline:24px}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:12px;top:12px;z-index:999;background:var(--bhg-accent);padding:8px 12px}

/* promo bar */
.bhg-promo{background:var(--bhg-accent);color:var(--bhg-ink);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.bhg-promo .wrap{display:flex;align-items:center;gap:12px;min-height:34px;flex-wrap:wrap}
.bhg-promo a{text-decoration:underline;text-underline-offset:3px}

/* site header */
.bhg-hdr{position:sticky;top:0;z-index:60;background:var(--bhg-ink);color:#fff}
.bhg-hdr .wrap{display:flex;align-items:center;gap:32px;min-height:66px}
.bhg-logo{font-weight:800;font-size:19px;letter-spacing:-.02em;white-space:nowrap}
.bhg-logo span{font-weight:400;opacity:.62;margin-left:8px;font-size:14px}
.bhg-nav{display:flex;gap:26px;margin-left:auto}
.bhg-nav a{font-size:14px;opacity:.86}
.bhg-nav a:hover{opacity:1;color:var(--bhg-accent)}
.bhg-btn{display:inline-block;background:var(--bhg-accent);color:var(--bhg-ink);font-size:13px;font-weight:750;padding:10px 16px;border:0;border-radius:var(--bhg-radius);cursor:pointer}
.bhg-btn:hover{filter:brightness(.94)}
.bhg-burger{display:none;background:none;border:0;color:#fff;font-size:22px;cursor:pointer}

/* page head + tabs */
.bhg-page-head{padding:44px 0 18px}
.bhg-page-head h1{font-size:clamp(30px,4.2vw,52px);letter-spacing:-.035em}
.bhg-page-head p{color:var(--bhg-muted);max-width:640px}
.bhg-tabs{overflow-x:auto;border-bottom:1px solid var(--bhg-line);scrollbar-width:none}
.bhg-tabs::-webkit-scrollbar{display:none}
.bhg-tabs .wrap{display:flex;gap:28px;white-space:nowrap}
.bhg-tab{background:none;border:0;border-bottom:2px solid transparent;padding:14px 0;font:inherit;font-size:14px;font-weight:650;color:var(--bhg-muted);cursor:pointer}
.bhg-tab[aria-current="true"]{color:var(--bhg-ink);border-bottom-color:var(--bhg-ink)}

/* hero */
.bhg-hero{position:relative;min-height:460px;background:var(--bhg-ink);color:#fff;display:flex;align-items:flex-end;overflow:hidden}
.bhg-hero__bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.62}
.bhg-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.82))}
.bhg-hero__body{position:relative;z-index:2;padding:56px 0;max-width:720px}
.bhg-hero h2{font-size:clamp(28px,4.4vw,50px);letter-spacing:-.03em;margin:0 0 14px}
.bhg-hero p{opacity:.9;max-width:560px}
.bhg-hero__eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--bhg-accent);font-weight:750;margin-bottom:14px}

/* section + cards */
.bhg-section{padding:56px 0;border-bottom:1px solid var(--bhg-line)}
.bhg-section__head{display:flex;align-items:baseline;gap:16px;margin-bottom:26px}
.bhg-section__head h2{font-size:28px;letter-spacing:-.02em;margin:0}
.bhg-section__head a{margin-left:auto;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.bhg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.bhg-card{display:block;position:relative}
.bhg-card__media{aspect-ratio:16/10;background:var(--bhg-soft);overflow:hidden;border-radius:var(--bhg-radius)}
.bhg-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.bhg-card:hover .bhg-card__media img{transform:scale(1.04)}
.bhg-cat{display:inline-block;font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:var(--bhg-muted);margin:14px 0 8px}
.bhg-card h3{font-size:19px;line-height:1.3;letter-spacing:-.01em;margin:0 0 8px}
.bhg-card p{font-size:14px;color:var(--bhg-muted);margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bhg-date{font-size:12px;color:var(--bhg-muted)}
.bhg-deal{position:absolute;top:12px;right:12px;background:var(--bhg-accent);color:var(--bhg-ink);font-size:12px;font-weight:800;padding:5px 9px;border-radius:var(--bhg-radius)}

/* table / faq / cta */
.bhg-table{width:100%;border-collapse:collapse;font-size:14px}
.bhg-table th,.bhg-table td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--bhg-line)}
.bhg-table th{background:var(--bhg-soft);font-weight:750}
.bhg-faq details{border-bottom:1px solid var(--bhg-line);padding:16px 0}
.bhg-faq summary{font-weight:700;cursor:pointer;font-size:16px}
.bhg-faq p{margin:10px 0 0;color:var(--bhg-muted)}
.bhg-cta{background:var(--bhg-ink);color:#fff;padding:56px 0;text-align:center}
.bhg-cta h2{font-size:clamp(26px,3.4vw,38px)}
.bhg-cta p{opacity:.82;max-width:560px;margin-inline:auto}

/* article */
.bhg-post-head{padding:44px 0 26px;max-width:820px}
.bhg-post-head h1{font-size:clamp(30px,4.4vw,50px);letter-spacing:-.035em}
.bhg-breadcrumb{font-size:12px;color:var(--bhg-muted);margin-bottom:16px}
.bhg-dek{font-size:19px;color:var(--bhg-muted)}
.bhg-meta{font-size:13px;color:var(--bhg-muted);display:flex;gap:16px;flex-wrap:wrap}
.bhg-post-hero img{width:100%;max-height:520px;object-fit:cover}
.bhg-post-body{max-width:760px;margin:0 auto;padding:40px 0 72px;font-size:17px;line-height:1.8}
.bhg-post-body h2{font-size:26px;margin-top:1.8em}
.bhg-post-body h3{font-size:20px;margin-top:1.4em}
.bhg-post-body table{margin:1.5em 0}
.bhg-post-body blockquote{border-left:3px solid var(--bhg-accent);padding-left:20px;color:var(--bhg-muted);font-style:italic}
.bhg-answer{background:var(--bhg-soft);padding:16px 20px;border-left:3px solid var(--bhg-accent);margin:0 0 1.4em}

/* footer */
.bhg-foot{background:var(--bhg-ink);color:#fff;padding:56px 0 28px}
.bhg-foot__grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:36px}
.bhg-foot h3{font-size:13px;letter-spacing:.08em;text-transform:uppercase;opacity:.6}
.bhg-foot a{font-size:14px;opacity:.85;display:block;padding:5px 0}
.bhg-foot a:hover{color:var(--bhg-accent);opacity:1}
.bhg-foot__bottom{border-top:1px solid #333;margin-top:40px;padding-top:20px;font-size:12px;opacity:.6;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

@media(max-width:900px){.bhg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bhg-foot__grid{grid-template-columns:repeat(2,1fr)}.bhg-nav{display:none}.bhg-burger{display:block;margin-left:auto}}
@media(max-width:600px){.bhg-grid{grid-template-columns:1fr}.bhg-foot__grid{grid-template-columns:1fr 1fr}.bhg-hero{min-height:380px}.bhg-hdr .wrap{gap:12px}.bhg-page-head{padding:30px 0 14px}}

/* Contact bar in footer (2026-11-13) */
.bhg-foot__contact{margin-top:26px;display:flex;gap:12px;flex-wrap:wrap;font-size:13px;opacity:.8}
.bhg-foot__contact a{color:inherit;font-weight:600;text-decoration:underline;text-decoration-color:#f5c518}
.bhg-foot__contact span{opacity:.7;font-style:italic}
