/* Sun Valley Auto Body. Red from the shop's own sign, black and shop-floor grey. */
:root {
  --red: #c1272d;
  --red-dark: #9e1f24;
  --amber: #f2b230;
  --ink: #17181a;
  --grey: #f4f3f0;
  --line: #dcdad5;
  --muted: #55575b;
  --font: "Source Sans Pro", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--ink); background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: 18px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { background: var(--ink); color: #fff; }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: .01em; }
.top__call { color: #fff; background: var(--red); text-decoration: none; font-weight: 700; padding: 0 22px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 4px; }
.top__call:hover { background: var(--red-dark); }

/* hero: the repaired car across the full width */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero__shade { position: absolute; inset: 0; background: rgba(15, 16, 18, .6); }
.hero__in { position: relative; padding-top: 64px; padding-bottom: 56px; min-height: 540px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { text-wrap: balance; font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.02em; max-width: 12em; }
.hero__line { text-wrap: pretty; font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 30em; margin: 16px 0 0; }
.today { margin: 18px 0 0; font-size: 1.05rem; font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.status:not([hidden]) ~ .today__fallback { display: none; }
.today-line:empty { display: none; }
.btns { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font-weight: 700; font-size: 1.08rem; text-decoration: none; border-radius: 4px; }
.btn--main { background: var(--red); color: #fff; }
.btn--main:hover { background: var(--red-dark); }
.btn--line { color: #fff; border: 2px solid #fff; }
.btn--line:hover { background: #fff; color: var(--ink); }

/* strip: Where / Hours / Call */
.strip { background: var(--grey); border-bottom: 1px solid var(--line); }
.strip__in { display: grid; grid-template-columns: 1.2fr 1.3fr .8fr; }
.strip__cell { padding: 22px 24px 22px 0; }
.strip__cell + .strip__cell { border-left: 1px solid var(--line); padding-left: 24px; }
.strip p { margin: 0; }
.strip .strip__label { font-size: .95rem; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.strip__where a { display: block; font-weight: 700; margin-top: 4px; min-height: 30px; }
.strip__phone { font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; }

/* before and after */
.work { padding: 64px 0 56px; }
.work__lead { margin: -6px 0 26px; color: var(--muted); }
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.work figure { margin: 0; }
.work img { width: 100%; height: auto; }
.work figcaption { margin-top: 10px; font-weight: 600; }

/* hours, good to know, questions */
.info { background: var(--grey); padding: 56px 0 64px; }
.info__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.rows { margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 700; white-space: nowrap; }
.rows dd { margin: 0; text-align: right; }
#details:not(:empty) { margin-top: 28px; }
.closures { list-style: none; padding: 0; margin: 0 0 12px; font-weight: 700; color: var(--red); }
.qa + .qa { margin-top: 22px; }
.qa h3 { font-size: 1.15rem; margin-bottom: 6px; }
.qa p { margin: 0; }

/* footer */
.foot { background: var(--ink); color: #e9e8e5; padding: 36px 0 40px; }
.foot__in p { margin: 0 0 6px; }
.foot__name { font-weight: 800; font-size: 1.15rem; color: #fff; }
.foot a { color: #fff; }

/* call bar, phones only */
.callbar { display: none; }

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .top__call { display: none; }
  .hero__in { min-height: 0; padding-top: 40px; padding-bottom: 36px; }
  .hero__img { object-position: 62% 70%; }
  .hero__shade { background: rgba(15, 16, 18, .66); }
  .btns { flex-wrap: nowrap; gap: 10px; }
  .btn { flex: 1 1 50%; padding: 0 10px; font-size: 1rem; }
  .strip__in { grid-template-columns: 1fr; }
  .strip__cell { padding: 16px 0; }
  .strip__cell + .strip__cell { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .work { padding: 44px 0 40px; }
  .work__grid { grid-template-columns: 1fr; gap: 28px; }
  .info { padding: 44px 0 48px; }
  .info__in { grid-template-columns: 1fr; gap: 40px; }
  .callbar { display: flex; align-items: center; justify-content: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    min-height: 56px; padding-bottom: env(safe-area-inset-bottom); background: var(--red); color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
}
