/* ==========================================================================
   MMP — Homepage
   File: assets/css/home.css
   ========================================================================== */


/* ==========================================================================
   GLOBAL WRAPPERS
   ========================================================================== */

.mmp-home-hero-wrap,
.mmp-home-intro-wrap,
.mmp-home-featured-wrap,
.mmp-home-imprints-wrap,
.mmp-home-books-wrap,
.mmp-home-preserve-wrap,
.mmp-home-cta-inner {
  max-width: var(--mmp-container-wide-width);
  width: calc(100% - (var(--mmp-container-padding) * 2));
  margin-inline: auto;
}

.mmp-home-cta-inner {
  max-width: var(--mmp-container-width);
}

.mmp-home-intro,
.mmp-home-featured,
.mmp-home-imprints,
.mmp-home-books,
.mmp-home-preserve,
.mmp-home-cta {
  width: 100%;
}

.mmp-home-intro .mmp-section-header,
.mmp-home-featured .mmp-section-header,
.mmp-home-imprints .mmp-section-header {
  max-width: 780px;
  margin-bottom: 2rem;
}

.mmp-home-intro .mmp-section-title,
.mmp-home-featured .mmp-section-title,
.mmp-home-imprints .mmp-section-title,
.mmp-home-books .mmp-section-title,
.mmp-home-preserve .mmp-section-title {
  color: var(--mmp-page-ink);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 !important;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.mmp-home-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 72vw, 760px);
  display: flex;
  align-items: center;
  padding: clamp(6rem, 11vw, 10rem) 0 !important;
}

.mmp-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(199, 151, 77, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(31, 36, 41, 0.88), rgba(51, 46, 43, 0.7));
  z-index: 1;
}

.mmp-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.32;
  pointer-events: none;
  z-index: 1;
}

.mmp-home-hero-wrap {
  position: relative;
  z-index: 2;
}

.mmp-home-hero-content {
  max-width: 860px;
  padding: 0 !important;
}

.mmp-home-hero .mmp-kicker {
  color: var(--mmp-page-gold);
  margin-bottom: 1rem !important;
}

.mmp-home-hero-title {
  color: #fff !important;
  font-size: clamp(2.65rem, 5vw, 5.25rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.05em !important;
  max-width: min(100%, 860px);
  margin: 0 !important;
  text-wrap: balance;
}

.mmp-home-hero-lede {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--mmp-font-editorial);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.5;
  max-width: 760px;
  margin: 1.55rem 0 0 !important;
}

.mmp-home-hero-title,
.mmp-home-hero-lede,
.mmp-home-hero .mmp-kicker {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.mmp-home-btn-row {
  display: flex !important;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem !important;
}

.mmp-home-btn .wp-block-button__link {
  background: var(--mmp-page-ink) !important;
  color: var(--mmp-page-paper) !important;
  border: 1px solid var(--mmp-page-ink) !important;
  border-radius: 999px !important;
  font-family: var(--mmp-font-body);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 14px 24px;
}

.mmp-home-btn .wp-block-button__link:hover {
  background: var(--mmp-page-blue) !important;
  border-color: var(--mmp-page-blue) !important;
  text-decoration: none !important;
}

.mmp-home-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--mmp-page-ink) !important;
  border-color: var(--mmp-page-border) !important;
}

.mmp-home-hero .mmp-home-btn .wp-block-button__link {
  background: var(--mmp-page-gold) !important;
  color: var(--mmp-page-ink) !important;
  border-color: var(--mmp-page-gold) !important;
}

.mmp-home-hero .mmp-home-btn .wp-block-button__link:hover {
  background: #e4c784 !important;
  border-color: #e4c784 !important;
}

.mmp-home-hero .mmp-home-btn-outline .wp-block-button__link {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(8px);
}

.mmp-home-hero .mmp-home-btn-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}


/* ==========================================================================
   INTRO / WHAT WE DO
   ========================================================================== */

.mmp-home-intro {
  background: var(--mmp-page-paper);
  padding: clamp(4rem, 7vw, 6.5rem) 0 !important;
}

.mmp-home-intro-grid {
  gap: 1.25rem !important;
  margin: 0 !important;
}

.mmp-home-intro-grid > * {
  margin: 0 !important;
}

.mmp-home-intro-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(40, 48, 57, 0.09);
  border-top: 5px solid var(--mmp-page-gold);
  border-radius: 22px;
  padding: clamp(1.4rem, 2.6vw, 2rem) !important;
  box-shadow: 0 16px 36px rgba(40, 48, 57, 0.08);
}

.mmp-home-intro-grid > .wp-block-column:nth-child(2) .mmp-home-intro-card {
  border-top-color: var(--mmp-page-blue);
}

.mmp-home-intro-grid > .wp-block-column:nth-child(3) .mmp-home-intro-card {
  border-top-color: var(--mmp-page-sage);
}

.mmp-home-card-num {
  color: var(--mmp-page-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 0.85rem !important;
}

.mmp-home-intro-card-title {
  color: var(--mmp-page-ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.18;
  margin: 0 0 0.75rem !important;
}

.mmp-home-intro-card-body {
  color: var(--mmp-page-muted);
  line-height: 1.65;
  margin: 0 !important;
}


/* ==========================================================================
   FEATURED PROJECTS
   ========================================================================== */

.mmp-home-featured {
  background:
    radial-gradient(circle at 10% 18%, rgba(199, 151, 77, 0.12), transparent 32%),
    linear-gradient(180deg, var(--mmp-page-cream) 0%, var(--mmp-page-paper) 100%);
  padding: clamp(4rem, 7vw, 6.5rem) 0 !important;
}

.mmp-home-card-grid {
  gap: 1.25rem !important;
  margin: 0 !important;
}

.mmp-home-card-grid > * {
  margin: 0 !important;
}

.mmp-home-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(40, 48, 57, 0.09);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(40, 48, 57, 0.1);
}

/* Featured project images — square frame, no cropping */

.mmp-home-card-image {
  margin: 0 !important;
  aspect-ratio: 1 / 1;
  background: var(--mmp-page-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mmp-home-card-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center center;

  display: block;
}

.mmp-home-card-content {
  padding: 1.4rem !important;
}

.mmp-home-card-kicker {
  color: var(--mmp-page-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.65rem !important;
}

.mmp-home-card-title {
  color: var(--mmp-page-ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
  margin: 0 0 0.75rem !important;
}

.mmp-home-card-text {
  color: var(--mmp-page-muted);
  line-height: 1.62;
  margin: 0 !important;
}


/* ==========================================================================
   WHY BOOKS
   ========================================================================== */

.mmp-home-books {
  background: var(--mmp-page-paper);
  padding: clamp(4rem, 7vw, 6.5rem) 0 !important;
}

.mmp-home-books-grid {
  gap: clamp(2rem, 5vw, 4rem) !important;
  align-items: center !important;
  margin: 0 !important;
}

.mmp-home-books-grid > * {
  margin: 0 !important;
}

.mmp-home-section-lede {
  color: var(--mmp-page-ink);
  font-family: var(--mmp-font-editorial);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.55;
  margin: 1rem 0 !important;
}

.mmp-home-section-body {
  color: var(--mmp-page-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 1rem 0 0 !important;
}

.mmp-home-book-proof-card {
  background:
    radial-gradient(circle at 85% 15%, rgba(199, 151, 77, 0.2), transparent 34%),
    linear-gradient(135deg, var(--mmp-page-ink) 0%, var(--mmp-page-blue) 100%);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 3rem) !important;
  box-shadow: 0 20px 52px rgba(40, 48, 57, 0.18);
}

.mmp-home-book-proof-quote {
  color: #fff;
  font-family: var(--mmp-font-heading);
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem !important;
}

.mmp-home-book-proof-note {
  color: var(--mmp-page-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 !important;
}


/* ==========================================================================
   IMPRINTS
   ========================================================================== */

.mmp-home-imprints {
  background: var(--mmp-page-ink);
  color: var(--mmp-page-paper);
  padding: clamp(4rem, 7vw, 6.5rem) 0 !important;
}

.mmp-home-imprints .mmp-section-title,
.mmp-home-imprints h2,
.mmp-home-imprints h3 {
  color: var(--mmp-page-paper) !important;
}

.mmp-home-imprints p {
  color: rgba(255, 250, 241, 0.8);
}

.mmp-home-imprints .mmp-kicker {
  color: var(--mmp-page-gold);
}

.mmp-home-imprint-grid {
  gap: 1.25rem !important;
  margin: 0 !important;
}

.mmp-home-imprint-grid > * {
  margin: 0 !important;
}

.mmp-home-imprint-card {
  height: 100%;
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: 22px;
  padding: clamp(1.4rem, 2.6vw, 2rem) !important;
}

/* Imprint logo */

.mmp-home-imprint-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 1.5rem !important;
}

.mmp-home-imprint-logo img {
  width: 88px;
  height: 88px;

  object-fit: contain;
  display: block;

  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Center title and content */

.mmp-home-imprint-card {
  text-align: center;
}

.mmp-home-imprint-title {
  text-align: center;
}

.mmp-home-imprint-body {
  color: rgba(255, 250, 241, 0.72);

  font-size: 0.92rem;
  line-height: 1.6;

  max-width: 32ch;
  margin: 0 auto 1.25rem !important;
}

.mmp-home-imprint-link {
  display: flex;
  justify-content: center;
}

.mmp-home-imprint-title {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.16;
  margin: 0 0 0.75rem !important;
}

.mmp-home-imprint-body {
  color: rgba(255, 250, 241, 0.72);
  line-height: 1.62;
  margin: 0 0 1.25rem !important;
}

.mmp-home-imprint-link {
  margin: 18px 0 0 !important;
}

.mmp-home-imprint-link a,
.mmp-home-imprint-link a:visited,
.mmp-home-imprint-link a:hover,
.mmp-home-imprint-link a:focus,
.mmp-home-imprint-link a:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mmp-page-gold);
  color: var(--mmp-page-ink) !important;
  border: 1px solid var(--mmp-page-gold);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-family: var(--mmp-font-body);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.mmp-home-imprint-link a:hover {
  background: #e4c784;
  border-color: #e4c784;
  color: var(--mmp-page-ink) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}


/* ==========================================================================
   PRESERVATION
   ========================================================================== */

.mmp-home-preserve {
  background:
    radial-gradient(circle at 12% 20%, rgba(199, 151, 77, 0.12), transparent 30%),
    linear-gradient(180deg, var(--mmp-page-paper) 0%, var(--mmp-page-cream) 100%);
  padding: clamp(4rem, 7vw, 6.5rem) 0 !important;
}

.mmp-home-preserve-grid {
  gap: clamp(2rem, 5vw, 4rem) !important;
  align-items: center !important;
  margin: 0 !important;
}

.mmp-home-preserve-grid > * {
  margin: 0 !important;
}

.mmp-home-preserve-card {
  background: #fff;
  border: 1px solid rgba(40, 48, 57, 0.09);
  border-left: 5px solid var(--mmp-page-gold);
  border-radius: 24px;
  padding: clamp(1.6rem, 3vw, 2.4rem) !important;
  box-shadow: 0 18px 44px rgba(40, 48, 57, 0.1);
}

.mmp-home-preserve-card-label {
  color: var(--mmp-page-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.85rem !important;
}

.mmp-home-preserve-card-text {
  color: var(--mmp-page-ink);
  font-family: var(--mmp-font-editorial);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.55;
  margin: 0 0 1.25rem !important;
}

.mmp-home-preserve-card-link {
  margin: 0 !important;
}

.mmp-home-preserve-card-link a {
  color: var(--mmp-page-blue);
  font-weight: 800;
  text-decoration: none;
}

.mmp-home-preserve-card-link a:hover {
  color: var(--mmp-page-gold);
}


/* ==========================================================================
   CTA
   ========================================================================== */

.mmp-home-cta {
  background:
    radial-gradient(circle at 84% 18%, rgba(199, 151, 77, 0.22), transparent 34%),
    linear-gradient(135deg, var(--mmp-page-ink) 0%, var(--mmp-page-blue) 100%);
  color: var(--mmp-page-paper);
  text-align: center;
  padding: clamp(4rem, 7vw, 6rem) 0 !important;
}

.mmp-home-cta h2,
.mmp-home-cta-title {
  color: var(--mmp-page-paper) !important;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 820px;
  margin: 0.85rem auto 1rem !important;
}

.mmp-home-cta p {
  color: rgba(255, 250, 241, 0.82);
}

.mmp-home-cta .mmp-kicker {
  color: var(--mmp-page-gold);
}

.mmp-home-cta-body {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto !important;
}

.mmp-home-cta .mmp-home-btn-row {
  justify-content: center;
}

.mmp-home-cta .mmp-home-btn .wp-block-button__link {
  background: var(--mmp-page-paper) !important;
  color: var(--mmp-page-ink) !important;
  border-color: var(--mmp-page-paper) !important;
}

.mmp-home-cta .mmp-home-btn .wp-block-button__link:hover {
  background: var(--mmp-page-gold) !important;
  border-color: var(--mmp-page-gold) !important;
}

.mmp-home-cta .mmp-home-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--mmp-page-paper) !important;
  border-color: rgba(255, 250, 241, 0.45) !important;
}

.mmp-home-cta .mmp-home-btn-outline .wp-block-button__link:hover {
  background: rgba(255, 250, 241, 0.1) !important;
  border-color: rgba(255, 250, 241, 0.72) !important;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 921px) {
  .mmp-home-intro-grid,
  .mmp-home-card-grid,
  .mmp-home-books-grid,
  .mmp-home-imprint-grid,
  .mmp-home-preserve-grid {
    flex-direction: column !important;
  }

  .mmp-home-books-copy,
  .mmp-home-books-proof,
  .mmp-home-preserve-copy,
  .mmp-home-preserve-card-col {
    flex-basis: 100% !important;
  }
}

@media (max-width: 680px) {
  .mmp-home-hero {
    min-height: 560px;
  }

  .mmp-home-btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .mmp-home-btn,
  .mmp-home-btn .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  .mmp-home-intro-card,
  .mmp-home-card,
  .mmp-home-imprint-card,
  .mmp-home-book-proof-card,
  .mmp-home-preserve-card {
    border-radius: 16px;
  }

  .mmp-home-imprint-logo img {
    width: 46px;
    height: 46px;
  }
}