/*
Theme Name: TPS Office Warfare
Theme URI: https://tpsrts.com/
Author: David Gates
Author URI: https://tpsrts.com/
Description: Theme for TPS: Total Productivity Strategy.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tps-office-warfare
*/

:root {
  --bg: #0a1f3d;
  --bg-deep: #07172f;
  --panel: rgba(9, 28, 55, 0.82);
  --panel-soft: rgba(13, 38, 74, 0.78);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-soft: rgba(236, 243, 255, 0.82);
  --line: rgba(255, 255, 255, 0.18);
  --orange: #f38c2d;
  --orange-strong: #ff7f1e;
  --blue: #2d66da;
  --blue-strong: #204fb7;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  --shadow-strong: 0 20px 54px rgba(0, 0, 0, 0.38);
  --max: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --header-height: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(253, 174, 93, 0.10), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 24%),
    linear-gradient(180deg, #0d2a4f 0%, #091d39 44%, #06142a 100%);
  position: relative;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 {
  margin: 0 0 1rem;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  text-shadow: 0 5px 18px rgba(0,0,0,.45);
}
h2 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  text-shadow: 0 4px 14px rgba(0,0,0,.35);
}
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.section { padding: 4.7rem 0; position: relative; }
.section-tight { padding: 3.4rem 0; }
.section-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-rule::before,
.section-rule::after {
  content: "";
  width: clamp(60px, 12vw, 190px);
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.65), rgba(255,255,255,0));
}
.section-copy {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-soft);
  font-size: 1.05rem;
}
.card {
  background: linear-gradient(180deg, rgba(20, 44, 82, 0.92), rgba(7, 22, 44, 0.94));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.button,
button,
input[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.4rem;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.32);
  filter: brightness(1.04);
}
.button-primary,
input[type="submit"] {
  color: #fff;
  background: linear-gradient(180deg, var(--orange), var(--orange-strong));
}
.button-secondary {
  color: #fff;
  background: linear-gradient(180deg, var(--blue), var(--blue-strong));
}
.button-ghost {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 28, 53, 0.94);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .95rem;
  min-width: 0;
}
.brand-image {
  width: 146px;
  max-width: 34vw;
  height: auto;
}
.brand-copy {
  display: none;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-menu {
  display: flex;
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 .95rem;
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  font-weight: 800;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  background: rgba(255,255,255,0.08);
}
.header-cta { min-width: 148px; }

.hero {
  padding: 0 0 3rem;
}
.hero-shell {
  position: relative;
  min-height: 650px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: #102847;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: flex;
  align-items: center;
}
.hero-content {
  width: min(520px, 100%);
  padding: 4.5rem 0 4rem;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.2rem;
  padding: .45rem .78rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffc46e, #ff7f1e);
}
.hero-content p {
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.28rem);
  max-width: 500px;
}
.hero-actions { margin-top: 1.6rem; }
.hero-note {
  margin-top: 1rem;
  color: rgba(255,255,255,0.76);
  font-size: .95rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.feature-card {
  position: relative;
}
.feature-image {
  aspect-ratio: 1.15 / 0.9;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.feature-body {
  padding: 1.1rem 1.15rem 1.35rem;
  text-align: center;
}
.feature-body h3 { margin-bottom: .55rem; }
.feature-body p {
  color: var(--text-soft);
  font-size: .96rem;
  margin: 0;
}

.cta-section {
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(7,20,42,0.22), rgba(7,20,42,0.08));
}
.cta-box {
  text-align: center;
}
.cta-box p {
  color: rgba(255, 209, 150, 0.96);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700;
}
.cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.35rem;
}

.follow-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.social-link {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}
.social-link:hover {
  background: rgba(255,255,255,0.16);
}

.page-shell {
  padding: 3.6rem 0 5rem;
}
.entry-hero {
  padding: 3.4rem 0 1.2rem;
}
.entry-kicker {
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .78rem;
  font-weight: 900;
  color: rgba(255,255,255,.72);
  margin-bottom: .9rem;
}
.entry-copy {
  max-width: 720px;
  color: var(--text-soft);
  font-size: 1.05rem;
}
.page-card,
.post-card,
.contact-card,
.media-card,
.archive-card {
  padding: 1.4rem;
}
.page-card h2,
.post-card h2,
.contact-card h2,
.archive-card h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  text-transform: none;
  line-height: 1.04;
}
.prose,
.entry-content {
  color: var(--text-soft);
  font-size: 1.04rem;
}
.prose ul,
.entry-content ul {
  padding-left: 1.25rem;
}
.prose li,
.entry-content li { margin-bottom: .5rem; }
.media-grid,
.archive-list,
.posts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.media-thumb {
  aspect-ratio: 1.15 / 0.9;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 1rem;
}
.post-date {
  display: inline-block;
  margin-bottom: .75rem;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size: .8rem;
  font-weight: 700;
}
.contact-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.site-footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.footer-inner {
  text-align: center;
  color: rgba(255,255,255,0.68);
}
.footer-inner p { margin: 0; }
.footer-menu {
  list-style: none;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0 0 .75rem;
}
.footer-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 .7rem;
  border-radius: 999px;
}
.footer-menu a:hover { background: rgba(255,255,255,0.08); }
.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .site-header__inner {
    padding: .85rem 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .header-nav {
    width: 100%;
    justify-content: space-between;
  }
  .hero-shell,
  .hero-overlay { min-height: 580px; }
  .feature-grid,
  .media-grid,
  .archive-list,
  .posts-list { grid-template-columns: 1fr; }
}


.section-with-bg,
.entry-hero-has-bg {
  background-size: cover;
  background-position: center;
}
.section-with-bg {
  position: relative;
}
.section-with-bg::before,
.entry-hero-has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}
.section-with-bg > .container,
.entry-hero-has-bg > .container {
  position: relative;
  z-index: 2;
}


.home-editor-shell {
  padding-top: 0;
}
.home-editor-card {
  margin-top: .5rem;
}
.entry-content > *:first-child {
  margin-top: 0;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  text-transform: uppercase;
}
.entry-content .wp-block-image img,
.entry-content .wp-block-cover,
.entry-content .wp-block-gallery {
  border-radius: 18px;
  overflow: hidden;
}
.entry-content .wp-block-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1.8rem;
}
.entry-content .wp-block-button__link {
  text-decoration: none;
}
.entry-content .wp-block-separator {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.16);
  margin: 2rem 0;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.wp-block-image.aligncenter img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-media {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7,20,42,0.82) 0%, rgba(7,20,42,0.68) 26%, rgba(7,20,42,0.28) 54%, rgba(7,20,42,0.18) 100%),
        linear-gradient(180deg, rgba(7,20,42,0.34) 0%, rgba(7,20,42,0.12) 60%, rgba(7,20,42,0.62) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-media {
    z-index: 1;
}