/* Homepage refinements preserve the shared catalog and Hermes app styles. */
.homePage {
  --page-gutter: max(24px, calc((100% - 1280px) / 2));
  --surface: #f5f7f7;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

.homePage h1,
.homePage h2 {
  letter-spacing: 0;
  text-wrap: balance;
}

.homePage p { text-wrap: pretty; }

.homePage .hero {
  min-height: min(710px, calc(100svh - 140px));
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  background-position: center top;
}

@media (max-width: 900px) {
  .homePage .hero { background-position: 72% top; }
}

.homePage .hero::before {
  background: linear-gradient(90deg, rgba(9,17,19,.94), rgba(9,17,19,.85) 36%, rgba(9,17,19,.22) 72%, rgba(9,17,19,.08));
}

.homePage .heroCopy {
  min-width: 0;
  max-width: none;
  padding: 54px var(--page-gutter) 48px;
}

.homePage .heroMeta { margin-bottom: 30px; border: 0; gap: 20px; }
.homePage .heroMeta span {
  min-height: 0;
  padding: 0;
  border: 0;
  font: 500 13px/1.5 "Segoe UI", Arial, sans-serif;
  text-transform: none;
}
.homePage .heroMeta span:first-child { color: #edf1f1; }
.homePage .heroMeta span:not(:first-child) { display: none; }
.homePage h1 { max-width: 660px; margin: 0 0 24px; font-size: 72px; line-height: 1.08; }
.homePage .heroStatement {
  max-width: 500px;
  margin: 0 0 14px;
  font: 500 24px/1.4 "Segoe UI", Arial, sans-serif;
}
.homePage .heroLead { max-width: 510px; font-size: 17px; color: #d1dbdd; line-height: 1.65; }
.homePage .heroActions { margin-top: 28px; gap: 12px; }
.homePage .heroActions .button { min-height: 50px; padding-inline: 24px; }
.homePage .button { font-weight: 600; }
.homePage .button.secondary { background: transparent; border-color: #a9b8bb; }

.homePage .routeRail {
  margin: 0;
  padding-inline: var(--page-gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  background: rgba(17,25,27,.94);
  border: 0;
  border-top: 1px solid rgba(255,255,255,.2);
  box-shadow: none;
  backdrop-filter: none;
}
.homePage .routeRail a {
  min-height: 92px;
  padding: 17px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.16);
  transition: background-color 140ms ease;
}
.homePage .routeRail a:first-child { padding-left: 0; }
.homePage .routeRail a:last-child { border: 0; }
.homePage .routeRail strong { font-size: 17px; font-weight: 600; }
.homePage .routeRail small { display: block; color: #afc0c4; font-size: 13px; }

.homePage .trustBand {
  min-height: 78px;
  padding-inline: var(--page-gutter);
  background: var(--white);
  box-shadow: none;
}
.homePage .trustBand div { min-height: 78px; padding: 16px 20px; justify-content: center; border-right: 0; }
.homePage .trustBand span { font-size: 13px; font-weight: 600; text-align: center; }
.homePage .trustBand div + div { border-left: 1px solid var(--line); }

.homePage .partsSection,
.homePage .priorityPartsSection,
.homePage .faqSection,
.homePage .processSection {
  padding: 88px var(--page-gutter);
  gap: 64px;
}
.homePage .partsSection { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); background: var(--surface); align-items: start; }
.homePage .partsIntro { justify-content: flex-start; gap: 32px; }
.homePage .sectionIntro h2 { margin: 0 0 20px; font-size: 44px; line-height: 1.18; }
.homePage .sectionIntro p { max-width: 65ch; font-size: 16px; line-height: 1.7; color: var(--muted); }
.homePage .partsLinks { gap: 4px 24px; }
.homePage .textLink { font-size: 14px; font-weight: 600; }
.homePage .partsVisual { border: 0; background: transparent; color: var(--muted); }
.homePage .partsVisual img { border-radius: 6px; }
.homePage .partsVisual figcaption { min-height: 0; display: block; padding: 12px 0 0; }
.homePage .partsVisual figcaption strong { font-size: 13px; font-weight: 400; line-height: 1.5; }

.homePage .partForm { min-width: 0; padding: 32px; border: 1px solid #d2dadc; border-radius: 8px; box-shadow: none; }
.homePage .formHeader { min-height: 0; margin: 0; padding: 0 0 24px; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); }
.homePage .formHeader strong { font-size: 22px; font-weight: 650; line-height: 1.35; }
.homePage .formHeader span { margin-top: 5px; color: var(--muted); font: 400 13px/1.5 "Segoe UI", Arial, sans-serif; text-transform: none; }
.homePage .formRequirement { margin: 18px 0 22px; color: var(--muted); font-size: 12px; }
.homePage .formGroup { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.homePage .formGroup legend { margin-bottom: 14px; padding: 0; font-size: 16px; font-weight: 650; }
.homePage .fieldGrid { gap: 18px 20px; }
.homePage .partForm label,
.homePage .vehicleField > label { font-size: 13px; font-weight: 500; }
.homePage .vehicleField > label { display: flex; flex-direction: row; gap: 4px; }
.homePage .partForm input { height: 48px; border-color: #879699; border-radius: 4px; font-weight: 400; color: var(--ink); caret-color: var(--bronze); }
.homePage .partForm input:focus { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 2px; }
.homePage .optionalDetails { margin-top: 16px; }
.homePage .optionalDetails summary,
.homePage .dataSources summary { width: fit-content; min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--green); font-size: 13px; font-weight: 600; }
.homePage .optionalDetails[open] .fieldGrid { margin-top: 12px; }
.homePage .partForm .checkLine { margin: 0 0 22px; font-size: 13px; line-height: 1.6; }
.homePage .partForm .checkLine input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.homePage .partForm .button { width: 100%; min-height: 50px; }
.homePage .formNote { margin: 12px 0 0; line-height: 1.6; }
.homePage .dataSources { margin-top: 6px; }
.homePage .dataSources summary { font-weight: 400; }
.homePage .formStatus:empty { display: none; }
.homePage .formStatus:not(:empty) { margin: 18px 0 0; padding: 12px; background: var(--surface); border-radius: 4px; }
.homePage .vehicleSuggestions { border-radius: 4px; border-top-width: 1px; }
.homePage .vehicleSuggestion { font-weight: 500; }

.homePage .priorityPartsSection { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); background: var(--white); }
.homePage .priorityPartsList a { padding: 24px 0; }
.homePage .priorityPartsList strong { font-size: 18px; font-weight: 600; }

/* The existing workshop collection stays secondary; no commercial state changes. */
.homePage .workshopSection { min-height: 480px; border-top-width: 1px; }
.homePage .workshopCopy { padding: 48px; }
.homePage .workshopCopy h2 { margin: 0 0 20px; font-size: 38px; font-weight: 600; line-height: 1.25; }
.homePage .workshopCopy p { font-size: 16px; }
.homePage .workshopProduct figcaption span { display: none; }
.homePage .workshopProduct figcaption strong { font-weight: 500; }

.homePage .hermesSpotlight {
  padding: 88px var(--page-gutter) 0;
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: 32px 64px;
  background: #edf3f0;
}
.homePage .hermesSpotlight::before { content: none; }
.homePage .hermesSpotlightCopy { padding: 0; }
.homePage .hermesIdentity { margin-bottom: 28px; }
.homePage .hermesIdentity img { width: 56px; height: 56px; border-radius: 6px; }
.homePage .hermesIdentity span { font-size: 24px; letter-spacing: 0; }
.homePage .hermesIdentity small { font: 400 12px/1.5 "Segoe UI", Arial, sans-serif; letter-spacing: 0; text-transform: none; color: #466258; }
.homePage .hermesSpotlight h2 { margin: 0 0 24px; max-width: 620px; font: 700 48px/1.18 Georgia, "Times New Roman", serif; letter-spacing: 0; }
.homePage .hermesLead { font-size: 17px; line-height: 1.7; }
.homePage .hermesPromiseList { margin-top: 28px; }
.homePage .hermesPromiseList li { min-height: 54px; display: flex; }
.homePage .hermesPromiseList strong { font-weight: 500; }
.homePage .hermesCtas { margin-top: 28px; }
.homePage .button.hermesPrimary { background: #0a5544; border-radius: 4px; box-shadow: none; }
.homePage .button.hermesSecondary { border-radius: 4px; }
.homePage .hermesShowcase { min-height: 670px; align-self: center; align-content: center; gap: 18px; padding-bottom: 32px; }
.homePage .hermesPhone { width: 320px; height: 660px; border-width: 7px; border-radius: 34px; transform: none; box-shadow: 0 18px 40px rgba(20,32,29,.14); }
.homePage .hermesPhoneBody { padding: 16px 14px; }
.homePage .hermesPhoneTop { min-height: 62px; padding: 20px 16px 10px; }
.homePage .hermesMiniBrand strong,.homePage .hermesPhoneEyebrow { letter-spacing: 0; }
.homePage .hermesPhoneHeading strong { font-size: 18px; letter-spacing: 0; }
.homePage .hermesPhoneHeading button { width: 36px; height: 36px; border-radius: 6px; box-shadow: none; }
.homePage .hermesPhoneHeading button,.homePage .hermesJobCard > button { background: #0a5544; }
.homePage .hermesPhoneEyebrow,.homePage .hermesPhoneHeading small { color: #466258; }
.homePage .hermesPhoneEyebrow,.homePage .hermesPhoneTop > span { font-size: 11px; }
.homePage .hermesPhoneStats span,.homePage .hermesPhoneNav span { color: #466258; font-size: 11px; }
.homePage .hermesJobTop small { color: #466258; font-size: 11px; }
.homePage .hermesJobTop span { font-size: 11px; }
.homePage .hermesJobCard.isNext .hermesJobTop span { color: #9d3b04; }
.homePage .hermesJobCard > p { font-size: 12px; }
.homePage .hermesPhoneStats { margin-block: 14px; border-radius: 6px; }
.homePage .hermesPhoneStats div { min-height: 54px; }
.homePage .hermesJobCard { padding: 12px; border-radius: 6px; box-shadow: none; }
.homePage .hermesJobCard > strong { font-size: 12px; }
.homePage .hermesJobCard > button { min-height: 30px; border-radius: 4px; }
.homePage .hermesPhoneNav { min-height: 54px; }
.homePage .previewCaption { margin: 0; max-width: 34ch; color: #466258; font-size: 12px; text-align: center; }
.homePage .hermesFeatureRail { background: transparent; backdrop-filter: none; border: 0; border-top: 1px solid #b9ccc2; }
.homePage .hermesFeatureRail article { min-height: 180px; padding: 28px 24px; border-color: #b9ccc2; border-bottom: 0; }
.homePage .hermesFeatureRail article:first-child { padding-left: 0; }
.homePage .hermesFeatureRail article:last-child { border-right: 0; }
.homePage .hermesFeatureRail article > strong { margin-top: 0; font-size: 17px; font-weight: 600; }
.homePage .hermesFeatureRail article > p { font-size: 14px; }
.homePage .faqSection { background: var(--surface); }
.homePage .faqList { border-color: var(--line); }
.homePage .faqList details { border-color: var(--line); }
.homePage .faqList summary { min-height: 76px; font-size: 16px; font-weight: 600; }
.homePage .faqList details p { font-size: 15px; }
.homePage .processList strong { font-weight: 600; }
.homePage .roleFooter { padding: 52px var(--page-gutter) 28px; gap: 28px 60px; }
.homePage .footerContactsLabel { font: 500 13px/1.5 "Segoe UI", Arial, sans-serif; text-transform: none; }
.homePage .footerContactGrid a { grid-template-columns: 1fr; gap: 2px; padding-block: 14px; }
.homePage .footerContactGrid span { font-weight: 400; }
.homePage .footerContactGrid strong { font-weight: 500; }

@media (hover: hover) and (pointer: fine) {
  .homePage .routeRail a:hover { background: rgba(255,255,255,.06); }
  .homePage .button.primary:hover { background: var(--bronze-dark); }
  .homePage .button.secondary:hover { background: rgba(255,255,255,.08); }
  .homePage .button.hermesPrimary:hover { background: #073e32; }
}

@media (max-width: 1100px) {
  .homePage .partsSection,
  .homePage .priorityPartsSection,
  .homePage .hermesSpotlight,
  .homePage .faqSection,
  .homePage .processSection { column-gap: 36px; }
  .homePage .heroCopy { padding-top: 42px; }
  .homePage h1 { font-size: 64px; }
}

@media (max-width: 900px) {
  .homePage .hero { min-height: 660px; }
  .homePage .heroCopy { max-width: 650px; padding-block: 48px; }
  .homePage .partsSection,
  .homePage .priorityPartsSection,
  .homePage .faqSection,
  .homePage .processSection { grid-template-columns: 1fr; gap: 36px; padding-block: 64px; }
  .homePage .partsIntro { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 28px; }
  .homePage .sectionIntro h2 { font-size: 38px; }
  .homePage .trustBand { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .homePage .trustBand div { min-height: 60px; border-bottom: 0; }
  .homePage .trustBand div:nth-child(3) { border-left: 0; }
  .homePage .trustBand div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .homePage .hermesSpotlight { grid-template-columns: 1fr; padding-top: 64px; }
  .homePage .hermesSpotlight h2 { font-size: 42px; }
  .homePage .hermesShowcase { min-height: 0; }
  .homePage .hermesFeatureRail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .homePage .hermesFeatureRail article:nth-child(2) { border-right: 0; }
  .homePage .hermesFeatureRail article:nth-child(3) { padding-left: 0; }
  .homePage .hermesFeatureRail article:nth-child(n+3) { border-top: 1px solid #b9ccc2; }
}

@media (max-width: 620px) {
  .homePage { --page-gutter: 22px; }
  .homePage .hero { min-height: min(680px, calc(100svh - 108px)); }
  .homePage .hero::before { background: linear-gradient(90deg,rgba(9,17,19,.95),rgba(9,17,19,.7)); }
  .homePage .heroCopy { padding-block: 32px; }
  .homePage .heroMeta { margin-bottom: 24px; }
  .homePage h1 { font-size: 46px; line-height: 1.08; margin-bottom: 20px; }
  .homePage .heroStatement { font-size: 20px; line-height: 1.4; }
  .homePage .heroLead { font-size: 15px; line-height: 1.6; }
  .homePage .heroActions { gap: 10px; margin-top: 24px; }
  .homePage .heroActions .button { min-height: 46px; }
  .homePage .routeRail { padding-inline: 12px; }
  .homePage .routeRail a,
  .homePage .routeRail a:first-child { padding: 14px 10px; min-height: 62px; }
  .homePage .routeRail strong { font-size: 13px; line-height: 1.4; }
  .homePage .routeRail small { display: none; }
  .homePage .trustBand div { min-height: 64px; padding: 12px 10px; }
  .homePage .trustBand span { font-size: 12px; }
  .homePage .partsIntro { display: flex; gap: 28px; }
  .homePage .sectionIntro h2 { font-size: 34px; }
  .homePage .partForm { padding: 24px 20px; }
  .homePage .formHeader { flex-direction: row; }
  .homePage .fieldGrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; }
  .homePage .fullField { grid-column: 1/-1; }
  .homePage .optionalDetails .fieldGrid { grid-template-columns: 1fr; }
  .homePage .workshopSection { min-height: 0; }
  .homePage .workshopCopy { padding: 40px 22px; }
  .homePage .workshopCopy h2 { font-size: 32px; }
  .homePage .hermesSpotlight h2 { font-size: 36px; }
  .homePage .hermesPhone { width: min(320px,100%); }
  .homePage .hermesFeatureRail article { padding: 24px 14px; }
  .homePage .hermesFeatureRail article > strong { font-size: 16px; }
  .homePage .roleFooter { gap: 28px; }
}

@media (max-width: 360px) {
  .homePage { --page-gutter: 18px; }
  .homePage h1 { font-size: 36px; }
  .homePage .hero { min-height: 640px; }
  .homePage .fieldGrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .homePage .button:active { transform: none; }
}
