/* Tonnelle Tire — phone-first, photo-forward, clean shop page */

:root {
  --bg: #f7f6f3;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #555555;
  --red: #c4161c;
  --red-hover: #9d1015;
  --line: #e4e2dc;
  --header: #111111;
  --space: 1.25rem;
  --wrap: 70rem;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap {
  width: min(100% - 2.2rem, var(--wrap));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem var(--space);
  background: var(--header);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: block; flex: 0 0 auto; }
.brand img { width: 158px; height: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-dir {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.45rem 0.35rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.45rem 1.05rem;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 2px;
}

.header-phone:hover { background: var(--red-hover); }

.hero {
  position: relative;
  min-height: min(68vh, 520px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #222;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3.4rem var(--space) 2.1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.62) 78%);
}

.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0 0 0.5rem; line-height: 1.12; }
h1 { font-size: clamp(1.85rem, 6.4vw, 3.15rem); max-width: 16ch; }
h2 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.hero-lead {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  max-width: 24rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-cta,
.hero-dir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.5rem 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.hero-cta { background: var(--red); color: #fff; }
.hero-cta:hover { background: var(--red-hover); }
.hero-dir { background: #fff; color: var(--ink); }

.who {
  background: var(--paper);
  padding: 3.5rem 0 3.3rem;
}

.who .wrap {
  width: min(100% - 2.2rem, 44rem);
}

.who h2 {
  margin-bottom: 0.35rem;
}

.who h2::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin: 0.85rem 0 1.25rem;
  background: var(--red);
}

.who-lead {
  margin: 0 0 1.15rem;
  font-size: clamp(1.32rem, 2.8vw, 1.72rem);
  line-height: 1.32;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.who-more {
  margin: 0 0 1rem;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.58;
  color: var(--muted);
}

.brands {
  background: #f3f2ee;
  color: var(--ink);
  padding: 2.1rem 0 2.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brands-head {
  width: min(100% - 2.2rem, var(--wrap));
  margin: 0 auto 1.15rem;
}

.brands h2 {
  margin: 0;
  color: var(--red);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.brands-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
}

.brands-marquee:focus {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.brands-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: brands-scroll 70s linear infinite;
}

.brands-marquee:hover .brands-track,
.brands-marquee:focus-within .brands-track {
  animation-play-state: paused;
}

.brands-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0;
}

.brands-list li {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 0.55rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 9.4rem;
  height: 4.4rem;
  padding: 0.7rem 1.15rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #eceae4;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .brands-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .brands-track {
    animation: none;
    width: auto;
  }
  .brands-list[aria-hidden="true"] {
    display: none;
  }
  .brands-list {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.55rem 0;
    padding: 0 1.1rem;
  }
  .brand-mark {
    min-width: 8.4rem;
    height: 3.8rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 800px) {
  .brands { padding: 2.4rem 0 2.55rem; }
  .brands-head { margin-bottom: 1.3rem; }
  .brand-mark {
    min-width: 10.4rem;
    height: 4.75rem;
    font-size: 1.08rem;
    padding: 0.8rem 1.3rem;
  }
  .brands-list li { padding: 0 0.7rem; }
}

.services { padding: 2rem 0 2.1rem; }
.services ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.services li {
  background: var(--paper);
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--red);
  font-weight: 650;
  box-shadow: var(--shadow);
}

.locations { padding: 1.8rem 0 2.2rem; }

.region-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
}
.region-jumps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.region-jumps a:hover { background: var(--red); }

.region-label {
  margin: 1.4rem 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-card {
  background: var(--paper);
  margin-bottom: 1.05rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.shop-photo {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #f0eee8;
  display: block;
}
.shop-photos { display: grid; grid-template-columns: 1fr; gap: 2px; background: #f0eee8; }


.shop-body { padding: 1.1rem 1.15rem 1.2rem; }
.shop-card h3 { font-size: 1.22rem; }
.shop-card .place { margin: 0 0 0.35rem; color: var(--muted); font-weight: 700; }
.shop-card .services {
  margin: 0 0 0.75rem;
  color: var(--red);
  font-weight: 700;
  font-size: 0.95rem;
}
.shop-card .address { margin: 0 0 0.35rem; }
.shop-card .address a { color: var(--ink); text-underline-offset: 2px; }
.shop-card .hours { margin: 0 0 0.95rem; color: var(--muted); }

.shop-actions {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.5rem;
}

.call-btn,
.map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-weight: 800;
  text-decoration: none;
}

.call-btn { background: var(--red); color: #fff; }
.call-btn:hover { background: var(--red-hover); }
.map-link { border: 2px solid var(--ink); color: var(--ink); background: #fff; }

.shop-card--nophoto .shop-body {
  background:
    linear-gradient(180deg, var(--red) 0 4px, transparent 4px),
    var(--paper);
}

.contact {
  background: var(--paper);
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
}
.contact p { margin: 0 0 0.5rem; }

.call-list { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.call-list li { margin-bottom: 0.9rem; }
.call-list span { display: block; font-weight: 700; margin-bottom: 0.35rem; }

.email { margin: 0.55rem 0 1rem; color: var(--muted); }
.email a { color: var(--ink); font-weight: 700; }

.site-footer {
  padding: 1.15rem var(--space) 2rem;
  text-align: center;
  color: var(--muted);
  background: #efeee9;
  border-top: 1px solid var(--line);
}
.site-footer p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 800px) {
  .who { padding: 4.4rem 0 4.1rem; }
  .brand img { width: 188px; }
  .header-phone { min-height: 56px; font-size: 1.12rem; padding: 0.5rem 1.3rem; }
  .hero { min-height: 580px; }
  .hero-inner {
    padding: 5rem 0 2.6rem;
    width: min(100% - 2.2rem, var(--wrap));
    margin-inline: auto;
    background: none;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.55));
  }
  .services ul { grid-template-columns: 1fr 1fr; gap: 0.65rem 0.85rem; }
  .shop-card {
    display: block;
  }
  .shop-photo { max-height: 480px; }
  .call-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.4rem;
  }
}

@media (max-width: 420px) {
  .header-phone { font-size: 0.95rem; padding: 0.4rem 0.7rem; }
  .shop-actions { grid-template-columns: 1fr; }
}

.who-more:last-child { margin-bottom: 0; }
.services li strong { display: block; margin-bottom: 0.2rem; }

.shop-slides {
  overflow: hidden;
  background: #111;
}
.shop-slides-track {
  display: flex;
  width: 100%;
}
.shop-slides-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #111;
  display: block;
}
.shop-slides--2 .shop-slides-track { animation: shop-slide-2 10s ease-in-out infinite; }
.shop-slides--5 .shop-slides-track { animation: shop-slide-5 22s ease-in-out infinite; }
.shop-slides:hover .shop-slides-track { animation-play-state: paused; }
@keyframes shop-slide-2 {
  0%, 42% { transform: translateX(0); }
  50%, 92% { transform: translateX(-100%); }
  100% { transform: translateX(-200%); }
}
@keyframes shop-slide-5 {
  0%, 14% { transform: translateX(0); }
  16.6%, 30.6% { transform: translateX(-100%); }
  33.2%, 47.2% { transform: translateX(-200%); }
  49.8%, 63.8% { transform: translateX(-300%); }
  66.4%, 80.4% { transform: translateX(-400%); }
  83%, 100% { transform: translateX(-500%); }
}
@media (min-width: 800px) {
  .shop-slides-track img { height: 440px; }
}

.site-gallery {
  padding: 1.5rem 0 1.6rem;
  background: #efece6;
  color: var(--ink);
}
.site-gallery h2 { color: var(--ink); }
.site-gallery h2::after { background: var(--red); }
.gallery-lead {
  margin: 0 0 0.75rem;
  color: var(--muted);
}
.site-gallery-slides { overflow: hidden; }
.site-gallery-track {
  display: flex;
  gap: 0.45rem;
  width: max-content;
  animation: site-gallery-move 36s linear infinite;
}
.site-gallery-slides:hover .site-gallery-track { animation-play-state: paused; }
.site-gallery-track figure {
  flex: 0 0 min(78vw, 17.5rem);
  width: min(78vw, 17.5rem);
  margin: 0;
  background: transparent;
}
.site-gallery-track img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #ddd8ce;
}
.site-gallery-track figcaption {
  text-align: left;
  padding: 0.4rem 0.15rem 0;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--ink);
}
@keyframes site-gallery-move {
  to { transform: translateX(-50%); }
}
@media (min-width: 800px) {
  .site-gallery-track figure {
    flex-basis: 19.5rem;
    width: 19.5rem;
  }
  .site-gallery-track img { height: 230px; }
}
