/* ─────────────────────────────
   HOME-SHOWCASE.CSS — Lo Castro homepage Banner + Showcases
   wp-content/themes/twentytwentyfive-child/styles/home-showcase.css
   ───────────────────────────── */

/* WordPress's block-theme "constrained" layout caps width and adds
   side padding around the Post Content block regardless of page
   template. Since this file only ever loads on the homepage
   (is_front_page() in functions.php), it's safe to fully neutralize it
   here — same fix every other custom page in this project needed
   (learned the hard way on home-hero.css already). */
.entry-content.is-layout-constrained {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* WordPress's global block-spacing style also injects max-width and
   margin-block-start on every direct child of .is-layout-constrained
   (all via low-specificity :where() selectors, easily overridden
   here) — neutralize both, or the first section gets squeezed width
   and an unwanted gap under the header. */
.entry-content.is-layout-constrained > * {
  max-width: none !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.lc-home-stack {
  position: relative;
}

.lc-home-stack-item {
  position: sticky;
  top: 0;
}

.lc-home-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 80vh;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 6rem 4rem 8rem;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .lc-home-banner {
    min-height: 90vh;
    justify-content: flex-end;
    align-items: stretch;
    padding: 0 0 36px;
  }
}

.lc-home-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.lc-home-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.lc-home-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(247, 241, 230, 0.45) 0%,
    rgba(247, 241, 230, 0.18) 45%,
    transparent 70%
  );
}

@media (max-width: 900px) {
  .lc-home-banner-overlay {
    background: linear-gradient(
      180deg,
      transparent 30%,
      rgba(74, 47, 27, 0.18) 60%,
      rgba(74, 47, 27, 0.52) 100%
    );
  }
}

.lc-home-banner-content {
  position: relative;
  z-index: 2;
  width: min(520px, 90%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .lc-home-banner-content {
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
  }
}

.lc-home-banner-logo {
  margin-bottom: 24px;
}

.lc-home-banner-logo img {
  max-width: 200px;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .lc-home-banner-logo {
    margin-bottom: 12px;
    max-width: 220px;
  }
}

.lc-home-banner-desc {
  font-family: var(--lc-font-serif);
  font-size: 40px;
  line-height: 1.25;
  margin: 0;
  color: var(--lc-text);
}

@media (max-width: 900px) {
  .lc-home-banner-desc {
    font-size: 22px;
    line-height: 1.35;
    color: rgba(247, 241, 230, 0.92);
  }
}

.lc-home-banner-cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding-bottom: 3px;
  font-family: var(--lc-font-serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lc-text);
  border-bottom: 1px solid var(--lc-text);
  transition: gap 200ms ease;
}

.lc-home-banner-cta:hover {
  gap: 13px;
}

.lc-home-banner-cta svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 900px) {
  .lc-home-banner-cta {
    margin-top: 16px;
    font-size: 12px;
    color: rgba(247, 241, 230, 0.92);
    border-bottom-color: rgba(247, 241, 230, 0.6);
  }
}

.lc-home-showcase {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .lc-home-showcase {
    grid-template-columns: 1fr;
  }
}

.lc-home-showcase-media {
  position: relative;
  overflow: hidden;
  background: var(--lc-text);
  aspect-ratio: 1 / 1;
}

@media (max-width: 980px) {
  .lc-home-showcase-media {
    aspect-ratio: 4 / 5;
  }
}

.lc-home-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lc-home-showcase-brand {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--lc-surface);
  display: grid;
  place-items: center;
  padding: 56px 22px;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .lc-home-showcase-brand {
    aspect-ratio: auto;
    padding: 38px 22px 36px;
  }
}

.lc-home-showcase-brand-dark {
  background: #4b5842;
}

.lc-home-showcase-brandblock {
  width: min(400px, 92%);
  text-align: center;
}

.lc-home-showcase-logo {
  margin-bottom: 22px;
}

.lc-home-showcase-logo img {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .lc-home-showcase-logo {
    margin-bottom: 14px;
  }
}

.lc-home-showcase-desc {
  margin: 0;
  font-family: var(--lc-font-serif);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.7;
  color: var(--lc-text);
}

.lc-home-showcase-brand-dark .lc-home-showcase-desc {
  color: rgba(247, 241, 230, 0.92);
}

@media (max-width: 980px) {
  .lc-home-showcase-desc {
    font-size: 16px;
    line-height: 1.45;
  }
}

.lc-home-showcase-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  font-family: var(--lc-font-serif);
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lc-text);
  border-bottom: 1px solid var(--lc-text);
}

.lc-home-showcase-cta-light {
  color: rgba(247, 241, 230, 0.9);
  border-bottom-color: rgba(247, 241, 230, 0.9);
}

@media (max-width: 980px) {
  .lc-home-showcase-cta {
    font-size: 14px;
    margin-top: 18px;
  }
}