/*
Theme Name: Class Act Auto Repair
Theme URI: https://www.classactautorepair.com/
Author: Class Act Auto Repair
Description: A custom, responsive hometown-garage theme created exclusively for Class Act Auto Repair.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: class-act-auto
*/

:root {
  --ink: #17191b;
  --ink-soft: #25282b;
  --paper: #f5f0e7;
  --white: #ffffff;
  --yellow: #f2c230;
  --yellow-dark: #d8a914;
  --rust: #a9442d;
  --muted: #6d6a64;
  --line: rgba(23, 25, 27, 0.14);
  --shadow: 0 18px 55px rgba(23, 25, 27, 0.13);
  --radius: 18px;
  --wrap: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.site-main { overflow: hidden; }
.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before { width: 30px; height: 3px; background: var(--yellow); content: ""; }
h1, h2, h3 {
  margin: 0 0 18px;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.8vw, 4.25rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.25em; }
.lead { color: #4f4d48; font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.65; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}
.button:hover { background: #ffd54c; transform: translateY(-2px); }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: #34383b; }
.button--outline { border-color: rgba(255,255,255,.7); background: transparent; color: var(--white); }
.button--outline:hover { background: var(--white); color: var(--ink); }

.utility-bar { padding: 8px 0; background: var(--yellow); color: var(--ink); font-size: .79rem; font-weight: 850; letter-spacing: .04em; }
.utility-inner { display: flex; justify-content: space-between; gap: 20px; }
.utility-inner p { margin: 0; }
.utility-inner a { text-decoration: none; }
.site-header { position: relative; z-index: 20; background: var(--ink); color: var(--white); }
.header-inner { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img, .custom-logo { display: block; width: auto; max-height: 76px; }
.brand-name { font-weight: 900; text-transform: uppercase; }
.primary-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--white); font-size: .82rem; font-weight: 850; letter-spacing: .075em; text-decoration: none; text-transform: uppercase; }
.primary-nav a:hover { color: var(--yellow); }
.menu-toggle { display: none; padding: 9px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; background: transparent; color: var(--white); font-weight: 800; }

.hero { position: relative; min-height: 710px; display: grid; align-items: end; color: var(--white); background: #101214; }
.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,12,13,.96) 0%, rgba(11,12,13,.76) 48%, rgba(11,12,13,.16) 78%),
    linear-gradient(0deg, rgba(11,12,13,.6), transparent 50%),
    url("assets/images/mechanic-engine-bay.png") center / cover no-repeat;
  content: "";
}
.hero::after {
  position: absolute;
  right: -70px;
  bottom: -55px;
  width: 330px;
  height: 130px;
  border: 16px solid rgba(242,194,48,.8);
  content: "";
  transform: rotate(-4deg);
}
.hero-inner { position: relative; z-index: 1; width: var(--wrap); margin: auto; padding: 110px 0 90px; }
.hero-copy { max-width: 780px; }
.hero h1 span { color: var(--yellow); }
.hero .eyebrow { color: var(--yellow); }
.hero .eyebrow::before { background: var(--white); }
.hero .lead { max-width: 660px; color: rgba(255,255,255,.84); font-size: clamp(1.12rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px 38px; margin: 45px 0 0; padding: 0; list-style: none; }
.hero-proof li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.84); font-size: .9rem; font-weight: 750; }
.hero-proof li::before { width: 10px; height: 10px; border: 3px solid var(--yellow); border-radius: 50%; content: ""; }

.trust-strip { position: relative; z-index: 2; margin-top: -35px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: var(--shadow); }
.trust-item { min-height: 145px; padding: 30px; background: var(--white); border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.trust-number { display: block; margin-bottom: 4px; color: var(--rust); font-family: Impact, sans-serif; font-size: 2.15rem; line-height: 1; text-transform: uppercase; }
.trust-item p { margin: 0; color: var(--muted); font-size: .93rem; }

.section { padding: 110px 0; }
.section-heading { max-width: 720px; margin-bottom: 45px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 250px; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.6); }
.service-card::after { position: absolute; right: -24px; bottom: -30px; color: rgba(23,25,27,.045); font-family: Impact, sans-serif; font-size: 8rem; line-height: 1; content: attr(data-number); }
.service-card h3, .service-card p { position: relative; z-index: 1; }
.service-card p { color: var(--muted); }
.service-kicker { display: block; margin-bottom: 28px; color: var(--rust); font-size: .76rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.services-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.services-list span { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 750; }

.story { background: var(--ink); color: var(--white); }
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; }
.story-photo { min-height: 570px; background: url("assets/images/engine-repair.png") center / cover no-repeat; }
.story-copy { display: flex; align-items: center; padding: 80px clamp(35px, 7vw, 110px); }
.story-copy > div { max-width: 580px; }
.story-copy .lead { color: rgba(255,255,255,.72); }
.story-points { margin: 30px 0; padding: 0; list-style: none; }
.story-points li { position: relative; margin: 14px 0; padding-left: 28px; font-weight: 750; }
.story-points li::before { position: absolute; left: 0; color: var(--yellow); content: "✓"; }

.special { padding: 90px 0; background: var(--yellow); }
.special-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 45px; }
.special h2 { max-width: 760px; margin-bottom: 10px; }
.special p { max-width: 700px; margin: 0; }

.visit-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 65px; align-items: start; }
.contact-card { padding: 38px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.contact-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-row:first-child { padding-top: 0; }
.contact-row:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-label { display: block; margin-bottom: 5px; color: var(--rust); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.contact-value { font-size: 1.12rem; font-weight: 780; text-decoration: none; }
.hours { margin: 28px 0; }
.hours-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.hours-row span:last-child { font-weight: 800; text-align: right; }

.site-footer { padding: 65px 0 25px; background: #0d0f10; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 60px; }
.footer-logo { width: 190px; margin-bottom: 20px; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; letter-spacing: .03em; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.copyright { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }

.page-hero { padding: 90px 0 65px; background: var(--ink); color: var(--white); }
.page-content { max-width: 850px; padding-block: 80px; }
.page-content > *:first-child { margin-top: 0; }
.page-content h2 { margin-top: 1em; font-size: 2.5rem; }
.page-content a { color: var(--rust); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 22px 20px 30px;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; width: var(--wrap); margin-inline: auto; }
  .menu-toggle { display: block; }
  .hero { min-height: 650px; }
  .trust-grid, .services-grid { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .visit-grid { grid-template-columns: 1fr; }
  .story-photo { min-height: 420px; }
  .special-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --wrap: min(100% - 28px, 1160px); }
  .utility-inner p:first-child { display: none; }
  .utility-inner { justify-content: center; }
  .header-inner { min-height: 82px; }
  .brand img, .custom-logo { max-height: 62px; max-width: 175px; }
  .hero { min-height: 620px; }
  .hero-inner { padding: 80px 0 70px; }
  .hero-actions .button { width: 100%; }
  .hero-proof { gap: 12px; }
  .trust-strip { margin-top: 0; }
  .trust-grid { box-shadow: none; }
  .section { padding: 80px 0; }
  .services-list { grid-template-columns: 1fr; }
  .story-photo { min-height: 300px; }
  .story-copy { padding: 65px 24px; }
  .contact-card { padding: 27px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
