/*
Theme Name: HoneyBadger Audio
Theme URI: https://www.honeybadgeraudio.com
Author: HoneyBadger Audio
Description: Purpose-built WooCommerce theme for HoneyBadger Audio hardware and DIY projects.
Version: 0.5.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: honeybadger-audio
*/

:root {
  --hba-ink: #070909;
  --hba-panel: #101514;
  --hba-panel-2: #161c1a;
  --hba-green: #173b34;
  --hba-carbon: #292d2c;
  --hba-gold: #e2ad4c;
  --hba-cream: #f3efe4;
  --hba-muted: #a9afa9;
  --hba-line: rgba(226, 173, 76, .32);
  --hba-serif: "Playfair Display", Georgia, serif;
  --hba-sans: Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--hba-cream); background: var(--hba-ink); font-family: var(--hba-sans); line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 1000; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 12px clamp(20px, 4vw, 72px); border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(7,9,9,.93); backdrop-filter: blur(18px); }
.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 210px; }
.site-brand-mark { width: 43px; height: 43px; object-fit: contain; }
.site-brand-wordmark { width: 166px; max-height: 34px; object-fit: contain; }
.primary-menu { display: flex; align-items: center; gap: clamp(15px, 2.2vw, 34px); list-style: none; padding: 0; margin: 0; }
.primary-menu a { color: #fff; text-decoration: none; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--hba-gold); }
.header-cart { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--hba-gold); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 1.4rem; }

.hba-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hba-section { padding: clamp(72px, 9vw, 140px) 0; }
.hba-index { display: block; color: var(--hba-gold); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.hba-title { margin: 0; font-size: clamp(3rem, 7vw, 7rem); line-height: .92; letter-spacing: -.045em; font-weight: 600; }
.genesis-word { color: var(--hba-gold); font-family: var(--hba-serif); font-style: normal; font-weight: 600; }
.hba-copy { color: #c9cdc8; max-width: 650px; font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hba-button, .button, button.button, input.button, .wp-element-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid var(--hba-gold); border-radius: 0; background: var(--hba-gold); color: #111; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; cursor: pointer; }
.hba-button:hover, .button:hover { background: transparent; color: var(--hba-gold); }

.home-hero { position: relative; min-height: calc(100svh - 74px); display: grid; align-items: center; overflow: hidden; background: radial-gradient(circle at 70% 45%, rgba(226,173,76,.13), transparent 30%), linear-gradient(135deg, #07100e, #112821 52%, #060807); }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.4), transparent 55%); pointer-events: none; }
.home-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.3fr; align-items: center; gap: 48px; }
.home-hero-copy p { max-width: 540px; color: #c3c8c3; font-size: 1.08rem; }
.home-product { filter: drop-shadow(0 30px 45px rgba(0,0,0,.55)); }
.manifesto { text-align: center; background: #0b0e0d; }
.manifesto h2 { max-width: 940px; margin: 0 auto 24px; font-size: clamp(2.3rem, 5vw, 5rem); line-height: 1; }
.manifesto p { max-width: 690px; margin: auto; color: var(--hba-muted); }
.feature-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(40px, 7vw, 100px); }
.feature-visual { min-height: 420px; display: grid; place-items: center; padding: 50px; border: 1px solid var(--hba-line); background: linear-gradient(145deg,#0c1513,#162d28); }
.feature-copy h2 { font-size: clamp(3.5rem, 6vw, 6.5rem); margin: 0 0 20px; }

.page-hero { padding: 130px 0 70px; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(145deg, #0c1311, #101a17); }
.page-hero h1 { margin: 0; font-size: clamp(3.2rem, 7vw, 7rem); line-height: .95; }
.entry-content { padding: 70px 0 110px; }
.entry-content > * { max-width: 820px; }
.entry-content h2 { margin-top: 2.4em; color: var(--hba-gold); font-size: clamp(1.8rem, 3vw, 3rem); }

.woocommerce-page main, .woocommerce main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 110px; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.woocommerce div.product .product_title { font-family: var(--hba-serif); color: var(--hba-gold); font-size: clamp(3rem, 6vw, 6rem); font-style: normal; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--hba-gold); font-size: 1.45rem; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--hba-gold); background: var(--hba-panel); color: var(--hba-cream); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select { min-height: 48px; background: #111514; color: #fff; border: 1px solid rgba(255,255,255,.18); padding: 10px 12px; }
.quantity { display: inline-flex; }
.quantity input.qty { width: 72px; min-height: 48px; background: #111514; color: #fff; border: 1px solid rgba(255,255,255,.18); }

.site-footer { border-top: 1px solid rgba(255,255,255,.1); padding: 70px clamp(20px,4vw,72px) 28px; background: #050706; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 50px; }
.footer-brand img { width: 58px; }
.footer-brand strong { display: block; color: var(--hba-gold); margin-top: 12px; }
.footer-group h3 { color: var(--hba-gold); text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; }
.footer-group a { display: block; color: #bec3be; text-decoration: none; padding: 4px 0; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); color: #7e8680; font-size: .76rem; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .primary-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 20px; background: #070909; }
  .primary-navigation.is-open { display: block; }
  .primary-menu { flex-direction: column; align-items: flex-start; }
  .site-brand-wordmark { width: 130px; }
  .home-hero-inner, .feature-grid, .woocommerce div.product { grid-template-columns: 1fr; }
  .home-hero-copy { padding-top: 60px; }
  .home-product { padding-bottom: 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .header-cart span { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Native WordPress interaction layer. */
.hba-runtime-modal{z-index:99999}.hba-runtime-shell{max-width:min(1040px,92vw)}
.hba-runtime-shell:not(:has(iframe)){background:#101414;border:1px solid rgba(226,173,76,.45);padding:52px;color:#f4f1e8;min-height:0}
.hba-privacy,.hba-chat-fallback{display:grid;gap:18px;max-width:620px}.hba-privacy h2,.hba-chat-fallback h2{font-family:var(--font-playfair),Georgia,serif;font-size:clamp(36px,5vw,68px);font-weight:500;margin:0}.hba-privacy p,.hba-chat-fallback p{color:#b8b8af;line-height:1.7}.hba-privacy label{display:flex;align-items:center;gap:12px;border-top:1px solid rgba(255,255,255,.12);padding-top:14px}.hba-privacy input{accent-color:#e2ad4c}.hba-chat-fallback .text-link{margin-top:8px;color:#e2ad4c}
.manual-runtime-reader{height:min(76vh,900px);overflow:auto;background:#1a1e1e;border:1px solid #bdb8ad;margin:0 0 42px;padding:0 18px 18px;scrollbar-color:#e2ad4c #151919}.manual-runtime-toolbar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:18px 8px;background:#1a1e1e;color:#f4f1e8;border-bottom:1px solid rgba(255,255,255,.15)}.manual-runtime-toolbar a{color:#e2ad4c}.manual-runtime-pages{display:grid;gap:18px;max-width:980px;margin:18px auto}.manual-runtime-pages img{display:block;width:100%;height:auto;background:#fff}
.passport-entry-error[hidden]{display:none}.passport-runtime{margin-top:26px}.passport-scanner video{width:100%;height:100%;object-fit:cover}
.hba-diy-contents{max-width:720px}.hba-diy-contents h2{font-family:var(--font-playfair),Georgia,serif;color:#e2ad4c;font-size:clamp(38px,5vw,70px);font-weight:500;margin:12px 0 24px}.hba-diy-contents ul{columns:2;column-gap:36px;margin:0;padding:0;list-style:none}.hba-diy-contents li{break-inside:avoid;border-top:1px solid rgba(255,255,255,.12);padding:11px 0;color:#d9d9d1}
@media(max-width:700px){.hba-runtime-shell:not(:has(iframe)){padding:50px 24px 30px}.manual-runtime-reader{height:68vh;padding:0 8px 8px}.manual-runtime-toolbar{font-size:11px}}

/* Live Smash Balloon Instagram feed. */
.instagram-live-section{overflow:hidden}.instagram-live-shell{margin-top:38px;min-height:320px}.instagram-live-shell #sb_instagram{width:100%!important;padding:0!important}.instagram-live-shell #sbi_images{padding:0!important}.instagram-live-shell .sbi_item{overflow:hidden;background:#101313;border:1px solid rgba(226,173,76,.18);transition:transform .35s ease,border-color .35s ease}.instagram-live-shell .sbi_item:hover{transform:translateY(-7px);border-color:#e2ad4c}.instagram-live-shell .sbi_photo{background-color:#0d1010!important}.instagram-live-shell .sbi_photo img{transition:transform .7s cubic-bezier(.2,.7,.2,1)}.instagram-live-shell .sbi_photo:hover img{transform:scale(1.04)}.instagram-live-shell .sbi_follow_btn a,.instagram-live-shell #sbi_load .sbi_load_btn{border-radius:0!important;background:#e2ad4c!important;color:#101313!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.08em;box-shadow:none!important}.instagram-live-shell .sbi_follow_btn a:hover,.instagram-live-shell #sbi_load .sbi_load_btn:hover{background:#f0c56b!important}.instagram-feed-notice{padding:48px;border:1px solid rgba(226,173,76,.25);text-align:center;color:#b8bdbb}
@media(max-width:720px){.instagram-live-shell{margin-top:24px;min-height:220px}.instagram-live-shell .sbi_item:hover{transform:none}}

/* Genesis remote-demo signup states. */
.hba-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.signup-status{grid-column:1/-1;margin:4px 0 0;padding:12px 14px;border-left:2px solid #e2ad4c;background:rgba(226,173,76,.08);color:#f4f1e8;font-size:.82rem;line-height:1.5}
.signup-status:empty{display:none}.signup-status.is-error{border-left-color:#e87878;background:rgba(232,120,120,.1);color:#ffd9d9}
.early-access [type="submit"]:disabled{opacity:.62;cursor:wait}
