/**
 * Hero Simple Block Styles
 */

.block-hero-simple {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-primary);
    overflow: hidden;
}

/* ========================================
   Height Variants
   ======================================== */

.block-hero-simple.is-height-extended {
    min-height: 105vh;
}

.block-hero-simple.is-height-full {
    min-height: 100vh;
}

.block-hero-simple.is-height-small {
    min-height: 30em;
    padding: 2em;
}

/* ========================================
   Text Position Variants
   ======================================== */

.block-hero-simple.is-text-center {
    align-items: center;
}

.block-hero-simple.is-text-bottom {
    align-items: flex-end;
}

@media screen and (max-width: 1024px) {
    .block-hero-simple.is-text-bottom {
        align-items: center;
    }

    .block-hero-simple.is-height-extended {
        min-height: 100%;
        height: 45em;
    }
}

.block-hero-simple.is-text-bottom .block-hero-simple__content {
    /* padding-bottom: 4em; */
}

/* Só quando for: extended + bottom OU full + bottom */
.block-hero-simple.is-text-bottom.is-height-extended .block-hero-simple__content,
.block-hero-simple.is-text-bottom.is-height-full .block-hero-simple__content {
  padding-bottom: 8em;
}

@media screen and (max-width: 1024px) {
  .block-hero-simple.is-text-bottom.is-height-extended .block-hero-simple__content,
  .block-hero-simple.is-text-bottom.is-height-full .block-hero-simple__content {
    padding-bottom: 4em; /* ou 3em */
  }
}


/* ========================================
   Background Media (Image & Video)
   ======================================== */

.block-hero-simple__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Video specific */
.block-hero-simple__video {
    object-position: center;
}

.block-hero-simple__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 2;
}

/* ========================================
   Content
   ======================================== */

.block-hero-simple__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding: 2em;
    max-width: 52em;
    z-index: 3;
}

/* Text color based on background */
.block-hero-simple.has-background-media .block-hero-simple__content,
.block-hero-simple.has-background-image .block-hero-simple__content,
.block-hero-simple.has-background-video .block-hero-simple__content {
    color: var(--color-primary);
}

.block-hero-simple:not(.has-background-media):not(.has-background-image):not(.has-background-video) .block-hero-simple__content {
    color: var(--color-secondary);
}

.block-hero-simple__eyebrow {
    opacity: 0.8;
}

.block-hero-simple__title {
    margin: 0;
}

/* ========================================
   Responsive - Tablet
   ======================================== */

@media screen and (max-width: 1024px) {
    .block-hero-simple.is-height-full {
        min-height: 80vh;
    }

    .block-hero-simple.is-height-small {
        padding: 6em 1.5em;
    }

    .block-hero-simple.is-text-bottom .block-hero-simple__content {
        padding-bottom: 3em;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */

@media screen and (max-width: 1024px) {
    .block-hero-simple.is-height-full {
        min-height: 70vh;
    }

    .block-hero-simple.is-height-small {
        padding: 0;
        padding-top: 6em;
        min-height: auto;
    }

    .block-hero-simple__content {
        padding: 1.5em;
        max-width: 100%;
    }

    .block-hero-simple.is-text-bottom .block-hero-simple__content {
        padding-bottom: 2em;
    }
}
