/*
Theme Name: A1 Rapid Parts
Theme URI: https://a1rapidparts.com
Author: A1 Metalworks
Description: One-page, quote-request site for A1 Rapid Parts, the 3D-printed custom parts service from A1 Metalworks. Self-contained: no page builder, no required plugins. Editable copy lives under Appearance > Customize > "A1 Rapid Parts: Contact & Copy". Set the logo under Appearance > Customize > Site Identity.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: a1rapidparts
*/

/* ---------- tokens ---------- */
:root {
  --blue: #1E73BE;
  --blue-dark: #155A94;
  --blue-deep: #0F3F68;
  --orange: #FFA700;
  --orange-dark: #E69500;
  --ink: #1A1A1A;
  --ink-soft: #4A4F55;
  --line: #E1E4E8;
  --paper: #FFFFFF;
  --mist: #F4F6F8;
  --steel: #E9EEF3;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3, h4 {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 .5em;
}
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: 14px 26px;
  border-radius: 5px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn-primary:hover, .btn-primary:focus { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover, .btn-ghost:focus { background: #fff; color: var(--blue-deep); border-color: #fff; }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover, .btn-blue:focus { background: var(--blue-dark); border-color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue);
  color: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 74px;
}
.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.site-brand img { max-height: 52px; width: auto; }
.site-brand .brand-text { font-family: "Roboto", sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.site-brand .brand-text small { display: block; font-weight: 400; font-size: .72rem; opacity: .9; letter-spacing: .04em; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { color: #fff; text-decoration: none; font-family: "Roboto", sans-serif; font-weight: 700; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }
@media (max-width: 620px) {
  .header-phone { display: none; }
  .site-header .wrap { min-height: 64px; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 72px 0 78px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  font-weight: 700;
  margin-bottom: .35em;
}
.hero .lede { font-size: 1.2rem; max-width: 44ch; margin-bottom: 1.8rem; color: #EAF2FA; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 1.4rem; font-size: .95rem; color: #CFE0F0; }

/* ---------- section rhythm ---------- */
.section { padding: 66px 0; }
.section--mist { background: var(--mist); }
.section--blue { background: var(--blue-deep); color: #fff; }
.section--blue h2 { color: #fff; }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.section--blue .section-head p { color: #D6E4F1; }
.eyebrow {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--blue-dark);
  margin: 0 0 10px;
}
.section--blue .eyebrow { color: var(--orange); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 26px 22px; }
.step .step-num {
  font-family: "Roboto", sans-serif; font-weight: 700; font-size: 1rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: var(--ink);
  display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- what we make ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 6px; padding: 22px 24px; background: var(--paper); }
.card h3 { color: var(--blue-deep); }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* ---------- materials ---------- */
.materials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; margin: 0; padding: 0; list-style: none; }
.materials li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.materials strong { display: block; font-family: "Roboto", sans-serif; }
.materials span { color: #D6E4F1; font-size: .96rem; }
.materials .note { grid-column: 1 / -1; border-bottom: 0; color: #EAF2FA; font-style: italic; }
@media (max-width: 720px) { .materials { grid-template-columns: 1fr; } }

/* ---------- send us / two-up ---------- */
.twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .twoup { grid-template-columns: 1fr; gap: 30px; } }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 8px 0 8px 30px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 14px; height: 8px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}
.pricebox { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.pricebox ul { margin: 0; padding-left: 1.1rem; }
.pricebox li { margin-bottom: .5rem; color: var(--ink-soft); }
.pricebox li strong { color: var(--ink); }

/* ---------- callout (what we don't print) ---------- */
.callout {
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  background: var(--mist);
  border-radius: 6px;
  padding: 26px 28px;
}
.callout h3 { margin-top: 0; }
.callout p { margin: 0; color: var(--ink-soft); }

/* ---------- quote form ---------- */
.quote { background: var(--steel); }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; gap: 26px; } }
.quote-intro p { color: var(--ink-soft); }
.quote-intro .contact-line { font-family: "Roboto", sans-serif; font-weight: 700; color: var(--ink); }
.quote-form { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.quote-form label { display: block; font-family: "Roboto", sans-serif; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.quote-form input, .quote-form textarea {
  width: 100%; font: inherit; padding: 11px 12px;
  border: 1px solid #C7CDD3; border-radius: 5px; margin-bottom: 16px; background: #fff; color: var(--ink);
}
.quote-form textarea { min-height: 130px; resize: vertical; }
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--blue); outline: 2px solid rgba(30,115,190,.25); outline-offset: 0; }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--ink-soft); margin: -4px 0 16px; }
.form-status { border-radius: 5px; padding: 12px 14px; margin-bottom: 16px; font-size: .96rem; }
.form-status.ok { background: #E7F3EA; border: 1px solid #B7DCC0; color: #1E5B2E; }
.form-status.err { background: #FBEAEA; border: 1px solid #E4B7B7; color: #7A2020; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9CDD2; padding: 40px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer .foot-brand { font-family: "Roboto", sans-serif; font-weight: 700; color: #fff; }
.site-footer .foot-legal { font-size: .86rem; color: #9AA0A6; }

/* ---------- generic page (index.php / page.php) ---------- */
.page-body { padding: 56px 0 72px; }
.page-body .wrap { max-width: 760px; }
.page-body h1 { font-size: 2.1rem; margin-bottom: .6em; }
.page-body a { color: var(--blue-dark); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
