/* ─────────────────────────────
   HOME-HERITAGE.CSS — Lo Castro homepage Heritage split
   wp-content/themes/twentytwentyfive-child/styles/home-heritage.css
   ───────────────────────────── */

.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-heritage-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--lc-surface);
  padding: 0 24px;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .lc-home-heritage-wrap {
    padding: 0;
  }
}

.lc-home-heritage {
  width: min(80%, 1440px);
  background-color: var(--lc-surface);
}

@media (max-width: 980px) {
  .lc-home-heritage {
    width: 100%;
  }
}

.lc-home-heritage-copyblock {
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lc-home-heritage-logowrap {
  margin-bottom: 18px;
  opacity: 0.8;
  transform: scale(0.9);
  color: var(--lc-text);
}

.lc-home-heritage-logo-svg {
  display: block;
  width: 140px;
  height: auto;
}

.lc-home-heritage-eyebrow {
  font-family: var(--lc-font-serif);
  color: var(--lc-text);
  font-size: clamp(15px, 1vw, 17px);
  margin-bottom: 24px;
}

.lc-home-heritage-body {
  color: var(--lc-text);
}

.lc-home-heritage-p {
  margin: 0;
  font-family: var(--lc-font-serif);
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.9;
  max-width: 30ch;
}

.lc-home-heritage-p:not(:last-of-type) {
  margin-bottom: 20px;
}

.lc-home-heritage-cta {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--lc-font-serif);
  color: var(--lc-text);
  font-size: clamp(16px, 2vw, 20px);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--lc-text);
  transition: opacity 180ms ease;
}

.lc-home-heritage-cta:hover {
  opacity: 0.72;
}

.lc-home-heritage-slide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(74, 47, 27, 0.08) 0%,
    rgba(74, 47, 27, 0.25) 70%,
    rgba(74, 47, 27, 0.35) 100%
  );
}

.lc-home-heritage-desktop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

@media (max-width: 980px) {
  .lc-home-heritage-desktop {
    display: none;
  }
}

.lc-home-heritage-left {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lc-surface);
  padding: clamp(28px, 6vw, 72px);
  box-sizing: border-box;
}

.lc-home-heritage-right {
  position: relative;
  overflow: hidden;
  min-height: 720px;
}

.lc-home-heritage-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.lc-home-heritage-slide.is-active {
  opacity: 1;
}

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

.lc-home-heritage-nav {
  position: absolute;
  z-index: 3;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 4vh, 32px);
  display: inline-flex;
  gap: 10px;
}

.lc-home-heritage-mobile {
  display: none;
}

@media (max-width: 980px) {
  .lc-home-heritage-mobile {
    display: block;
    position: relative;
  }
}

.lc-home-heritage-mobile-track {
  display: flex;
  width: 100%;
  transition: transform 500ms ease;
  will-change: transform;
}

.lc-home-heritage-mobile-slide {
  flex: 0 0 100%;
  width: 100%;
}

.lc-home-heritage-mobile-intro {
  min-height: 80svh;
  padding: 44px 20px 90px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.lc-home-heritage-mobile-logowrap {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  color: var(--lc-text);
}

.lc-home-heritage-mobile-logowrap .lc-home-heritage-logo-svg {
  width: 108px;
}

.lc-home-heritage-mobile-media {
  position: relative;
  min-height: 80svh;
  overflow: hidden;
}

.lc-home-heritage-mobile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.lc-home-heritage-mobile-nav {
  right: 20px;
  bottom: 20px;
  gap: 8px;
}

.lc-home-heritage-arrow {
  appearance: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(247, 241, 230, 0.34);
  background: rgba(74, 47, 27, 0.18);
  backdrop-filter: blur(10px);
  color: rgba(247, 241, 230, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.lc-home-heritage-arrow:hover {
  transform: translateY(-1px);
  background: rgba(74, 47, 27, 0.28);
  border-color: rgba(247, 241, 230, 0.5);
}

@media (max-width: 900px) {
  .lc-home-heritage-arrow {
    width: 38px;
    height: 38px;
  }
}

.lc-home-heritage-arrowicon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.lc-home-heritage-arrowicon-left {
  transform: rotate(135deg);
}

.lc-home-heritage-arrowicon-right {
  transform: rotate(-45deg);
}