/* ========================================================= */
/* ========================================================= */
/* ========================================================= */
/* ========================================================= */
/* ==================== PAGES HERO ========================= */
/* ========================================================= */
/* ========================================================= */
/* ========================================================= */
/* ========================================================= */
/* Base class for all page heroes */
.pages-hero {
    /* 44px + 64px */
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-1);
    text-align: center;
    overflow: hidden;
}

/* Gradient overlay via ::before */
.pages-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 12, 26, 0.8) 0%, rgba(10, 60, 150, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

/* LCP img inside hero */
.pages-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Specific backgrounds — fallback only (overridden by img inside) */
.hero-elet {
    background-image: url("../../assets/images/elet-curitiba-small.webp");
    background-size: cover;
    background-position: center;
}

.hero-encanador {
    background-image: url("../../assets/images/encanador-curitiba-small.webp");
    background-size: cover;
    background-position: center;
}

.hero-reformas {
    background-image: url("../../assets/images/reformas-e-reparos-domesticos-em-curitba-small.webp");
    background-size: cover;
    background-position: center;
}

.hero-seguranca {
    background-image: url("../../assets/images/seguranca-eletronica-curitiba-small.webp");
    background-size: cover;
    background-position: center 10%;
}

/* Tablets e notebooks pequenos (768px+) */
@media (min-width: 768px) {
    .pages-hero {
        height: 360px;
    }

    .hero-elet {
        background-image: url("../../assets/images/elet-curitiba-medium.webp");
    }

    .hero-encanador {
        background-image: url("../../assets/images/encanador-curitiba-medium.webp");
    }

    .hero-reformas {
        background-image: url("../../assets/images/reformas-e-reparos-domesticos-em-curitba-medium.webp");
    }

    .hero-seguranca {
        background-image: url("../../assets/images/seguranca-eletronica-curitiba-medium.webp");
        background-position: center 10%;
    }
}

/* Telas maiores, desktops médios (980px+) */
@media (min-width: 980px) {
    .hero-elet {
        background-image: url("../../assets/images/elet-curitiba.webp");
    }

    .hero-encanador {
        background-image: url("../../assets/images/encanador-curitiba.webp");
    }

    .hero-reformas {
        background-image: url("../../assets/images/reformas-e-reparos-domesticos-em-curitba.webp");
    }

    .hero-seguranca {
        background-image: url("../../assets/images/seguranca-eletronica-curitiba.webp");
        background-position: center 10%;
    }
}

/* Wrapper do hero */
.pages-wrapper-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    align-items: flex-start;
}

/* Título específico para pages-hero */
.pages-hero-title {
    text-align: left;
}

/* H1 dentro do hero-title */
.pages-hero-title h1 {
    color: #fff;
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

@media (min-width: 780px) {
    .pages-wrapper-hero {
        align-items: flex-start;
    }

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

/* ---------- */

/* Hero Breadcrumbs */
.hero-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    /* Para telas muito pequenas */
}

.hero-breadcrumbs li {
    display: flex;
    align-items: center;
}

.hero-breadcrumbs a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.hero-breadcrumbs a:hover {
    color: var(--color-1);
}

.hero-breadcrumbs .home-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-top: -2px;
}

.hero-breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0 4px;
}

.hero-breadcrumbs .current-page {
    color: var(--color-1);
}

/* Ajustes Desktop para Breadcrumbs */
@media (min-width: 769px) {
    .hero-breadcrumbs {
        margin-top: 24px;
        font-size: 16px;
    }

    .hero-breadcrumbs .home-icon {
        width: 22px;
        height: 22px;
    }
}
