/* Sam's Appliances & Repair Services
   Palette pulled from the logo, the work shirt and the orange Tundra. */
:root {
  --orange: #F26A1B;        /* logo orange */
  --orange-deep: #D9550A;   /* hover / pressed */
  --orange-ink: #B84A08;    /* orange text on white (AA contrast) */
  --black: #000000;
  --white: #FFFFFF;
  --steel: #C9CDD2;         /* stainless from the logo appliances */
  --steel-dark: #5B6168;
  --paper: #F6F6F4;         /* work-order paper */
  --line: #DADDE1;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
figure { margin: 0; }

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--orange); color: var(--black); padding: 8px 14px; font-weight: 700;
}
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Wide, heavy type echoing the "SAM'S" lettering */
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 850;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 0.6em;
}
.section-title .muted { color: var(--steel-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  font: inherit; font-weight: 800; font-stretch: 110%;
  font-size: 1rem;
  padding: 0.95em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: var(--black); }
.btn-orange:hover { background: var(--orange-deep); }
.btn-ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-ghost-dark { border-color: var(--black); color: var(--black); background: transparent; }
.btn-ghost-dark:hover { background: var(--black); color: var(--white); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--black); color: var(--white); }
.btn-sm { padding: 0.55em 1.2em; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter);
  background: var(--black); color: var(--white);
  border-bottom: 4px solid var(--orange);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand-name { font-weight: 900; font-stretch: 125%; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--steel); }
.nav a:hover { color: var(--white); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.phone-link { font-weight: 800; text-decoration: none; color: var(--orange); white-space: nowrap; }
.phone-link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: var(--black);
  color: var(--white);
  min-height: min(88vh, 820px);
}
.hero-copy {
  padding: clamp(48px, 8vw, 110px) var(--gutter) clamp(48px, 6vw, 80px);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex; flex-direction: column; justify-content: center;
}
.hero-kicker { color: var(--steel); font-weight: 600; margin-bottom: 1.4em; }
.hero-title {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.5rem, 5.6vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 0.45em;
}
.hero-title .line { display: block; }
.hero-title .line-orange {
  color: var(--orange);
  font-style: italic;
  font-size: 0.62em;
  letter-spacing: -0.02em;
  margin-top: 0.25em;
}
.hero-sub { max-width: 46ch; color: #E6E7E9; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }

.hero-photo { position: relative; }
.hero-photo > img:first-child {
  width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 40% 60%;
}
.hero-badge {
  position: absolute;
  width: clamp(120px, 15vw, 190px); height: auto; z-index: 2;
  left: -1px; bottom: 28px;
  transform: translateX(-38%) rotate(-8deg);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.55));
}

/* ---------- Appliance strip ---------- */
.strip {
  background: var(--orange);
  color: var(--black);
  border-block: 3px solid var(--black);
}
.strip ul {
  list-style: none; margin: 0 auto; padding: 14px var(--gutter);
  max-width: var(--wrap);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
  font-weight: 850; font-stretch: 115%; font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}
.strip li:not(:last-child)::after { content: "/"; margin: 0 0.8em; opacity: .45; }

/* ---------- Services ---------- */
.services { padding: clamp(64px, 9vw, 120px) 0; }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid var(--black);
}
.service { padding: 28px 28px 8px 0; }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service h3 {
  font-size: 1.5rem; font-weight: 850; font-stretch: 112%;
  margin-bottom: 0.5em;
}
.service p { color: #2A2D31; max-width: 38ch; }

/* ---------- Family ---------- */
.family {
  background: var(--paper);
  padding: clamp(64px, 9vw, 120px) 0;
  overflow: hidden;
}
.family-wrap {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.family-copy p { max-width: 50ch; color: #2A2D31; }
.family-copy .btn { margin-top: 0.6em; }
.family-photos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, minmax(52px, 1fr));
  gap: 12px;
  aspect-ratio: 1 / 1.02;
}
.fp { overflow: hidden; border: 6px solid var(--white); box-shadow: 0 2px 0 var(--line); }
.fp img { width: 100%; height: 100%; object-fit: cover; }
.fp-a { grid-column: 1 / 5; grid-row: 1 / 4; }
.fp-a img { object-position: 45% 50%; }
.fp-b { grid-column: 5 / 7; grid-row: 1 / 4; }
.fp-b img { object-position: 75% 30%; }
.fp-c { grid-column: 1 / 3; grid-row: 4 / 7; }
.fp-d { grid-column: 3 / 7; grid-row: 4 / 7; }
.fp-d img { object-position: 50% 55%; }

/* ---------- Steps ---------- */
.steps {
  background: var(--black); color: var(--white);
  padding: clamp(64px, 9vw, 110px) 0;
}
.step-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  counter-reset: step;
}
.step-list li {
  counter-increment: step;
  padding: 0 24px 0 0;
  position: relative;
}
.step-list li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: var(--black);
  font-weight: 900; font-size: 1.2rem;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.step-list li::after {
  content: ""; position: absolute; top: 22px; left: 46px; right: 0;
  height: 2px; background: repeating-linear-gradient(90deg, var(--steel-dark) 0 8px, transparent 8px 14px);
}
.step-list li:last-child::after { display: none; }
.step-list h3 { font-size: 1.25rem; font-weight: 800; font-stretch: 110%; margin-bottom: 0.4em; }
.step-list p { color: var(--steel); max-width: 30ch; }

/* ---------- Booking / work order ---------- */
.book {
  padding: clamp(64px, 9vw, 120px) 0;
  background:
    linear-gradient(var(--white), var(--white)) top / 100% 55% no-repeat,
    var(--orange);
}
.book-wrap {
  display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.book-intro { position: sticky; top: 100px; }
.book-intro p { max-width: 38ch; color: #2A2D31; }
.book-call a { font-weight: 800; color: var(--orange-ink); }

.ticket {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--black);
  padding: 0 0 8px;
  margin: 0;
  /* torn bottom edge */
  --tear: 10px;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tear) * 2) var(--tear) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tear) + 1px) no-repeat;
          mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tear) * 2) var(--tear) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tear) + 1px) no-repeat;
  padding-bottom: calc(var(--tear) + 20px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.ticket-head {
  display: flex; align-items: center; gap: 14px;
  background: var(--black); color: var(--white);
  padding: 18px 22px;
}
.ticket-head img { width: 64px; height: 64px; flex: none; }
.ticket-title { margin: 0; font-weight: 900; font-stretch: 120%; font-size: 1.35rem; }
.ticket-meta { margin: 0; color: var(--steel); font-size: 0.92rem; }

.stamp {
  margin-left: auto;
  flex: none;
  display: grid; place-items: center; text-align: center;
  width: 92px; height: 92px; border-radius: 50%;
  border: 3px solid var(--orange);
  color: var(--orange);
  transform: rotate(-12deg);
  line-height: 1;
  box-shadow: inset 0 0 0 3px var(--black), inset 0 0 0 5px var(--orange);
}
.stamp span { font-weight: 900; font-stretch: 125%; font-size: 1.6rem; display: block; line-height: 1; }
.stamp small { font-weight: 700; font-size: 0.62rem; display: block; margin-top: 3px; line-height: 1; }
.stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.ticket-row {
  border: 0; margin: 0;
  padding: 20px 22px;
  border-bottom: 1px dashed #B9BDC2;
  min-width: 0;
}
.ticket-row legend {
  float: left; width: 100%;
  font-weight: 800; font-stretch: 110%; font-size: 1.05rem;
  margin-bottom: 12px; padding: 0;
}
.ticket-row legend + * { clear: both; }
.hint { font-weight: 500; color: var(--steel-dark); font-size: 0.9rem; }

.days {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 2px 2px 8px; scroll-snap-type: x mandatory;
}
.day, .slot {
  font: inherit; cursor: pointer;
  background: var(--white); color: var(--black);
  border: 2px solid var(--line);
  border-radius: 10px;
  transition: border-color .12s, background-color .12s;
}
.day {
  flex: none; scroll-snap-align: start;
  width: 72px; padding: 8px 0 10px;
  display: flex; flex-direction: column; align-items: center; line-height: 1.15;
}
.day .dow { font-size: 0.8rem; font-weight: 700; color: var(--steel-dark); }
.day .dnum { font-size: 1.6rem; font-weight: 900; font-stretch: 115%; }
.day .mon { font-size: 0.78rem; color: var(--steel-dark); }
.day:hover, .slot:hover:not(:disabled) { border-color: var(--black); }
.day[aria-checked="true"], .slot[aria-checked="true"] {
  background: var(--black); color: var(--white); border-color: var(--black);
}
.day[aria-checked="true"] .dow, .day[aria-checked="true"] .mon { color: var(--orange); }

.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { padding: 12px 6px; font-weight: 800; font-size: 0.98rem; }
.slot:disabled { cursor: not-allowed; color: #A3A8AE; background: #EEEFF0; text-decoration: line-through; }
.slot-note { margin: 10px 0 0; font-size: 0.92rem; color: var(--steel-dark); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.95rem; }
.field em { font-style: normal; font-weight: 500; color: var(--steel-dark); }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 500; font-size: 1rem;
  padding: 11px 12px;
  border: 0; border-bottom: 2px solid var(--black);
  border-radius: 6px 6px 0 0;
  background: var(--white);
  color: var(--black);
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--orange); box-shadow: 0 2px 0 var(--orange);
}
.field [aria-invalid="true"] { border-bottom-color: #C21E1E; background: #FFF4F4; }
.hp { position: absolute; left: -9999px; }

.ticket-foot { padding: 20px 22px 4px; }
.ticket-summary {
  font-weight: 800; font-stretch: 108%; font-size: 1.1rem;
  margin-bottom: 14px;
}
.fine { font-size: 0.88rem; color: var(--steel-dark); margin: 12px 0 0; }
.form-error { color: #B01515; font-weight: 700; margin: 10px 0 0; }
.form-error:empty { display: none; }

.ticket-done { padding: 40px 28px calc(var(--tear) + 30px); text-align: center; }
.ticket-done h3 { font-size: 1.8rem; font-weight: 900; font-stretch: 118%; margin: 16px 0 12px; }
.ticket-done p { max-width: 44ch; margin-inline: auto; }
.ticket-done a { font-weight: 800; color: var(--orange-ink); }
.stamp-big { margin: 0 auto; width: 120px; height: 120px; white-space: nowrap; animation: stamp .35s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp { from { transform: scale(1.8) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(-12deg); opacity: 1; } }

/* ---------- Showroom ---------- */
.showroom { padding: clamp(64px, 9vw, 120px) 0; }
.showroom-head { display: grid; grid-template-columns: auto 1fr; gap: 12px 48px; align-items: end; margin-bottom: 28px; }
.showroom-head .section-title { margin: 0; }
.showroom-head p { margin: 0; max-width: 46ch; color: #2A2D31; }
  color: var(--white); font-weight: 800; font-stretch: 112%;
  padding: 12px 16px; border-top: 4px solid var(--orange);
}

/* ---------- Reviews ---------- */
.reviews {
  background: var(--orange); color: var(--black);
  padding: clamp(64px, 9vw, 110px) 0;
  border-top: 3px solid var(--black);
}
.reviews-wrap { text-align: center; }
.reviews-title {
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.35em;
}
.reviews p { max-width: 44ch; margin: 0 auto 1.6em; font-size: 1.15rem; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--steel); padding: 48px 0 24px; }
.footer-wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.footer img { width: 120px; }
.footer p { margin: 0 0 4px; }
.footer-name { color: var(--white); font-weight: 900; font-stretch: 118%; font-size: 1.2rem; }
.footer a { color: var(--orange); font-weight: 800; text-decoration: none; font-size: 1.2rem; }
.copyright { text-align: center; font-size: 0.85rem; margin: 36px 0 0; padding: 0 var(--gutter); color: var(--steel-dark); }

.mobile-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .topbar-actions { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding-left: var(--gutter); }
  .hero-photo { height: 62vw; max-height: 520px; }
  .hero-badge { left: auto; right: 16px; bottom: 16px; transform: rotate(-8deg); }
  .family-wrap, .book-wrap { grid-template-columns: minmax(0, 1fr); }
  .book-intro { position: static; }
  .book { background: linear-gradient(var(--white), var(--white)) top / 100% 30% no-repeat, var(--orange); }
  .step-list { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .step-list li:nth-child(2)::after { display: none; }
  .showroom-head { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { padding-bottom: 72px; }
  .brand-name { display: none; }
  .phone-link { font-size: 0.95rem; }
  .topbar .btn-sm { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 22px 0 6px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .step-list { grid-template-columns: 1fr; gap: 28px; }
  .step-list li::after { display: none; }
  .field-grid { grid-template-columns: 1fr; }
  .ticket-head { padding: 14px 16px; }
  .ticket-head img { width: 48px; height: 48px; }
  .ticket-title { font-size: 1.1rem; }
  .stamp { width: 70px; height: 70px; }
  .stamp span { font-size: 1.2rem; }
  .stamp small { font-size: 0.5rem; margin-top: 2px; }
  .ticket-meta { display: none; }
  .ticket-row, .ticket-foot { padding-inline: 16px; }
  .slots { grid-template-columns: 1fr 1fr; }
  .footer-wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .mobile-cta {
    display: block; transition: transform .2s; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    background: var(--orange); color: var(--black);
    text-align: center; font-weight: 900; font-stretch: 112%;
    padding: 16px; border-radius: 999px; text-decoration: none;
    border: 2px solid var(--black);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }
}

.mobile-cta.is-hidden { transform: translateY(140%); }

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

/* Name tag on the family photo wall */
.fp { position: relative; }
.fp figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--orange); color: var(--black);
  font-weight: 850; font-stretch: 112%; font-size: 0.95rem;
  padding: 4px 12px; border-radius: 999px;
  border: 2px solid var(--black);
}

/* ---------- Stock listings ---------- */
.filters { display: flex; gap: 8px; margin-bottom: 20px; }
.filter {
  font: inherit; font-weight: 800; cursor: pointer;
  padding: 8px 18px; border-radius: 999px;
  border: 2px solid var(--black); background: var(--white); color: var(--black);
}
.filter[aria-pressed="true"] { background: var(--black); color: var(--white); }

.stock-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-bottom: 28px;
}
.stock-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 2px solid var(--black);
}
.stock-media { position: relative; background: var(--paper); }
.stock-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  font-weight: 900; font-stretch: 112%; font-size: 0.9rem;
  padding: 4px 12px; border-radius: 999px; border: 2px solid var(--black);
}
.badge-new { background: var(--orange); color: var(--black); }
.badge-used { background: var(--white); color: var(--black); }

.stock-thumbs { display: flex; gap: 6px; padding: 8px 8px 0; overflow-x: auto; }
.thumb {
  flex: none; width: 52px; height: 52px; padding: 0; cursor: pointer;
  border: 2px solid var(--line); border-radius: 6px; overflow: hidden; background: none;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--orange); }

.stock-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 14px 16px 16px;
  border-top: 4px solid var(--orange);
}
.stock-title { font-size: 1.15rem; font-weight: 850; font-stretch: 110%; margin-bottom: 4px; }
.stock-price { font-weight: 900; font-stretch: 115%; font-size: 1.3rem; margin: 0 0 8px; }
.stock-desc { font-size: 0.95rem; color: #2A2D31; margin-bottom: 12px; white-space: pre-line; }
.stock-ask {
  margin-top: auto; align-self: flex-start;
  font-weight: 800; color: var(--orange-ink);
}
.stock-empty { font-weight: 600; margin-bottom: 24px; }

@media (max-width: 680px) {
  .stock-media img { aspect-ratio: 1 / 1; }
}

/* ---------- eBay parts store ---------- */
.parts {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(22px, 4vw, 36px);
  background: var(--black); color: var(--white);
  border-left: 10px solid var(--orange);
}
.parts-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; font-stretch: 118%; margin-bottom: 0.4em; }
.parts p { margin: 0; max-width: 52ch; color: var(--steel); }
.parts .btn { flex: none; }
.footer a.footer-ebay { font-size: 1rem; font-weight: 700; }
.footer a.footer-ebay:hover { text-decoration: underline; }
.parts p a { color: var(--orange); font-weight: 800; }
.fp-d figcaption { left: auto; right: 10px; }
