/* =========================
   TEXT PAGE
========================= */

body.page-template-page-text .hero-wrapper{
  min-height: 0;
}

/* background layer */
.hero-bg.hero-bg--text{
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 0;
  pointer-events: none;
}

.hero-bg.hero-bg--text img{
  width: 100%;
  max-height: 100vh;
  object-fit: cover;
}

/* header + hero above bg */
.site-header,
.text-hero{
  position: relative;
}

/* HERO */
.text-hero{
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 60px;
}

.text-title{
  margin: 0;
  font-family: var(--font-heading);
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

/* CONTENT WRAP */
.text-inner{
  padding-bottom: 80px;
}

.text-content{
  max-width: 900px;
  margin-inline: auto;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.65;
}

/* TYPOGRAPHY (Gutenberg) */
.text-content p{
  margin: 0 0 18px;
}

.text-content h2,
.text-content h3,
.text-content h4{
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .02em;
  margin: 28px 0 14px;
}

.text-content h2{ font-size: 18px; }
.text-content h3{ font-size: 16px; }
.text-content h4{ font-size: 14px; }

.text-content a{
  color: #4FC2EB;
  text-decoration: underline;
}

.text-content ul,
.text-content ol{
  margin: 0 0 18px;
  padding-left: 18px;
}

.text-content li{
  margin: 8px 0;
}

.text-content hr{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 26px 0;
}

/* optional: a bit tighter look for numbered terms */
.text-content strong{
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px){
  .text-hero{ 
  padding-top: 0; 
  margin-bottom: 0;
  }
  .text-title{ font-size: 30px; }
  .text-inner{ padding-bottom: 40px; 
  }

  body.page-template-page-text .hero-wrapper{
    min-height: auto;
  }

  .hero-wrapper{
    position: relative;
  }

  .hero-bg.hero-bg--text{
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .hero-bg.hero-bg--text img{
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }

  .site-header,
  .text-hero{
    position: relative;
  }
}
