/* Additions for the cleaning-first relaunch. The compiled Tailwind sheet in
   /_astro only contains classes the original build used, so anything new lives here. */

/* Footer: Cleaning column added, five columns on desktop. Doubled class beats the compiled arbitrary value. */
@media (min-width: 1024px) {
  .ft5.ft5 { grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; }
}

/* Header: "Installation" is longer than the old "Services" label, so small
   desktops need a tighter gap or the quote button pushes past the viewport. */
@media (min-width: 1024px) and (max-width: 1279px) {
  header nav[aria-label="Primary"] ul { gap: 1.25rem; }
}

/* Before / after frames: one carpet, part cleaned and part not, tagged in place. */
.ba-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) {
  .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ba-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-slab); }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  padding: .45rem .6rem;
  color: var(--color-paper);
}
.ba-tag--before { background: var(--color-ink); }
.ba-tag--after { background: var(--color-snap); }

/* Stock photo credits. Required by the CC licences; kept quiet. */
.photo-credit {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .04em;
  line-height: 1.5;
  color: var(--on-surface-muted);
}
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--accent-text); }

/* On the homepage hero the credit sits over the photo. */
.hero-credit {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  margin: 0;
  padding: .25rem .5rem;
  background: rgb(22 24 27 / .72);
  color: var(--color-paper);
}
