/*
Theme Name: FireByMike 2.0
Theme URI: https://www.firebymike.com/
Author: FireByMike
Description: Evidence-led editorial and decision-support theme for FireByMike.
Version: 0.1.1
Text Domain: firebymike-2
*/

:root {
  --fbm-navy: #071426;
  --fbm-navy-2: #0d223a;
  --fbm-gold: #c89b3c;
  --fbm-gold-dark: #a77a20;
  --fbm-white: #ffffff;
  --fbm-surface: #f4f6f8;
  --fbm-ink: #111827;
  --fbm-muted: #536171;
  --fbm-border: #dbe1e8;
  --fbm-serif: Georgia, 'Times New Roman', serif;
  --fbm-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fbm-container: 1240px;
  --fbm-reading: 780px;
  --fbm-radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--fbm-ink); background: var(--fbm-white); font-family: var(--fbm-sans); font-size: 17px; line-height: 1.68; }
body.fbm-menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(200, 155, 60, .65); outline-offset: 3px; }
.fbm-container { width: min(calc(100% - 40px), var(--fbm-container)); margin-inline: auto; }
.fbm-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.fbm-skip { position: fixed; top: 8px; left: 8px; z-index: 9999; transform: translateY(-160%); padding: 10px 16px; background: var(--fbm-white); }
.fbm-skip:focus { transform: none; }

.fbm-header { position: relative; z-index: 100; width: 100%; background: var(--fbm-navy); color: var(--fbm-white); border-bottom: 1px solid rgba(255,255,255,.1); }
.fbm-header__inner { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.fbm-brand { flex: 0 0 auto; font-family: var(--fbm-serif); font-size: 28px; line-height: 1; color: var(--fbm-white); text-decoration: none; }
.fbm-brand span { color: var(--fbm-gold); }
.fbm-nav { margin-left: auto; }
.fbm-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.fbm-nav a { display: block; padding: 25px 0; color: var(--fbm-white); font-size: 14px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.fbm-nav a:hover, .fbm-nav a:focus-visible, .fbm-nav .current-menu-item > a { color: var(--fbm-gold); }
.fbm-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.fbm-header-search { flex: 0 0 auto; width: 44px; }
.fbm-header-search .wp-block-search__inside-wrapper { padding: 0; border: 0; }
.fbm-header-search .wp-block-search__input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.fbm-header-search .wp-block-search__button { display: inline-grid; place-items: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; color: var(--fbm-white); background: transparent; }
.fbm-icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; color: var(--fbm-white); background: transparent; cursor: pointer; }
.fbm-icon-button svg { width: 21px; height: 21px; }
.fbm-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border: 1px solid transparent; border-radius: 3px; background: var(--fbm-gold); color: var(--fbm-navy); font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer; }
.fbm-button:hover { background: #d8ad50; }
.fbm-button--outline { border-color: var(--fbm-gold); background: transparent; color: var(--fbm-white); }
.fbm-button--outline:hover { background: rgba(200,155,60,.12); }
.fbm-menu-toggle { display: none; }

.fbm-hero { --fbm-hero-image: url('assets/images/hero-firebymike-2.png'); min-height: 610px; display: flex; align-items: center; color: var(--fbm-white); background-color: var(--fbm-navy); background-image: linear-gradient(90deg, rgba(7,20,38,.98) 0%, rgba(7,20,38,.83) 34%, rgba(7,20,38,.10) 67%), var(--fbm-hero-image); background-position: center; background-size: cover; }
.fbm-hero__copy { max-width: 630px; padding: 80px 0; }
.fbm-hero h1 { max-width: 630px; margin: 0 0 24px; font-family: var(--fbm-serif); font-size: clamp(52px, 5.8vw, 82px); line-height: .98; font-weight: 500; letter-spacing: 0; }
.fbm-hero h1 em { color: var(--fbm-gold); font-style: normal; }
.fbm-hero p { max-width: 600px; margin: 0 0 32px; color: #eef3f8; font-size: 20px; line-height: 1.5; }
.fbm-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.fbm-section { padding: 88px 0; }
.fbm-section--soft { background: var(--fbm-surface); }
.fbm-section--dark { background: var(--fbm-navy); color: var(--fbm-white); }
.fbm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.fbm-kicker { display: block; margin-bottom: 10px; color: var(--fbm-gold-dark); font-size: 12px; line-height: 1.2; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.fbm-section h2, .fbm-page-title, .fbm-entry-title { margin: 0; font-family: var(--fbm-serif); font-weight: 500; letter-spacing: 0; line-height: 1.08; }
.fbm-section h2 { max-width: 760px; font-size: clamp(36px, 4vw, 55px); }
.fbm-section-head p { max-width: 460px; margin: 0; color: var(--fbm-muted); }
.fbm-text-link { color: var(--fbm-gold-dark); font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.fbm-text-link:hover { text-decoration: underline; }

.fbm-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.fbm-path { border-top: 3px solid var(--fbm-gold); }
.fbm-path__image { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.fbm-path h3 { margin: 20px 0 8px; font-family: var(--fbm-serif); font-size: 28px; line-height: 1.1; font-weight: 500; }
.fbm-path p { min-height: 58px; margin: 0 0 18px; color: var(--fbm-muted); }

.fbm-tools-band { display: grid; grid-template-columns: .9fr 1.05fr .85fr; align-items: stretch; gap: 36px; }
.fbm-tool-preview { padding: 30px; border-radius: var(--fbm-radius); background: var(--fbm-navy); color: var(--fbm-white); }
.fbm-tool-preview h3 { margin: 0 0 6px; font-family: var(--fbm-serif); font-size: 27px; font-weight: 500; }
.fbm-tool-preview p { margin: 0 0 20px; color: #cbd5df; font-size: 15px; }
.fbm-tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fbm-tool-preview label { display: block; margin-bottom: 5px; color: #cbd5df; font-size: 12px; font-weight: 700; }
.fbm-tool-preview input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #8592a2; border-radius: 3px; background: var(--fbm-white); color: var(--fbm-ink); }
.fbm-tool-preview .fbm-button { width: 100%; margin-top: 14px; }
.fbm-tool-list { display: grid; align-content: center; }
.fbm-tool-list a { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--fbm-border); text-decoration: none; }
.fbm-tool-list a:hover h3 { color: var(--fbm-gold-dark); }
.fbm-tool-list h3 { margin: 0 0 3px; font-family: var(--fbm-serif); font-size: 21px; font-weight: 500; }
.fbm-tool-list p { margin: 0; color: var(--fbm-muted); font-size: 14px; }
.fbm-tool-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--fbm-gold-dark); font-weight: 800; }

.fbm-editorial { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; }
.fbm-feature__image { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.fbm-feature h3 { margin: 18px 0 9px; font-family: var(--fbm-serif); font-size: 34px; line-height: 1.12; font-weight: 500; }
.fbm-feature p { margin: 0 0 15px; color: var(--fbm-muted); }
.fbm-article-list { border-top: 1px solid var(--fbm-border); }
.fbm-article-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--fbm-border); text-decoration: none; }
.fbm-article-row img { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; }
.fbm-article-row h3 { margin: 0; font-family: var(--fbm-serif); font-size: 21px; line-height: 1.2; font-weight: 500; }
.fbm-article-row small { color: var(--fbm-gold-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fbm-arrow { color: var(--fbm-gold-dark); font-size: 24px; }

.fbm-newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.fbm-newsletter h2 { color: var(--fbm-white); }
.fbm-newsletter p { color: #cbd5df; }
.fbm-signup { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.fbm-signup input { min-height: 50px; padding: 11px 14px; border: 1px solid #9aa7b5; border-radius: 3px; }
.fbm-form-note { grid-column: 1 / -1; margin: 0; color: #aeb9c5; font-size: 12px; }

.fbm-page-hero { padding: 74px 0 54px; background: var(--fbm-navy); color: var(--fbm-white); }
.fbm-page-title { max-width: 900px; font-size: clamp(44px, 6vw, 76px); }
.fbm-page-intro { max-width: 760px; margin: 18px 0 0; color: #d6dee7; font-size: 20px; }
.fbm-page-layout { display: grid; grid-template-columns: minmax(0, var(--fbm-reading)) 300px; justify-content: center; gap: 56px; padding: 70px 0 96px; }
.fbm-page-layout--single { display: block; width: min(calc(100% - 40px), 900px); margin-inline: auto; padding: 70px 0 96px; }
.fbm-entry-title { font-size: clamp(42px, 5vw, 66px); }
.fbm-entry-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 30px; color: var(--fbm-muted); font-size: 14px; }
.fbm-entry-media { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 38px; object-fit: cover; }
.fbm-entry-content { font-size: 18px; line-height: 1.72; }
.fbm-entry-content > * { max-width: var(--fbm-reading); margin-inline: auto; }
.fbm-entry-content h2, .fbm-entry-content h3 { margin-top: 1.8em; font-family: var(--fbm-serif); line-height: 1.18; font-weight: 500; }
.fbm-entry-content h2 { font-size: 36px; }
.fbm-entry-content h3 { font-size: 27px; }
.fbm-entry-content a { color: #8a6010; }
.fbm-entry-content figure, .fbm-entry-content .wp-block-image, .fbm-entry-content .wp-block-table { max-width: 100%; }
.fbm-entry-content blockquote { padding-left: 22px; border-left: 3px solid var(--fbm-gold); font-family: var(--fbm-serif); font-size: 23px; }
.fbm-sidebar { align-self: start; position: sticky; top: 24px; padding: 24px; border-top: 3px solid var(--fbm-gold); background: var(--fbm-surface); }
.fbm-sidebar h2 { margin: 0 0 14px; font-family: var(--fbm-serif); font-size: 24px; }
.fbm-sidebar p { margin: 0 0 16px; color: var(--fbm-muted); font-size: 15px; }

.fbm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.fbm-card { border: 1px solid var(--fbm-border); background: var(--fbm-white); }
.fbm-card__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fbm-card__body { padding: 22px; }
.fbm-card h2, .fbm-card h3 { margin: 7px 0 10px; font-family: var(--fbm-serif); font-size: 26px; line-height: 1.15; font-weight: 500; }
.fbm-card h2 a, .fbm-card h3 a { text-decoration: none; }
.fbm-card p { margin: 0 0 15px; color: var(--fbm-muted); font-size: 15px; }

.fbm-calculator { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fbm-calc-panel { padding: 28px; border: 1px solid var(--fbm-border); background: var(--fbm-surface); }
.fbm-calc-panel h2 { margin: 0 0 20px; font-family: var(--fbm-serif); font-size: 28px; }
.fbm-field { margin-bottom: 17px; }
.fbm-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.fbm-field input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #aab4c0; border-radius: 3px; background: var(--fbm-white); }
.fbm-result-number { margin: 4px 0 8px; font-family: var(--fbm-serif); font-size: clamp(42px, 6vw, 66px); line-height: 1; }
.fbm-calc-note { padding: 18px; border-left: 3px solid var(--fbm-gold); background: #fff8e8; font-size: 14px; }

.fbm-footer { padding: 62px 0 24px; background: var(--fbm-navy); color: var(--fbm-white); }
.fbm-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; }
.fbm-footer h2, .fbm-footer h3 { margin-top: 0; font-family: var(--fbm-serif); font-weight: 500; }
.fbm-footer p { max-width: 420px; color: #b9c5d1; font-size: 14px; }
.fbm-footer ul { margin: 0; padding: 0; list-style: none; }
.fbm-footer li { margin-bottom: 8px; }
.fbm-footer a { color: #d8e0e8; font-size: 14px; text-decoration: none; }
.fbm-footer a:hover { color: var(--fbm-gold); }
.fbm-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: #9cabb9; font-size: 12px; }

.fbm-search { position: fixed; inset: 0; z-index: 500; display: none; place-items: start center; padding-top: 120px; background: rgba(7,20,38,.92); }
.fbm-search[open] { display: grid; }
.fbm-search__panel { width: min(calc(100% - 40px), 760px); padding: 30px; border: 0; background: var(--fbm-white); }
.fbm-search form { display: flex; gap: 10px; }
.fbm-search input { flex: 1; min-width: 0; min-height: 50px; padding: 11px 14px; border: 1px solid #8a97a6; }

@media (max-width: 1080px) {
  .fbm-nav { display: none; position: fixed; inset: 74px 0 0; padding: 30px 20px; background: var(--fbm-navy); }
  .fbm-nav.is-open { display: block; }
  .fbm-nav ul { width: min(100%, 560px); margin: 0 auto; display: block; }
  .fbm-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.13); font-size: 18px; }
  .fbm-menu-toggle { display: inline-grid; }
  .fbm-header__actions .fbm-button { display: none; }
  .fbm-header-search { margin-left: auto; }
  .fbm-tools-band { grid-template-columns: 1fr 1fr; }
  .fbm-tools-band > :first-child { grid-column: 1 / -1; }
  .fbm-page-layout { grid-template-columns: minmax(0, 760px); }
  .fbm-sidebar { position: static; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .fbm-container { width: min(calc(100% - 40px), var(--fbm-container)); }
  .fbm-header__inner { min-height: 68px; gap: 10px; }
  .fbm-brand { font-size: 24px; }
  .fbm-hero { min-height: 650px; align-items: end; background-image: linear-gradient(180deg, rgba(7,20,38,.15) 0%, rgba(7,20,38,.92) 57%, var(--fbm-navy) 100%), var(--fbm-hero-image); background-position: 62% center; }
  .fbm-hero__copy { padding: 230px 0 55px; }
  .fbm-hero h1 { font-size: 48px; }
  .fbm-hero p { font-size: 17px; }
  .fbm-section { padding: 64px 0; }
  .fbm-section-head { display: block; }
  .fbm-section-head p { margin-top: 18px; }
  .fbm-paths, .fbm-grid, .fbm-tools-band, .fbm-editorial, .fbm-newsletter, .fbm-calculator, .fbm-footer__grid { grid-template-columns: 1fr; }
  .fbm-path p { min-height: 0; }
  .fbm-tools-band > :first-child { grid-column: auto; }
  .fbm-article-row { grid-template-columns: 90px 1fr; }
  .fbm-article-row img { width: 90px; }
  .fbm-article-row .fbm-arrow { display: none; }
  .fbm-signup { grid-template-columns: 1fr; }
  .fbm-page-layout, .fbm-page-layout--single { width: min(calc(100% - 40px), 900px); padding: 52px 0 72px; }
  .fbm-entry-content { font-size: 17px; }
  .fbm-entry-content h2 { font-size: 30px; }
  .fbm-footer__bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
