/* ==========================================================================
   Proven Construction LLC — permanent-lighting.css
   Permanent Christmas & Holiday Lights page (permanent-christmas-lights.html) only.

   The page reuses the typeset list, numbered steps, breadcrumb and FAQ
   patterns from bat-proofing.css (loaded before this file), so this sheet
   only adds what is new: the hero crop and the two-photo gallery.

   Consumes the token layer in styles.css. Defines no new tokens.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Hero
   The photo is a night shot, so it needs less scrim than a daylight hero;
   the focal point sits on the gables and roofline where the lights are.
   -------------------------------------------------------------------------- */
.pl-hero {
  background-position: center 30%;
}

/* The site-wide scrim is tuned for daylight photos and buries the colored
   lights. A night shot is already dark behind the copy, so the wash here is
   lighter; the headline still carries its own text-shadow. */
.pl-hero::before {
  background:
    radial-gradient(
      120% 90% at 50% 45%,
      rgba(15, 36, 56, 0.50) 0%,
      rgba(15, 36, 56, 0.40) 55%,
      rgba(15, 36, 56, 0.62) 100%
    ),
    linear-gradient(
      180deg,
      rgba(27, 58, 92, 0.30) 0%,
      rgba(27, 58, 92, 0.05) 45%,
      rgba(27, 58, 92, 0.45) 100%
    );
}


/* --------------------------------------------------------------------------
   2. Gallery
   One landscape and one portrait shot side by side, sized so their heights
   match on desktop. The column ratio follows the two aspect ratios
   (4:3 and roughly 3:4).
   -------------------------------------------------------------------------- */
.pl-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  gap: var(--grid-gap);
  align-items: start;
}

.pl-shot {
  margin: 0;
}

.pl-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--color-primary-deep);
}

.pl-shot figcaption {
  margin-top: var(--space-3);
  font-size: var(--step-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}


/* --------------------------------------------------------------------------
   3. Holiday & game-day color guide
   Typeset like the "why" list: a hairline over each entry, a row of colour
   dots standing in for the lights, then the name and the colours in words
   (the dots are decorative; the words carry the meaning).
   -------------------------------------------------------------------------- */
.pl-guide .bp-kicker:not(:first-child) {
  margin-top: var(--space-8);
}

.pl-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6) var(--grid-gap);
}

/* Six-entry groups sit in three columns so they fill two even rows. */
.pl-palette--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pl-swatch {
  border-top: 2px solid var(--color-primary);
  padding-top: var(--space-4);
}

.pl-dots {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-3);
}

/* Each dot is lit from inside with a soft halo, like a bulb at night. The
   ring keeps white and pastel dots visible on the light background. */
.pl-dots i {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
  box-shadow:
    0 0 0 1px rgba(16, 32, 52, 0.22),
    0 0 10px 1px var(--c);
}

.pl-swatch h4 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-1);
}

.pl-swatch p {
  font-size: var(--step-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

.pl-local {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}


/* --------------------------------------------------------------------------
   4. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .pl-palette {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pl-palette,
  .pl-palette--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5) var(--space-4);
  }
}

@media (max-width: 768px) {
  .pl-gallery {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  /* A full-height portrait photo on a phone is a lot of scrolling; a
     landscape crop keeps the house and the lights in frame. */
  .pl-shot--tall img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 62%;
  }
}
