/* Custom CSS */


/* Skip main content */

a.skip-main-link {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    word-wrap: normal;
    overflow: hidden;
}

a.skip-main-link:focus,
a.skip-main-link:active {
    display: block;
    width: auto;
    height: auto;
    top: 1.5rem;
    left: 2rem;
    padding: 0.8rem 1.5rem;
    border-radius: 0.2rem;
    clip: auto;
    clip-path: none;
    font-size: 1rem;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
    box-shadow: 0 0 2px 2px rgb(0 0 0 / 60%);
    background-color: #f7faff;
    color: #2655e3;
    z-index: 100000;
}

.has-adminbar a.skip-main-link:focus,
.has-adminbar a.skip-main-link:active {
    top: calc(1.5rem + 40px);
}


/* Navbar */

@media screen and (min-width: 501px) {
    .has-adminbar nav.navbar.sticky-top {
        top: 32px;
    }
}

@media screen and (min-width: 501px) and (max-width: 767px) {
    .has-adminbar nav.navbar.sticky-top {
        top: 38px;
    }
}


/* reCAPTCHA */

.recaptcha-error {
    display: none;
}


/* Contact Button */

.contact-button {
    position: fixed;
    right: 50px;
    bottom: 50px;
    z-index: 50;

    a {
        display: flex;
        width: 64px;
        height: 64px;
        text-align: center;
        text-decoration: none;
        border-radius: 100%;
        background: linear-gradient(to right, #24ca68, #00b49f);
        color: #fff !important;
        box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.4);

        i {
            margin: auto;
            font-size: 36px;
        }

        i.fa-phone {
            font-size: 28px;
        }

        .fa {
            font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands";
            font-weight: 600;
        }

        span {
            display: inline-block;
            position: absolute;
            width: 130px;
            line-height: normal;
            top: 14px;
            left: -150px;
            padding: 8px 14px;
            border: solid 1px #00b49f;
            border-radius: 20px;
            text-align: center;
            font-size: 14px;
            font-weight: 400;
            background-color: #fff;
            color: #666;
            white-space: nowrap;
            box-shadow: 0 5px 15px -10px rgba(0, 0, 0, 0.4);
            animation: contact-button 5s;
            animation-timing-function: ease;
            transition: ease-in-out 0.3s;
            z-index: 2;
            opacity: 0;
        }

        &:after {
            content: "";
            display: inline-block;
            position: absolute;
            line-height: normal;
            top: 23px;
            left: -25px;
            padding: 0;
            border-style: solid;
            border-width: 10px 0 10px 10px;
            border-color: transparent #00b49f;
            font-size: initial;
            animation: contact-button 5s;
            animation-timing-function: ease;
            transition: ease-in-out 0.3s;
            z-index: 1;
            opacity: 0;
        }
    }
}

.contact-button.disable-caption a span,
.contact-button.disable-caption a:after {
    opacity: 0;
    width: 0;
}
.contact-button.remove-caption a span,
.contact-button.remove-caption a:after {
    display: none;
}

@keyframes contact-button {
    0% {
        margin-left: -20px;
        opacity: 1;
    }
    5% {
        margin-left: -20px;
    }
    10% {
        margin-left: 0;
    }
    15% {
        margin-left: -15px;
    }
    15% {
        margin-left: 0;
    }
    15% {
        margin-left: -5px;
    }
    18% {
        margin-left: 0;
    }
    95% {
        margin-left: 0;
        opacity: 1;
    }
    100% {
        margin-left: -20px;
        opacity: 0;
    }
}

@media (max-width: 425px) {
    .contact-button {
        right: 30px;
        bottom: 32px;
    }
}


/* Error pages */

.error-hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
}

.error-hero .container {
    width: 100%;
}

.error-hero__conteudo {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
}

.error-hero__codigo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.error-hero__codigo::before {
    content: "";
    position: absolute;
    inset: 15% -10% 0;
    z-index: -1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--verde-destaque) 38%, transparent), transparent 75%);
    filter: blur(30px);
    animation: error-brilho 6s ease-in-out infinite;
}

.error-hero__icone {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: -1rem;
    border: 1px solid color-mix(in srgb, var(--verde-destaque) 55%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--verde-destaque) 14%, transparent);
    color: var(--verde-destaque);
    font-size: 1.75rem;
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--verde-destaque) 7%, transparent);
    animation: error-flutua 4s ease-in-out infinite;
}

.error-hero__numero {
    position: relative;
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(9rem, 4rem + 26vw, 24rem);
    line-height: 1;
    letter-spacing: -0.06em;
    color: transparent;
    background: linear-gradient(180deg, var(--verde-destaque) 8%, color-mix(in srgb, var(--verde-destaque) 10%, transparent) 88%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 2px color-mix(in srgb, var(--verde-destaque) 70%, transparent);
    filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--verde-destaque) 30%, transparent));
}

.error-hero__numero::after {
    content: attr(data-codigo);
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: translate(.04em, .05em);
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--verde-destaque) 30%, transparent);
}

.error-hero h1,
.error-hero .lead {
    margin-inline: auto;
    text-align: center;
}

.error-hero .hm-eyebrow {
    align-self: center;
}

.error-hero .btn-stack-mobile {
    align-items: center;
    justify-content: center;
}

.error-hero__detalhes {
    width: 100%;
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    word-break: break-word;
    text-align: left;
}

@keyframes error-flutua {
    50% { transform: translateY(-8px); }
}

@keyframes error-brilho {
    50% { opacity: .55; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .error-hero__icone,
    .error-hero__codigo::before {
        animation: none;
    }
}

@media screen and (min-width: 991px) {
  .site-footer .footer-logo img {
    height: 64px;
  }
}


/* Portfolio: whole card clickable (stretched link) */

.projeto {
    position: relative;
}

.projeto .stretched-link {
    color: inherit;
    text-decoration: none;
}
