/*
Theme Name: 8X Motorsport
Theme URI: https://8xmotorsport.com/
Author: 8X Motorsport
Description: A lightweight SEO-first opening soon theme for 8X Motorsport, a VAG-focused workshop in DIP 2, Dubai.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: eightx
*/

:root {
  --x-black: #050505;
  --x-ink: #111316;
  --x-panel: #17191d;
  --x-panel-soft: #202329;
  --x-line: rgba(255, 255, 255, 0.14);
  --x-text: #f4f5f7;
  --x-muted: #b8bec8;
  --x-red: #e10714;
  --x-silver: #dfe3e8;
  --x-steel: #7e8794;
  --x-white: #ffffff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.35), var(--x-black) 650px),
    radial-gradient(circle at 85% 10%, rgba(225, 7, 20, 0.18), transparent 30%),
    var(--x-black);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--x-line);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 176px;
  max-width: 44vw;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--x-muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-menu a {
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--x-white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(225, 7, 20, 0.78);
  background: var(--x-red);
  color: var(--x-white);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--x-line);
  background: transparent;
  color: var(--x-white);
}

.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  min-height: 86svh;
  display: grid;
  align-items: end;
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.34) 56%, rgba(0, 0, 0, 0.62)),
    url("assets/images/customer-lounge.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--x-line);
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 118px 0 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--x-silver);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 3px;
  background: var(--x-red);
}

.hero-logo {
  width: min(560px, 86vw);
  margin: 26px 0 22px;
}

.hero h1,
.page-hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--x-white);
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.96;
  font-weight: 950;
  text-transform: uppercase;
}

.hero p {
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--x-silver);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--x-line);
  background: var(--x-white);
  color: var(--x-black);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
}

.button.red {
  border-color: var(--x-red);
  background: var(--x-red);
  color: var(--x-white);
}

.button.dark {
  background: transparent;
  color: var(--x-white);
}

.quick-facts {
  width: min(var(--max), calc(100% - 32px));
  margin: -40px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--x-line);
  background: rgba(17, 19, 22, 0.94);
}

.fact {
  min-height: 116px;
  padding: 22px;
  border-right: 1px solid var(--x-line);
}

.fact:last-child {
  border-right: 0;
}

.fact b {
  display: block;
  color: var(--x-white);
  font-size: 20px;
  line-height: 1.15;
}

.fact span {
  display: block;
  margin-top: 8px;
  color: var(--x-muted);
  font-size: 14px;
}

.section {
  padding: 96px 0;
}

.section.tight {
  padding: 64px 0;
}

.section.dark {
  background: var(--x-ink);
}

.section.photo-band {
  min-height: 520px;
  display: grid;
  align-items: end;
  background-image:
    linear-gradient(180deg, rgba(5, 5, 5, 0.15), rgba(5, 5, 5, 0.9)),
    url("assets/images/workshop-2.png");
  background-size: cover;
  background-position: center;
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head h2,
.split h2,
.content-page h2 {
  margin: 10px 0 0;
  color: var(--x-white);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.03;
  font-weight: 950;
  text-transform: uppercase;
}

.section-head p,
.split p,
.content-page p,
.content-page li {
  color: var(--x-muted);
  font-size: 17px;
}

.service-grid,
.brand-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service,
.brand-card,
.faq-card {
  min-height: 188px;
  padding: 26px;
  border: 1px solid var(--x-line);
  background: var(--x-panel);
}

.service h3,
.brand-card h3,
.faq-card h3 {
  margin: 0;
  color: var(--x-white);
  font-size: 22px;
  line-height: 1.15;
}

.service p,
.brand-card p,
.faq-card p {
  margin: 14px 0 0;
  color: var(--x-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 40px;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--x-line);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.metric {
  padding: 18px;
  border-left: 3px solid var(--x-red);
  background: rgba(255, 255, 255, 0.04);
}

.metric b {
  display: block;
  color: var(--x-white);
  font-size: 24px;
}

.metric span {
  color: var(--x-muted);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
}

.page-hero {
  min-height: 420px;
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--x-line);
  background-image:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.48)),
    url("assets/images/workshop-1.png");
  background-size: cover;
  background-position: center;
}

.page-hero .wrap {
  padding: 96px 0 64px;
}

.page-hero p {
  max-width: 760px;
  color: var(--x-silver);
  font-size: 20px;
}

.content-page {
  padding: 72px 0 96px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(300px, 0.35fr);
  gap: 42px;
}

.content-page ul {
  padding-left: 20px;
}

.side-panel {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--x-line);
  background: var(--x-panel);
}

.side-panel h3 {
  margin: 0 0 16px;
  color: var(--x-white);
  font-size: 20px;
}

.side-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--x-line);
  color: var(--x-muted);
  text-decoration: none;
}

.side-panel a:hover {
  color: var(--x-white);
}

.form-shell {
  padding: 28px;
  border: 1px solid var(--x-line);
  background: var(--x-panel);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--x-silver);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--x-line);
  border-radius: 0;
  background: #0d0f12;
  color: var(--x-white);
  font: inherit;
  padding: 12px 14px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

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

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--x-red);
  background: rgba(225, 7, 20, 0.1);
  color: var(--x-white);
}

.site-footer {
  border-top: 1px solid var(--x-line);
  background: #030303;
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1fr 0.7fr 0.7fr;
  gap: 36px;
}

.footer-logo {
  width: 220px;
  max-width: 70vw;
  margin-bottom: 20px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: var(--x-white);
}

.site-footer p,
.site-footer a {
  color: var(--x-muted);
}

.site-footer a {
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--x-line);
  padding: 18px 0;
  color: var(--x-steel);
  font-size: 13px;
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 940px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu-wrap {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    border-bottom: 1px solid var(--x-line);
    background: rgba(5, 5, 5, 0.98);
  }

  .nav-menu-wrap.open {
    display: block;
  }

  .nav-menu {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    display: grid;
    gap: 12px;
  }

  .quick-facts,
  .section-head,
  .split,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts {
    margin-top: 0;
  }

  .fact {
    border-right: 0;
    border-bottom: 1px solid var(--x-line);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .service-grid,
  .brand-grid,
  .faq-grid,
  .metric-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 84svh;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .wrap,
  .hero-inner,
  .quick-facts,
  .footer-grid {
    width: min(100% - 24px, var(--max));
  }

  .hero-inner {
    padding-bottom: 48px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .brand img {
    width: 150px;
  }

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