/* Autotech Motorsport - dark motorsport theme
   Hand-written to replace the GoDaddy-generated stylesheet. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #0e0e10;
  --surface: #16161a;
  --surface-2: #1e1e24;
  --red: #d8232a;
  --red-dark: #a81a20;
  --text: #f2f2f4;
  --muted: #9a9aa2;
  --line: rgba(255, 255, 255, .09);
  --max: 1220px;
  --pad: clamp(20px, 5vw, 48px);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.05rem; letter-spacing: .08em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--red);
}
.lede { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 15px 30px; border: 1px solid transparent;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #ef2b33; }
.btn-ghost { border-color: rgba(255,255,255,.28); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,.06); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(14, 14, 16, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative; padding: 6px 0;
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--text); white-space: nowrap;
  transition: color .18s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--red); transition: right .25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); color: var(--text); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: currentColor;
  margin: 0 auto; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 28px;
    transform: translateY(-140%); transition: transform .3s var(--ease);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-open .nav { transform: translateY(0); }
  .nav a { width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .nav a::after { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.hero-home { min-height: min(88vh, 820px); }
.hero-page { min-height: min(52vh, 460px); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,16,.55) 0%, rgba(14,14,16,.35) 45%, rgba(14,14,16,.97) 100%);
}
.hero-inner { position: relative; width: 100%; padding-block: clamp(48px, 9vw, 110px); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 22px; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- credentials strip ---------- */
.creds { border-bottom: 1px solid var(--line); background: var(--surface); }
.creds-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 0 auto;
}
.cred { padding: 30px var(--pad); border-left: 1px solid var(--line); }
.cred:first-child { border-left: none; }
.cred b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.cred span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 780px) {
  .creds-grid { grid-template-columns: repeat(2, 1fr); }
  .cred:nth-child(3) { border-left: none; }
  .cred:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { margin-top: 18px; color: var(--muted); }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(216,35,42,.55); background: var(--surface-2); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.12rem; letter-spacing: -.01em; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .94rem; flex: 1; }
.card .more {
  margin-top: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red);
}
.card .more::after { content: " \2192"; transition: margin .2s var(--ease); }
.card:hover .more::after { margin-left: 5px; }

/* ---------- feature band ---------- */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; background: var(--surface); }
.feature-media { min-height: 340px; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: clamp(36px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.feature-body p { color: var(--muted); margin-top: 18px; }
.feature-body .btn { margin-top: 30px; align-self: flex-start; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* ---------- service detail sections ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.svc + .svc { margin-top: clamp(60px, 8vw, 110px); }
.svc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc:nth-child(even) .svc-media { order: 2; }
.svc h2 { margin-bottom: 24px; }
.svc h3 { margin: 26px 0 10px; color: var(--red); }
.svc p, .svc li { color: var(--muted); }
.svc ul { list-style: none; margin: 0 0 1.1em; padding: 0; }
.svc li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.svc li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 2px; background: var(--red);
}
.svc .btn { margin-top: 24px; }
@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; }
  .svc:nth-child(even) .svc-media { order: 0; }
}

/* ---------- two-column list panels ---------- */
.panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 860px) { .panels { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); }
.panel h3 { margin-bottom: 22px; }
.panel.included h3 { color: #35c46a; }
.panel.excluded h3 { color: var(--red); }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--muted); }
.panel li::before { position: absolute; left: 0; font-weight: 700; }
.panel.included li::before { content: "\2713"; color: #35c46a; }
.panel.excluded li::before { content: "\2715"; color: var(--red); }
.panel li ul { margin-top: 8px; }
.panel li li { font-size: .9rem; }
.panel.excluded li li::before { content: "\2013"; color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); padding: 40px 32px;
  text-decoration: none; display: block;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.contact-card:hover { border-color: rgba(216,35,42,.55); transform: translateY(-4px); background: var(--surface-2); }
.contact-card .label {
  display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.contact-card .value { font-size: 1.18rem; font-weight: 700; word-break: break-word; }
.socials { display: flex; gap: 14px; margin-top: 6px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); color: var(--text);
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { transform: translateY(-3px); border-color: transparent; color: #fff; }
.socials a.fb:hover { background: #1877f2; }
.socials a.ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red-dark) 0%, var(--red) 100%);
  text-align: center;
}
.cta-band .wrap { padding-block: clamp(56px, 8vw, 96px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.86); margin: 18px auto 0; max-width: 54ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.cta-band .btn-primary { background: #fff; color: #14141a; }
.cta-band .btn-primary:hover { background: #f0f0f2; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px;
  padding-block: clamp(48px, 6vw, 76px);
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }
.footer-top img.logo { height: 52px; width: auto; margin-bottom: 20px; }
.footer-top p { color: var(--muted); font-size: .94rem; max-width: 40ch; }
.footer-col h4 {
  margin: 0 0 18px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { text-decoration: none; font-size: .95rem; transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-block: 26px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 14px 22px;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- reveal on scroll ----------
   Gated on .js so that without JavaScript every section is simply visible -
   an opacity:0 default would hide the whole page if the script never ran. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .contact-card:hover, .socials a:hover { transform: none; }
}
