/* Front-page photo treatment only. Linked from index.html. Other pages are unchanged. */

.photo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #2A2A2A;
  color: #F0F0F0;
  min-height: 36rem;
  display: flex;
  align-items: stretch;
}

.photo-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.photo-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  display: block;
}

/* Darken the left so the existing copy stays readable on the bright marble. */
.photo-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(9, 9, 9, 0.82) 0%,
      rgba(9, 9, 9, 0.72) 34%,
      rgba(9, 9, 9, 0.28) 62%,
      rgba(9, 9, 9, 0.08) 100%
    );
}

.photo-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  padding: 4.5rem 1rem 4.5rem 0;
  width: min(38rem, calc(100% - 2rem));
}

.photo-hero .kicker {
  color: #FFA94D;
}

.photo-hero h1 {
  color: #FFFFFF;
  text-wrap: balance;
}

.photo-hero .lede,
.photo-hero p {
  color: #F0F0F0;
}

.photo-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.photo-hero .btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.photo-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.photo-hero :focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

.photo-hero .hero-choice-card:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

/* Trust and delivery facts already stated on the shop. */
.fact-strip {
  background: #2A2A2A;
  color: #F0F0F0;
  padding: 1.5rem 0;
  border-top: 3px solid #F7911D;
}

.fact-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1.5rem;
}

.fact-strip li {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fact-strip strong {
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.fact-strip span,
.fact-strip a {
  color: #F0F0F0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.fact-strip a {
  color: #FFA94D;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.fact-strip a:hover {
  color: #FFD19A;
}

.fact-strip :focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

/* Photo-led category tiles. Uses the shop's real areas only. */
.photo-cats .section-head {
  margin-bottom: 1.5rem;
}

.photo-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

a.photo-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #2A2A2A;
  color: #FFFFFF;
  text-decoration: none;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

a.photo-tile.tile-lg {
  grid-column: span 3;
  min-height: 22rem;
}

a.photo-tile.tile-sm {
  grid-column: span 2;
  min-height: 16.5rem;
}

a.photo-tile.tile-wide {
  grid-column: span 6;
  min-height: 15rem;
}

a.photo-tile .tile-photo {
  position: absolute;
  inset: 0;
}

a.photo-tile .tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

a.photo-tile:hover .tile-photo img,
a.photo-tile:focus-visible .tile-photo img {
  transform: scale(1.04);
}

a.photo-tile .tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 9, 0.05) 30%,
    rgba(9, 9, 9, 0.55) 68%,
    rgba(9, 9, 9, 0.88) 100%
  );
  pointer-events: none;
}

a.photo-tile .tile-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  height: 100%;
  padding: 1.5rem 1.5rem 1.35rem;
  color: #FFFFFF;
}

a.photo-tile h3 {
  margin: 0;
  color: #FFFFFF;
  font-size: 1.5rem;
}

a.photo-tile p {
  margin: 0;
  color: #F0F0F0;
  font-size: 1rem;
  max-width: 40rem;
}

a.photo-tile .card-action {
  margin-top: 0.4rem;
  color: #FFA94D;
  font-weight: 700;
}

a.photo-tile:hover,
a.photo-tile:focus-visible {
  border: 0;
}

a.photo-tile:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  a.photo-tile .tile-photo img {
    transition: none;
  }
  a.photo-tile:hover .tile-photo img,
  a.photo-tile:focus-visible .tile-photo img {
    transform: none;
  }
}

/* Mid-page photo band. */
.photo-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 26rem;
  display: flex;
  align-items: flex-end;
  background: #2A2A2A;
  color: #F0F0F0;
}

.photo-band-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.photo-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 60%;
  display: block;
}

.photo-band-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(9, 9, 9, 0.78) 0%,
    rgba(9, 9, 9, 0.5) 42%,
    rgba(9, 9, 9, 0.12) 100%
  );
}

.photo-band-copy {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3.25rem;
  max-width: 36rem;
}

.photo-band .kicker {
  color: #FFA94D;
}

.photo-band h2 {
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.photo-band p {
  color: #F0F0F0;
  margin: 0 0 1.5rem;
}

.photo-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

.photo-band .btn-primary {
  background: #F7911D;
  color: #090909;
  border-color: #F7911D;
}

.photo-band .btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.photo-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.photo-band :focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .fact-strip ul {
    grid-template-columns: 1fr 1fr;
  }

  a.photo-tile.tile-lg,
  a.photo-tile.tile-sm,
  a.photo-tile.tile-wide {
    grid-column: span 6;
    min-height: 16rem;
  }

  .photo-hero {
    min-height: 0;
    display: block;
  }

  .photo-hero-media {
    position: relative;
    height: 16.5rem;
  }

  .photo-hero-shade {
    display: none;
  }

  .photo-hero-copy {
    margin-left: auto;
    margin-right: auto;
    width: min(var(--max), calc(100% - 2rem));
    max-width: none;
    padding: 1.75rem 0 2.25rem;
  }

  .photo-band {
    min-height: 0;
    display: block;
  }

  .photo-band-media {
    position: relative;
    height: 14.5rem;
  }

  .photo-band-shade {
    display: none;
  }

  .photo-band-copy {
    padding: 1.75rem 0 2.25rem;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .fact-strip ul {
    grid-template-columns: 1fr;
  }

  .photo-hero .hero-choice {
    grid-template-columns: 1fr;
  }

  .photo-hero-media {
    height: 13.5rem;
  }

  a.photo-tile.tile-lg,
  a.photo-tile.tile-sm,
  a.photo-tile.tile-wide {
    min-height: 14.5rem;
  }

  .photo-band-actions {
    flex-direction: column;
  }

  .photo-band-actions .btn {
    width: 100%;
    text-align: center;
  }
}
