/*
Theme Name: TraceBackPilot
Theme URI: https://tracebackpilot.com
Author: TraceBackPilot
Author URI: https://tracebackpilot.com
Description: Elementor-compatible WordPress theme converted from the TraceBackPilot Next.js site. Includes page import tools, Forminator shortcode slots, and no built-in chat widgets.
Version: 1.0.1
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tracebackpilot
Tags: custom-logo, custom-menu, full-width-template, one-column, elementor
*/

:root {
  --tbp-navy: #0a1f44;
  --tbp-navy-2: #071734;
  --tbp-blue: #2f56d3;
  --tbp-blue-dark: #1f49b5;
  --tbp-green: #0f9f65;
  --tbp-red: #e53935;
  --tbp-bg: #ffffff;
  --tbp-soft: #f3f5f8;
  --tbp-soft-blue: #eef4ff;
  --tbp-text: #1d1d1f;
  --tbp-muted: #64748b;
  --tbp-border: #e2e8f0;
  --tbp-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  --tbp-shadow-lg: 0 24px 80px -40px rgba(15, 23, 42, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tbp-bg);
  color: var(--tbp-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.tbp-container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 20px;
}

.tbp-container-narrow {
  margin: 0 auto;
  max-width: 860px;
  padding: 0 20px;
}

.tbp-site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--tbp-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-bar .tbp-site-header {
  top: 32px;
}

.tbp-header-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  min-height: 58px;
  justify-content: space-between;
}

.tbp-brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.tbp-brand img {
  height: 30px;
  width: 30px;
}

.tbp-main-menu {
  align-items: center;
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tbp-main-menu a {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.tbp-main-menu a:hover,
.tbp-main-menu .current-menu-item > a {
  color: #0f172a;
}

.tbp-header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.tbp-menu-toggle {
  background: transparent;
  border: 0;
  color: #334155;
  cursor: pointer;
  display: none;
  font-size: 28px;
  line-height: 1;
  padding: 6px;
}

.tbp-button,
.tbp-content .wp-block-button__link,
.tbp-form-placeholder a {
  align-items: center;
  background: var(--tbp-blue);
  border: 1px solid var(--tbp-blue);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tbp-button:hover,
.tbp-content .wp-block-button__link:hover,
.tbp-form-placeholder a:hover {
  background: var(--tbp-blue-dark);
  border-color: var(--tbp-blue-dark);
  color: #fff;
}

.tbp-button:active {
  transform: translateY(1px);
}

.tbp-button-secondary {
  background: #0f172a;
  border-color: #0f172a;
}

.tbp-button-light {
  background: #fff;
  border-color: #fff;
  color: var(--tbp-blue);
}

.tbp-button-outline {
  background: transparent;
  border-color: #cbd5e1;
  color: #0f172a;
}

.tbp-button-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.tbp-section {
  padding: 72px 0;
}

.tbp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 48%, #0f172a 100%);
  color: #fff;
  overflow: hidden;
  padding: 104px 0;
  position: relative;
  text-align: center;
}

.tbp-hero::before {
  background: radial-gradient(circle at 25% 20%, rgba(59, 130, 246, 0.34), transparent 30%),
    radial-gradient(circle at 70% 10%, rgba(12, 194, 110, 0.2), transparent 28%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.tbp-hero > .tbp-container,
.tbp-hero > .tbp-container-narrow {
  position: relative;
}

.tbp-hero h1,
.tbp-page-hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.04;
  margin: 0 auto 22px;
  max-width: 920px;
}

.tbp-hero p,
.tbp-page-hero p {
  color: #dbeafe;
  font-size: clamp(18px, 2.5vw, 23px);
  margin: 0 auto 30px;
  max-width: 780px;
}

.tbp-hero-actions,
.tbp-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.tbp-page-hero {
  background: var(--tbp-blue);
  color: #fff;
  padding: 82px 0;
  text-align: center;
}

.tbp-page-hero.light {
  background: #eff6ff;
  color: var(--tbp-navy);
}

.tbp-page-hero.light p {
  color: #64748b;
}

.tbp-eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
  padding: 5px 10px;
}

.tbp-kicker {
  color: var(--tbp-blue);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.tbp-grid {
  display: grid;
  gap: 24px;
}

.tbp-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tbp-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tbp-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tbp-card {
  background: #fff;
  border: 1px solid var(--tbp-border);
  border-radius: 12px;
  box-shadow: var(--tbp-shadow);
  padding: 26px;
}

.tbp-card h3 {
  color: #0f172a;
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 10px;
}

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

.tbp-icon {
  align-items: center;
  background: #eff6ff;
  border-radius: 10px;
  color: var(--tbp-blue);
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 14px;
  width: 42px;
}

.tbp-stat {
  background: #f8fafc;
  border: 1px solid var(--tbp-border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}

.tbp-stat strong {
  color: #0f172a;
  display: block;
  font-size: 34px;
  line-height: 1;
}

.tbp-stat span {
  color: #64748b;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

.tbp-split {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tbp-split h2,
.tbp-section-title {
  color: #0f172a;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.tbp-lead {
  color: var(--tbp-muted);
  font-size: 18px;
  margin: 0 auto 34px;
  max-width: 760px;
}

.tbp-center {
  text-align: center;
}

.tbp-soft {
  background: var(--tbp-soft);
}

.tbp-soft-blue {
  background: #f5f8ff;
}

.tbp-dark {
  background: #0b1730;
  color: #fff;
}

.tbp-dark .tbp-section-title,
.tbp-dark h2,
.tbp-dark h3 {
  color: #fff;
}

.tbp-dark p,
.tbp-dark .tbp-lead {
  color: #cbd5e1;
}

.tbp-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.tbp-list li {
  color: #475569;
  padding-left: 26px;
  position: relative;
}

.tbp-list li::before {
  color: var(--tbp-green);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.tbp-faq {
  display: grid;
  gap: 12px;
}

.tbp-faq-item {
  background: #fff;
  border: 1px solid var(--tbp-border);
  border-radius: 10px;
  overflow: hidden;
}

.tbp-faq-button {
  align-items: center;
  background: #fff;
  border: 0;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 900;
  justify-content: space-between;
  padding: 18px 20px;
  text-align: left;
  width: 100%;
}

.tbp-faq-answer {
  color: #64748b;
  display: none;
  padding: 0 20px 20px;
}

.tbp-faq-item.is-open .tbp-faq-answer {
  display: block;
}

.tbp-form-panel {
  background: #fff;
  border: 1px solid var(--tbp-border);
  border-radius: 16px;
  box-shadow: var(--tbp-shadow-lg);
  padding: 28px;
}

.tbp-form-placeholder {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  color: #475569;
  padding: 22px;
}

.tbp-form-placeholder h3 {
  color: #0f172a;
  margin-top: 0;
}

.tbp-form-placeholder ol {
  margin-bottom: 0;
}

.tbp-table-wrap {
  overflow-x: auto;
}

.tbp-table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
}

.tbp-table th,
.tbp-table td {
  border: 1px solid var(--tbp-border);
  padding: 13px 14px;
  text-align: left;
}

.tbp-table th {
  background: #f8fafc;
  color: var(--tbp-navy);
}

.tbp-prose {
  color: #475569;
  font-size: 17px;
}

.tbp-prose h2,
.tbp-prose h3 {
  color: var(--tbp-navy);
  line-height: 1.2;
  margin-top: 34px;
}

.tbp-prose table {
  border-collapse: collapse;
  width: 100%;
}

.tbp-prose th,
.tbp-prose td {
  border: 1px solid var(--tbp-border);
  padding: 10px;
}

.tbp-image-frame {
  border-radius: 16px;
  box-shadow: var(--tbp-shadow);
  overflow: hidden;
}

.tbp-site-footer {
  background: var(--tbp-navy-2);
  color: #fff;
  padding: 58px 0 28px;
}

.tbp-footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.5fr repeat(3, 1fr);
}

.tbp-site-footer h3 {
  font-size: 15px;
  margin: 0 0 14px;
}

.tbp-site-footer p,
.tbp-site-footer a {
  color: #cbd5e1;
  font-size: 14px;
  text-decoration: none;
}

.tbp-site-footer a:hover {
  color: #fff;
}

.tbp-footer-links {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tbp-footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
}

.tbp-calc {
  background: #fff;
  border-radius: 16px;
  color: #0f172a;
  margin: 0 auto;
  max-width: 560px;
  padding: 24px;
}

.tbp-calc label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.tbp-calc input {
  border: 1px solid var(--tbp-border);
  border-radius: 8px;
  font-size: 18px;
  padding: 12px;
  width: 100%;
}

.tbp-calc-result {
  background: #eff6ff;
  border-radius: 10px;
  margin-top: 16px;
  padding: 16px;
}

.tbp-page-template-blank header.tbp-site-header,
.tbp-page-template-blank footer.tbp-site-footer {
  display: none;
}

@media (max-width: 980px) {
  .tbp-grid-4,
  .tbp-grid-3,
  .tbp-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tbp-split {
    grid-template-columns: 1fr;
  }

  .tbp-header-actions {
    display: none;
  }
}

@media (max-width: 760px) {
  .admin-bar .tbp-site-header {
    top: 46px;
  }

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

  .tbp-nav-wrap {
    background: #fff;
    border-top: 1px solid var(--tbp-border);
    display: none;
    left: 0;
    padding: 16px 20px 22px;
    position: absolute;
    right: 0;
    top: 58px;
  }

  .tbp-nav-wrap.is-open {
    display: block;
  }

  .tbp-main-menu {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .tbp-grid-4,
  .tbp-grid-3,
  .tbp-grid-2,
  .tbp-footer-grid {
    grid-template-columns: 1fr;
  }

  .tbp-hero,
  .tbp-page-hero {
    padding: 72px 0;
  }

  .tbp-section {
    padding: 54px 0;
  }

  .tbp-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
