/* ==========================================================================
   MMP — Through Our Eyes imprint page
   File: assets/css/through-our-eyes.css
   ========================================================================== */

.mmp-toe-hero-wrap,
.mmp-toe-section-wrap,
.mmp-toe-cta-inner {
  margin-inline: auto;
}

/* HERO */

.mmp-toe-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(216, 180, 106, 0.38), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(63, 84, 97, 0.18), transparent 38%),
    linear-gradient(135deg, var(--mmp-page-paper), var(--mmp-page-cream));
  padding: 86px 40px 104px !important;
}

.mmp-toe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(63, 84, 97, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(63, 84, 97, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.38;
  pointer-events: none;
}

.mmp-toe-hero-wrap {
  position: relative;
  z-index: 1;
}

.mmp-toe-hero-grid {
  gap: 64px !important;
  align-items: center;
}

.mmp-toe-hero h1 {
  color: var(--mmp-page-ink) !important;
  font-size: clamp(3.25rem, 8vw, 6.75rem) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.06em !important;
  margin: 0 !important;
}

.mmp-toe-hero-lede {
  margin-top: 20px !important;
  color: var(--mmp-page-blue);
  font-family: var(--mmp-font-editorial);
  font-size: clamp(1.35rem, 2.35vw, 1.8rem);
  line-height: 1.34;
}

.mmp-toe-hero-body,
.mmp-toe-lede {
  color: var(--mmp-page-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 640px;
}

.mmp-toe-hero-body {
  margin-top: 22px !important;
}

/* BUTTONS */

.mmp-toe-btn-row {
  display: flex !important;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px !important;
}

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

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

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

/* IMAGE PLACEHOLDERS */

.mmp-toe-image {
  margin: 0 !important;
}

.mmp-toe-image img {
  width: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 28px;
  box-shadow: var(--mmp-page-shadow);
  background:
    linear-gradient(135deg, rgba(63, 84, 97, 0.88), rgba(107, 124, 122, 0.72)),
    repeating-linear-gradient(45deg, rgba(255, 250, 241, 0.13) 0 2px, transparent 2px 12px);
}

.mmp-toe-image img[src=""] {
  min-height: 340px;
}

/* SECTIONS */

.mmp-toe-section {
  padding: 92px 40px !important;
}

.mmp-toe-section h2 {
  color: var(--mmp-page-ink) !important;
  max-width: 900px;
}

.mmp-toe-section p {
  color: var(--mmp-page-muted);
}

/* WHAT IS */

.mmp-toe-section:nth-of-type(2) {
  background:
    radial-gradient(circle at 10% 10%, rgba(216, 180, 106, 0.18), transparent 30%),
    var(--mmp-page-paper);
}

.mmp-toe-card-grid {
  gap: 22px !important;
  margin-top: 42px !important;
}

.mmp-toe-card {
  height: 100%;
  background: var(--mmp-white);
  border: 1px solid var(--mmp-page-border-light);
  border-top: 6px solid var(--mmp-page-blue);
  border-radius: 26px;
  padding: 30px !important;
  box-shadow: 0 18px 44px rgba(51, 46, 43, 0.06);
}

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

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

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

.mmp-toe-card h3 {
  color: var(--mmp-page-ink) !important;
  margin-bottom: 12px !important;
}

/* NARROW TEXT SECTION */

.mmp-toe-section:nth-of-type(3) {
  background:
    linear-gradient(135deg, rgba(107, 124, 122, 0.14), transparent 42%),
    var(--mmp-page-cream);
}

/* CASE STUDY */

.mmp-toe-case {
  background:
    radial-gradient(circle at 90% 12%, rgba(216, 180, 106, 0.24), transparent 34%),
    linear-gradient(180deg, var(--mmp-page-paper), var(--mmp-page-cream));
}

.mmp-toe-case-grid {
  gap: 52px !important;
  align-items: center;
  margin-top: 44px !important;
}

.mmp-toe-case .mmp-toe-image img,
.mmp-toe-case .mmp-toe-image img[src=""] {
  min-height: 540px;
  border-radius: 32px;
}

.mmp-toe-case-content,
.mmp-toe-case .wp-block-column:nth-child(2) {
  background: var(--mmp-white);
  border: 1px solid var(--mmp-page-border-light);
  border-radius: 32px;
  padding: 36px !important;
  box-shadow: 0 22px 56px rgba(51, 46, 43, 0.08);
}

.mmp-toe-case-content > p {
  color: var(--mmp-page-muted);
}

/* STAT CARDS */

.mmp-toe-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin-top: 32px !important;
  align-items: stretch !important;
}

/* Critical: remove Gutenberg/Astra block spacing from grid children */
.mmp-toe-stat-grid > * {
  margin: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.mmp-toe-stat {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 132px;
  background: linear-gradient(180deg, var(--mmp-page-paper), var(--mmp-white));
  border: 1px solid var(--mmp-page-border-light);
  border-radius: 22px;
  padding: 24px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.mmp-toe-stat p {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--mmp-page-muted);
  font-family: var(--mmp-font-body);
  font-size: 0.92rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
}

.mmp-toe-stat strong {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--mmp-page-blue);
  font-family: var(--mmp-font-heading);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.mmp-toe-stat span {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--mmp-page-muted);
  font-family: var(--mmp-font-body);
  font-size: 0.92rem;
  line-height: 1.35;
}

@media (max-width: 620px) {
  .mmp-toe-stat-grid {
    grid-template-columns: 1fr !important;
  }
}

/* STORYBOOK FLOW */

.mmp-toe-storybook {
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 180, 106, 0.24), transparent 34%),
    linear-gradient(135deg, var(--mmp-page-blue), var(--mmp-page-ink));
  color: var(--mmp-page-paper);
}

.mmp-toe-storybook h2,
.mmp-toe-storybook h3 {
  color: var(--mmp-page-paper) !important;
}

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

.mmp-toe-storybook .mmp-kicker {
  color: var(--mmp-page-gold);
}

.mmp-toe-flow {
  gap: 22px !important;
  margin-top: 44px !important;
}

.mmp-toe-step {
  height: 100%;
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.17);
  border-radius: 26px;
  padding: 30px !important;
}

.mmp-toe-flow > .wp-block-column:nth-child(1) .mmp-toe-step {
  background: rgba(255, 250, 241, 0.10);
}

.mmp-toe-flow > .wp-block-column:nth-child(2) .mmp-toe-step {
  background: rgba(216, 180, 106, 0.16);
}

.mmp-toe-flow > .wp-block-column:nth-child(3) .mmp-toe-step {
  background: rgba(107, 124, 122, 0.22);
}

/* GALLERY */

.mmp-toe-gallery-grid {
  gap: 22px !important;
  align-items: stretch;
  margin-top: 42px !important;
}

.mmp-toe-gallery-main img,
.mmp-toe-gallery-main img[src=""] {
  min-height: 560px;
}

.mmp-toe-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mmp-toe-gallery-side .mmp-toe-image img,
.mmp-toe-gallery-side .mmp-toe-image img[src=""] {
  min-height: 269px;
}

/* PURPOSE / TECH */

.mmp-toe-tech {
  background:
    radial-gradient(circle at 86% 18%, rgba(216, 180, 106, 0.26), transparent 32%),
    linear-gradient(135deg, var(--mmp-page-cream), var(--mmp-page-paper));
}

.mmp-toe-tech .mmp-toe-section-wrap {
  background: var(--mmp-white);
  border: 1px solid var(--mmp-page-border-light);
  border-left: 8px solid var(--mmp-page-gold);
  border-radius: 30px;
  padding: 42px !important;
  box-shadow: 0 20px 52px rgba(51, 46, 43, 0.07);
}

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

.mmp-toe-tech-link a:hover {
  color: var(--mmp-page-ink);
}

/* CTA */

.mmp-toe-cta {
  background:
    radial-gradient(circle at 15% 20%, rgba(216, 180, 106, 0.34), transparent 32%),
    radial-gradient(circle at 90% 80%, rgba(107, 124, 122, 0.20), transparent 38%),
    var(--mmp-page-ink);
  color: var(--mmp-page-paper);
  text-align: center;
  padding: 96px 40px !important;
}

.mmp-toe-cta-inner {
  max-width: 880px;
}

.mmp-toe-cta h2 {
  color: var(--mmp-page-paper) !important;
}

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

.mmp-toe-cta p {
  color: rgba(255, 250, 241, 0.82);
  margin: 24px auto 0 !important;
  max-width: 680px;
}

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

.mmp-toe-cta .mmp-toe-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-toe-cta .mmp-toe-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--mmp-page-paper) !important;
  border-color: rgba(255, 250, 241, 0.55) !important;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .mmp-toe-hero,
  .mmp-toe-section,
  .mmp-toe-cta {
    padding-top: 68px !important;
    padding-bottom: 68px !important;
  }

  .mmp-toe-hero-grid,
  .mmp-toe-case-grid,
  .mmp-toe-card-grid,
  .mmp-toe-flow,
  .mmp-toe-gallery-grid {
    flex-direction: column !important;
  }

  .mmp-toe-case .mmp-toe-image img,
  .mmp-toe-case .mmp-toe-image img[src=""],
  .mmp-toe-gallery-main img,
  .mmp-toe-gallery-main img[src=""] {
    min-height: 340px;
  }
}

@media (max-width: 620px) {
  .mmp-toe-hero,
  .mmp-toe-section,
  .mmp-toe-cta {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .mmp-toe-hero h1 {
    font-size: clamp(3rem, 18vw, 4.75rem) !important;
  }

  .mmp-toe-card,
  .mmp-toe-step,
  .mmp-toe-case-content,
  .mmp-toe-case .wp-block-column:nth-child(2),
  .mmp-toe-tech .mmp-toe-section-wrap {
    border-radius: 22px;
    padding: 24px !important;
  }

  .mmp-toe-stat-grid {
    grid-template-columns: 1fr !important;
  }
}