/* Rueben’s Auto Body — charcoal + rust, steel-blue line accents */

:root {
  --bg: #f4f2ee;
  --ink: #1c1c1c;
  --muted: #5c5a56;
  --line: #d6d2cb;
  --accent: #8c3a1e;
  --accent-hover: #6e2c16;
  --map-bg: #e8e5df;
  --stripe: #3b6b8f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  position: relative;
  margin: 0 auto;
  max-width: 40rem;
  padding: 2.25rem 1.25rem 2.5rem;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* Faint flowing + diagonal hairlines at the top and sides. */
body::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: -10vw;
  right: -10vw;
  height: 15rem;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 280' fill='none'%3E%3Cpath d='M-40 78C150 32 300 118 500 70C700 22 850 108 1040 58' stroke='%233b6b8f' stroke-width='1.1' opacity='0.4'/%3E%3Cpath d='M-40 90C160 44 310 128 510 82C710 36 860 118 1040 72' stroke='%233b6b8f' stroke-width='0.7' opacity='0.25'/%3E%3Cpath d='M580 8C760 78 900 24 1040 96' stroke='%233b6b8f' stroke-width='0.8' opacity='0.28'/%3E%3Cpath d='M0 4L150 210' stroke='%233b6b8f' stroke-width='0.65' opacity='0.16'/%3E%3Cpath d='M16 0L166 206' stroke='%233b6b8f' stroke-width='0.65' opacity='0.1'/%3E%3C/svg%3E") no-repeat top center / 100% auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}

header,
main,
footer,
.hero {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wordmark {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.tagline {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.years-in-town {
  margin: 0.7rem 0 0;
}

.years-line {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

/* Automotive pinstripe: charcoal body line, then a tight double blue stripe. */
header {
  padding-bottom: 0;
  border-bottom: 0;
}

header::after {
  content: "";
  display: block;
  height: 8px;
  margin-top: 1.5rem;
  background: linear-gradient(
    to bottom,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--stripe) 4px 6px,
    transparent 6px 7px,
    var(--stripe) 7px 8px
  );
}

main section + section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 0.85rem;
  padding-left: 0.65rem;
  border-left: 2px solid var(--stripe);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.services {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.services li:last-child {
  border-bottom: 0;
}

.address {
  margin: 0 0 1.15rem;
  font-style: normal;
  line-height: 1.45;
}

.hours {
  margin: 0 0 1.15rem;
}

.hours div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 1.25rem;
  padding: 0.25rem 0;
}

.hours dt,
.hours dd {
  margin: 0;
}

.hours dd {
  color: var(--muted);
}

.contact {
  margin: 0 0 1.25rem;
  line-height: 1.7;
}

.map {
  background: var(--map-bg);
  aspect-ratio: 16 / 9;
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

.rating {
  margin: 0 0 1.15rem;
  font-weight: 700;
}

.reviews figure {
  margin: 0 0 1.35rem;
}

.reviews figure:last-child {
  margin-bottom: 0;
}

blockquote {
  margin: 0;
}

blockquote p {
  margin: 0;
}

.reviews figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.reviews figcaption::before {
  content: "— ";
}

/* Photo slots (hero + Our work). Unused while the HTML is commented out. */
.hero {
  margin: 1.5rem 0 0;
  overflow: hidden;
  background: var(--map-bg);
  aspect-ratio: 16 / 9;
}

.hero img,
.work img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  vertical-align: middle;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-grid {
  display: grid;
  gap: 1.15rem;
}

.work-item,
.work-pair {
  margin: 0;
}

.work img {
  aspect-ratio: 4 / 3;
  background: var(--map-bg);
}

.work figcaption {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.pair figure {
  margin: 0;
}

/* Thin double blue pinstripe above the footer. */
footer {
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 0;
  color: var(--muted);
  font-size: 0.92rem;
  background-image: linear-gradient(
    to bottom,
    var(--stripe) 0 1px,
    transparent 1px 3px,
    var(--stripe) 3px 4px,
    transparent 4px
  );
  background-repeat: no-repeat;
  background-size: 100% 4px;
}

footer p {
  margin: 0;
}

footer a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

footer a:hover,
footer a:focus-visible {
  color: var(--accent);
}

@media (max-width: 480px) {
  html {
    font-size: 17px;
  }

  body {
    padding: 1.6rem 1rem 2rem;
  }

  .wordmark {
    font-size: 1.6rem;
  }

  body::before {
    left: -1.25rem;
    right: -1.25rem;
    height: 12rem;
    opacity: 0.4;
  }
}

@media (min-width: 720px) {
  body {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
