/* ==========================================================================
   /services/ — Hair, make-up, photographer (SITEMAP §2.5). Owner: strona-services.
   Reads only surface variables (--text, --line, --gold-text …) and tokens; no hex values.
   ========================================================================== */

/* 12-column helper used by every block on this page (content column of .section) */
.svc-intro__grid,
.svc-row,
.svc-dressing__grid,
.svc-photo,
.svc-transport,
.svc-studio__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
:where(.page-services) figure {
  margin: 0;
}

/* ---------- shared: sub-section nameplate, body, price rows ---------- */
.svc-plate > :first-child {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}
.svc-plate > :not(:first-child) {
  font-size: calc(var(--fs-sub) * 0.82);
}
.svc-body {
  margin-top: 1.25rem;
  max-width: 34em;
}
.svc-body > p + p {
  margin-top: 0.75em;
}
.svc-prices {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.svc-prices__row {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr);
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.svc-prices dt {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--text-3);
}
.svc-prices dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.25rem 0.5rem;
  margin: 0;
  text-align: right;
}
.svc-prices .price {
  font-size: 1.6rem;
}
.svc-prices__per {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--text-2);
}
.svc-prices__link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.svc-prices__link:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

/* arriving from a chip on another page (/services/#makeup): the heading warms up once */
@media (prefers-reduced-motion: no-preference) {
  :target .svc-plate > :first-child {
    animation: svc-target 1.8s var(--ease-lacquer) 0.2s 1 both;
  }
}
@keyframes svc-target {
  from {
    color: var(--gold-text-hover);
  }
  to {
    color: var(--heading);
  }
}

/* ==========================================================================
   1. Intro (dziedziniec): nameplate · lead · ledger | portrait
   ========================================================================== */
.svc-intro {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.svc-intro__grid {
  row-gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.svc-intro__plate {
  grid-column: 1 / 8;
  grid-row: 1;
}
.svc-intro__text {
  grid-column: 1 / 8;
  grid-row: 2;
}
.svc-intro__ledger {
  grid-column: 1 / 8;
  grid-row: 3;
}
.svc-intro__aside {
  grid-column: 9 / 13;
  grid-row: 1 / span 3;
  align-self: start;
  display: grid;
  row-gap: clamp(1.5rem, 2.5vw, 2.25rem);
  margin-top: clamp(0rem, 1.5vw, 1.5rem);
}
.svc-intro__portrait .frame {
  aspect-ratio: 3 / 4;
}
.svc-intro .lead {
  hyphens: manual;
}

/* rental prices beside the portrait: the dress itself, one line per package */
.svc-rental__title {
  font-family: var(--ff-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  color: var(--heading);
}
.svc-rental__list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.svc-rental__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.svc-rental__name {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-2);
}
.svc-rental__item .price {
  font-size: 1.45rem;
}
.svc-rental__item.is-pick .svc-rental__name {
  color: var(--text);
  font-weight: 500;
}
.svc-rental__uniform {
  margin-top: 0.75rem;
}
.svc-rental__uniform a,
.svc-intro__note a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-underline-offset: 3px;
}
.svc-rental__uniform a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}
.svc-rental__all {
  justify-self: start;
  margin-top: 0.35rem;
  padding-inline: 0;
}
.svc-intro__note {
  max-width: 36em;
  margin-top: 1rem;
  color: var(--text-2);
}
/* ---------- the ledger: price board in the brand frame ---------- */
.ledger {
  --frame-pad: clamp(0.85rem, 2.2vw, 1.75rem);
}
.ledger__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}
.ledger__table :is(th, td) {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}
.ledger__table :is(th, td):first-child {
  padding-left: 0;
}
.ledger__table :is(th, td):last-child {
  padding-right: 0;
}
.ledger__table thead th {
  padding-top: 0.2rem;
  padding-bottom: 0.7rem;
  border-bottom-color: var(--gold-text);
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-3);
}
.ledger__table thead th:first-child {
  width: 35%;
}
.ledger__table thead th:nth-child(2) {
  width: 29%;
}
.ledger__table thead a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-underline-offset: 3px;
}
.ledger__table thead a:hover {
  color: var(--link-hover);
}
.ledger__table tbody tr:last-child > * {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}
.ledger__table tbody th {
  font-family: var(--ff-display);
  font-weight: var(--fw-display);
  font-size: 1.3rem;
  line-height: 1.2;
}
.ledger__table tbody th a {
  color: var(--heading);
  text-decoration: none;
  background: linear-gradient(var(--gold-text), var(--gold-text)) 0 100% / 0 1px
    no-repeat;
  transition: background-size var(--d-fast) var(--ease-lacquer);
}
.ledger__table tbody th a:hover,
.ledger__table tbody th a:focus-visible {
  background-size: 100% 1px;
}
.ledger .price {
  font-size: 1.45rem;
}
.ledger__per {
  font-size: var(--fs-small);
  color: var(--text-2);
}
.ledger__pair {
  display: block;
}
.ledger__pair + .ledger__pair {
  margin-top: 0.15rem;
}
.ledger__none {
  color: var(--text-3);
}
.ledger__text {
  color: var(--text-2);
}

/* ==========================================================================
   2. Fitting & alterations (dziedziniec, continued)
   ========================================================================== */
.svc-row {
  row-gap: 2rem;
  align-items: center;
}
.svc-row__text {
  grid-column: 1 / 7;
}
.svc-row__media {
  grid-column: 8 / 12;
}
.svc-row__media .frame {
  aspect-ratio: 1;
}

/* ==========================================================================
   3. Hair & make-up spread (sala): sticky portrait | two services with still lifes
   ========================================================================== */
.svc-dressing__grid {
  row-gap: 3rem;
  align-items: start;
}
.svc-dressing__portrait {
  grid-column: 1 / 6;
}
.svc-dressing__portrait .frame {
  aspect-ratio: 3 / 4;
}
@media (min-width: 64rem) and (min-height: 46rem) {
  .svc-dressing__portrait {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}
.svc-dressing__list {
  grid-column: 7 / 13;
  display: grid;
  row-gap: clamp(2.25rem, 4.5vw, 3.5rem);
  padding-top: clamp(0rem, 3vw, 3rem);
}
.svc-dressing__rule {
  --rule-w: 12rem;
}
.svc-item {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  column-gap: clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: start;
}
.svc-item__thumb {
  aspect-ratio: 1;
  margin-top: 0.4rem;
}
.svc-item__note {
  margin-top: 0.75rem;
}

/* ==========================================================================
   4. Photographer + transport (dziedziniec)
   ========================================================================== */
.svc-out {
  row-gap: clamp(4rem, 9vw, 7rem);
}
.svc-photo {
  row-gap: 2rem;
  align-items: start;
}
.svc-photo__media {
  grid-column: 1 / 6;
}
.svc-photo__media .frame {
  aspect-ratio: 1;
}
.svc-photo__text {
  grid-column: 7 / 13;
}
.svc-photo__note {
  max-width: 34rem;
  margin-top: 0.75rem;
}
/* the same photographer at the White Temple (Chiang Rai page) */
.svc-cr {
  max-width: 34rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--gold-500);
  background-color: var(--cream-50);
}
.svc-cr__text {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--text-2);
}
.svc-cr__text a {
  font-weight: 500;
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-underline-offset: 3px;
}
.svc-cr__text a:hover {
  color: var(--link-hover);
}
.svc-shoot {
  max-width: 34rem;
  margin-top: 2rem;
}
.svc-shoot__title {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
}
.svc-shoot__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.svc-shoot__option {
  display: grid;
  justify-items: start;
  gap: 0.45rem;
  padding: 1.1rem 1.2rem 1.15rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-500);
  border-radius: var(--radius);
  background-color: var(--cream-50);
}
.svc-shoot__time {
  font-weight: 500;
  color: var(--text-2);
}
.svc-shoot__photos {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--text-3);
}
.svc-shoot__note {
  margin-top: 0.85rem;
}
.svc-shoot__link {
  margin-top: 0.5rem;
  padding-inline: 0;
}

.svc-transport {
  align-items: end;
}
.svc-transport__media {
  grid-column: 1 / 10;
  grid-row: 1;
}
.svc-transport__media .frame {
  aspect-ratio: 16 / 8;
}
.svc-transport__card {
  position: relative;
  z-index: 1;
  grid-column: 8 / 13;
  grid-row: 1;
  margin-bottom: clamp(-4rem, -5vw, -2rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--cream-50);
  box-shadow: var(--shadow-frame);
}
.svc-transport__card .svc-prices {
  max-width: none;
}

/* ==========================================================================
   5. Studio + closing CTA (sala)
   ========================================================================== */
.svc-studio__grid {
  row-gap: 2rem;
  align-items: start;
}
.svc-studio__text {
  grid-column: 1 / 5;
  align-self: center;
}
.svc-studio__logo {
  grid-column: 5 / 10;
}
.svc-studio__logo .frame {
  aspect-ratio: 3 / 2;
}
.svc-studio__lounge {
  grid-column: 10 / 13;
  margin-top: clamp(2rem, 6vw, 5rem);
}
.svc-studio__lounge .frame {
  aspect-ratio: 3 / 4;
}
.svc-studio__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin-top: 1.25rem;
}

.svc-end {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
}
.svc-end .ornament-rule {
  margin-bottom: clamp(1rem, 3vw, 2rem);
}
.svc-end__body {
  max-width: 34em;
  color: var(--text-2);
}
.svc-end__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}
.svc-end__call a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-underline-offset: 3px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 64rem) {
  .svc-intro__plate {
    grid-column: 1 / -1;
  }
  .svc-intro__text {
    grid-column: 1 / 8;
    grid-row: 2;
    align-self: center;
  }
  .svc-intro__aside {
    display: contents;
  }
  .svc-intro__portrait {
    grid-column: 8 / 13;
    grid-row: 2;
  }
  .svc-rental {
    grid-column: 1 / -1;
    grid-row: 4;
    max-width: 34rem;
  }
  .svc-intro__ledger {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .svc-row__text {
    grid-column: 1 / 8;
  }
  .svc-row__media {
    grid-column: 8 / 13;
  }
  .svc-dressing__portrait {
    grid-column: 1 / 6;
  }
  .svc-dressing__list {
    grid-column: 6 / 13;
    padding-top: 0;
  }
  .svc-item {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }
  .svc-photo__media {
    grid-column: 1 / 6;
  }
  .svc-photo__text {
    grid-column: 6 / 13;
  }
  .svc-transport__media {
    grid-column: 1 / -1;
  }
  .svc-transport__card {
    grid-column: 4 / 13;
    grid-row: 2;
    margin: -4rem 0 0;
  }
  .svc-studio__text {
    grid-column: 1 / -1;
  }
  .svc-studio__logo {
    grid-column: 1 / 9;
  }
  .svc-studio__lounge {
    grid-column: 9 / 13;
  }
}

@media (max-width: 48rem) {
  .svc-intro__grid > *,
  .svc-row > *,
  .svc-dressing__grid > *,
  .svc-photo > *,
  .svc-transport > *,
  .svc-studio__grid > * {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .svc-intro__portrait,
  .svc-rental {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  /* phones: prices first (5-second test), the portrait right after */
  .svc-intro__ledger {
    order: 3;
  }
  .svc-intro__portrait {
    order: 4;
  }
  .svc-rental {
    order: 5;
  }
  .svc-intro__portrait .frame {
    aspect-ratio: 4 / 5;
  }
  .svc-intro__portrait img {
    object-position: 50% 26%;
  }
  .svc-intro__portrait,
  .svc-row__media,
  .svc-photo__media {
    width: min(100%, 26rem);
  }
  .svc-dressing__portrait {
    width: min(100%, 30rem);
  }
  .svc-dressing__portrait .frame {
    aspect-ratio: 4 / 5;
  }
  .svc-item {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    column-gap: 1rem;
  }
  .svc-transport__media .frame {
    aspect-ratio: 3 / 2;
  }
  .svc-transport__card {
    margin: -2.5rem 0.75rem 0;
  }
  .svc-studio__lounge {
    width: 68%;
    margin: 0 0 0 auto;
  }
}

/* narrow phones: the ledger becomes one block per service (label from data-label) */
@media (max-width: 40rem) {
  .ledger__table,
  .ledger__table tbody,
  .ledger__table tr,
  .ledger__table th,
  .ledger__table td {
    display: block;
  }
  .ledger__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ledger__table tbody tr {
    padding: 0.95rem 0 1rem;
    border-bottom: 1px solid var(--line);
  }
  .ledger__table tbody tr:first-child {
    padding-top: 0.25rem;
  }
  .ledger__table tbody tr:last-child {
    border-bottom: 0;
    padding-bottom: 0.25rem;
  }
  .ledger__table tbody :is(th, td),
  .ledger__table tbody tr:last-child > * {
    padding: 0;
    border: 0;
  }
  .ledger__table tbody th {
    margin-bottom: 0.4rem;
  }
  .ledger__table td {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: baseline;
    padding-top: 0.3rem;
  }
  .ledger__table td::before {
    content: attr(data-label);
    grid-row: 1 / span 4;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--text-3);
  }
  .ledger__table td > * {
    grid-column: 2;
  }
  .svc-prices__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-prices dd {
    justify-content: flex-start;
    text-align: left;
  }
  .svc-shoot__option {
    padding-inline: 0.9rem;
  }
}
