/*
Theme Name: DieselPro Pro Local
Author: Codex
Description: Lightweight theme for DieselPro diesel engine repair pages.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
*/

@font-face {
  font-family: "Quicksand";
  src: url("/wp-content/uploads/dieselpro/fonts/quicksand-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Quicksand";
  src: url("/wp-content/uploads/dieselpro/fonts/quicksand-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("/wp-content/uploads/dieselpro/fonts/bebas-neue.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #37373d;
  --muted: #454545;
  --paper: #f7f7f8;
  --panel: #ffffff;
  --line: #ebebef;
  --steel: #1c1c1c;
  --diesel: #6e8fef;
  --diesel-dark: #38629f;
  --blueprint: #1c244b;
  --soft: #f3f0e7;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Quicksand", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(230px, auto) minmax(360px, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding: 9px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(55, 55, 61, 0.12);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 26px rgba(28, 28, 28, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: min(214px, 46vw);
  height: auto;
}

nav {
  display: flex;
  justify-content: center;
  min-width: 0;
  color: var(--steel);
  font-size: 14px;
  font-weight: 700;
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(16px, 2vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

nav a:hover {
  border-color: var(--diesel);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 0;
  font-weight: 800;
  white-space: nowrap;
}

.header-cta {
  background: var(--steel);
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(670px, calc(100vh - 68px));
  align-items: center;
  overflow: hidden;
  background: #000;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.77) 38%, rgba(0, 0, 0, 0.35) 72%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(0deg, rgba(28, 36, 75, 0.45), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(730px, calc(100% - 36px));
  margin-left: max(18px, calc((100vw - var(--max)) / 2));
  padding: 64px 0 58px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--diesel);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--diesel-dark);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 700px;
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: clamp(44px, 6.1vw, 76px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 400;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.7vw, 20px);
}

.cta-row,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-row {
  margin-top: 32px;
}

.button.primary {
  background: var(--diesel);
  color: #fff;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.button.primary:hover,
.header-cta:hover {
  filter: brightness(0.94);
}

.trust-row {
  margin-top: 26px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.trust-strip div {
  min-height: 116px;
  padding: 24px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 8px;
  color: var(--steel);
}

.trust-strip span {
  color: var(--muted);
}

.content-band,
.service-cards,
.blog-preview,
.related-band,
.faq,
.contact-band,
.final-cta {
  padding: clamp(52px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.content-band > *,
.service-cards > *,
.blog-preview > *,
.related-band > *,
.faq > *,
.contact-band > *,
.final-cta > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.content-band.alt {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading.compact {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: end;
  max-width: var(--max);
}

.section-heading h2,
.final-cta h2,
.contact-band h2,
.split-section h2 {
  margin: 0;
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 400;
}

.section-heading p:not(.eyebrow),
.service-card .card-text,
.symptom-grid p,
.steps p,
.detail-grid p,
.related-links span,
.faq p,
.contact-band p,
.final-cta p,
.post-card .card-text,
.proof-text {
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.service-card,
.post-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.post-card {
  min-height: 0;
}

.cards-grid > br,
.post-grid > br,
.service-card br,
.post-card br {
  display: none;
}

.service-card img,
.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card img {
  height: 170px;
}

.service-card span,
.post-card span {
  display: block;
  padding: 20px 22px 0;
  color: var(--diesel-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card strong,
.post-card strong {
  display: block;
  padding: 8px 22px 0;
  font-size: 19px;
  line-height: 1.25;
}

.service-card .card-text,
.post-card .card-text {
  display: block;
  flex: 1;
  margin: 0;
  padding: 10px 22px 22px;
}

.proof-text {
  display: block;
  margin-top: 8px;
}

.article-layout {
  background: var(--paper);
}

.article-hero {
  padding: clamp(56px, 7vw, 92px) clamp(18px, 5vw, 72px) 0;
  background: #fff;
}

.article-hero > * {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.article-hero h1 {
  color: var(--steel);
}

.lead-dark {
  margin: 22px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.article-hero img {
  width: min(var(--max), 100%);
  height: min(520px, 54vw);
  margin-top: 36px;
  object-fit: cover;
}

.article-body {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 76px) 18px;
  background: var(--paper);
}

.article-body h2 {
  margin: 34px 0 10px;
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 400;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  color: var(--muted);
  font-size: 18px;
}

.article-related {
  border-top: 1px solid var(--line);
}

.symptom-grid,
.steps,
.detail-grid,
.related-links {
  display: grid;
  gap: 16px;
}

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

.symptom-grid article,
.steps div,
.detail-grid article,
.related-links a {
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.symptom-grid h3,
.steps strong,
.detail-grid h3,
.related-links strong {
  display: block;
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.24;
}

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

.steps span {
  display: block;
  margin-bottom: 24px;
  color: var(--diesel-dark);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  max-width: var(--max);
}

.detail-grid {
  grid-template-columns: 1fr;
}

.detail-grid article {
  min-height: auto;
}

.related-band {
  background: var(--panel);
}

.related-links {
  grid-template-columns: repeat(3, 1fr);
}

.related-links a {
  min-height: 150px;
}

.related-links span {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.faq {
  background: var(--panel);
}

details {
  max-width: 960px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 18px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: #fff;
}

.contact-band > * {
  max-width: none;
  margin: 0;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.quote-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.quote-form label:nth-child(5),
.quote-form .button {
  grid-column: 1 / -1;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.quote-form textarea {
  resize: vertical;
}

.final-cta {
  background: var(--blueprint);
  color: #fff;
}

.final-cta p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
}

footer {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(240px, auto) minmax(240px, auto);
  gap: 18px 34px;
  align-items: start;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
}

.footer-brand,
.footer-links,
.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-logo {
  width: min(220px, 70vw);
  height: auto;
}

footer span {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links {
  grid-template-columns: repeat(2, minmax(0, auto));
}

.footer-links a,
.footer-cta,
.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--diesel);
  color: #fff;
}

.contact-facts {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  color: var(--ink);
  font-weight: 700;
}

.contact-facts a {
  color: var(--steel);
}

.placeholder {
  color: var(--diesel);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  nav ul {
    justify-content: flex-start;
    min-width: max-content;
  }

  .cards-grid,
  .trust-strip,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .symptom-grid,
  .related-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading.compact,
  .split-section,
  .contact-band,
  footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: start;
    min-height: 0;
    padding: 9px 14px 10px;
  }

  .brand-logo {
    width: 150px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  nav a {
    font-size: 12px;
    padding: 7px 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(9, 13, 14, 0.96), rgba(9, 13, 14, 0.68));
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-left: 18px;
    padding: 58px 0 48px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.03;
  }

  .lead {
    font-size: 16px;
  }

  .button,
  .cta-row a {
    width: 100%;
  }

  .cards-grid,
  .post-grid,
  .trust-strip,
  .steps,
  .symptom-grid,
  .related-links,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .post-card {
    min-height: auto;
  }
}
