/* ==========================================================================
   Hammam Sables d’Or — Page-specific composition
   Only rules that genuinely belong to one page live here.
   ========================================================================== */

/* ---- Hero (home) ---------------------------------------------------------- */

.ht-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ht-ground-deep);
}

.ht-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ht-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  /* Lightened with the re-grade. A hero photograph still has to sit under a
     headline, but legibility is the scrim's job (.ht-hero__media::after) —
     crushing the picture to brightness 0.68 was doing the scrim's work twice
     and flattening the room in the process. */
  filter: saturate(0.72) contrast(1.04) brightness(0.82) sepia(0.08);
  animation: ht-kenburns var(--ht-kenburns) var(--ht-ease) forwards;
  transform-origin: 62% 55%;
}

/* Two scrims: a vertical one for legibility of the lower-left block, and a
   horizontal one so the headline never sits on a bright tile joint. */
.ht-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgb(11 10 8 / 0.6) 0%,
      rgb(11 10 8 / 0.12) 36%,
      rgb(11 10 8 / 0.66) 86%,
      rgb(18 16 14 / 0.94) 100%
    ),
    linear-gradient(90deg, rgb(11 10 8 / 0.6) 0%, rgb(11 10 8 / 0) 58%);
}

@keyframes ht-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.09);
  }
}

.ht-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  /* The top padding reserves the fixed header's height. Without it, once the
     content is tall enough to fill the viewport, flex-end pushes the eyebrow
     to y=0 and it collides with the wordmark. */
  padding-block: calc(var(--ht-header-h) + var(--ht-s-3)) clamp(5rem, 12vh, 9rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ht-s-3);
}

.ht-hero__title {
  font-size: var(--ht-t-3xl);
  line-height: 1.02;
  max-width: 15ch;
  margin-block: var(--ht-s-1) var(--ht-s-2);
}

.ht-hero__lead {
  font-size: var(--ht-t-md);
  color: var(--ht-steam);
  max-width: 44ch;
  line-height: 1.6;
}

.ht-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ht-s-2);
  margin-block-start: var(--ht-s-3);
}

/* A single hairline that breathes downward — the only ambient motion. */
.ht-hero__scroll {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 1px;
  height: 4.5rem;
  background: linear-gradient(180deg, transparent, var(--ht-brass));
  transform-origin: top;
  animation: ht-breathe 3.4s var(--ht-ease) infinite;
}

@keyframes ht-breathe {
  0%,
  100% {
    opacity: 0.25;
    transform: translateX(-50%) scaleY(0.55);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
}

/* ---- Page hero (subpages) -------------------------------------------------- */

.ht-phero {
  position: relative;
  min-height: clamp(24rem, 58svh, 34rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ht-ground-deep);
}

.ht-phero__media {
  position: absolute;
  inset: 0;
}

.ht-phero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  /* Same re-grade as the home hero: the scrim above carries legibility, so the
     photograph no longer has to be crushed to earn it. */
  filter: saturate(0.72) contrast(1.04) brightness(0.8) sepia(0.08);
}

.ht-phero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(11 10 8 / 0.58) 0%,
    rgb(11 10 8 / 0.16) 42%,
    rgb(18 16 14 / 0.95) 100%
  );
}

.ht-phero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  /* Same header clearance as the home hero — see .ht-hero__inner. */
  padding-block: calc(var(--ht-header-h) + var(--ht-s-3)) clamp(3rem, 7vh, 5rem);
  display: flex;
  flex-direction: column;
  gap: var(--ht-s-2);
}

.ht-phero__title {
  font-size: var(--ht-t-2xl);
  max-width: 18ch;
}

.ht-phero__lead {
  color: var(--ht-steam);
  font-size: var(--ht-t-md);
  max-width: 52ch;
}

/* ---- Le seuil — the pause between the hero and the argument ---------------
   One line, enormous surrounding silence. Nothing else on the screen.
   -------------------------------------------------------------------------- */

.ht-seuil {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ht-s-4);
}

.ht-seuil__line {
  max-width: 24ch;
}

.ht-seuil__rule {
  width: 1px;
  height: 4rem;
  background: linear-gradient(180deg, var(--ht-brass), transparent);
  border: 0;
  transform: none;
}

/* ---- Testimonial — one quote, not a grid of three ------------------------- */

.ht-testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--ht-s-4);
}

.ht-testimonial__quote {
  max-width: 26ch;
}

.ht-testimonial__who {
  font-size: var(--ht-t-xs);
  letter-spacing: var(--ht-track-eyebrow);
  text-transform: uppercase;
  color: var(--ht-muted);
}

/* ---- Espaces page — full-bleed frames ------------------------------------- */

/* A full-bleed band and an uncropped photograph are mutually exclusive.

   A band spanning a 1920px viewport at the source's native 4:3 stands 1440px
   tall — taller than the screen it sits in. Capping the height is exactly what
   puts the crop back, and object-fit: cover then discards the top and bottom of
   the frame. Measured at 1280px, the 16/9 band was throwing away a third of the
   steam room; the benches receding into the corner — the thing that makes the
   room read as a room rather than a wall of taps — live in precisely the strips
   being cut.

   So the SECTION stays full width and dark, and the photograph sits centred
   inside it at its own proportions: a plate on the ground. Nothing is cropped,
   and the depth of the room survives, which is the only reason the picture is
   on the page at all.

   --plate-w tunes the plate to its source. A portrait frame stays narrow or it
   would tower; a landscape frame runs wide because it can. */
.ht-bleed {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ht-s-3);
  padding-block: var(--ht-s-6);
  padding-inline: var(--ht-gutter);
}

.ht-bleed img {
  display: block;
  width: min(100%, var(--plate-w, 34rem));
  height: auto;
  filter: var(--ht-photo-filter);
}

/* No vignette here. It used to span the whole band, so once the photograph
   stopped filling that band the gradient's dark edges landed on the picture
   rather than around it — dimming the very corners the plate exists to show. */

.ht-bleed__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ht-s-1);
  text-align: center;
}

.ht-bleed__name {
  font-family: var(--ht-font-display);
  font-size: var(--ht-t-lg);
  color: var(--ht-steam);
}

/* ---- Prose (legal pages) --------------------------------------------------- */

.ht-prose {
  max-width: 72ch;
  color: var(--ht-muted);
}

.ht-prose h2 {
  font-size: var(--ht-t-lg);
  color: var(--ht-steam);
  margin-block: var(--ht-s-6) var(--ht-s-2);
}

.ht-prose h2:first-child {
  margin-block-start: 0;
}

.ht-prose h3 {
  font-size: var(--ht-t-md);
  color: var(--ht-steam);
  margin-block: var(--ht-s-4) var(--ht-s-1);
}

.ht-prose p,
.ht-prose ul,
.ht-prose ol {
  margin-block-end: var(--ht-s-2);
}

.ht-prose a {
  color: var(--ht-brass);
}

/* ---- Contact page layout --------------------------------------------------- */

.ht-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.ht-contact__block {
  display: flex;
  flex-direction: column;
  gap: var(--ht-s-4);
}

.ht-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ht-s-2);
}

@media (max-width: 900px) {
  .ht-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ht-hero {
    min-height: 92svh;
  }

  .ht-hero__title {
    max-width: 12ch;
  }

  /* Once the buttons stack the block gets tall fast. Tightening the rhythm
     here keeps both calls to action above the fold on a 667px screen, which
     is the whole point of the hero. */
  .ht-hero__inner {
    gap: var(--ht-s-2);
    padding-block-end: clamp(2.5rem, 6vh, 4rem);
  }

  .ht-hero__actions {
    margin-block-start: var(--ht-s-2);
  }

  .ht-hero__lead {
    font-size: var(--ht-t-base);
  }

  /* Ragged button widths read as sloppy once they stack. Stretch them so the
     stack has one clean edge. */
  .ht-hero__actions,
  .ht-contact__actions {
    width: 100%;
  }

  .ht-hero__actions .ht-btn,
  .ht-contact__actions .ht-btn {
    flex: 1 1 100%;
  }
}
