/*
Theme Name: Tactical Bible Clean SEO
Theme URI: https://tacticalbible.com/
Description: A clean tactical information WordPress theme for guides, reviews, readiness content, training notes, and local search visibility.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tacticalbible-clean-seo
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
*/

:root {
  --tb-bg: #090b08;
  --tb-panel: #12160f;
  --tb-panel-2: #1a2016;
  --tb-ink: #f5f2e8;
  --tb-muted: #b9b39f;
  --tb-line: rgba(245, 242, 232, 0.14);
  --tb-accent: #d6a640;
  --tb-accent-2: #78915b;
  --tb-sand: #efe4c8;
  --tb-red: #9f3d2b;
  --tb-white: #ffffff;
  --tb-black: #050604;
  --tb-radius: 22px;
  --tb-shadow: 0 24px 70px rgba(0,0,0,.28);
  --tb-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tb-bg);
  color: var(--tb-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.admin-bar .tb-site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--tb-accent); }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tb-container { max-width: var(--tb-max); margin: 0 auto; padding: 0 22px; }
.tb-section { padding: 74px 0; }
.tb-section-tight { padding: 46px 0; }
.tb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tb-accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 850;
  font-size: 12px;
}
.tb-eyebrow:before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--tb-accent);
  display: inline-block;
}

.tb-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(9, 11, 8, .88);
  border-bottom: 1px solid var(--tb-line);
  backdrop-filter: blur(16px);
}
.tb-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tb-brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.tb-logo-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(214,166,64,.45);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(214,166,64,.24), rgba(120,145,91,.12)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 2px, transparent 2px 8px);
  display: grid;
  place-items: center;
  font-weight: 950;
  color: var(--tb-accent);
}
.tb-brand-text strong { display:block; font-size: 20px; letter-spacing: -.02em; line-height: 1.05; }
.tb-brand-text span { display:block; color: var(--tb-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.tb-main-nav ul { list-style: none; display: flex; gap: 22px; align-items: center; margin: 0; padding: 0; }
.tb-main-nav a { text-decoration: none; color: var(--tb-ink); font-weight: 750; font-size: 14px; }
.tb-main-nav a:hover { color: var(--tb-accent); }
.tb-header-actions { display: flex; align-items: center; gap: 12px; }
.tb-mobile-toggle {
  display: none;
  border: 1px solid var(--tb-line);
  background: var(--tb-panel);
  color: var(--tb-ink);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.tb-button,
.wp-block-button__link,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--tb-accent);
  color: #151006 !important;
  font-weight: 900;
  padding: 13px 20px;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(214,166,64,.18);
  cursor: pointer;
}
.tb-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover { color: #151006 !important; transform: translateY(-1px); }
.tb-button.secondary { background: transparent; color: var(--tb-ink) !important; border: 1px solid var(--tb-line); box-shadow: none; }
.tb-button.secondary:hover { color: var(--tb-accent) !important; border-color: rgba(214,166,64,.5); }

.tb-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--tb-line);
  background:
    radial-gradient(circle at 80% 10%, rgba(120,145,91,.34), transparent 34%),
    radial-gradient(circle at 10% 30%, rgba(214,166,64,.16), transparent 26%),
    linear-gradient(135deg, #090b08 0%, #15190f 60%, #0b1008 100%);
}
.tb-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}
.tb-hero-inner {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 440px;
  gap: 44px;
  align-items: center;
  padding: 76px 0;
}
.tb-hero h1 {
  font-size: clamp(42px, 6vw, 86px);
  line-height: .92;
  letter-spacing: -.065em;
  margin: 18px 0 22px;
  max-width: 820px;
}
.tb-hero-lede {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--tb-muted);
  max-width: 690px;
  margin: 0 0 30px;
}
.tb-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.tb-search-panel {
  background: rgba(18,22,15,.84);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 18px;
  box-shadow: var(--tb-shadow);
}
.tb-search-panel form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.tb-search-panel input[type="search"] {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--tb-line);
  background: rgba(255,255,255,.06);
  color: var(--tb-ink);
  border-radius: 999px;
  padding: 13px 16px;
}
.tb-quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tb-chip {
  display: inline-flex;
  border: 1px solid var(--tb-line);
  background: rgba(255,255,255,.04);
  color: var(--tb-muted);
  padding: 8px 11px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.tb-chip:hover { border-color: rgba(214,166,64,.5); color: var(--tb-accent); }
.tb-field-card {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--tb-line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--tb-shadow);
}
.tb-field-card-top {
  min-height: 230px;
  background:
    linear-gradient(140deg, rgba(214,166,64,.15), rgba(120,145,91,.24)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 12px),
    #1c2416;
  display: grid;
  place-items: center;
  padding: 34px;
}
.tb-field-card-top span {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 32px;
  border: 1px solid rgba(214,166,64,.42);
  background: rgba(9,11,8,.65);
  color: var(--tb-accent);
  font-size: 34px;
  font-weight: 950;
}
.tb-field-card-body { padding: 26px; }
.tb-status-row { display: grid; gap: 13px; margin: 0; }
.tb-status-row div { display:flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--tb-line); padding-bottom: 12px; }
.tb-status-row dt { color: var(--tb-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.tb-status-row dd { margin:0; font-weight: 900; color: var(--tb-ink); text-align: right; }

.tb-home-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.tb-panel {
  background: var(--tb-panel);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 28px;
}
.tb-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.tb-section-head h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.045em; }
.tb-section-head p { margin: 0; color: var(--tb-muted); max-width: 620px; }
.tb-topic-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tb-topic-card {
  min-height: 178px;
  background: linear-gradient(160deg, var(--tb-panel), var(--tb-panel-2));
  border: 1px solid var(--tb-line);
  border-radius: 20px;
  padding: 22px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.tb-topic-card:after {
  content:"";
  position:absolute;
  width:90px;
  height:90px;
  border-radius: 999px;
  background: rgba(214,166,64,.11);
  right:-30px;
  bottom:-30px;
}
.tb-topic-card span { color: var(--tb-accent); font-weight: 950; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.tb-topic-card h3 { margin: 14px 0 8px; line-height: 1.08; font-size: 22px; }
.tb-topic-card p { color: var(--tb-muted); margin: 0; font-size: 14px; }

.tb-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tb-post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: #11150e;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  text-decoration: none;
}
.tb-post-card:hover { transform: translateY(-3px); border-color: rgba(214,166,64,.42); }
.tb-card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(214,166,64,.14), rgba(120,145,91,.18)), #22281c;
  overflow: hidden;
}
.tb-card-image img { width: 100%; height: 100%; object-fit: cover; display:block; }
.tb-card-body { padding: 22px; display:flex; flex-direction: column; gap: 12px; flex: 1; }
.tb-card-meta { display:flex; flex-wrap:wrap; gap: 9px; color: var(--tb-accent); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 950; }
.tb-card-title { font-size: 24px; line-height: 1.08; margin: 0; letter-spacing: -.03em; }
.tb-card-excerpt { color: var(--tb-muted); margin: 0; }
.tb-read-link { margin-top: auto; color: var(--tb-accent); font-weight: 900; }

.tb-featured-card {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 0;
  overflow: hidden;
  background: var(--tb-panel);
  border: 1px solid var(--tb-line);
  border-radius: 28px;
}
.tb-featured-image { min-height: 420px; background: linear-gradient(135deg, rgba(214,166,64,.18), rgba(120,145,91,.22)), #22281c; }
.tb-featured-image img { width: 100%; height: 100%; object-fit: cover; display:block; }
.tb-featured-body { padding: 42px; display: flex; flex-direction: column; justify-content: center; }
.tb-featured-body h2 { margin: 14px 0; font-size: clamp(32px, 4vw, 54px); line-height: .98; letter-spacing: -.052em; }
.tb-featured-body p { color: var(--tb-muted); font-size: 18px; }

.tb-intel-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--tb-line);
  border: 1px solid var(--tb-line);
  border-radius: 24px;
  overflow: hidden;
}
.tb-intel-item { background: var(--tb-panel); padding: 24px; }
.tb-intel-item strong { display:block; font-size: 30px; line-height: 1; color: var(--tb-accent); }
.tb-intel-item span { color: var(--tb-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }

.tb-main-wrap { padding: 54px 0 76px; }
.tb-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.tb-page-header { padding: 56px 0 28px; border-bottom: 1px solid var(--tb-line); background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); }
.tb-page-header h1 { font-size: clamp(38px, 5vw, 68px); margin: 10px 0; line-height: .98; letter-spacing: -.055em; }
.tb-page-header p { color: var(--tb-muted); font-size: 18px; max-width: 760px; }
.tb-breadcrumbs { color: var(--tb-muted); font-size: 13px; font-weight: 750; }
.tb-breadcrumbs a { color: var(--tb-muted); text-decoration: none; }
.tb-breadcrumbs a:hover { color: var(--tb-accent); }
.tb-article {
  background: var(--tb-panel);
  border: 1px solid var(--tb-line);
  border-radius: 28px;
  overflow: hidden;
}
.tb-article-cover { aspect-ratio: 16/8; background: #22281c; }
.tb-article-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.tb-article-inner { padding: clamp(26px, 5vw, 54px); }
.tb-article-meta { color: var(--tb-accent); text-transform: uppercase; letter-spacing: .11em; font-weight: 950; font-size: 12px; display:flex; gap: 10px; flex-wrap:wrap; margin-bottom: 18px; }
.tb-entry-content { color: #e7e0ce; }
.tb-entry-content p,
.tb-entry-content li { font-size: 18px; }
.tb-entry-content h2 { margin-top: 42px; font-size: 36px; line-height: 1.05; letter-spacing: -.035em; }
.tb-entry-content h3 { margin-top: 30px; font-size: 26px; line-height: 1.12; }
.tb-entry-content blockquote { margin: 32px 0; padding: 22px 24px; border-left: 5px solid var(--tb-accent); background: rgba(255,255,255,.04); color: var(--tb-sand); border-radius: 0 18px 18px 0; }
.tb-entry-content a { color: var(--tb-accent); }
.tb-entry-content table { width:100%; border-collapse: collapse; margin: 28px 0; overflow: hidden; border-radius: 14px; }
.tb-entry-content th,
.tb-entry-content td { border: 1px solid var(--tb-line); padding: 12px; text-align: left; }
.tb-entry-content th { background: rgba(255,255,255,.05); }
.tb-entry-content code { background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 7px; }
.tb-entry-content pre { overflow:auto; padding: 18px; border-radius: 16px; background: #070806; }
.tb-takeaway-box {
  margin: 34px 0;
  padding: 24px;
  border: 1px solid rgba(214,166,64,.36);
  background: rgba(214,166,64,.08);
  border-radius: 20px;
}
.tb-takeaway-box strong { color: var(--tb-accent); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; display:block; margin-bottom: 8px; }
.tb-tags { display:flex; flex-wrap:wrap; gap: 8px; margin-top: 28px; }
.tb-tags a { text-decoration:none; border:1px solid var(--tb-line); border-radius:999px; padding: 8px 11px; color:var(--tb-muted); font-size:13px; font-weight:800; }
.tb-tags a:hover { color:var(--tb-accent); border-color:rgba(214,166,64,.5); }

.tb-sidebar { display:grid; gap: 18px; position: sticky; top: 108px; }
.tb-widget,
.widget { background: var(--tb-panel); border: 1px solid var(--tb-line); border-radius: 22px; padding: 22px; }
.tb-widget h3,
.widget-title,
.widget h2 { margin: 0 0 14px; font-size: 20px; line-height: 1.1; }
.widget ul { padding-left: 18px; margin-bottom: 0; }
.widget li { margin-bottom: 9px; color: var(--tb-muted); }
.widget a { color: var(--tb-ink); text-decoration: none; }
.widget a:hover { color: var(--tb-accent); }
.search-form { display:grid; grid-template-columns: 1fr; gap: 10px; }
.search-field,
input[type="text"], input[type="email"], input[type="url"], textarea, select {
  width:100%;
  border: 1px solid var(--tb-line);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  color: var(--tb-ink);
  padding: 12px 14px;
}
.tb-cta-band {
  background:
    linear-gradient(135deg, rgba(214,166,64,.18), rgba(120,145,91,.18)),
    var(--tb-panel);
  border: 1px solid var(--tb-line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 54px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.tb-cta-band h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 50px); line-height: 1; letter-spacing: -.045em; }
.tb-cta-band p { margin: 0; color: var(--tb-muted); max-width: 680px; }

.tb-pagination { display:flex; justify-content:center; gap: 8px; margin-top: 34px; }
.tb-pagination .page-numbers { border:1px solid var(--tb-line); border-radius: 999px; padding: 9px 13px; color: var(--tb-muted); text-decoration:none; font-weight:850; }
.tb-pagination .current,
.tb-pagination a:hover { color: #151006; background: var(--tb-accent); border-color: var(--tb-accent); }

.tb-site-footer { border-top: 1px solid var(--tb-line); background: #070806; padding: 56px 0 26px; }
.tb-footer-grid { display:grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 34px; margin-bottom: 42px; }
.tb-footer-brand p { color: var(--tb-muted); max-width: 500px; }
.tb-footer-col h3 { margin: 0 0 14px; font-size: 16px; text-transform: uppercase; letter-spacing: .12em; color: var(--tb-accent); }
.tb-footer-col ul { list-style:none; padding:0; margin:0; display:grid; gap: 9px; }
.tb-footer-col a { color: var(--tb-muted); text-decoration:none; }
.tb-footer-col a:hover { color: var(--tb-accent); }
.tb-footer-bottom { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; color: var(--tb-muted); font-size: 13px; border-top: 1px solid var(--tb-line); padding-top: 20px; }

.alignwide { max-width: 1080px; margin-left: auto; margin-right: auto; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-caption-text,
figcaption { color: var(--tb-muted); font-size: 14px; }

@media (max-width: 980px) {
  body.admin-bar .tb-site-header { top: 46px; }
  .tb-header-actions .tb-button { display:none; }
  .tb-mobile-toggle { display: inline-flex; }
  .tb-main-nav { position:absolute; top:100%; left:0; right:0; background: rgba(9,11,8,.97); border-bottom:1px solid var(--tb-line); display:none; }
  .tb-main-nav.is-open { display:block; }
  .tb-main-nav ul { flex-direction: column; align-items: stretch; gap:0; padding: 12px 22px 22px; }
  .tb-main-nav li { border-bottom: 1px solid var(--tb-line); }
  .tb-main-nav a { display:block; padding: 13px 0; }
  .tb-hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 58px 0; }
  .tb-field-card { max-width: 520px; }
  .tb-topic-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-card-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-featured-card { grid-template-columns: 1fr; }
  .tb-content-layout { grid-template-columns: 1fr; }
  .tb-sidebar { position: static; }
  .tb-intel-strip { grid-template-columns: repeat(2, 1fr); }
  .tb-footer-grid { grid-template-columns: 1fr; }
  .tb-cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tb-container { padding: 0 16px; }
  .tb-header-inner { min-height: 72px; }
  .tb-brand-text span { display:none; }
  .tb-hero h1 { font-size: 42px; }
  .tb-search-panel form { grid-template-columns: 1fr; }
  .tb-topic-grid,
  .tb-card-grid,
  .tb-home-grid,
  .tb-intel-strip { grid-template-columns: 1fr; }
  .tb-featured-body { padding: 26px; }
  .tb-article-inner { padding: 24px; }
  .tb-footer-bottom { display:block; }
}
