﻿/*
Theme Name: TractorPK Industrial
Theme URI: https://tractorpk.com
Author: TractorPK
Description: Editable WordPress theme for TractorPK.com with SEO-focused tractor, implement, parts and export pages.
Version: 1.0.0
Text Domain: tractorpk
*/

:root {
  --tp-ink: #10130f;
  --tp-panel: #181d16;
  --tp-panel-2: #22291e;
  --tp-paper: #f7f4e8;
  --tp-muted: #b8bda9;
  --tp-line: rgba(247, 244, 232, .16);
  --tp-green: #6faa34;
  --tp-gold: #e0b847;
  --tp-red: #b33c2f;
  --tp-white: #ffffff;
  --tp-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tp-ink);
  color: var(--tp-paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.tp-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(16, 19, 15, .92);
  border-bottom: 1px solid var(--tp-line);
  backdrop-filter: blur(16px);
}
.tp-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font: 900 24px/1 Arial Black, Impact, sans-serif;
  letter-spacing: .02em;
}
.tp-brand span { color: var(--tp-green); }
.tp-brand small { color: var(--tp-gold); font: 800 13px Arial, sans-serif; }
.tp-nav { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.tp-nav a, .tp-footer-nav a {
  color: var(--tp-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tp-nav a:hover, .tp-footer-nav a:hover { color: var(--tp-white); }
.tp-header-cta,
.wp-block-button__link {
  border-radius: 0;
  border: 1px solid transparent;
  background: var(--tp-green);
  color: #10130f;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 20px;
}
.tp-header-cta:hover, .wp-block-button__link:hover { background: var(--tp-gold); }
.tp-mobile-menu { display: none; }
.tp-mobile-menu summary {
  cursor: pointer;
  color: var(--tp-paper);
  font-weight: 900;
  text-transform: uppercase;
}
.tp-mobile-menu nav {
  position: absolute;
  right: 18px;
  top: 68px;
  width: min(320px, calc(100vw - 36px));
  display: grid;
  gap: 2px;
  padding: 12px;
  background: #151914;
  border: 1px solid var(--tp-line);
  box-shadow: var(--tp-shadow);
}
.tp-mobile-menu a { padding: 12px; color: var(--tp-paper); border-bottom: 1px solid var(--tp-line); }

.tp-main { min-height: 60vh; }
.tp-content-shell > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.tp-content-shell > .tp-hero,
.tp-content-shell > .tp-cta {
  max-width: none;
}
.tp-hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: stretch;
  padding: clamp(56px, 8vw, 118px) clamp(20px, 5vw, 76px);
  background:
    linear-gradient(115deg, rgba(16,19,15,.94) 0%, rgba(16,19,15,.72) 58%, rgba(16,19,15,.2) 100%),
    radial-gradient(circle at 15% 16%, rgba(111,170,52,.26), transparent 26%),
    linear-gradient(180deg, #171c14, #0d100c);
  border-bottom: 1px solid var(--tp-line);
}
.tp-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 820px;
}
.tp-kicker {
  margin: 0 0 16px;
  color: var(--tp-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  line-height: 1.02;
  font-family: Arial Black, Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1 { font-size: clamp(44px, 7vw, 92px); max-width: 940px; }
h2 { font-size: clamp(34px, 4.6vw, 64px); }
h3 { font-size: clamp(21px, 2vw, 31px); }
.tp-lead, .tp-section-lead {
  color: var(--tp-muted);
  font-size: clamp(17px, 2vw, 21px);
  max-width: 760px;
}
.tp-actions { margin-top: 18px; gap: 14px; }
.wp-block-button.tp-button-secondary .wp-block-button__link {
  background: transparent;
  color: var(--tp-paper);
  border-color: var(--tp-line);
}
.wp-block-button.tp-button-secondary .wp-block-button__link:hover {
  color: var(--tp-ink);
  background: var(--tp-gold);
}
.tp-hero-visual {
  min-height: 420px;
  align-self: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.62)),
    var(--wpr-bg-62e1c220-cb90-4b3e-a925-06761b9f3469) center / cover no-repeat;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--tp-shadow);
}
.tp-visual-label {
  max-width: 220px;
  margin: 0;
  padding: 12px 14px;
  background: rgba(16,19,15,.82);
  color: var(--tp-white);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tp-section-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  padding: clamp(58px, 8vw, 105px) clamp(20px, 5vw, 0) 28px;
}
.tp-card-grid {
  gap: 0;
  border-top: 1px solid var(--tp-line);
  border-left: 1px solid var(--tp-line);
  margin-bottom: 42px;
}
.tp-card-grid .wp-block-column {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  background: linear-gradient(145deg, var(--tp-panel), #11150f);
  border-right: 1px solid var(--tp-line);
  border-bottom: 1px solid var(--tp-line);
}
.tp-card-tag, .tp-step-num {
  color: var(--tp-green);
  font: 900 12px/1 Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tp-card-grid p, .tp-steps p, .tp-faq p, .tp-cta p { color: var(--tp-muted); }
.tp-card-grid ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--tp-paper);
}
.tp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 48px;
  background: var(--tp-line);
}
.tp-step {
  padding: clamp(24px, 3vw, 36px);
  background: #11150f;
}
.tp-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 52px;
  background: #151a13;
}
.tp-table th, .tp-table td {
  padding: 18px;
  border: 1px solid var(--tp-line);
  text-align: left;
  vertical-align: top;
}
.tp-table th { color: var(--tp-gold); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.tp-faq {
  padding-bottom: 58px;
}
.tp-faq .tp-section-intro { padding-top: 40px; }
.tp-faq-item {
  border-top: 1px solid var(--tp-line);
  padding: 20px 0;
}
.tp-faq-item:last-child { border-bottom: 1px solid var(--tp-line); }
.tp-faq-item summary {
  cursor: pointer;
  color: var(--tp-paper);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.tp-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(42px, 6vw, 74px) clamp(20px, 5vw, 76px);
  background: var(--tp-green);
  color: #10130f;
}
.tp-cta p { color: #1f2a18; max-width: 740px; }
.tp-cta .wp-block-button__link { background: #10130f; color: var(--tp-paper); }

.tp-site-footer {
  padding: 42px clamp(20px, 5vw, 76px);
  background: #0b0e0a;
  border-top: 1px solid var(--tp-line);
}
.tp-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.tp-footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.tp-site-footer p, .tp-site-footer small { color: var(--tp-muted); }

.editor-styles-wrapper {
  background: var(--tp-ink);
  color: var(--tp-paper);
  padding: 24px;
}
.editor-styles-wrapper .tp-hero,
.editor-styles-wrapper .tp-section-intro,
.editor-styles-wrapper .tp-cta {
  max-width: 1180px;
}

@media (max-width: 980px) {
  .tp-site-header { grid-template-columns: auto 1fr auto; }
  .tp-nav { display: none; }
  .tp-mobile-menu { display: block; }
  .tp-hero { grid-template-columns: 1fr; min-height: auto; }
  .tp-hero-visual { min-height: 360px; }
  .tp-section-intro, .tp-cta { grid-template-columns: 1fr; }
  .tp-steps { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .tp-site-header { gap: 14px; }
  .tp-header-cta { display: none; }
  .tp-hero { padding-top: 46px; }
  .tp-card-grid { display: block; }
  .tp-card-grid .wp-block-column { margin: 0; }
  .tp-table { overflow-x: auto; }
}
