/* =========================================================
   Classic Wipers — shared stylesheet
   One file for the whole site. Colors and fonts are set in
   :root below, so a change there updates every page.
   ========================================================= */

/* ---------- 1. Colors, fonts, sizes ---------- */
:root {
  --ink: #1d1b19;          /* main text */
  --ink-soft: #4a4540;     /* secondary text */
  --paper: #f7f4ee;        /* page background (warm off-white) */
  --card: #ffffff;         /* panels */
  --rule: #ddd5c8;         /* thin lines and borders */
  --header: #232120;       /* header / footer background */
  --accent: #9b2a1f;       /* Mopar-era oxblood red (gauge needles in the logo) */
  --accent-dark: #7a1f16;
  --brass: #8a5a2b;        /* wood-wheel brown from the logo */
  --ship: #ffe07b;         /* Ship Your Motor button yellow */
  --ok: #1e6b3a;
  --err: #8b1e1e;
  --focus: #2b5a9e;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", Helvetica, Arial, sans-serif;

  --wrap: 1080px;          /* widest content */
  --read: 720px;           /* comfortable reading width */
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.6em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.read { max-width: var(--read); }
.skip {
  position: absolute; left: -999px; top: 0;
  background: #fff; color: var(--ink); padding: .5rem 1rem; z-index: 20;
}
.skip:focus { left: 1rem; }

/* Small label above a heading, e.g. "FOR SALE" */
.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .5rem;
}

/* ---------- 3. Header + navigation ---------- */
.site-header {
  background: var(--header);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}
.site-header .wrap {
  max-width: 1240px;       /* a bit wider than the page so the menu fits on one line */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.logo {
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 4px 6px;
  flex: 0 0 auto;
}
.logo img { width: 256px; }   /* 2x the original 128px, per Sam */

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 4px;
  padding: .45rem .8rem;
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .25rem .2rem;
}
.site-nav a {
  display: block;
  color: #f1ece4;
  text-decoration: none;
  font-size: 20px;        /* was ~15px originally; bigger per Sam */
  font-weight: 600;
  padding: .45rem .6rem;
  white-space: nowrap;
  border-radius: 4px;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--ship); border-radius: 0; }

/* Yellow Ship Your Motor button (#FFE07B) */
.site-nav a.nav-ship {
  background: var(--ship);
  color: #111;
  margin-left: .35rem;
  border-radius: 4px;
  box-shadow: none;
}
.site-nav a.nav-ship:hover { background: #ffd451; color: #000; }
.site-nav a.nav-ship[aria-current="page"] { outline: 2px solid #fff; outline-offset: 1px; }

@media (max-width: 860px) {   /* phones/small tablets get the Menu button */
  .nav-toggle { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; display: none; }
  .site-nav.open { display: block; }
  .no-js .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .25rem 0 .5rem; }
  .site-nav a { padding: .7rem .5rem; border-top: 1px solid rgba(255,255,255,.08); }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ship); padding-left: .9rem; }
  .site-nav a.nav-ship { margin: .5rem 0 0; text-align: center; border-top: 0; }
  .logo img { width: 190px; }   /* phones/tablets */
}

/* Desktop/tablet: logo on top, full menu in its own row underneath,
   so the big logo and 20px links never crowd each other. */
@media (min-width: 861px) {
  .site-header .wrap { flex-wrap: wrap; justify-content: center; row-gap: .6rem; }
  .site-nav { flex-basis: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: .4rem; }
  .site-nav ul { justify-content: center; gap: .3rem .15rem; }
  .site-nav a { padding: .45rem .5rem; }
}

/* ---------- 4. Home hero ---------- */
.hero {
  position: relative;
  background: #111 url("../img/hero-wiper-motor.jpg") center 40% / cover no-repeat;
  color: #fff;
}
.hero::before {           /* darken the photo so text stays readable */
  content: "";
  position: absolute; inset: 0;
  background: rgba(18, 16, 14, .62);
}
.hero .wrap {
  position: relative;
  padding-top: clamp(2.75rem, 7vw, 5rem);
  padding-bottom: clamp(2.75rem, 7vw, 5rem);
}
.hero h1 {
  color: var(--ship);
  max-width: 22em;        /* wider so the line wraps less */
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: .75rem 1.3rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-ship { background: var(--ship); color: #111; }
.btn-ship:hover { background: #ffd451; color: #000; }
.btn-line { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

/* ---------- 6. Page sections ---------- */
.page-title {
  background: var(--card);
  border-bottom: 1px solid var(--rule);
}
.page-title .wrap { padding-top: 2.5rem; padding-bottom: 2rem; }
.page-title h1 { margin: 0; }
.section { padding: 2.75rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section h2:first-child { margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--ink); }

/* Two columns: text + side panel */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

/* Bordered panel (pricing, warranty, address) */
.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  padding: 1.4rem 1.5rem;
}
.panel h2, .panel h3 { margin-top: 0; }
.panel + .panel { margin-top: 1.25rem; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { padding: .55rem 0; border-bottom: 1px dashed var(--rule); }
.price-list li:last-child { border-bottom: 0; }
.price { font-weight: 700; color: var(--accent); }

/* Address block */
.address { font-style: normal; line-height: 1.7; }
.address strong { font-family: var(--serif); font-size: 1.15rem; }

/* ---------- 7. Motors and Parts For Sale ---------- */
.parts { list-style: none; margin: 0; padding: 0; }
.part {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.part:first-child { padding-top: .5rem; }
.part img {
  width: 160px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: #fff;
}
.part h3 { margin-bottom: .35rem; }
.part .price { font-family: var(--sans); font-size: 1.1rem; display: block; margin-bottom: .6rem; }
.part p { color: var(--ink-soft); }
.part .ebay { font-weight: 700; }
@media (max-width: 560px) {
  .part { grid-template-columns: 1fr; gap: 1rem; }
  .part img { width: 100%; max-width: 320px; }
}

/* ---------- 8. Testimonials ---------- */
.quotes { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brass);
  padding: 1.3rem 1.5rem;
}
.quote figcaption {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.quote blockquote { margin: 0; color: var(--ink-soft); }
.quote blockquote p:last-child { margin-bottom: 0; }

/* ---------- 9. Forms (contact + Ship Your Motor) ---------- */
form.stack { display: grid; gap: 1rem; }
.row { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .row.two { grid-template-columns: 1fr 1fr; }
  .row.three { grid-template-columns: 1fr 1fr 1fr; }
}
label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid #bdb4a6;
  border-radius: 4px;
  padding: .65rem .75rem;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
textarea { min-height: 120px; resize: vertical; }
.required::after { content: " *"; color: var(--err); }
.hp { position: absolute; left: -9999px; }   /* spam honeypot, hidden */
.note { font-size: .95rem; color: var(--ink); }
.hint { display: block; font-size: .88rem; color: var(--ink); }

/* Ship Your Motor specifics (copy stays black, as on the live page) */
.ship-page, .ship-page p, .ship-page li, .ship-page label, .ship-page legend { color: #000; }
.ship-page .lead { font-size: 1.1rem; }
.steps {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ship);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0 2rem;
}
.steps ol { margin: .5rem 0 0; padding-left: 1.3rem; }
.steps li { margin: .4rem 0; }
fieldset.deposit {
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 4px;
  padding: .85rem 1rem 1rem;
  margin: 0;
}
fieldset.deposit legend { font-weight: 700; padding: 0 .35rem; }
.radio { display: flex; align-items: flex-start; gap: .55rem; margin: .55rem 0; font-weight: 400; }
.radio input { width: auto; margin-top: .35rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .5rem; }
.actions button:disabled { opacity: .65; cursor: wait; }
.status { display: none; margin-top: .5rem; padding: .75rem .9rem; border-radius: 4px; font-size: .95rem; }
.status.show { display: block; }
.status.err { background: #f8eaea; color: var(--err); border: 1px solid #e0b4b4; }
.thankyou {
  display: none;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ok);
  padding: 1.25rem 1.4rem;
}
.thankyou.show { display: block; }
.thankyou h2 { margin-top: 0; color: var(--ok); }
.ship-to {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--header);
  color: #d9d2c7;
  font-size: .95rem;
  margin-top: 0;
}
.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ship);
  margin: 0 0 .6rem;
}
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.site-footer .address strong { color: #fff; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: .85rem;
  color: #a9a196;
  padding: 1rem 1.25rem 1.5rem;
}

/* ---------- 11. 404 ---------- */
.notfound { text-align: center; padding: 5rem 0; }
.notfound .big { font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--accent); margin: 0 0 .5rem; }

/* ---------- 12. Phones and small tablets (mobile pass, Oct 2026) ----------
   Everything below only applies at 860px and narrower, so the desktop
   look is unchanged. */
@media (max-width: 860px) {
  /* Header: Menu button is a proper 44px+ tap target with a menu icon */
  .site-header .wrap { padding-top: .6rem; padding-bottom: .6rem; row-gap: .6rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    min-height: 48px; min-width: 48px; padding: .5rem .9rem;
    font-size: 1.05rem;
  }
  .nav-toggle::before {            /* three-line "hamburger" icon */
    content: ""; width: 18px; height: 2px; background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }
  .nav-toggle[aria-expanded="true"]::before {   /* becomes an X when open */
    height: 18px; width: 18px; box-shadow: none;
    background:
      linear-gradient(45deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%),
      linear-gradient(-45deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%);
  }

  /* Ship Your Motor stays visible as a full-width yellow button under the
     logo even while the menu is closed (hidden on its own page). */
  .site-nav { display: block; }
  .site-nav:not(.open) li { display: none; }
  .site-nav:not(.open) li:last-child { display: block; }
  .site-nav:not(.open) li:has(a.nav-ship[aria-current]) { display: none; }
  .site-nav:not(.open) ul { padding: 0; }
  .site-nav:not(.open) a.nav-ship { margin: 0; }
  .no-js .site-nav li { display: block; }

  .site-nav a { min-height: 48px; display: flex; align-items: center; font-size: 19px; }
  .site-nav a.nav-ship { justify-content: center; font-size: 18px; font-weight: 700; }

  /* Hero: tighter, full-width stacked buttons */
  .hero .wrap { padding-top: 2rem; padding-bottom: 2.25rem; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-align: center; font-size: 1.05rem; }

  /* Page sections: less dead space on small screens */
  .page-title .wrap { padding-top: 1.5rem; padding-bottom: 1.25rem; }
  .section { padding: 2rem 0; }
  .split { gap: 1.75rem; }
  .panel { padding: 1.15rem 1.2rem; }

  /* Small labels readable (were 12.8px) */
  .eyebrow, .site-footer h2 { font-size: .875rem; }
  .copyright { font-size: .9rem; }

  /* Phone / email links: big enough to tap */
  .address a, .ship-to a, .note a, .site-footer li a {
    display: inline-block; padding: .55rem 0; line-height: 1.5;
  }
  .site-footer ul { line-height: 1.4; }
  .site-footer .wrap { gap: 1.25rem; }
  a[href^="mailto:"] { overflow-wrap: anywhere; }

  /* Forms: 16px+ text (no iOS zoom), 48px fields, big radio targets */
  input, select { min-height: 48px; font-size: 16px; }
  textarea { font-size: 16px; }
  label { font-size: 1rem; }
  .radio { min-height: 44px; padding: .35rem 0; margin: .25rem 0; cursor: pointer; }
  .radio input { width: 22px; height: 22px; min-height: 0; margin-top: .1rem; flex: 0 0 22px; accent-color: var(--ink); }
  fieldset.deposit legend { font-size: 1.05rem; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 1rem; }
  .logo img { width: 170px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .actions .btn { width: 100%; }
  .part { padding: 1.5rem 0; }
  .part img { width: 100%; max-width: 340px; }
  .steps { padding: 1rem 1.05rem; }
  .steps ol { padding-left: 1.15rem; }
}
@media (max-width: 759px) {   /* footer is one column here: drop the blank spacer heading */
  .site-footer .wrap > div:last-child h2 { display: none; }
  .site-footer .wrap > div:last-child { margin-top: -1.25rem; }
}

/* Contact page: Save Contact (vCard) button */
.save-contact { margin: 0 0 1.5rem; }
@media (max-width: 560px) { .save-contact .btn { width: 100%; } }
