/* Adara — Services / Explore. Visual cards first, then the relevant prices. */

/* ================= DEPARTMENT JUMP LINKS ================= */
.dept-jump { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }

.page-intro .note { max-width: 44ch; }

/* ================= DEPARTMENT ================= */
.dept {
  padding-block: clamp(3.5rem, 7vw, 6.5rem) var(--space-section);
  border-top: 1px solid var(--hairline);
  row-gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.dept__head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 1rem; }
.dept__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1;
}
.dept__title { font-size: var(--t-l); }

/* ================= SERVICE CARDS ================= */
.cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem var(--gap);
  padding: 0; margin: 0; list-style: none;
}
.card { position: relative; }
.card__photo { aspect-ratio: 4 / 5; }
.card__label { display: block; margin-top: 1.25rem; }
.card__title {
  display: block;
  margin-top: .6rem;
  font-size: var(--t-s);
  line-height: 1.1;
}
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is the link */
.card__title a:focus-visible { outline: none; }
.card:focus-within { outline: 2px solid var(--espresso); outline-offset: 6px; }
.card:has(a:focus:not(:focus-visible)) { outline: none; }
.card:hover .card__title { font-style: italic; }
.card__line { margin-top: .6rem; max-width: 36ch; }

@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards > :nth-child(3n + 2) { margin-top: 4rem; } /* stagger the middle column */
}

/* ================= PRICES ================= */
.prices {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* stop the wide braid tables stretching every column */
  gap: clamp(3rem, 6vw, 4.5rem) var(--gap);
}
.price-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-content: start; }
.price-block__title { font-size: var(--t-s); line-height: 1.1; }
.price-block__intro { max-width: 52ch; }

.price-list { margin: .5rem 0 0; }
.price-list > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem;
  padding-block: .75rem;
  border-bottom: 1px solid var(--hairline);
}
.price-list > div:first-child { border-top: 1px solid var(--hairline); }
.price-list dt { flex: 1 1 auto; }
.price-list dd {
  margin: 0;
  flex: 0 1 auto;
  max-width: 55%;
  text-align: right;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(100% / 12 + var(--gap)); }
  .price-block--wide { grid-column: 1 / -1; }
}

/* Lashes: a single card sits beside its prices on desktop */
@media (min-width: 900px) {
  .dept--single .cards { grid-column: 1 / 5; grid-template-columns: minmax(0, 1fr); }
  .dept--single .prices { grid-column: 6 / 13; grid-template-columns: minmax(0, 1fr); }
}

/* ================= BRAID TABLES (collapsed by default) ================= */
.braid-tables { margin-top: .5rem; }
.braid { border-top: 1px solid var(--hairline); }
.braid:last-child { border-bottom: 1px solid var(--hairline); }
.braid summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding-block: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.braid summary::-webkit-details-marker { display: none; }
.braid summary::after { /* plus that turns into a minus */
  content: "";
  flex: none;
  width: .9rem; height: .9rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform var(--medium) var(--ease);
}
.braid[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.braid summary:hover { font-style: italic; }

.table-scroll { overflow-x: auto; padding-bottom: 1.5rem; }
/* Soft fade on the right edge while more of the table sits off-screen (set by main.js) */
.table-scroll.has-more {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3.5rem), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 3.5rem), transparent);
}
.price-table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.price-table th, .price-table td {
  padding: .7rem .75rem;
  border-bottom: 1px solid var(--hairline);
  text-align: right;
  white-space: nowrap;
}
.price-table th:first-child { text-align: left; padding-left: 0; }
.price-table thead th {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.price-table tbody th { font-weight: 400; }
