/* Auto body page: ink header bar and split hero with a pinned text message. */

/* Header bar */
.nav.t-bar {
  position: sticky;
  top: 0;
  left: auto;
  translate: none;
  width: 100%;
  max-width: none;
  min-height: var(--bar-h);
  gap: var(--s-24);
  padding: var(--s-12) var(--edge);
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--ink-fg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.t-bar .nav-brand {
  gap: var(--s-12);
  font-size: var(--t-18);
}

.t-bar .nav-brand svg {
  width: 28px;
  height: 28px;
}

.t-bar .nav-links {
  margin-left: auto;
}

.t-bar .nav-links a {
  color: var(--ink-muted);
  font-size: var(--t-16);
}

.t-bar .nav-links a:hover {
  color: var(--ink-fg);
  background: rgb(255 255 255 / 8%);
}

.t-bar .nav-toggle span {
  background: var(--ink-fg);
}

.t-bar .t-phone {
  color: var(--ink-fg);
}

.t-bar,
.t-hero {
  --ring: var(--ink-accent);
}

@media (max-width: 820px) {
  .t-bar .t-phone {
    display: none;
  }

  .t-bar .nav-toggle {
    margin-left: auto;
  }
}

/* Split hero: copy on the ink panel, photo running to the right edge. */
.t-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  min-height: min(760px, calc(100svh - var(--bar-h)));
  padding-left: var(--edge);
  background: var(--ink);
  color: var(--ink-fg);
}

.t-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: var(--s-80) var(--s-64) var(--s-80) 0;
}

.t-hero-copy > * + * {
  margin-top: var(--s-24);
}

.t-hero h1 {
  font-size: clamp(var(--t-48), 5.2vw, 5rem);
  line-height: 0.98;
}

.t-hero .lead {
  max-width: 34rem;
  color: var(--ink-muted);
}

.t-hero .btn-ghost {
  color: var(--ink-fg);
  border-color: var(--ink-border);
}

.t-hero .btn-ghost:hover {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 30%);
}

.t-hero-media {
  position: relative;
  min-height: 100%;
}

.t-hero-photo,
.t-hero-photo picture,
.t-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.t-hero-photo img {
  object-fit: cover;
  object-position: var(--photo-x, 50%) 50%;
}

/* A text message pinned over the hero photo. The slot places it, the inner wrapper appears, the bubble floats. */
.t-text-slot {
  position: absolute;
  z-index: 6;
  right: var(--s-32);
  bottom: var(--s-32);
  width: min(300px, 72%);
}

.t-text {
  padding: var(--s-12) var(--s-16) var(--s-16);
  border-radius: 18px 18px 6px 18px;
  background: rgb(255 255 255 / 94%);
  color: var(--fg);
  font-size: var(--t-14);
  line-height: 1.45;
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 60%);
}

.t-text small {
  display: block;
  margin-bottom: var(--s-4);
  font-size: var(--t-12);
  color: var(--fg-muted);
}

@media (max-width: 900px) {
  .t-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-left: 0;
  }

  .t-hero-media {
    order: -1;
    aspect-ratio: 4 / 3;
  }

  /* Stacked: fades the photo's bottom edge into the copy below. */
  .t-hero-media::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: 30%;
    background: linear-gradient(0deg, var(--ink), transparent);
  }

  .t-hero-copy {
    padding: var(--s-8) var(--gutter) var(--s-48);
  }

  .t-text-slot {
    right: var(--s-12);
    bottom: var(--s-16);
    width: min(250px, 70%);
  }

  .t-text {
    font-size: var(--t-12);
  }
}
