/* Restrained polish for the original homepage modules. Layout stays in style.css. */
body.home .wp-site-blocks {
  --mim-cream: #F7F0DC;
  --mim-paper: #F2EDE4;
  --mim-green: #1E4D35;
  --mim-deep: #1E4D35;
  --mim-yellow: #E8C547;
  --mim-ink: #2A1F17;
  --mim-soft: #625B55;
  --mim-border: #D4B8A0;
  background: var(--mim-cream);
  color: var(--mim-ink);
}

/* Keep the existing shared 1100px alignment and familiar section spacing. */
body.home .wp-site-blocks .mim-home-hero-grid,
body.home .wp-site-blocks .mim-section {
  max-width: 1100px;
}
body.home .wp-site-blocks .mim-home-hero {
  padding-block: 60px;
}
body.home .wp-site-blocks .mim-section,
body.home .wp-site-blocks .mim-feature-band,
body.home .wp-site-blocks .mim-band {
  padding-block: 52px;
}
body.home .wp-site-blocks .mim-home-hero h1 {
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
}
body.home .wp-site-blocks .mim-section h2,
body.home .wp-site-blocks .mim-about-copy h2 {
  color: var(--mim-deep);
}
body.home .wp-site-blocks .mim-hero-kicker {
  text-transform: none;
  letter-spacing: .025em;
  font-size: .85rem;
  font-weight: 400;
  color: var(--mim-cream);
}
body.home .wp-site-blocks .mim-eyebrow {
  text-transform: none;
  letter-spacing: .015em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--mim-deep);
}
body.home .wp-site-blocks .mim-feature-copy .mim-eyebrow {
  color: var(--mim-cream);
}
body.home .wp-site-blocks .mim-about-copy .mim-eyebrow {
  font-family: var(--mim-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* Small, consistent corners; retain all guide, topic and story grids. */
body.home .wp-site-blocks .mim-home-hero-photo img,
body.home .wp-site-blocks .mim-feature-image img,
body.home .wp-site-blocks .mim-guide-card,
body.home .wp-site-blocks .mim-topic-card,
body.home .wp-site-blocks .mim-posts .wp-block-post {
  border-radius: 6px;
}
body.home .wp-site-blocks .mim-guide-card h3 a::after,
body.home .wp-site-blocks .mim-topic-card h3 a::after {
  border-radius: 6px;
}
body.home .wp-site-blocks .mim-guide-card,
body.home .wp-site-blocks .mim-topic-card {
  box-shadow: none;
  transition: border-color .15s ease;
}
body.home .wp-site-blocks .mim-guide-card:hover,
body.home .wp-site-blocks .mim-guide-card:focus-within,
body.home .wp-site-blocks .mim-topic-card:hover,
body.home .wp-site-blocks .mim-topic-card:focus-within {
  border-color: var(--mim-deep);
  box-shadow: none;
  transform: none;
}
body.home .wp-site-blocks .mim-topic-number {
  color: var(--mim-deep);
}
body.home .wp-site-blocks .mim-posts .wp-block-post-terms {
  text-transform: none;
  font-size: .75rem;
  letter-spacing: 0;
}
body.home .wp-site-blocks .mim-posts .wp-block-post-title a,
body.home .wp-site-blocks .mim-posts .wp-block-post-terms a,
body.home .wp-site-blocks .mim-posts .wp-block-post-excerpt__more-link {
  color: var(--mim-deep);
}

/* Keep Guanábana on the main hero action; the second feature stays quieter. */
body.home .wp-site-blocks .wp-block-button__link {
  border-radius: 5px;
}
body.home .wp-site-blocks .mim-feature-copy .mim-button-yellow .wp-block-button__link {
  background: var(--mim-cream);
  color: var(--mim-deep);
}
body.home .wp-site-blocks .mim-feature-copy .mim-button-yellow .wp-block-button__link:hover {
  background: #FFFFFF;
  color: var(--mim-deep);
}
body.home .wp-site-blocks .mim-about-copy .wp-block-button__link {
  background: var(--mim-deep);
  color: #FFFFFF;
}
body.home .wp-site-blocks .mim-guide-card h3 a:focus-visible::after,
body.home .wp-site-blocks .mim-topic-card h3 a:focus-visible::after,
body.home .wp-site-blocks .mim-series-card a:focus-visible::after {
  outline-color: var(--mim-deep);
}

@media (max-width: 780px) {
  body.home .wp-site-blocks .mim-home-hero {
    padding-block: 40px;
  }
}
@media (max-width: 600px) {
  body.home .wp-site-blocks .mim-section,
  body.home .wp-site-blocks .mim-feature-band,
  body.home .wp-site-blocks .mim-band {
    padding-block: 40px;
  }
  body.home .wp-site-blocks .mim-home-hero h1 {
    font-size: clamp(2.25rem, 8.8vw, 2.8rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home .wp-site-blocks .mim-guide-card,
  body.home .wp-site-blocks .mim-topic-card {
    transition: none;
  }
}

/* Family-day feature: same placement and column order, with full-half media. */
body.home .wp-site-blocks .mim-feature-band {
  padding: 0;
}
body.home .wp-site-blocks .mim-feature-grid {
  max-width: none !important;
  gap: 0;
  align-items: stretch;
}
body.home .wp-site-blocks .mim-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(36px, 5vw, 72px);
  text-align: center;
}
body.home .wp-site-blocks .mim-feature-copy > :is(h2, p) {
  max-width: 480px;
  margin-inline: auto;
}
body.home .wp-site-blocks .mim-feature-copy > .wp-block-buttons {
  justify-content: center;
  width: 100%;
}
body.home .wp-site-blocks .mim-feature-image {
  position: relative;
  min-height: 360px;
}
body.home .wp-site-blocks .mim-feature-image figure {
  max-width: none;
  height: 100%;
  margin: 0;
}
body.home .wp-site-blocks .mim-feature-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
@media (max-width: 600px) {
  body.home .wp-site-blocks .mim-feature-copy { padding: 36px 24px; }
  body.home .wp-site-blocks .mim-feature-image { min-height: 0; }
  body.home .wp-site-blocks .mim-feature-image img {
    position: static;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Selected photo hero: native image retained, copy centered over the whole photo. */
body.home .wp-site-blocks .mim-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  color: var(--mim-cream);
}
body.home .wp-site-blocks .mim-home-hero-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  min-height: clamp(680px, 64vw, 860px);
  padding: 64px 24px;
  box-sizing: border-box;
}
body.home .wp-site-blocks .mim-home-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  max-width: none;
  width: 100%;
  height: 100%;
}
body.home .wp-site-blocks .mim-home-hero-photo figure {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}
body.home .wp-site-blocks .mim-home-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: 0;
}
body.home .wp-site-blocks .mim-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(15,35,25,.4), rgba(15,35,25,.82) 28%, rgba(15,35,25,.82) 72%, rgba(15,35,25,.35));
}
body.home .wp-site-blocks .mim-home-hero-copy {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
body.home .wp-site-blocks .mim-home-hero-copy > * {
  margin-inline: auto;
}
body.home .wp-site-blocks .mim-home-hero h1 {
  max-width: 690px;
  color: var(--mim-cream);
}
body.home .wp-site-blocks .mim-home-hero-copy > p:not(.mim-hero-kicker) {
  max-width: 540px;
  color: var(--mim-cream);
}
body.home .wp-site-blocks .mim-home-hero .wp-block-buttons {
  justify-content: center;
}
body.home .wp-site-blocks .mim-home-hero .mim-button-yellow .wp-block-button__link {
  background: var(--mim-cream);
  color: var(--mim-green);
}
body.home .wp-site-blocks .mim-home-hero .mim-button-yellow .wp-block-button__link:hover {
  background: #FFFFFF;
}
body.home .wp-site-blocks .mim-home-hero .is-style-outline .wp-block-button__link {
  color: var(--mim-cream);
  border-color: var(--mim-cream);
  background: rgba(15,35,25,.78);
}
body.home .wp-site-blocks .mim-home-hero .is-style-outline .wp-block-button__link:hover {
  background: var(--mim-green);
}
body.home .wp-site-blocks .mim-home-hero .wp-block-button__link:focus-visible {
  outline: 3px solid var(--mim-cream);
  outline-offset: 4px;
}
@media (max-width: 600px) {
  body.home .wp-site-blocks .mim-home-hero-grid {
    min-height: 800px;
    padding: 64px 24px;
  }
  body.home .wp-site-blocks .mim-home-hero-photo img {
    object-position: 50% 100%;
  }
  body.home .wp-site-blocks .mim-home-hero::before {
    background: linear-gradient(to bottom, rgba(15,35,25,.45), rgba(15,35,25,.86) 22%, rgba(15,35,25,.86) 78%, rgba(15,35,25,.4));
  }
}
/* Keep the selected compact copy spacing within the centered group. */
body.home .wp-site-blocks .mim-home-hero-copy > .mim-hero-kicker {
  margin-top: 0;
  margin-bottom: 16px;
}
body.home .wp-site-blocks .mim-home-hero-copy > p:not(.mim-hero-kicker) {
  margin-block: 16px 0;
}
body.home .wp-site-blocks .mim-home-hero .wp-block-buttons { margin-top: 20px; }

/* Keep the centered copy; move the photograph's subjects into the right side. */
body.home .wp-site-blocks .mim-home-hero {
  background: #193b2b;
}
@media (min-width: 901px) {
  /* Only the generated greenery on the left is exposed. The original photo
     remains opaque over both people on the right. */
  body.home .wp-site-blocks .mim-home-hero {
    background-image: url("../images/hero-greenery-extension.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  body.home .wp-site-blocks .mim-home-hero-photo {
    transform: translateX(18%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18%);
    mask-image: linear-gradient(to right, transparent, #000 18%);
  }
  body.home .wp-site-blocks .mim-home-hero-photo img {
    object-position: 50% 62%;
  }
}
