/* The landing page header participates in layout at its actual height. */
.home-page { margin-top: 0; --home-header-height: 85px; }
.home-page .button-container { margin-top: var(--space-5); }

/* ============================================================
   PC Phone Services — Homepage (index.php)

   Three things live here and nowhere else: the hero, the
   catalogue scroller frame, and the location block. Everything
   else on the page is a shared component.
   ============================================================ */

/* ============================================================
   HERO

   Restraint is the brief. One column, one accent colour, one
   typographic rhythm, and a height that fills the first screen
   below the navigation. The photograph carries the
   atmosphere; the type does not compete with it.
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: calc(100vh - var(--home-header-height));
  min-height: calc(100svh - var(--home-header-height));
  padding: var(--space-8) clamp(1.25rem, 5vw, 4rem);
  background-color: var(--brand-black);
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease;
}
.hero-background.is-active { opacity: 1; }

/* A flat scrim, not a three-stop diagonal: the text sits on an
   even field, so it reads the same wherever the photo is busy. */
.hero__scrim {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 18, 18, 0.92) 0%, rgba(20, 18, 18, 0.72) 55%, rgba(20, 18, 18, 0.55) 100%),
    linear-gradient(0deg, rgba(20, 18, 18, 0.5), rgba(20, 18, 18, 0.5));
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Kicker: a rule and a word. The old pill was a button that did
   nothing, which is exactly what a decorative border reads as. */
.hero__kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  color: var(--brand-gold);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__kicker::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--brand-gold);
}

.hero h1 {
  max-width: 16ch;
  margin: 0 0 var(--space-4);
  color: var(--surface);
  font-size: clamp(2.25rem, 4.5vw + 0.5rem, 4rem);
  font-weight: var(--fw-bold);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--brand-gold);
}

.hero__lead {
  max-width: 46ch;
  margin: 0 0 var(--space-6);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.125rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

/* Facts: one quiet line, divided — not three icons in a row */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: var(--space-4) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm);
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
}

.hero__facts li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: var(--space-5);
  border-radius: 50%;
  background: var(--brand-gold);
}

@media (max-width: 767px) {
  .hero {
    padding: var(--space-7) var(--space-4);
    text-align: center;
  }

  .hero__scrim {
    background: linear-gradient(180deg, rgba(20, 18, 18, 0.7) 0%, rgba(20, 18, 18, 0.9) 100%);
  }

  .hero h1,
  .hero__lead {
    max-width: none;
  }

  .hero__kicker {
    justify-content: center;
  }

  .hero__kicker::before {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    margin-bottom: var(--space-6);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__facts {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }

  .hero__facts li + li::before {
    display: none;
  }
}

/* ============================================================
   CATALOGUE

   The scroller sits on plain white with a hairline frame rather
   than a beige panel: the products are the colour on this page.
   ============================================================ */
.catalogue {
  padding-top: var(--space-2);
}

.catalogue .section-heading--row {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

/* ============================================================
   LOCATION

   Storefront preview and opening hours share one card, with the
   local photo filling its side and linking out to Google Maps.
   ============================================================ */
.location-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
}

.location-card__preview,
.location-card__preview:visited {
  position: relative;
  display: block;
  min-height: 380px;
  overflow: hidden;
  color: #fff;
  background: var(--surface-alt);
}

.location-card__preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  transition: transform 0.2s ease;
}
.location-card__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, rgba(20, 18, 18, 0.85));
}
.location-card__preview > .storefront-photo { object-position: center 35%; }
.location-card__preview:hover > img { transform: scale(1.025); }
.location-card__preview:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: -4px;
  box-shadow: none;
}
.location-card__caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  color: #fff;
}
.location-card__address {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}
.location-card__address > i { color: var(--brand-gold); }
.location-card__city { font-size: var(--fs-sm); }
.location-card__map-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--brand-gold);
  color: var(--brand-black);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.location-card__hours {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
}

.location-card__hours .card__head {
  background: var(--surface);
}

.location-card__actions {
  margin-top: auto;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-color);
}

@media (max-width: 900px) {
  .location-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-card__preview { min-height: 320px; }

  .location-card__hours {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}

@media (max-width: 400px) {
  .location-card .hours-table td { padding-inline: var(--space-2); }
  .location-card__hours .card__head,
  .location-card__actions { padding-inline: var(--space-3); }
  .location-card__actions .btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-background { transition: none; }
  .location-card__preview > img { transition: none; }
}
