/* Public homepage */
.home-hero,
.home-services,
.home-stock {
  --home-ink: #18372d;
  --home-rule: #c8cec2;
  color: var(--home-ink);
}

.home-hero { background: #f7f5ed; }
.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(2rem, 5.8vw, 6.5rem);
  padding-block: clamp(2.45rem, 4.65vw, 5.4rem);
}
.home-hero h1 {
  font: 400 clamp(3.4rem, 6.6vw, 7.5rem)/.99 Georgia, "Times New Roman", serif;
  letter-spacing: -.077em;
}
.home-hero h1 em {
  display: inline-block;
  font: italic 400 1.08em/1 var(--serif);
  letter-spacing: -.043em;
  color: #46674f;
}
.home-hero-copy > p {
  max-width: 42ch;
  margin-top: clamp(1.25rem, 2vw, 2.2rem);
  color: #45544b;
  font-size: clamp(1rem, 1.28vw, 1.23rem);
  line-height: 1.53;
}
.home-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem clamp(1rem, 2vw, 2.15rem);
  margin-top: clamp(1.3rem, 2.25vw, 2.45rem);
}
.home-button,
.home-link,
.home-stock-all,
.home-stock-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 46px;
  font-weight: 650;
  font-size: .94rem;
  line-height: 1.2;
}
.home-button {
  padding: .9rem 1.25rem;
  background: #203e30;
  color: #fffdf6;
  border: 1px solid #203e30;
  border-radius: 3px;
}
.home-button:hover { background: #315640; }
.home-link,
.home-stock-all { text-decoration: underline; text-underline-offset: .35em; text-decoration-color: #9baba0; }
.home-link:hover,
.home-stock-all:hover { text-decoration-color: currentColor; }
/* The two service views are native radio controls so the desk also works without JavaScript. */
.engraved-desk {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(1.15rem, 2.1vw, 2.25rem) clamp(1.2rem, 2.55vw, 3rem);
  overflow: hidden;
  color: #fff9e8;
  background: radial-gradient(ellipse at 53% 30%, #265448, #143c34 57%, #0d302b);
  border: 1px solid #254a3b;
  border-radius: 6px;
  box-shadow: inset 0 0 0 4px #103c3030, 0 .65rem 1.5rem -1.2rem #152c29b0;
}
.engraved-desk::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url('/assets/recovery-linework.svg') center 48% / 107% 110% no-repeat;
  opacity: .58;
  pointer-events: none;
}
.desk-choice { position: absolute; left: 50%; top: 10%; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); overflow: hidden; }
.desk-head, .desk-route { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.desk-title { color: #e0d2a9; font-size: .7rem; line-height: 1.3; letter-spacing: .18em; font-weight: 650; text-transform: uppercase; }
.desk-switch { display: inline-flex; padding: 3px; background: #0b2d28cb; border: 1px solid #79948396; border-radius: 2rem; }
.desk-switch label { display: grid; place-items: center; min-width: 4rem; min-height: 33px; padding: .25rem .7rem; border-radius: 1.4rem; font-size: .79rem; line-height: 1; font-weight: 580; color: #d9e1d6; cursor: pointer; }
.desk-switch label:hover { color: white; background: #305147; }
#desk-funds:checked ~ .desk-head label[for=desk-funds], #desk-vehicles:checked ~ .desk-head label[for=desk-vehicles] { background: #e8e0c3; color: #143b30; }
#desk-funds:focus-visible ~ .desk-head label[for=desk-funds], #desk-vehicles:focus-visible ~ .desk-head label[for=desk-vehicles] { outline: 2px solid white; outline-offset: 3px; }
.desk-print { display: grid; place-items: center; margin-block: .35rem .15rem; }
.desk-seal { position: relative; width: 43%; min-width: 9.5rem; max-width: 18rem; aspect-ratio: 1; text-align: center; }
.desk-seal img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 7px #07261b55); }
.desk-pound, .desk-lots { position: absolute; inset: 0; align-items: center; justify-content: center; }
.desk-pound { display: grid; padding-bottom: .045em; font: italic 400 clamp(4.6rem, 7.4vw, 7.8rem)/1 var(--serif); color: #edd8a3; text-shadow: 1px 1px #1d3527, 2px 2px #82784c; }
.desk-lots { display: none; flex-direction: column; gap: .15rem; color: #f4e5bc; font-variant-numeric: lining-nums tabular-nums; }
.desk-lots > span { font: 400 clamp(1.55rem, 3vw, 3.35rem)/1 Georgia, serif; letter-spacing: -.055em; }
.desk-lots small { font-size: clamp(.47rem, .55vw, .66rem); text-transform: uppercase; font-weight: 650; letter-spacing: .09em; }
.desk-route { border-top: 1px solid #b5c2ab60; padding-block-start: clamp(.8rem, 1.35vw, 1.55rem); color: #f9f5e7; }
.desk-route small { display: block; margin-bottom: .22rem; font-size: .78rem; color: #cdd4c2; }
.desk-route strong { display: block; font: 400 clamp(1.3rem, 2.25vw, 2.4rem)/1.15 Georgia, serif; letter-spacing: -.048em; }
.desk-route .next-arrow { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border: 1px solid #a8aa88; border-radius: 50%; padding: .62rem; }
.desk-route:hover .next-arrow, .desk-route:focus-visible .next-arrow { background: #e8e0c3; color: #15382e; border-color: #e8e0c3; }
.desk-route:focus-visible { outline-color: #f1da9c; outline-offset: 4px; }
.desk-vehicles-link, #desk-vehicles:checked ~ .desk-funds-link, #desk-vehicles:checked ~ .desk-print .desk-pound { display: none; }
#desk-vehicles:checked ~ .desk-vehicles-link, #desk-vehicles:checked ~ .desk-print .desk-lots { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .desk-seal img { transition: transform 800ms cubic-bezier(.2,.69,.25,1); }
  #desk-vehicles:checked ~ .desk-print img { transform: rotate(15deg); }
  .desk-route .next-arrow { transition: background-color .22s, color .22s; }
  #desk-vehicles:checked ~ .desk-print .desk-lots, #desk-funds:checked ~ .desk-print .desk-pound { animation: desk-type-in .5s ease-out both; }
  @keyframes desk-type-in { from { opacity: .25; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}

.home-hero + .type-nav .type-inner > a { min-width: 0; min-height: 44px; }
.home-hero + .type-nav .type-inner > a span { min-width: 0; overflow-wrap: anywhere; }
.home-makes { padding-block: clamp(1.9rem, 3.5vw, 3.65rem); }
.home-makes .section-head { align-items: center; margin-bottom: 1rem; }
.home-makes .section-head h2 { margin: 0; color: #18372d; }
.home-makes .section-head .button-outline { min-height: 44px; }

.home-services {
  background: #e6eae0;
  border-block: 1px solid #cdd3c6;
}
.home-services-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(2rem, 5.8vw, 6.5rem);
  padding-block: clamp(2.5rem, 4.6vw, 5rem);
}
.home-services h2,
.home-stock h2 {
  font: 400 clamp(2.4rem, 4.2vw, 4.7rem)/1.04 Georgia, "Times New Roman", serif;
  letter-spacing: -.068em;
}
.home-services-intro > p { max-width: 34ch; margin-top: 1.05rem; line-height: 1.55; color: #48554c; }
.home-services-intro > p a { color: #1b4232; text-decoration: underline; text-underline-offset: .18em; }
.home-office {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .05rem 1.2rem;
  margin-top: 1.05rem;
  font-size: .84rem;
  font-weight: 600;
}
.home-office a,
.home-office > span { display: inline-block; padding-block: .6rem; overflow-wrap: anywhere; }
.home-office .next-arrow { width: .85em; height: .85em; }
.home-office a:hover { text-decoration: underline; text-underline-offset: .28em; }
.home-credentials { font-weight: 450; }
.home-services-list { border-top: 1px solid #b3bfaf; }
.home-services-list > a {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) 2.35rem;
  align-items: center;
  gap: clamp(.75rem, 1.45vw, 1.6rem);
  min-height: 5.8rem;
  padding: 1rem .1rem;
  border-bottom: 1px solid #bac4b5;
}
.home-service-icon,
.home-service-arrow {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-service-icon { color: #46644f; }
.home-service-arrow {
  width: 2.25rem;
  height: 2.25rem;
  padding: .55rem;
  border: 1px solid #9aa99a;
  border-radius: 50%;
}
.home-services-list strong {
  display: block;
  font: 550 clamp(1.06rem, 1.45vw, 1.38rem)/1.2 var(--sans);
  letter-spacing: -.03em;
}
.home-services-list small { display: block; margin-top: .28rem; color: #47564b; font-size: .91rem; line-height: 1.4; }
.home-services-list > a:hover .home-service-arrow,
.home-services-list > a:focus-visible .home-service-arrow { background: #244c38; border-color: #244c38; color: white; }

.home-stock { padding-block: clamp(2.45rem, 5vw, 5.6rem); background: #f8f7f2; }
.home-stock-head { display: flex; gap: .5rem 1rem; flex-wrap: wrap; justify-content: space-between; align-items: baseline; margin-bottom: 1.45rem; }
.home-stock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: clamp(1rem, 2.5vw, 2.75rem); }
.home-stock-card { display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid var(--home-rule); }
.home-stock-link { display: block; }
.home-stock-photo { aspect-ratio: 1.65; overflow: hidden; border-radius: 3px; background: #e0e2d7; }
.home-stock-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-stock-lot { display: block; width: fit-content; margin-top: 1rem; color: #526356; font-size: .75rem; letter-spacing: .07em; font-weight: 650; }
.home-stock-card h3 { margin-top: .45rem; font: 400 clamp(1.35rem, 1.85vw, 2rem)/1.13 Georgia, serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.home-stock-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.home-stock-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; margin-top: auto; padding: .9rem 0 1.05rem; }
.home-stock-price { font-weight: 650; }
.home-stock-contact { min-height: 38px; padding: .45rem .9rem; background: #e7ebe1; border: 1px solid #afbdac; border-radius: 3px; font-size: .83rem; }
.home-stock-contact:hover { background: #21442f; color: white; border-color: #21442f; }

@media (min-width: 721px) {
  .home-stock > .frame:has(.home-stock-card:only-child) {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(2rem, 5.8vw, 6.5rem);
  }
  .home-stock > .frame:has(.home-stock-card:only-child) .home-stock-head { display: block; }
  .home-stock > .frame:has(.home-stock-card:only-child) .home-stock-all { margin-top: .75rem; }
}
@media (max-width: 900px) {
  .home-hero-inner, .home-services-inner { gap: 1.8rem; }
  .home-services-list > a { gap: .75rem; }
}
@media (max-width: 720px) {
  .home-hero-inner, .home-services-inner { grid-template-columns: minmax(0, 1fr); gap: 1.55rem; }
  .home-hero-inner { padding-block: 2.1rem 1.6rem; }
  .engraved-desk { padding: 1rem 1.15rem; }
  .desk-print { margin-block: .1rem; }
  .desk-seal { width: 40%; max-width: 11rem; }
  .desk-switch label { min-height: 38px; }
  .home-hero h1 { font-size: clamp(3.35rem, 10.5vw, 5.1rem); }
  .home-hero-copy > p { margin-top: .95rem; max-width: 43ch; }
  .home-hero-actions { margin-top: 1.15rem; }
  .home-services-inner { padding-block: 2.1rem; }
  .home-services-intro > p { margin-top: .75rem; }
  .home-office { margin-top: .4rem; }
  .home-services-list > a { min-height: 5rem; }
  .home-stock-head { margin-bottom: 1.1rem; }
}
@media (max-width: 400px) {
  .home-hero-actions { gap: .4rem .9rem; }
  .home-button { padding-inline: .85rem; }
  .home-button, .home-link { font-size: .87rem; gap: .4rem; }
  .desk-title { font-size: .62rem; letter-spacing: .12em; }
  .desk-switch label { min-width: 3.3rem; padding-inline: .55rem; }
  .home-services-list > a { grid-template-columns: 1.25rem minmax(0, 1fr) 1.85rem; }
  .home-service-icon { width: 1.22rem; }
  .home-service-arrow { width: 1.85rem; height: 1.85rem; padding: .42rem; }
}
