/* ==========================================================================
   Método Hero — Espelha o padrão do cases-hero
   ========================================================================== */

.metodo-page .nav {
    gap: 64px;
}

.metodo-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    padding-top: 180px;
    padding-bottom: 96px;
    background-image: url('../images/metodo/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-bottom: 1px solid var(--color-bg-light);
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 97px),
        calc(100% - 120px) 100%,
        0 100%
    );
}

.metodo-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(19, 23, 26, 0.4) 0%, rgba(19, 23, 26, 0.55) 100%),
        linear-gradient(100deg, rgba(19, 23, 26, 0.75) 0%, rgba(19, 23, 26, 0.15) 60%, rgba(19, 23, 26, 0) 100%);
    z-index: 1;
}

.metodo-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.metodo-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-family: var(--font-text);
    font-size: 14px;
    line-height: 20px;
    color: var(--color-white);
}

.metodo-hero__breadcrumb a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.metodo-hero__breadcrumb a:hover { color: var(--color-primary); }

.metodo-hero__breadcrumb span[aria-current="page"] {
    color: var(--color-primary);
    font-weight: 500;
}

.metodo-hero__breadcrumb svg { color: var(--color-text-light); opacity: 0.7; }

.metodo-hero__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 40px;
    line-height: 1.1;
    color: var(--color-white);
    max-width: 720px;
}

.metodo-hero__description {
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text-hero);
    max-width: 760px;
}

.metodo-hero__scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: var(--scroll-btn-bg);
    border: var(--scroll-btn-border);
    backdrop-filter: var(--scroll-btn-blur);
    -webkit-backdrop-filter: var(--scroll-btn-blur);
    border-radius: 100px;
    color: var(--color-white);
    flex-shrink: 0;
    z-index: 3;
    transition: background var(--transition-fast);
}

.metodo-hero__scroll:hover { background: rgba(255, 255, 255, 0.35); }

.metodo-hero__scroll-arrow { animation: metodoScrollPulse 2s ease-in-out infinite; }
.metodo-hero__scroll-arrow--bottom { animation-delay: 0.3s; }

@keyframes metodoScrollPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@media (max-width: 1024px) {
    .metodo-hero { min-height: 480px; padding-top: 140px; padding-bottom: 72px; }
    .metodo-hero__title { font-size: 36px; }
    .metodo-hero__scroll { bottom: 20px; }
}

@media (max-width: 768px) {
    .metodo-hero { min-height: auto; padding-top: 120px; padding-bottom: 80px; }
    .metodo-hero__title { font-size: 30px; line-height: 1.15; }
    .metodo-hero__description { font-size: 15px; }
    .metodo-hero__scroll { bottom: 16px; width: 36px; height: 36px; }
}

@media (max-width: 480px) {
    .metodo-hero {
        clip-path: polygon(
            0 0,
            100% 0,
            100% calc(100% - 50px),
            calc(100% - 60px) 100%,
            0 100%
        );
    }
    .metodo-hero__title { font-size: 26px; }
}
