/* ==========================================================================
   CESURNES — Sur mesure (template-sur-mesure.php)
   The page came as a static export styled entirely inline; every declaration
   below is one of those inline styles moved onto a class, so the rendering is
   unchanged. Loaded only on this page, after page-hero.css and
   closing-band.css; it adjusts the hero's tagline and the closing band's
   proportions for this page.
   ========================================================================== */

/* The export gives every link on this page a terracotta hover. :where() keeps
   it at the export's a:hover weight, so the .btn hover colours still win. */
:where(.page-sur-mesure) a:hover { color: var(--c-terracota); }

/* ==================================================================== hero */
.page-sur-mesure .page-hero__aside { max-width: 620px; }

/* =============================================================== manifesto */
.surmesure-manifesto {
  padding: clamp(80px, 11vw, 170px) var(--gutter);
  background: var(--c-white);
  color: var(--c-black);
}

.surmesure-manifesto__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.surmesure-manifesto__mark {
  font-size: clamp(72px, 8vw, 120px);
  line-height: .5;
  font-weight: 100;
  color: var(--c-terracota);
}

.surmesure-manifesto__quote {
  font-size: clamp(26px, 3.6vw, 54px);
  line-height: 1.1;
  font-weight: 100;
  text-transform: uppercase;
  text-wrap: balance;
}

.surmesure-manifesto__text {
  max-width: 56ch;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--c-muted);
  text-wrap: pretty;
}

/* ================================================================= options */
/* Two full-height panels under one title; the hovered (or tapped) panel
   shows its photo, the other fades to black (assets/js/sur-mesure.js). */
.surmesure-options {
  position: relative;
  overflow: hidden;
  background: var(--c-black);
  color: var(--c-white);
}

.surmesure-options__head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: clamp(72px, 8vw, 120px) var(--gutter) 0;
  pointer-events: none;
}

.surmesure-options__title {
  font-size: clamp(34px, 4.6vw, 84px);
  line-height: .95;
  font-weight: 100;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.surmesure-options__panels {
  display: flex;
  flex-wrap: wrap;
}

.surmesure-option {
  position: relative;
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  height: 100svh;
  min-height: 620px;
  padding: clamp(28px, 3.4vw, 56px) var(--gutter);
  overflow: hidden;
  background: var(--c-black);
}

.surmesure-option__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s cubic-bezier(.22, .61, .36, 1);
}

.surmesure-option:first-child .surmesure-option__media { opacity: 1; }

/* Tablet and mobile (the header's drawer range): no swap, every panel
   shows its photo. */
@media (max-width: 1199px) {
  .surmesure-option__media {
    opacity: 1;
    transition: none;
  }
}

/* Mobile: stacked panels, shorter than the screen. */
@media (max-width: 767px) {
  .surmesure-option {
    height: 70svh;
    min-height: 480px;
  }
}

.surmesure-option__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 8, 7, .55) 0%, rgba(9, 8, 7, 0) 32%, rgba(9, 8, 7, 0) 52%, rgba(9, 8, 7, .85) 100%);
}

.surmesure-option__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(252, 252, 252, .4);
}

.surmesure-option__title {
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1;
  font-weight: 100;
  text-transform: uppercase;
}

.surmesure-option__text {
  font-size: clamp(13px, 1.05vw, 17px);
  line-height: 1.5;
  font-weight: 300;
  text-wrap: pretty;
}

/* =================================================================== steps */
.surmesure-steps {
  padding: clamp(80px, 10vw, 150px) var(--gutter);
  background: var(--c-white);
  color: var(--c-black);
}

.surmesure-steps__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 96px);
  max-width: 1440px;
  margin: 0 auto;
}

.surmesure-steps__title {
  font-size: var(--fs-section);
  line-height: .9;
  font-weight: 300;
  text-align: center;
  text-transform: uppercase;
}

.surmesure-steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 56px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.surmesure-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 clamp(16px, 2vw, 32px);
  border-left: 1px solid rgba(9, 8, 7, .16);
}

.surmesure-step__num {
  font-size: clamp(88px, 10vw, 160px);
  line-height: .78;
  font-weight: 100;
}

.surmesure-step__title {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.1;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--c-terracota);
}

.surmesure-step__text {
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--c-muted);
  text-wrap: pretty;
}

/* =================================================================== works */
.surmesure-works {
  padding: clamp(72px, 9vw, 140px) 0 0;
  background: var(--c-black);
  color: var(--c-white);
}

.surmesure-works__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
}

.surmesure-works__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 0 var(--gutter);
}

.surmesure-works__title {
  font-size: clamp(36px, 5.2vw, 96px);
  line-height: .9;
  font-weight: 100;
  text-transform: uppercase;
  white-space: nowrap;
}

.surmesure-works__lead {
  max-width: 44ch;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.5;
  font-weight: 300;
  color: rgba(252, 252, 252, .78);
  text-wrap: pretty;
}

.surmesure-works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2px;
}

.surmesure-work {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #1a1816;
}

.surmesure-work img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.22, .61, .36, 1);
}

.surmesure-work__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
}

.surmesure-work__caption {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.surmesure-work__name {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 300;
  text-transform: uppercase;
}

.surmesure-work__kind {
  font-size: 13px;
  line-height: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ================================================================= pricing */
.surmesure-pricing {
  padding: clamp(48px, 5.5vw, 84px) var(--gutter);
  background: var(--c-terracota);
  color: var(--c-white);
}

.surmesure-pricing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.surmesure-pricing__kicker,
.surmesure-pricing__terms {
  font-size: 13px;
  line-height: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.surmesure-pricing__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.surmesure-pricing__from {
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 300;
  text-transform: uppercase;
}

.surmesure-pricing__amount {
  font-size: clamp(64px, 9vw, 140px);
  line-height: .85;
  font-weight: 100;
}

.surmesure-pricing__terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  padding: 18px 0;
  border-top: 1px solid rgba(252, 252, 252, .35);
  border-bottom: 1px solid rgba(252, 252, 252, .35);
}

.surmesure-pricing__text {
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.5;
  font-weight: 300;
  text-wrap: pretty;
}

/* A light button on terracotta that keeps its colours on hover. */
.surmesure-pricing__cta,
.surmesure-pricing__cta:hover {
  min-width: 260px;
  background: var(--c-white);
  border: 1px solid var(--c-white);
  color: var(--c-terracota);
}

/* ================================================================= project */
/* The photo stays pinned beside the form while it scrolls past. */
.surmesure-project {
  background: var(--c-white);
  color: var(--c-black);
}

.surmesure-project__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.surmesure-project__aside {
  position: sticky;
  top: 0;
  flex: 1 1 460px;
  min-width: 0;
  height: 100svh;
  padding: clamp(16px, 2.4vw, 40px);
  box-sizing: border-box;
}

.surmesure-project__media {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f2efea;
}

.surmesure-project__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.surmesure-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 520px;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  min-width: 0;
  min-height: 100svh;
  padding: clamp(56px, 7vw, 110px) var(--gutter);
  box-sizing: border-box;
  background: var(--c-white);
}

/* The Contact Form 7 form (forms.css) continues the column; the send
   button is below it, in .surmesure-form__foot. */
.surmesure-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.surmesure-form__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}

.surmesure-form__title {
  font-size: clamp(40px, 5.2vw, 96px);
  line-height: .9;
  font-weight: 100;
  text-transform: uppercase;
  white-space: nowrap;
}

.surmesure-form__lead {
  max-width: none;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.5;
  font-weight: 300;
}

.surmesure-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 32px;
}

.surmesure-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.surmesure-form__row .surmesure-field {
  flex: 1 1 260px;
  min-width: 0;
}

.surmesure-field__label {
  font-size: 13px;
  line-height: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-muted);
}

.surmesure-form__star { color: var(--c-terracota); }

/* Underlined fields, no box. */
.surmesure-field__control {
  width: 100%;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-black);
  border-radius: 0;
  color: var(--c-black);
  font: inherit;
  font-size: 16px;
  font-weight: 300;
  outline: none;
}

select.surmesure-field__control {
  appearance: none;
  cursor: pointer;
}

textarea.surmesure-field__control {
  height: auto;
  padding: 12px 0;
  resize: vertical;
}

.surmesure-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.surmesure-form__submit { min-width: 240px; }

.surmesure-form__required {
  font-size: 13px;
  line-height: 16px;
  font-weight: 300;
  color: var(--c-muted);
}

.surmesure-form__note {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--c-muted);
}

/* ========================================================= closing band */
/* Taller than the FAQ's, with the copy on the full content column. */
.page-sur-mesure .closing-band {
  min-height: 80svh;
  padding: clamp(96px, 12vw, 180px) 0;
}

.page-sur-mesure .closing-band__inner {
  width: 100%;
  max-width: 1440px;
  padding: 0 var(--gutter);
}

.page-sur-mesure .closing-band__title {
  max-width: 24ch;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1;
}

.page-sur-mesure .closing-band__text { font-size: clamp(16px, 1.15vw, 18px); }
