/* Image card grid for the category landing pages.
 *
 * These pages used to be columns of plain text links, which gave a visitor
 * nothing to look at and nothing to aim for. This is the same idea as the
 * treatments grid on the home page: a photograph carries each entry and the
 * name sits over it, so the whole page reads at a glance.
 *
 * Shared by Brands, Services and Lasers. Adding a card is one <a>; the grid
 * reflows on its own.
 */

.lumen-grid {
  --plum: #3B2438;
  --plum-lt: #5F4857;
  --blush: #F5F0F2;
  --ink: #2A1B27;
  --sans: "Tenor Sans", Optima, Candara, "Segoe UI", sans-serif;
  --serif: Lora, Georgia, "Times New Roman", serif;

  display: grid;
  /* two up on the narrowest phone, filling out as the screen allows */
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) { .lumen-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .lumen-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1300px) { .lumen-grid { grid-template-columns: repeat(5, 1fr); } }

/* a three-item row reads better at three across than squeezed to five */
.lumen-grid.is-few { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 700px) { .lumen-grid.is-few { grid-template-columns: repeat(3, 1fr); } }

.lumen-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  background: var(--plum);
  text-decoration: none;
  isolation: isolate;
}

.lumen-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  transform: scale(1);
  transition: transform 1s ease;
}

.lumen-card:hover .lumen-card-img,
.lumen-card:focus-visible .lumen-card-img { transform: scale(1.08); }

/* the label has to stay legible whatever the photograph does underneath it */
.lumen-card-veil {
  position: absolute;
  inset: 0;
  /* several of these photographs are very pale at the foot of the frame, so the
     veil has to carry the label rather than assume the image will */
  background: linear-gradient(to bottom,
    rgba(59, 36, 56, .04) 24%,
    rgba(59, 36, 56, .55) 62%,
    rgba(59, 36, 56, .93) 100%);
  transition: background .4s ease;
}

.lumen-card:hover .lumen-card-veil,
.lumen-card:focus-visible .lumen-card-veil {
  background: linear-gradient(to bottom, rgba(59, 36, 56, .2) 20%, rgba(59, 36, 56, .86) 100%);
}

.lumen-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(12px, 1.4vw, 20px) clamp(10px, 1.2vw, 18px);
  font-family: var(--sans);
  font-size: clamp(14px, 1.15vw, 19px);
  line-height: 1.25;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
  text-wrap: balance;
}

.lumen-card-note {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #EBDCE5;
}

.lumen-card:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
}

/* ---------- the band the grid sits in ---------- */

.lumen-gridband {
  /* the theme's container is width-constrained, so a band with its own colour
     has to reach past it or it reads as a floating panel */
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--blush);
  padding: clamp(36px, 5vh, 64px) clamp(18px, 4vw, 56px);
  color: var(--ink);
  overflow-x: clip;
}

.lumen-gridband-inner { max-width: 1500px; margin: 0 auto; }

.lumen-gridband .lumen-grid-intro {
  max-width: 62ch;
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  text-wrap: pretty;
}

.lumen-gridband h2.lumen-grid-title {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(24px, 3vw, 38px);
  color: var(--plum);
  margin: 0 0 14px;
  text-wrap: balance;
}

.lumen-gridband .lumen-grid-eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 13px;
  color: var(--plum-lt);
  margin: 0 0 10px;
}

/* a second band on the same page, so two groups do not fuse into one */
.lumen-gridband + .lumen-gridband { padding-top: 0; }

/* ---------- the full treatment index ----------
   Every child page reachable in one place. This is the crawlable spine of the
   section as much as it is a convenience: without it the deeper treatment pages
   are three clicks from anywhere and effectively invisible to search. */

.lumen-index { display: grid; gap: clamp(24px, 3vw, 44px); }
@media (min-width: 760px) { .lumen-index { grid-template-columns: repeat(3, 1fr); } }

.lumen-index h3 {
  font-family: var(--sans, "Tenor Sans", Optima, Candara, sans-serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 15px;
  color: #3B2438;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(59, 36, 56, .18);
}

.lumen-index ul { list-style: none !important; margin: 0; padding: 0; }
.lumen-index li { margin: 0 0 11px; list-style: none !important; }
.lumen-index li::before, .lumen-index li::marker { content: none !important; display: none !important; }

/* plain bold underlined text, the way a link should look */
.lumen-index a {
  font-family: Lora, Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #2A1B27;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lumen-index a:hover { color: #5F4857; }

/* ---------- questions ---------- */

.lumen-faq { display: grid; gap: clamp(18px, 2.4vw, 30px); }
@media (min-width: 860px) { .lumen-faq { grid-template-columns: repeat(2, 1fr); } }

.lumen-faq h3 {
  font-family: var(--sans, "Tenor Sans", Optima, Candara, sans-serif);
  font-weight: 400;
  /* the theme uppercases headings, which makes a question read as a shout */
  text-transform: none;
  letter-spacing: .01em;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.3;
  color: #3B2438;
  margin: 0 0 8px;
  text-wrap: balance;
}

.lumen-faq p {
  font-family: Lora, Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  color: #2A1B27;
  text-wrap: pretty;
}

.lumen-gridband.is-white { background: #fff; }
