/* ==========================================================================
   Mot de la mairesse (template-mot-de-la-mairesse.php).
   Loaded only for that page template (see functions.php), after main.css.
   Static content — no dynamisation.
   ========================================================================== */

/* ---- Hero --------------------------------------------------------------- */
.mm-hero {
  position: relative;
  overflow: hidden;
  background: #111;
}

.mm-hero-media {
  position: relative;
  height: clamp(360px, 44vw, 560px);
  /* dark gradient over the hero photo */
  background:
    linear-gradient(
      180deg,
      rgba(17, 17, 17, 0.55) 0%,
      rgba(17, 17, 17, 0.1) 45%,
      rgba(17, 17, 17, 0.6) 100%
    ),
    #111 var(--mm-hero-img, url('../assets/banner-mairesse.jpeg')) center / cover no-repeat;
}

.mm-hero-eyebrow {
  position: absolute;
  top: clamp(20px, 3vw, 36px);
  left: clamp(20px, 4vw, 30px);
  background: #111;
  color: #ffb6ee;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 8px 16px;
}

.mm-hero-card {
  position: absolute;
  left: clamp(20px, 4vw, 30px);
  right: clamp(20px, 4vw, 30px);
  bottom: 0;
  transform: translateY(clamp(24px, 4vw, 56px));
  max-width: 900px;
  background: #ffb6ee;
  border: 1px solid #111;
  padding: clamp(26px, 3.4vw, 52px) clamp(22px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.mm-hero-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -1.2px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  color: #111;
}

.mm-hero-rule {
  height: 8px;
  background: #111;
}

.mm-hero-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  font-size: 18px;
  font-weight: 500;
  line-height: 150%;
  color: #1d2122;
}

.mm-hero-byline strong {
  font-weight: 500;
  text-transform: uppercase;
}

/* Clears the card's translateY so the next section never overlaps it. */
.mm-hero-spacer {
  height: clamp(56px, 7vw, 96px);
  background: #111;
}

/* ---- Message ------------------------------------------------------------ */
.mm-message {
  padding: clamp(48px, 6.5vw, 110px) clamp(20px, 4vw, 30px)
    clamp(32px, 4vw, 56px);
  background: #111;
}

.mm-message-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
  border-top: 1px solid #575757;
  padding-top: 24px;
}

.mm-message-title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #fff;
}

.mm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.mm-message-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mm-message-body p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 150%;
  color: #b0b0b0;
}

/* WYSIWYG links take the page's main colour (overrides the lime default
   set for all rich-text bodies in main.css). */
.mm-message-body a {
  color: #ffb6ee;
  text-decoration: underline;
  text-decoration-color: #ffb6ee;
  text-underline-offset: 3px;
}

.mm-message-body a:hover {
  color: #fff;
}

/* Bullets and numbering follow the same page colour (lime default in main.css). */
.mm-message-body li::marker {
  color: #ffb6ee;
}

.mm-portrait {
  position: sticky;
  top: 100px;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid #575757;
  overflow: hidden;
  background: #161616;
}

.mm-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Pull quote --------------------------------------------------------- */
.mm-quote {
  padding: clamp(24px, 3vw, 44px) clamp(20px, 4vw, 30px);
  background: #111;
}

.mm-quote-inner {
  background: #ffb6ee;
  padding: clamp(32px, 4.5vw, 72px) clamp(24px, 3.5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}

.mm-quote-text {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: #111;
}

.mm-quote-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #1d2122;
}

.mm-quote-dot {
  width: 6px;
  height: 6px;
  background: #111;
}

/* ---- Ville de Montréal credit ------------------------------------------- */
.mm-org {
  padding: clamp(24px, 3vw, 44px) clamp(20px, 4vw, 30px);
  background: #111;
}

.mm-org-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 56px);
  align-items: center;
  border-top: 1px solid #575757;
  padding-top: clamp(20px, 2.4vw, 32px);
}

.mm-org-logo {
  width: clamp(180px, 18vw, 260px);
  background: #fff;
  padding: 14px 18px;
  display: block;
}

.mm-org-note {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 150%;
  color: #b0b0b0;
}

/* ---- Closing CTA -------------------------------------------------------- */
.mm-cta {
  padding: clamp(48px, 6vw, 90px) clamp(20px, 4vw, 30px);
  background: #111;
}

.mm-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  background: #c3ff74;
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 40px);
}

.mm-cta-text {
  max-width: 760px;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.6px;
  text-transform: uppercase;
  color: #111;
}

.mm-send {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #c3ff74;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  transition: background 0.3s ease, color 0.3s ease;
}

.mm-send svg {
  flex: none;
  width: 14px;
  height: 14px;
}

.mm-send:hover {
  background: #0082fe;
  color: #fff;
}

/* ---- Scroll reveal (js/mot-de-la-mairesse.js arms + reveals) ------------ */
.mm-reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.mm-reveal.js-armed {
  opacity: 0;
  transform: translateY(28px);
}

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

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .mm-split,
  .mm-org-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .mm-portrait {
    position: static;
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .mm-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .mm-send {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding-inline: 16px;
    font-size: 16px;
    overflow-wrap: anywhere;
  }
}
