/* =========================================================
   Partsworxs Home Services — Design Tokens
   Theme: field-service work order / repair-ticket aesthetic
========================================================= */
:root{
  --navy-deep:   #16233A;
  --navy-mid:    #1E344F;
  --steel-blue:  #2E5C82;
  --amber:       #E8992E;
  --amber-dark:  #C97C17;
  --paper:       #F6F7F9;
  --card:        #FFFFFF;
  --ink:         #1F2933;
  --slate-muted: #5B6B7A;
  --line:        #DFE4EA;
  --success:     #3C8558;

  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 10px 30px -14px rgba(22, 35, 58, 0.25);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1{ font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 700; }
h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; margin-top: 0; }
h3{ font-size: 1.15rem; font-weight: 600; }

p{ margin: 0 0 1em; color: var(--ink); }

a{ color: var(--steel-blue); }
a:focus-visible, button:focus-visible, summary:focus-visible{
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--navy-deep);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus{ left: 16px; top: 16px; }

/* =========================================================
   Header
========================================================= */
.site-header{
  background: var(--navy-deep);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-mark{
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--amber);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-name em{
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 0.72rem;
  color: #B9C4D4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav{
  display: none;
  gap: 28px;
}
.main-nav a{
  color: #D7DEE8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover{ color: #fff; }

@media (min-width: 860px){
  .main-nav{ display: flex; }
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  background: var(--amber);
  color: var(--navy-deep);
}
.btn-primary:hover{ background: var(--amber-dark); color: #fff; }

.btn-ghost{
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover{ border-color: #fff; }

.header-call{
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 9px 18px;
}
@media (min-width: 640px){
  .header-call{ display: inline-flex; }
}

.call-dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(232,153,46,0.25);
}

/* =========================================================
   Hero
========================================================= */
.hero{
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(46,92,130,0.35), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: 64px 0 84px;
}

.hero-grid{
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px){
  .hero-grid{ grid-template-columns: 1.15fr 0.85fr; }
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 14px;
}
.eyebrow-light{ color: var(--amber); }

.hero h1{ color: #fff; }

.hero-lede{
  color: #C8D2DE;
  font-size: 1.05rem;
  max-width: 56ch;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 22px;
}

.hero-trust{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: #B9C4D4;
  font-size: 0.9rem;
}
.hero-trust li{
  position: relative;
  padding-left: 20px;
}
.hero-trust li::before{
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* Signature element: the work-order / service ticket card */
.hero-ticket{ display: flex; justify-content: center; }

.ticket{
  width: 100%;
  max-width: 340px;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 26px 24px 0;
  box-shadow: var(--shadow-card);
  transform: rotate(2deg);
  position: relative;
}

.ticket-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.ticket-row:first-child{ padding-top: 0; }

.ticket-label{
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-muted);
  font-weight: 600;
}
.ticket-value{
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-deep);
  text-align: right;
}
.ticket-status{ color: var(--success); }

.ticket-perf{
  height: 0;
  border-bottom: 2px dotted var(--line);
  margin-top: 6px;
}
.ticket-stub{
  text-align: center;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--amber-dark);
  letter-spacing: 0.03em;
}

.ticket-dark{
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
}
.ticket-dark .ticket-value{ color: #fff; }
.ticket-dark .ticket-label{ color: #9FB0C2; }
.ticket-dark .ticket-row{ border-bottom-color: rgba(255,255,255,0.18); }
.ticket-dark .ticket-perf{ border-bottom-color: rgba(255,255,255,0.25); }
.ticket-dark .ticket-stub{ color: var(--amber); }

/* =========================================================
   Article content
========================================================= */
.article{
  padding: 72px 24px 24px;
}

.content-block{
  max-width: 78ch;
  margin: 0 auto 52px;
}
.content-block h3{ margin-top: 1.4em; }

.content-block a{ font-weight: 600; }

.benefit-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}
@media (min-width: 700px){
  .benefit-grid{ grid-template-columns: 1fr 1fr; }
}

.ticket-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.ticket-card h3{ margin-bottom: 0.4em; }
.ticket-card p{ margin: 0; color: var(--slate-muted); }

/* FAQ */
.faq-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.faq-item{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}

.faq-item summary{
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary h3{ margin: 0; font-size: 1rem; color: var(--ink); }

.faq-item summary::after{
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--amber-dark);
  flex-shrink: 0;
}
.faq-item[open] summary::after{ content: "\2212"; }

.faq-item p{
  padding-bottom: 16px;
  color: var(--slate-muted);
  margin: 0;
}

/* =========================================================
   Contact section
========================================================= */
.contact-section{
  background: var(--navy-deep);
  color: #fff;
  padding: 72px 0;
  margin-top: 20px;
}

.contact-grid{
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px){
  .contact-grid{ grid-template-columns: 1.15fr 0.85fr; }
}

.contact-section h2{ color: #fff; }
.contact-section > .wrap > .contact-copy > p{ color: #C8D2DE; }

.contact-list{
  list-style: none;
  padding: 0;
  margin: 24px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li{
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.05rem;
}
.contact-list a{
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.contact-list a:hover{ color: var(--amber); }

.contact-label{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber);
  width: 90px;
  flex-shrink: 0;
}

.contact-ticket{ display: flex; justify-content: center; }

/* =========================================================
   Footer
========================================================= */
.site-footer{
  background: var(--navy-mid);
  color: #9FB0C2;
  padding: 22px 0 90px;
  font-size: 0.85rem;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.footer-inner a{
  color: #C8D2DE;
  text-decoration: none;
}
.footer-inner a:hover{ color: #fff; }

@media (min-width: 640px){
  .site-footer{ padding-bottom: 22px; }
}

/* =========================================================
   Mobile sticky call bar
========================================================= */
.mobile-call-bar{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--amber);
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mobile-call-bar .call-dot{ background: var(--navy-deep); box-shadow: none; }

@media (min-width: 640px){
  .mobile-call-bar{ display: none; }
}

/* =========================================================
   Reduced motion
========================================================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn{ transition: none; }
}