/*
Theme Name: Train Tactical Clean SEO
Theme URI: https://traintactical.com/
Author: Train Tactical
Description: A clean, tactical WordPress theme for training, readiness, gear review, mindset, and resource content with practical built-in SEO controls.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: traintactical
Tags: blog, education, custom-logo, featured-images, block-styles, wide-blocks, responsive-layout
*/

:root {
  --tt-black: #070907;
  --tt-ink: #10160f;
  --tt-olive: #263322;
  --tt-olive-2: #43523a;
  --tt-tan: #d4c19b;
  --tt-sand: #f4efe5;
  --tt-orange: #d96c21;
  --tt-red: #a5281b;
  --tt-white: #ffffff;
  --tt-muted: #66715f;
  --tt-border: #ded5c4;
  --tt-shadow: 0 22px 60px rgba(7, 9, 7, 0.16);
  --tt-radius: 20px;
  --tt-radius-sm: 12px;
  --tt-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tt-sand);
  color: var(--tt-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--tt-olive);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--tt-orange);
}

.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  left: 18px;
  top: 18px;
  z-index: 9999;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: var(--tt-orange);
  color: var(--tt-white);
  border-radius: 10px;
}

.tt-wrap {
  width: min(var(--tt-max), calc(100% - 36px));
  margin-inline: auto;
}

.tt-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 7, 0.93);
  border-bottom: 1px solid rgba(212, 193, 155, 0.22);
  backdrop-filter: blur(12px);
}

.tt-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tt-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--tt-white);
  text-decoration: none;
}

.tt-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tt-orange), var(--tt-red));
  display: grid;
  place-items: center;
  color: var(--tt-white);
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: 0 14px 34px rgba(217, 108, 33, 0.25);
}

.tt-brand-title {
  display: block;
  font-weight: 950;
  letter-spacing: 0.02em;
  font-size: 20px;
  line-height: 1.1;
}

.tt-brand-tagline {
  display: block;
  color: var(--tt-tan);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.tt-logo img {
  max-height: 58px;
  width: auto;
}

.tt-menu-toggle {
  display: none;
  border: 1px solid rgba(212, 193, 155, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tt-white);
  padding: 10px 13px;
  border-radius: 12px;
  font-weight: 800;
}

.tt-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.tt-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  padding: 10px 12px;
  border-radius: 999px;
}

.tt-nav a:hover,
.tt-nav .current-menu-item > a,
.tt-nav .current_page_item > a {
  color: var(--tt-white);
  background: rgba(217, 108, 33, 0.18);
}

.tt-btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--tt-orange);
  color: var(--tt-white) !important;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(217, 108, 33, 0.25);
}

.tt-btn:hover,
.wp-block-button__link:hover {
  background: #bf5818;
  color: var(--tt-white) !important;
}

.tt-btn-outline {
  background: transparent;
  border: 1px solid rgba(212, 193, 155, 0.42);
  color: var(--tt-white) !important;
  box-shadow: none;
}

.tt-hero {
  color: var(--tt-white);
  background:
    radial-gradient(circle at 14% 16%, rgba(217, 108, 33, 0.22), transparent 28%),
    linear-gradient(135deg, #070907 0%, #162013 52%, #38452f 100%);
  padding: 74px 0 52px;
  position: relative;
  overflow: hidden;
}

.tt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(30deg, #ffffff 12%, transparent 12.5%, transparent 87%, #ffffff 87.5%, #ffffff),
    linear-gradient(150deg, #ffffff 12%, transparent 12.5%, transparent 87%, #ffffff 87.5%, #ffffff),
    linear-gradient(30deg, #ffffff 12%, transparent 12.5%, transparent 87%, #ffffff 87.5%, #ffffff),
    linear-gradient(150deg, #ffffff 12%, transparent 12.5%, transparent 87%, #ffffff 87.5%, #ffffff);
  background-size: 46px 80px;
  background-position: 0 0, 0 0, 23px 40px, 23px 40px;
}

.tt-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: center;
}

.tt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--tt-tan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 900;
  font-size: 12px;
}

.tt-kicker::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--tt-orange);
}

.tt-hero h1,
.tt-page-title {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  color: inherit;
}

.tt-hero p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 720px;
  font-size: clamp(18px, 2vw, 23px);
  margin: 0 0 28px;
}

.tt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.tt-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 760px;
}

.tt-trust-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 193, 155, 0.18);
  border-radius: 16px;
  padding: 14px;
}

.tt-trust-card strong {
  display: block;
  color: var(--tt-white);
  font-size: 15px;
}

.tt-trust-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.tt-hero-panel {
  background: rgba(244, 239, 229, 0.1);
  border: 1px solid rgba(212, 193, 155, 0.22);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--tt-shadow);
}

.tt-panel-screen {
  background: rgba(7, 9, 7, 0.72);
  border: 1px solid rgba(212, 193, 155, 0.16);
  border-radius: 20px;
  padding: 20px;
}

.tt-signal-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212, 193, 155, 0.14);
}

.tt-signal-line:last-child {
  border-bottom: 0;
}

.tt-signal-line b {
  color: var(--tt-tan);
}

.tt-signal-line span {
  color: rgba(255, 255, 255, 0.74);
  text-align: right;
}

.tt-section {
  padding: 64px 0;
}

.tt-section-alt {
  background: var(--tt-white);
}

.tt-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}

.tt-section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.tt-section-head p {
  max-width: 600px;
  margin: 10px 0 0;
  color: var(--tt-muted);
  font-size: 18px;
}

.tt-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tt-feature-card,
.tt-card,
.tt-sidebar-card {
  background: var(--tt-white);
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  box-shadow: 0 14px 36px rgba(7, 9, 7, 0.08);
}

.tt-feature-card {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.tt-feature-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(217, 108, 33, 0.1);
}

.tt-feature-card h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.tt-feature-card p {
  margin: 0;
  color: var(--tt-muted);
}

.tt-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(217, 108, 33, 0.12);
  color: #79350d;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tt-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tt-post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tt-post-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #263322, #070907);
  display: block;
  overflow: hidden;
}

.tt-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.24s ease;
}

.tt-post-card:hover .tt-post-thumb img {
  transform: scale(1.04);
}

.tt-post-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--tt-muted);
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 10px;
}

.tt-post-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tt-post-title a {
  color: var(--tt-ink);
  text-decoration: none;
}

.tt-post-title a:hover {
  color: var(--tt-orange);
}

.tt-excerpt {
  margin: 0 0 16px;
  color: var(--tt-muted);
}

.tt-read-more {
  margin-top: auto;
  color: var(--tt-olive);
  font-weight: 900;
  text-decoration: none;
}

.tt-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.tt-content-area {
  padding: 44px 0 70px;
}

.tt-page-hero {
  background: linear-gradient(135deg, var(--tt-black), var(--tt-olive));
  color: var(--tt-white);
  padding: 54px 0;
}

.tt-page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
  font-size: 19px;
  margin: 0;
}

.tt-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.tt-breadcrumbs a {
  color: var(--tt-tan);
  text-decoration: none;
}

.tt-breadcrumbs.light {
  color: var(--tt-muted);
}

.tt-breadcrumbs.light a {
  color: var(--tt-olive);
}

.tt-article {
  background: var(--tt-white);
  border: 1px solid var(--tt-border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(7, 9, 7, 0.08);
}

.tt-article-featured {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--tt-olive);
}

.tt-article-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-entry-content {
  padding: clamp(24px, 4vw, 42px);
  font-size: 18px;
}

.tt-entry-content > *:first-child {
  margin-top: 0;
}

.tt-entry-content h2,
.tt-entry-content h3,
.tt-entry-content h4 {
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-top: 1.55em;
  margin-bottom: 0.45em;
}

.tt-entry-content h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.tt-entry-content h3 {
  font-size: clamp(23px, 2.4vw, 30px);
}

.tt-entry-content p,
.tt-entry-content li {
  color: #253022;
}

.tt-entry-content blockquote {
  margin: 30px 0;
  border-left: 5px solid var(--tt-orange);
  padding: 18px 22px;
  background: var(--tt-sand);
  border-radius: 0 18px 18px 0;
  font-weight: 750;
}

.tt-entry-footer {
  padding: 0 clamp(24px, 4vw, 42px) 36px;
}

.tt-author-box,
.tt-cta-band {
  border-radius: 22px;
  padding: 24px;
  background: var(--tt-sand);
  border: 1px solid var(--tt-border);
  margin-top: 26px;
}

.tt-cta-band {
  color: var(--tt-white);
  background: linear-gradient(135deg, var(--tt-black), var(--tt-olive));
  border-color: transparent;
}

.tt-cta-band h2,
.tt-cta-band h3 {
  color: var(--tt-white);
  margin-top: 0;
}

.tt-cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

.tt-sidebar {
  position: sticky;
  top: 104px;
}

.tt-sidebar-card {
  padding: 22px;
  margin-bottom: 18px;
}

.tt-sidebar-card h2,
.tt-sidebar-card h3,
.widget-title {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.15;
}

.tt-sidebar-card ul,
.widget ul {
  padding-left: 18px;
  margin: 0;
}

.tt-sidebar-card li,
.widget li {
  margin-bottom: 8px;
}

.search-form,
.tt-search-form {
  display: flex;
  gap: 8px;
}

.search-field,
.tt-search-field,
input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--tt-border);
  background: var(--tt-white);
  color: var(--tt-ink);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
}

.search-submit,
button,
input[type="submit"] {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--tt-olive);
  color: var(--tt-white);
  font-weight: 850;
  cursor: pointer;
}

.tt-footer {
  background: var(--tt-black);
  color: rgba(255, 255, 255, 0.72);
  padding: 50px 0 30px;
}

.tt-footer a {
  color: var(--tt-tan);
  text-decoration: none;
}

.tt-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
  margin-bottom: 32px;
}

.tt-footer h2,
.tt-footer h3 {
  color: var(--tt-white);
  margin-top: 0;
}

.tt-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tt-footer li {
  margin-bottom: 8px;
}

.tt-footer-bottom {
  border-top: 1px solid rgba(212, 193, 155, 0.16);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.nav-links,
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.nav-links a,
.nav-links span,
.page-links a,
.page-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  background: var(--tt-white);
  border: 1px solid var(--tt-border);
  text-decoration: none;
  font-weight: 850;
}

.nav-links .current,
.page-links .current {
  background: var(--tt-orange);
  color: var(--tt-white);
  border-color: var(--tt-orange);
}

.alignwide {
  max-width: min(1100px, 100%);
  margin-inline: auto;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
figcaption {
  color: var(--tt-muted);
  font-size: 14px;
  margin-top: 8px;
}

.gallery {
  display: grid;
  gap: 12px;
}

.sticky,
.bypostauthor {
  outline: none;
}

@media (max-width: 980px) {
  .tt-hero-inner,
  .tt-main-layout,
  .tt-footer-grid {
    grid-template-columns: 1fr;
  }

  .tt-sidebar {
    position: static;
  }

  .tt-post-grid,
  .tt-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tt-section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .tt-wrap {
    width: min(100% - 28px, var(--tt-max));
  }

  .tt-header-inner {
    min-height: 74px;
  }

  .tt-menu-toggle {
    display: inline-flex;
  }

  .tt-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    background: var(--tt-black);
    border: 1px solid rgba(212, 193, 155, 0.22);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--tt-shadow);
  }

  .tt-nav.is-open {
    display: block;
  }

  .tt-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .tt-nav a {
    display: block;
    border-radius: 12px;
  }

  .tt-hero {
    padding: 52px 0 38px;
  }

  .tt-trust-row,
  .tt-post-grid,
  .tt-grid-3 {
    grid-template-columns: 1fr;
  }

  .tt-hero-panel {
    display: none;
  }
}
