/* ==========================================================================
   components.css — reusable building blocks
   Buttons, photo frames, text block, photo gallery and lightbox, reveal
   animations. (Shared foundations copied from the wedding sites, then restyled
   through tokens.css. Components for Lacquer & Bloom are added below.)
   Naming: .block, .block__part, .block--variant  (the "BEM" convention)
   ========================================================================== */

/* ---------- Button ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.8rem 2.2rem;
  border: 1px solid var(--color-rosewood);
  border-radius: 999px;
  background: var(--color-rosewood);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.button:hover {
  background: var(--color-rosewood-deep);
  border-color: var(--color-rosewood-deep);
  transform: translateY(-2px);
}

.button--outline {
  background: transparent;
  color: var(--color-cocoa);
  border-color: var(--color-cocoa);
}

.button--outline:hover {
  background: var(--color-cocoa);
  border-color: var(--color-cocoa);
  color: var(--color-cream);
}

/* ---------- Photo frames ---------- */
.photo {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.photo:hover img { transform: scale(1.04); }

/* ---------- Text block ---------- */
/* :where() keeps this rule weak, so components inside a .prose block can set their own colour */
:where(.prose) p { color: var(--color-ink-soft); }

/* ---------- Gallery grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
}

@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.gallery__item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;   /* portrait, to suit photos of hands */
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.06); }

/* ---------- Lightbox: a photo shown large (driven by js/main.js) ---------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--space-5) var(--space-7);
  border: 0;
  background: transparent;
  color: var(--color-white);
}

.lightbox::backdrop { background: rgba(42, 30, 26, 0.94); }   /* cocoa, nearly opaque */

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  margin: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox__caption {
  font-size: var(--text-base);
  font-style: italic;
  opacity: 0.85;
}

.lightbox__button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(58, 42, 36, 0.5);
  color: var(--color-white);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.3s;
}

.lightbox__button:hover { background: var(--color-rosewood); }
.lightbox__button--close { top: var(--space-4); right: var(--space-4); }
.lightbox__button--prev  { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox__button--next  { right: var(--space-3); top: 50%; transform: translateY(-50%); }

@media (max-width: 599px) {
  .lightbox { padding: var(--space-6) var(--space-2); }
  .lightbox__button--prev,
  .lightbox__button--next { top: auto; bottom: var(--space-4); transform: none; }
}

/* ======================= Lacquer & Bloom components ======================= */

/* ---------- Eyebrow: small label above a heading ---------- */
.eyebrow {
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-rosewood);
}

/* ---------- Button row ---------- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- Oval photo with a thin curved line sweeping under it ---------- */
.photo-oval {
  position: relative;
}

.photo-oval img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-oval);
  object-fit: cover;
}

/* The curve: the bottom-left edge of a slightly larger oval, drawn as a border */
.photo-oval::after {
  content: "";
  position: absolute;
  inset: 4% -5% -5% -5%;
  border: 1.5px solid transparent;
  border-bottom-color: var(--color-champagne);
  border-left-color: var(--color-champagne);
  border-radius: var(--radius-oval);
  transform: rotate(-18deg);
  pointer-events: none;
}

/* Taller oval, for portrait photos beside a list */
.photo-oval--tall {
  justify-self: center;
  width: min(86%, 420px);
  aspect-ratio: 9 / 14;
}

/* ---------- Arch photo: rounded top, square bottom ---------- */
.photo-arch {
  justify-self: center;
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
}

.photo-arch img {
  width: 100%;
  height: 100%;
  border-radius: 999px 999px var(--radius-md) var(--radius-md);
  object-fit: cover;
}

/* ---------- Text link with an arrow ---------- */
.text-link {
  font-weight: 600;
  color: var(--color-rosewood);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.text-link:hover { color: var(--color-rosewood-deep); }

.centered {
  margin: var(--space-5) 0 0;
  text-align: center;
}

/* ---------- Facts: big numbers with a label ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-block: var(--space-5);
  padding-block: var(--space-4);
  border-block: 1px solid var(--color-line);
}

.facts__item {
  display: grid;
  gap: var(--space-1);
}

.facts__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--color-rosewood);
}

.facts__label {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

/* ---------- Features: four promises with line icons, divided by thin lines ---------- */
.features {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .feature { padding-inline: var(--space-4); border-left: 1px solid var(--color-line); }
  .feature:last-child { border-right: 1px solid var(--color-line); }
}

.feature p { color: var(--color-ink-soft); }

.feature__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-4);
  fill: none;
  stroke: var(--color-rosewood);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature__title { font-size: var(--text-lg); }

/* ---------- Treatments: numbered list of links ---------- */
.treatments {
  margin: var(--space-4) 0 var(--space-5);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-cocoa);
}

.treatments__link {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-cocoa);
  text-decoration: none;
}

.treatments__number {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

.treatments__name {
  flex: 1;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.treatments__arrow {
  color: var(--color-rosewood);
  transition: transform 0.35s var(--ease-out);
}

.treatments__link:hover .treatments__arrow { transform: translateX(6px); }
.treatments__link:hover .treatments__name { color: var(--color-rosewood); }

/* ---------- Photo row: four tall photos linking to the gallery ---------- */
.photo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 760px) {
  .photo-row { grid-template-columns: repeat(4, 1fr); }
  .photo-row li:nth-child(even) { margin-top: var(--space-6); }   /* staggered */
}

.photo-row__item {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px var(--radius-md) var(--radius-md);
}

.photo-row__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.photo-row__item:hover img { transform: scale(1.06); }

/* ---------- Quote: a client's words ---------- */
.quote {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  text-align: center;
}

.quote__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}

.quote__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.3;
}

.quote__text p { margin: 0; }
.quote__text p::before { content: "“"; color: var(--color-rosewood); }
.quote__text p::after  { content: "”"; color: var(--color-rosewood); }

.quote__name {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* ---------- Opening hours table ---------- */
.hours {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hours th,
.hours td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .hours th,
  .hours td { padding-inline: var(--space-3); }
}

.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }

.hours th { font-weight: 600; }
.hours td:last-child { text-align: right; }
.hours__closed { color: var(--color-ink-soft); }

.hours__book {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-rosewood);
  text-underline-offset: 4px;
}

/* ---------- Page hero: title block at the top of inner pages ---------- */
.page-hero {
  padding-block: var(--space-6);
  text-align: center;
}

.page-hero__title {
  font-size: var(--text-2xl);
}

.page-hero__lead {
  max-width: 46ch;
  margin-inline: auto;
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
}

.centered-title { text-align: center; }

.centered-block {
  display: grid;
  justify-items: center;
  text-align: center;
}

/* ---------- Chips: quick links to sections of a page ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.chips__link {
  min-height: 44px;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-white);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}

.chips__link:hover {
  border-color: var(--color-rosewood);
  color: var(--color-rosewood);
}

/* ---------- Menu group: one group of treatments (photo and title beside the price list) ---------- */
.menu-group {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  scroll-margin-top: var(--header-height);
}

.menu-group__inner {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 860px) {
  .menu-group__inner { grid-template-columns: 1fr 1.6fr; gap: var(--space-7); align-items: start; }
  .menu-group__intro { position: sticky; top: calc(var(--header-height) + var(--space-4)); }
}

.menu-group__intro p { color: var(--color-ink-soft); }

.menu-group__photo {
  width: min(100%, 300px);
  margin-bottom: var(--space-4);
}

@media (max-width: 859px) {
  .menu-group__photo { display: none; }   /* on phones the list matters more than the photo */
}

.menu-group__title { font-size: var(--text-2xl); }

/* ---------- Price list ---------- */
.price-list {
  border-top: 1px solid var(--color-cocoa);
}

.price-item {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-line);
}

.price-item__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.price-item__name {
  margin: 0;
  font-size: var(--text-lg);
}

.price-item__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-rosewood);
  white-space: nowrap;
}

.price-item__from {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

.price-item__text {
  max-width: 52ch;
  margin: var(--space-2) 0;
  color: var(--color-ink-soft);
}

.price-item__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

.price-item__book {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-rosewood);
  text-underline-offset: 4px;
}

/* ---------- Notes: short "good to know" points ---------- */
.notes {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.notes li {
  position: relative;
  padding-left: var(--space-5);
}

.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 1.4rem;
  height: 1px;
  background: var(--color-rosewood);
}

/* ---------- Signature under the founder's story ---------- */
.signature {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-rosewood);
}

.signature::before { content: "— "; }

/* ---------- Steps: numbered list (e.g. hygiene) ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-4);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.steps__item {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: step;
}

.steps__item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-rosewood);
}

.steps__item p {
  margin: 0;
  color: var(--color-ink-soft);
}

.steps__title {
  margin-bottom: var(--space-1);
  font-size: var(--text-lg);
}

/* ---------- Team: name cards with an initial ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 900px) {
  .team { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
}

.team__member {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: var(--space-5) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.team__initial {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-champagne);
  border-radius: 50%;
  background: var(--color-blush);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-rosewood);
}

.team__name {
  margin-bottom: var(--space-1);
  font-size: var(--text-lg);
}

.team__role {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

/* ---------- Booking: form (or its preview) beside "what happens next" ---------- */
.booking {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .booking { grid-template-columns: 1.5fr 1fr; gap: var(--space-7); align-items: start; }
  .booking__aside { grid-column: 2; grid-row: 1; }
}

.booking__form,
.booking__preview {
  display: grid;
  gap: var(--space-4);
}

/* Without JavaScript the form can't build the message, so only the WhatsApp link shows */
.booking__nojs { display: none; }
.no-js .booking__nojs { display: block; }
.no-js .booking__form > :not(.booking__nojs) { display: none; }

.booking__submit { justify-self: start; }

.booking__preview-title { font-size: var(--text-xl); }
.booking__preview-title:focus { outline: none; }   /* focus is moved here by script, not by the visitor */

.booking__message {
  margin: 0;
  padding: var(--space-4);
  border-left: 3px solid var(--color-rosewood);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  white-space: pre-line;   /* keep the message's line breaks */
}

.booking__note {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

.booking__photo {
  width: min(100%, 260px);
  margin-bottom: var(--space-4);
}

@media (max-width: 899px) {
  .booking__photo { display: none; }
}

.booking__aside-title { font-size: var(--text-xl); }

/* ---------- Form fields ---------- */
.field {
  display: grid;
  gap: var(--space-2);
}

.field-row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field__label { font-weight: 600; }

.field__optional {
  font-weight: 400;
  color: var(--color-ink-soft);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-ink-soft);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-cocoa);
  font: inherit;
}

/* Date pickers and drop-downs differ in height between browsers; line them up */
input.field__input,
select.field__input { height: 52px; }

.field__input:focus-visible { border-color: var(--color-rosewood); }
.field__input[aria-invalid="true"] { border-color: var(--color-rosewood); border-width: 2px; }

.field__error {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-rosewood);
}

/* ---------- Feature card: small photo + label, floating over a photo ---------- */
.feature-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  padding-right: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.4s var(--ease-out);
}

.feature-card:hover { transform: translateY(-4px); }

.feature-card__img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.feature-card__text {
  display: grid;
  gap: 0.15rem;
}

.feature-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

/* ---------- Home: hero ---------- */
.hero {
  padding-block: var(--space-6) var(--section-pad);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.3fr 1fr; }
}

.hero__title {
  font-size: var(--text-hero);
  line-height: 1.02;
}

.hero__lead {
  max-width: 34ch;
  margin-bottom: var(--space-5);
  font-size: var(--text-lg);
  color: var(--color-ink-soft);
}

.hero__media {
  position: relative;
  justify-self: center;
  width: min(86%, 440px);   /* leaves room for the curved line on phones */
}

.hero__photo { aspect-ratio: 3 / 4; }

.hero__card {
  position: absolute;
  left: -8%;
  bottom: 8%;
}

@media (max-width: 599px) {
  .hero__card { left: -6%; bottom: -4%; }
}

/* ---------- Reveal on scroll (driven by js/main.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* If JavaScript is off, show everything */
.no-js .reveal {
  opacity: 1;
  transform: none;
}
