/*
Theme Name: Beyond the Fan Deck Modern
Theme URI: https://beyondthefandeck.com
Author: Beyond the Fan Deck
Description: Lightweight custom theme for the independent paint trade community.
Version: 1.1.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: btfd
*/

:root {
  --btfd-background: #f8fafc;
  --btfd-ink: #17212f;
  --btfd-muted: #667085;
  --btfd-surface: #fff;
  --btfd-surface-low: #f1f6fa;
  --btfd-surface-container: #e8eef4;
  --btfd-outline: #dce5ed;
  --btfd-green: #078fdc;
  --btfd-green-dark: #0874b5;
  --btfd-coral: #ff5b51;
  --btfd-blue: #0799ee;
  --btfd-yellow: #ffb816;
  --btfd-lime: #59d7b2;
  --btfd-teal: #0ab89b;
  --btfd-violet: #7650c8;
  --btfd-navy: #17243a;
  --btfd-error: #b3261e;
  --btfd-radius-sm: 8px;
  --btfd-radius-md: 12px;
  --btfd-radius-lg: 18px;
  --btfd-shadow: 0 24px 70px rgba(23, 36, 58, .12);
  --btfd-font-ui: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --btfd-font-display: "Manrope", var(--btfd-font-ui);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--btfd-surface-container); color: var(--btfd-ink); font: 16px/1.56 var(--btfd-font-ui); }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--btfd-lime); outline-offset: 2px; }
.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-shell { width: min(1500px, 100%); min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--btfd-background); box-shadow: var(--btfd-shadow); }
.site-main { min-height: 60vh; }
.wrap { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }
.topnote { padding: 9px 24px; background: var(--btfd-navy); color: #f3f7fb; font-size: 12px; text-align: center; }

.site-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; min-height: 84px; padding: 0 clamp(20px, 4vw, 60px); border-bottom: 1px solid var(--btfd-outline); background: rgba(255, 255, 255, .93); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--btfd-ink); font-family: var(--btfd-font-display); font-size: 17px; font-weight: 800; text-decoration: none; }
.brand-mark { position: relative; width: 56px; height: 56px; flex: 0 0 56px; overflow: hidden; border-radius: 12px; background: white; }
.brand-mark img { position: absolute; top: 50%; left: 50%; width: 82px; max-width: none; height: 82px; transform: translate(-50%, -50%); }
.primary-nav { margin-left: 50px; }
.primary-nav ul { display: flex; gap: 28px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { color: #536174; font-size: 14px; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--btfd-green); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; color: var(--btfd-ink); font-size: 24px; }

.button, .wp-element-button, input[type="submit"] { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; background: var(--btfd-green); color: white; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .16s ease, background .16s ease; }
.button:hover, input[type="submit"]:hover { background: var(--btfd-green-dark); transform: translateY(-1px); }
.button-secondary { border-color: var(--btfd-outline); background: var(--btfd-surface); color: var(--btfd-ink); }
.button-secondary:hover { background: var(--btfd-surface-low); color: var(--btfd-ink); }
.button-dark { background: var(--btfd-navy); }
.button-accent { background: var(--btfd-yellow); color: #332100; }

.hero { display: grid; min-height: 680px; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); border-bottom: 1px solid var(--btfd-outline); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 94px clamp(28px, 6vw, 90px) 76px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--btfd-green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--btfd-coral); content: ""; }
.hero h1 { max-width: 800px; margin: 24px 0 22px; font: 700 clamp(52px, 6vw, 92px)/.99 var(--btfd-font-display); }
.hero h1 span { color: var(--btfd-blue); }
.hero .lede { max-width: 600px; margin: 0; color: #53605b; font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.trust-note { display: flex; align-items: center; gap: 12px; margin-top: 40px; color: var(--btfd-muted); font-size: 13px; }
.trust-dots { display: flex; }
.trust-dots i { width: 31px; height: 31px; margin-left: -7px; border: 2px solid var(--btfd-background); border-radius: 50%; background: #d2e8df; }
.trust-dots i:first-child { margin-left: 0; }
.trust-dots i:nth-child(2) { background: #f7cabf; }
.trust-dots i:nth-child(3) { background: #cad8f6; }
.trust-dots i:nth-child(4) { background: #f8e7ad; }
.hero-media { position: relative; min-height: 650px; overflow: hidden; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,248,247,.12), transparent 30%), linear-gradient(0deg, rgba(12,25,19,.36), transparent 45%); content: ""; }
.floating-card { position: absolute; z-index: 2; padding: 15px; border: 1px solid rgba(255,255,255,.7); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 20px 55px rgba(20,30,26,.2); backdrop-filter: blur(16px); }
.founding-card { top: 24px; right: 24px; max-width: 240px; font-size: 12px; }
.founding-card b { display: block; font-family: var(--btfd-font-display); font-size: 15px; }
.pulse-card { bottom: 28px; left: 28px; width: 280px; }
.pulse-card small { color: var(--btfd-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.pulse-card strong { display: block; margin-top: 7px; font: 700 21px var(--btfd-font-display); }
.pulse-bar { height: 7px; margin: 12px 0 8px; overflow: hidden; border-radius: 4px; background: #e9ecea; }
.pulse-bar i { display: block; width: 56%; height: 100%; background: linear-gradient(90deg, var(--btfd-blue), var(--btfd-teal)); }

.signal-strip { display: flex; overflow: hidden; border-top: 3px solid transparent; border-bottom: 1px solid var(--btfd-outline); border-image: linear-gradient(90deg, var(--btfd-coral), var(--btfd-yellow), var(--btfd-teal), var(--btfd-violet), var(--btfd-blue)) 1; background: var(--btfd-surface); }
.signal-strip div { flex: 1 0 220px; padding: 16px 26px; border-right: 1px solid var(--btfd-outline); font-size: 12px; font-weight: 800; white-space: nowrap; }
.signal-strip span { margin-left: 12px; color: var(--btfd-green); }
.section { padding: 96px clamp(22px, 5vw, 74px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.section-heading h2 { max-width: 700px; margin: 10px 0 0; font: 700 clamp(34px, 4vw, 58px)/1.06 var(--btfd-font-display); }
.section-heading p { max-width: 440px; margin: 0; color: var(--btfd-muted); }
.story-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 18px; }
.story-card { position: relative; min-height: 420px; overflow: hidden; border-radius: var(--btfd-radius-lg); background: #d7ded9; color: white; }
.story-card:first-child { min-height: 480px; }
.story-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-card::after { position: absolute; inset: 22% 0 0; background: linear-gradient(transparent, rgba(13,20,17,.9)); content: ""; }
.story-copy { position: absolute; right: 24px; bottom: 24px; left: 24px; z-index: 2; }
.story-copy h3 { margin: 12px 0 9px; font: 700 24px/1.18 var(--btfd-font-display); }
.story-copy small { color: #d9e0dc; }
.tag { display: inline-block; padding: 5px 8px; border-radius: 5px; background: var(--btfd-yellow); color: #332100; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.pulse-panel { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; overflow: hidden; border-radius: var(--btfd-radius-lg); background: var(--btfd-navy); color: white; }
.pulse-copy { padding: 50px; }
.pulse-copy h3 { margin: 12px 0; font: 700 38px/1.1 var(--btfd-font-display); }
.pulse-copy p { color: #b9c4bf; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; background: #202e48; }
.stat { padding: 32px; border: 1px solid #34435e; }
.stat b { display: block; color: #6bdcff; font: 700 33px var(--btfd-font-display); }
.stat span { color: #c8d3e2; font-size: 12px; }

.workspace-section { background: #eaf4fa; }
.workspace-intro { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.workspace-intro .eyebrow { justify-content: center; }
.workspace-intro h2 { margin: 13px 0; font: 700 clamp(36px, 5vw, 62px)/1.05 var(--btfd-font-display); }
.workspace-intro p { color: #66736d; font-size: 18px; }
.workspace-preview { max-width: 1250px; margin: auto; overflow: hidden; border: 1px solid rgba(22,40,31,.14); border-radius: 18px; background: var(--btfd-background); box-shadow: 0 30px 90px rgba(22,46,34,.18); }
.window-bar { display: flex; height: 52px; align-items: center; gap: 7px; padding: 0 18px; border-bottom: 1px solid var(--btfd-outline); background: white; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dbd8; }
.window-bar b { margin-left: 12px; }
.window-search { width: 36%; margin: 0 auto; padding: 8px 14px; border-radius: 8px; background: var(--btfd-surface-low); color: #88918d; font-size: 12px; }
.workspace-grid { display: grid; min-height: 610px; grid-template-columns: 210px 1fr 280px; }
.workspace-nav { padding: 18px 12px; border-right: 1px solid var(--btfd-outline); background: white; }
.workspace-label { padding: 14px 12px 8px; color: #9aa29f; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.workspace-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #68726e; font-size: 13px; }
.workspace-item.active { background: #e4f3fc; color: var(--btfd-blue); font-weight: 800; }
.workspace-feed { padding: 28px; }
.workspace-feed h3 { margin: 0; font: 700 25px var(--btfd-font-display); }
.composer { margin: 20px 0; padding: 14px; border: 1px solid var(--btfd-outline); border-radius: 12px; background: white; color: #89918d; }
.thread { padding: 20px 0; border-top: 1px solid var(--btfd-outline); }
.thread h4 { margin: 9px 0 7px; font: 700 17px/1.35 var(--btfd-font-display); }
.thread p { margin: 0; color: #65706b; font-size: 13px; }
.thread-meta, .thread-foot { color: #77817c; font-size: 11px; }
.thread-foot { display: flex; gap: 17px; margin-top: 12px; }
.workspace-rail { padding: 22px 18px; border-left: 1px solid var(--btfd-outline); background: white; }
.rail-box { padding: 16px; margin-bottom: 14px; border: 1px solid var(--btfd-outline); border-radius: 12px; }
.rail-box h4 { margin: 0 0 10px; font: 700 14px var(--btfd-font-display); }

.cta-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; background: var(--btfd-navy); color: white; }
.cta-section h2 { margin: 12px 0; font: 700 clamp(38px, 5vw, 62px)/1.05 var(--btfd-font-display); }
.cta-section p { color: #b6c1bc; font-size: 18px; }
.cta-card { padding: 30px; border: 1px solid #34435e; border-radius: 18px; background: #202e48; }
.cta-card ul { padding-left: 20px; color: #d7dfdb; }

.content-wrap { width: min(920px, calc(100% - 44px)); margin: 0 auto; padding: 72px 0 96px; }
.content-wrap h1 { font: 700 clamp(38px, 5vw, 62px)/1.05 var(--btfd-font-display); }
.content-wrap h2, .entry-content h2 { font-family: var(--btfd-font-display); font-size: 30px; }
.entry-content { font-size: 18px; }
.entry-content a { color: var(--btfd-green); text-decoration: underline; }
.notice { padding: 14px 16px; margin: 18px 0; border-left: 4px solid var(--btfd-green); border-radius: 8px; background: #e8f0ec; }
.notice.error { border-color: var(--btfd-error); background: #f9dedc; }
.btfd-form { display: grid; gap: 18px; max-width: 680px; padding: 28px; border: 1px solid var(--btfd-outline); border-radius: 18px; background: white; }
.btfd-form label { display: grid; gap: 7px; font-weight: 700; }
.btfd-form input, .btfd-form textarea, .btfd-form select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--btfd-outline); border-radius: 9px; background: white; color: var(--btfd-ink); }
.btfd-form textarea { min-height: 150px; resize: vertical; }
.btfd-form .privacy-note { color: var(--btfd-muted); font-size: 13px; font-weight: 400; }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 50px clamp(22px, 5vw, 74px); background: var(--btfd-background); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-copy { margin-top: 10px; color: var(--btfd-muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.mobile-bottom-nav { display: none; }

/* wpForo inherits the BTFD system instead of presenting a second visual language. */
#wpforo-wrap { --wpf-color: var(--btfd-green); font-family: var(--btfd-font-ui) !important; }
#wpforo-wrap .wpforo-category { border-color: var(--btfd-outline) !important; border-radius: 12px !important; box-shadow: none !important; }
#wpforo-wrap .wpf-button, #wpforo-wrap input[type="submit"] { border-radius: 9px !important; background: var(--btfd-green) !important; }
#wpforo-wrap input, #wpforo-wrap textarea, #wpforo-wrap select { border-color: var(--btfd-outline) !important; border-radius: 9px !important; }
#wpforo-wrap .wpf-sbtn, #wpforo-wrap #wpforo-footer, #wpforo-wrap .wpforo-feed, #wpforo-wrap .wpf-notifications { display: none !important; }
#wpforo-wrap #wpforo-menu { border-color: var(--btfd-outline) !important; border-radius: 10px !important; background: var(--btfd-surface-low) !important; }
#wpforo-wrap .wpf-menu a { color: var(--btfd-ink) !important; font-weight: 700 !important; }
#wpforo-wrap #wpforo-title { color: var(--btfd-ink) !important; font-family: var(--btfd-font-display) !important; }

@media (max-width: 1000px) {
  .primary-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; margin: 0; padding: 18px 24px; border-bottom: 1px solid var(--btfd-outline); background: var(--btfd-background); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 16px; }
  .menu-toggle { display: block; }
  .header-actions { margin-left: 14px; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 520px; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story-card:first-child { grid-column: 1 / -1; }
  .pulse-panel { grid-template-columns: 1fr; }
  .workspace-grid { grid-template-columns: 180px 1fr; }
  .workspace-rail { display: none; }
}

@media (max-width: 700px) {
  body { padding-bottom: 68px; }
  body.admin-bar .site-header { top: 46px; }
  .topnote { padding-inline: 16px; font-size: 10px; }
  .site-header { min-height: 78px; padding: 0 18px; }
  .site-header .brand-mark { width: 58px; height: 58px; flex-basis: 58px; }
  .site-header .brand-mark img { width: 84px; height: 84px; }
  .brand { font-size: 14px; }
  .header-actions { display: none; }
  .hero-copy { padding: 60px 22px 48px; }
  .hero h1 { font-size: 49px; }
  .hero .lede { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .hero-media { min-height: 440px; }
  .floating-card { max-width: calc(100% - 24px); }
  .founding-card { top: 12px; right: 12px; }
  .pulse-card { bottom: 12px; left: 12px; }
  .section { padding: 68px 18px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 18px; }
  .story-grid { display: block; }
  .story-card, .story-card:first-child { min-height: 390px; margin-bottom: 14px; }
  .pulse-copy { padding: 30px 22px; }
  .pulse-copy h3 { font-size: 31px; }
  .stat { padding: 23px 18px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-nav { display: none; }
  .workspace-feed { padding: 18px; }
  .window-search { width: 58%; margin-left: auto; margin-right: 0; }
  .cta-section { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { display: block; }
  .footer-links { margin-top: 24px; }
  .mobile-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 110; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 64px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--btfd-outline); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
  .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #65706b; font-size: 11px; font-weight: 700; text-decoration: none; }
  .mobile-bottom-nav a span { font-size: 20px; line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
