/*
Theme Name: Evers Carservice Tuning
Author: Evers Carservice & Tuning
Description: One-page WordPress theme for Evers Carservice & Tuning, including service sections, process content, and a contact request form.
Version: 1.0.0
Requires at least: 6.0
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: evers-carservice-tuning
*/

:root {
  --ink: #111418;
  --muted: #5f6875;
  --line: #dde2e9;
  --panel: #ffffff;
  --soft: #f4f6f8;
  --accent: #c9232f;
  --accent-dark: #941a23;
  --steel: #26313d;
  --max: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

body.admin-bar .topbar {
  top: 32px;
}

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

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(17, 20, 24, 0.72);
  color: #fff;
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  list-style: none;
}

.nav-links a:hover {
  color: #fff;
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #111418;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 14, 0.92) 0%, rgba(8, 11, 14, 0.72) 36%, rgba(8, 11, 14, 0.25) 70%, rgba(8, 11, 14, 0.42) 100%),
    url("assets/workshop-hero.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(17, 20, 24, 0), #fff 88%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 130px 0 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 9vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

button.button {
  cursor: pointer;
}

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

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

.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 82px 0;
}

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

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

.section-head {
  max-width: 690px;
  margin-bottom: 34px;
}

.kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.service-card,
.process-item,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-card {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.service-card p {
  margin-bottom: 22px;
  color: var(--muted);
}

.tag {
  width: fit-content;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  color: var(--steel);
  font-size: 0.88rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 48px;
  align-items: center;
}

.tuning-panel {
  padding: 36px;
  border-left: 5px solid var(--accent);
  background: #151a20;
  color: #fff;
}

.tuning-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.tuning-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.spec-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.spec {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  color: rgba(255, 255, 255, 0.84);
}

.spec span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.quote {
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.quote small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

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

.process-item {
  min-height: 190px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.process-item::before {
  counter-increment: steps;
  content: "0" counter(steps);
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-weight: 900;
}

.process-item h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

.contact-panel {
  padding: 28px;
}

.contact-panel.dark {
  border-color: #151a20;
  background: #151a20;
  color: #fff;
}

.contact-panel.dark p,
.contact-panel.dark li {
  color: rgba(255, 255, 255, 0.76);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-list strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
}

.form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 116px;
  max-height: 220px;
  resize: vertical;
}

.submit-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-message {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}

.form-message.success {
  border-color: #b8d7bf;
  color: #24542d;
  background: #eff8f1;
}

.form-message.error {
  border-color: #e3b0b5;
  color: #7b1720;
  background: #fff0f1;
}

.form-field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.creator-link {
  color: var(--accent);
  font-weight: 800;
}

.creator-link:hover {
  color: var(--accent-dark);
}

.content-main {
  padding-top: 72px;
}

.entry {
  max-width: 780px;
}

.entry + .entry {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.entry-title {
  margin-bottom: 18px;
}

.entry-meta {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.entry-content {
  color: var(--steel);
}

.entry-content a {
  color: var(--accent);
  font-weight: 800;
}

.post-navigation,
.posts-navigation {
  margin-top: 44px;
}

@media (max-width: 900px) {
  body.admin-bar .topbar {
    top: 46px;
  }

  .nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-inner {
    padding: 112px 0 88px;
  }

  .service-grid,
  .split,
  .process,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .quote {
    max-width: 680px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .topbar {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .topbar {
    top: 0;
  }
}

@media (max-width: 560px) {
  .brand {
    white-space: normal;
  }

  .brand-mark {
    flex: 0 0 auto;
  }

  h1 {
    font-size: 3.05rem;
  }

  .actions,
  .button,
  .form-row {
    width: 100%;
  }

  .button {
    padding-inline: 14px;
  }

  .tuning-panel,
  .contact-panel,
  .service-card {
    padding: 22px;
  }
}
