/* ==========================================================================
   Cardinal Roofing - Hero Styles
   Replicates Oxygen Builder hero sections for GeneratePress child theme
   ========================================================================== */

/* --- Base Hero --- */
.cr-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.cr-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.cr-hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--cr-max-width);
    margin: 0 auto;
    padding: 0 20px;
    color: var(--cr-white);
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cr-hero h1 {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--cr-white);
}

.cr-hero p {
    font-size: 18px;
    max-width: 800px;
    margin-bottom: 30px;
    color: var(--cr-white);
}

.cr-hero .cr-btn {
    margin-top: 42px;
}

/* --- Homepage Rotating Text --- */
.cr-hero .adjy {
    color: var(--cr-red);
    font-size: 100px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    min-width: 450px;
    display: inline-block;
    min-height: 110px;
}

.cr-hero .masters {
    font-size: 100px;
    width: 100%;
    font-weight: 400;
    color: var(--cr-white);
    text-transform: uppercase;
    line-height: 1;
}

/* --- Drop Animation --- */
@keyframes fall {
    0% {
        transform: translateY(-1000px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-1deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.drop {
    animation:
        fall 400ms ease-in forwards,
        bounce 200ms ease-out 450ms forwards;
}

/* --- Inner Page Hero --- */
.cr-hero--inner {
    min-height: 350px;
}

.cr-hero--inner h1 {
    font-size: 48px;
}

/* --- Responsive: 1260px --- */
@media (max-width: 1260px) {
    .cr-hero .adjy {
        font-size: 90px;
        min-width: 400px;
    }

    .cr-hero .masters {
        font-size: 90px;
    }
}

/* --- Responsive: Tablet --- */
@media (max-width: 991px) {
    .cr-hero h1 {
        font-size: 50px;
    }

    .cr-hero--inner h1 {
        font-size: 40px;
    }

    .cr-hero .adjy {
        font-size: 85px;
        min-width: 380px;
    }

    .cr-hero .masters {
        font-size: 85px;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 767px) {
    .cr-hero {
        min-height: 400px;
    }

    .cr-hero h1 {
        font-size: 40px;
    }

    .cr-hero--inner {
        min-height: 300px;
    }

    .cr-hero--inner h1 {
        font-size: 34px;
    }

    .cr-hero p {
        font-size: 16px;
    }

    .cr-hero .adjy {
        font-size: 80px;
        min-width: 340px;
    }

    .cr-hero .masters {
        font-size: 80px;
    }
}

/* --- Responsive: 620px --- */
@media (max-width: 620px) {
    .cr-hero .adjy {
        font-size: 80px;
        min-width: 280px;
    }
}

/* --- Responsive: Small Mobile --- */
@media (max-width: 479px) {
    .cr-hero {
        min-height: 350px;
    }

    .cr-hero h1 {
        font-size: 32px;
    }

    .cr-hero--inner h1 {
        font-size: 28px;
    }

    .cr-hero .adjy {
        font-size: 60px;
        min-width: 220px;
    }

    .cr-hero .masters {
        font-size: 60px;
    }
}
