/* =========================================================
   Coto Hair — Components
   ========================================================= */

/* ========== Buttons ========== */
.btn {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--c-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  transition: transform var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .arrow {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { background: var(--c-sienna); color: #fff; }
.btn--primary:hover { background: #9b5a3e; }

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--ghost:hover { background: var(--c-ink); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line-strong);
}
.btn--outline:hover { border-color: var(--c-ink); color: var(--c-ink); }

.btn--sm { padding: 10px 18px; font-size: 11px; min-height: 38px; }
.btn--lg { padding: 15px 32px; font-size: 13px; min-height: 56px; }

/* ========== Tags ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-bone);
  color: var(--c-ink);
}
.tag--peach { background: var(--c-peach); color: var(--c-sienna); }
.tag--dark  { background: var(--c-ink); color: #fff; }
.tag--outline { background: transparent; border: 1px solid var(--c-line-strong); }

/* ========== Service card ========== */
.service {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
  position: relative;
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
}
.service:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-line-strong);
}
.service__index {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-mute);
}
.service__name {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.6vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.service__name em {
  font-family: var(--f-text);
  font-style: italic;
  color: var(--c-sienna);
  font-weight: 400;
}
.service__desc { color: var(--c-mute); font-size: 15px; line-height: 1.55; margin: 0; }
.service__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--s-3);
  margin-top: auto;
  border-top: 1px dashed var(--c-line);
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.service__price {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--c-ink);
  letter-spacing: 0;
  text-transform: none;
}

/* ========== Stylist card ========== */
.stylist {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--s-4);
  align-items: start;
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.stylist:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-sm); }
.stylist__avatar {
  width: 180px; height: 180px;
  border-radius: var(--r-md);
  background: var(--c-peach);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 32px;
  color: var(--c-sienna);
  letter-spacing: -0.02em;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(181,106,74,0.18);
}
.stylist__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.stylist__role {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 4px;
}
.stylist__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.stylist__bio {
  color: var(--c-mute);
  font-size: 15px;
  line-height: 1.55;
  margin: var(--s-2) 0 var(--s-3);
}
.stylist__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stylist__signoff {
  font-family: var(--f-text);
  font-style: italic;
  font-size: 18px;
  color: var(--c-sienna);
  margin: var(--s-2) 0 var(--s-4);
  letter-spacing: 0.01em;
}
.stylist__signoff em { font-weight: 500; font-style: italic; }

@media (min-width: 600px) {
  .stylist { grid-template-columns: 240px 1fr; padding: var(--s-6); }
  .stylist__avatar { width: 240px; height: 240px; font-size: 40px; }
}

/* ========== Visit blocks ========== */
.visit__block {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.visit__block h3 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.visit__block h3 em {
  font-family: var(--f-text);
  font-style: italic;
  color: var(--c-sienna);
}
/* Booking by appointment — replaces the fixed opening-hours list */
.booking-note {
  font-style: italic;
  color: var(--c-mute);
  font-size: var(--fs-lead);
}
.booking-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.booking-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px dashed var(--c-line);
}
.booking-steps li:last-child { border-bottom: none; }
.booking-steps__num {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-sienna);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
  width: 2.4em;
}
.booking-steps h4 {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 6px;
}
.booking-steps p { font-size: 15px; }
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.6;
}
.address strong { font-family: var(--f-display); font-weight: 500; letter-spacing: 0.01em; }

.location-photo {
  margin: 0;
  margin-top: auto;
  display: grid;
  gap: var(--s-3);
}
.location-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  display: block;
  align-self: start;
  justify-self: stretch;
}
.location-photo figcaption {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mute);
}
.location-photo figcaption em {
  font-family: var(--f-text);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-sienna);
}

.location-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ========== Price list (hinnasto.html) ========== */
.pricelist {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 900px) {
  .pricelist { gap: var(--s-7); }
}

.price-group {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
@media (min-width: 900px) {
  .price-group { padding: var(--s-6) var(--s-7); }
}

.price-group__title {
  font-family: var(--f-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.price-group__title em {
  font-family: var(--f-text);
  font-style: italic;
  color: var(--c-sienna);
}
.price-group__intro {
  color: var(--c-mute);
  font-size: 15px;
  line-height: 1.55;
  margin: var(--s-3) 0 0;
  max-width: 60ch;
}
.price-group__intro em { font-style: italic; color: var(--c-sienna); }

.price-rows {
  margin-top: var(--s-5);
  border-top: 1px solid var(--c-line);
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name price"
    "note note";
  align-items: baseline;
  column-gap: var(--s-4);
  row-gap: 4px;
  padding: var(--s-4) 0;
  border-bottom: 1px dashed var(--c-line);
}
.price-row:last-child { border-bottom: none; }

.price-row__name {
  grid-area: name;
  font-family: var(--f-text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}
.price-row__note {
  grid-area: note;
  font-size: 13px;
  font-style: italic;
  color: var(--c-mute);
  line-height: 1.45;
}
.price-row__price {
  grid-area: price;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Rows priced by hair length — legend + four cells */
.price-legend {
  display: none;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
}

.price-row--lengths {
  grid-template-areas:
    "name name"
    "note note"
    "cells cells";
  row-gap: var(--s-3);
}
.price-cells {
  grid-area: cells;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
.price-cells span {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.price-cells span::before {
  content: attr(data-len);
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 2px;
}

@media (min-width: 700px) {
  .price-legend {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 0 0 var(--s-2);
  }
  .price-legend .price-cells span { font-family: inherit; font-size: inherit; color: inherit; }
  .price-row--lengths {
    grid-template-areas:
      "name cells"
      "note cells";
    grid-template-columns: 1fr auto;
    align-items: baseline;
    row-gap: 4px;
  }
  .price-cells {
    grid-template-columns: repeat(4, 5.5rem);
    gap: 0;
    text-align: right;
  }
  .price-cells span::before { display: none; }
}

/* Fine print under the list */
.price-note {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-peach);
  padding: var(--s-5);
  color: var(--c-ink);
}
.price-note h3 {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 400;
  margin-bottom: var(--s-3);
}
.price-note p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 62ch;
}
.price-note a { color: var(--c-sienna); text-decoration: underline; }

/* Centered link out of a section (e.g. "see full price list") */
.section__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--s-6);
}

/* ========== Editorial band (full-bleed atmospheric image) ========== */
.editorial-band {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vw, 460px);
  overflow: hidden;
}
.editorial-band img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.editorial-band__quote {
  position: absolute;
  right: clamp(var(--s-4), 6vw, var(--s-8));
  bottom: clamp(var(--s-4), 5vw, var(--s-7));
  max-width: 22ch;
  margin: 0;
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  font-family: var(--f-text);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
  color: var(--c-ink);
}
.editorial-band__quote em {
  color: var(--c-sienna);
  font-weight: 500;
}

/* ========== Scroll reveal (used by JS) ========== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

/* =========================================================
   Mobile (< 900px) — flatten cards, line-based composition
   ========================================================= */
@media (max-width: 899px) {

  /* Services collapse from cards to a single price list */
  .services {
    border-top: 1px solid var(--c-line);
    gap: 0;
  }
  .service {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--c-line);
    border-radius: 0;
    padding: var(--s-4) var(--s-2);
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name price";
    align-items: baseline;
    column-gap: var(--s-4);
    row-gap: 0;
  }
  .service:hover { transform: none; box-shadow: none; border-color: var(--c-line); }
  .service__index,
  .service__desc { display: none; }
  .service__name {
    grid-area: name;
    font-family: var(--f-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
  }
  .service__name em {
    font-family: var(--f-text);
    color: var(--c-sienna);
    font-style: italic;
  }
  .service__row {
    grid-area: price;
    border: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }
  .service__price {
    font-family: var(--f-text);
    font-weight: 500;
    font-size: 17px;
    color: var(--c-ink);
    letter-spacing: 0;
    text-transform: none;
  }

  /* Increase mobile reading size while keeping labels compact */
  .stylist__bio,
  .price-group__intro,
  .price-note p,
  .address {
    font-size: 17px;
    line-height: 1.6;
  }
  .stylist__bio { max-width: 38ch; }
  .booking-note { max-width: 38ch; }
  .price-row__note { font-size: 14px; }
  .price-row__name,
  .price-row__price { font-size: 18px; }
  .price-cells span { font-size: 17px; }

  /* Price groups flatten into plain lists, like the services list */
  .price-group {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
  }
  .price-group__title {
    font-family: var(--f-text);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(24px, 6.5vw, 30px);
    text-align: center;
  }
  .price-group__intro { text-align: center; margin-inline: auto; }

  /* Stylist — centered avatar over centered text */
  .stylist {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    padding: var(--s-6) var(--s-5);
    gap: var(--s-3);
    max-width: 36rem;
    margin-inline: auto;
  }
  .stylist__avatar { margin: 0 auto var(--s-2); }
  .stylist__bio { max-width: 38ch; margin-inline: auto; }
  .stylist__tags { justify-content: center; }

  /* Visit blocks — borderless, centered, hairline divider between */
  .visit { gap: var(--s-7); }
  .visit__block {
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    align-items: center;
  }
  .visit__block h3 {
    font-family: var(--f-text);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(26px, 7vw, 32px);
    color: var(--c-ink);
  }
  .visit__block h3 em { color: var(--c-sienna); }
  .visit__block .meta { text-align: center; }
  .booking-note { margin-inline: auto; max-width: 38ch; }
  .booking-steps {
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
  }
  .booking-steps li { text-align: left; }
  .booking-actions { justify-content: center; width: 100%; }
  .booking-actions .btn { flex: 1 1 100%; justify-content: center; }
  .address {
    text-align: center;
    line-height: 1.7;
  }
  .location-photo,
  .location-map { width: 100%; max-width: 26rem; margin-inline: auto; }

  /* CTA band — keep, but tighter and centered */
  .cta { text-align: center; }
  .cta__actions { justify-content: center; }
  .cta p { margin-inline: auto; }
}
