/* =========================================================
   Partsworxs Home Services — Design Tokens
   ========================================================= */
:root {
  --navy: #12213A;
  --navy-deep: #0B1626;
  --steel: #3F5B80;
  --steel-light: #6C87A8;
  --amber: #E29B3B;
  --amber-dark: #C67F22;
  --offwhite: #F5F6F8;
  --paper: #FFFFFF;
  --charcoal: #212635;
  --ink-soft: #545C6E;
  --line: #E1E4EA;
  --success: #3E8E5A;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 12px 32px -18px rgba(11, 22, 38, 0.35);
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--offwhite);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); position: relative; padding-top: 0.4em; }
h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
}
h3 { font-size: 1.15rem; color: var(--navy); }

p { margin: 0 0 1em; color: var(--charcoal); }
a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--amber-dark); }
ul { padding-left: 1.2em; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy-deep);
}
.btn-primary:hover {
  background: var(--amber-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.btn-ghost {
  border-color: var(--line);
  color: var(--navy);
  padding: 9px 16px;
  font-size: 0.9rem;
}
.btn-ghost:hover {
  border-color: var(--steel);
  color: var(--steel);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark { color: var(--amber-dark); display: flex; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  gap: 24px;
}
.site-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.site-nav a:hover { color: var(--steel); }
.header-call svg { color: var(--amber-dark); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: radial-gradient(120% 140% at 15% 0%, var(--steel) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 64px 0 76px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--amber); }
.hero h1 { color: #fff; }
.hero-lede {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.86);
  max-width: 56ch;
}
.hero-lede a { color: var(--amber); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 30px;
}
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stats strong {
  font-family: var(--font-display);
  color: var(--amber);
  font-size: 1.05rem;
}
.hero-stats span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* Signature element: service ticket card */
.hero-ticket {
  background: var(--paper);
  color: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  transform: rotate(1.2deg);
  border: 1px dashed var(--line);
}
.hero-ticket::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--offwhite);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.06);
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px dashed var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.ticket-id { color: var(--ink-soft); font-weight: 500; font-size: 0.85rem; }
.ticket-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.ticket-row span:first-child { color: var(--ink-soft); }
.ticket-row span:last-child { font-weight: 600; color: var(--navy); }
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.ticket-checklist {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ticket-checklist .check {
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
}

/* =========================================================
   Article
   ========================================================= */
.article {
  padding: 64px 24px 20px;
  max-width: 860px;
}
.content-block {
  margin-bottom: 44px;
}
.content-block h3 {
  margin-top: 1.4em;
}
.benefit-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.benefit-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
}
.benefit-list strong { color: var(--navy); }

/* FAQ */
.faq-list {
  display: grid;
  gap: 14px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.faq-item h3 {
  margin-bottom: 0.4em;
  font-size: 1.02rem;
}
.faq-item p { margin: 0; color: var(--ink-soft); }

/* =========================================================
   Contact
   ========================================================= */
.contact {
  background: var(--navy-deep);
  color: #fff;
  margin-top: 40px;
  padding: 68px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.contact-copy h2 { color: #fff; }
.contact-copy p { color: rgba(255,255,255,0.78); max-width: 48ch; }
.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid;
  gap: 16px;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber);
}
.contact-row a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-row a:hover { color: var(--amber); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 24px;
  font-size: 0.85rem;
}
.footer-inner a { color: rgba(255,255,255,0.8); }
.footer-inner a:hover { color: var(--amber); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .hero-ticket { transform: none; justify-self: start; max-width: 420px; }
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; }
  .hero { padding: 44px 0 52px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .article { padding: 44px 20px 10px; }
  .contact { padding: 48px 0; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}