/* TOP BAR */
.top-bar {
    background: var(--color-graphite);
    color: var(--color-white);
    font-size: 0.875rem;
}

.top-bar__content {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.top-bar a {
    color: var(--color-white);
    opacity: 0.9;
}

.top-bar a:hover {
    color: var(--color-orange);
}

.top-bar__content div {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.4);
}

/* NAVBAR */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
}

.navbar {
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.navbar__content {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    column-gap: 56px;
}

.navbar__logo img {
    display: block;
    width: 80px;
    height: auto;
}

.navbar__menu {
    display: contents;
}

.navbar__links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 34px;
}

.navbar__links a,
.nav-link {
    border: 0;
    background: none;
    padding: 34px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-graphite);
    cursor: pointer;
}

.navbar__links a.active,
.nav-link.active {
    color: var(--color-orange);
}

.navbar__links a:hover,
.nav-link:hover {
    color: var(--color-orange);
}

.navbar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding-inline: 32px;
    border-radius: 999px;
    background: var(--color-orange);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}

.navbar__cta:hover {
    background: var(--color-orange-dark);
}

/* Mega menú desktop */
.has-megamenu {
    position: static;
}

.mega-menu {
    position: absolute;
    top: var(100% - 4px);
    left: 50%;
    transform: translateX(-50%);
    width: min(100% - 32px, 1080px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 28px;
    background: #fff;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.25s ease;
}

.has-megamenu:hover .mega-menu,
.has-megamenu:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-menu__column {
    padding: 22px;
    border-radius: 18px;
    background: #fafafa;
    border: 1px solid rgba(45, 45, 45, 0.08);
}

.mega-menu__column h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    font-family: var(--font-heading);
    font-size: .90rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-graphite);
}

.mega-menu__column h3 a {
    gap: 6px;
    color: var(--color-graphite);
    transition: .25s;
}

.mega-menu__column h3::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-orange);
    flex-shrink: 0;
}

.mega-menu__column a {
    display: flex;
    align-items: center;
    padding: 11px 0;
    font-size: .98rem;
    font-weight: 500;
    color: #555;
    transition: .25s;
}

.mega-menu__column a:hover {
    color: var(--color-orange);
}

.navbar__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-orange);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.navbar__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--color-orange);
    transition: 0.25s ease;
}

.navbar__toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar {
    position: relative;
}

/* Footer */
.site-footer {
    background: #2d2d2d;
    color: #fff;
    /* margin-top: 96px; */
}

.footer__content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
    gap: 48px;
    padding: 72px 0 56px;
}

.footer__brand {
    max-width: 340px;
}

.footer__logo img {
    width: 130px;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    font-size: 0.98rem;
}

.footer__column h3 {
    position: relative;
    margin: 0 0 22px;
    padding-left: 14px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.footer__column h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 5px;
    height: 18px;
    border-radius: 999px;
    background: var(--color-orange);
}

.footer__column li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.footer__column a {
    color: rgba(255, 255, 255, 0.72);
    transition: 0.25s ease;
}

.footer__column a:hover {
    color: var(--color-orange);
    padding-left: 3px;
}

.footer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 14px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--color-orange);
    color: #fff !important;
    font-weight: 700;
}

.footer__cta:hover {
    background: var(--color-orange-dark);
    padding-left: 22px !important;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom-content {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.875rem;
}

.footer_direction {
    line-height: 1.6;
}

/* This targets Firefox only */
@-moz-document url-prefix() {
    .href-firefox {
        transform: perspective(1px) rotateY(0deg);
        backface-visibility: hidden;
    }
}

/* Scroll Reveal*/
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (min-width: 981px) {
    .has-megamenu.is-open .mega-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .has-megamenu:hover .mega-menu,
    .has-megamenu:focus-within .mega-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 980px) {
    .site-header {
        position: relative;
    }

    .top-bar {
        display: none;
    }

    .navbar__content {
        grid-template-columns: 1fr auto;
        column-gap: 16px;
        padding: 10px 0;
    }

    .navbar__logo {
        margin-left: 8px;
    }

    .navbar__logo img {
        width: 75px;
    }

    .navbar__toggle {
        display: block;
        position: relative;
        margin-right: 8px;
    }

    .navbar__menu {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }

    .navbar__menu.is-open {
        max-height: 1300px;
        padding: 18px 0 28px;
    }

    .navbar__links {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .navbar__links>li {
        width: 100%;
    }

    .navbar__links>li>a,
    .navbar__links>li>.nav-link {
        width: 100%;
        min-height: 52px;
        padding: 0 16px;
        border-radius: 14px;
        background: #fafafa;
        border: 1px solid rgba(45, 45, 45, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mega-menu {
        position: static;
        width: 100%;
        display: none;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 0 0 16px;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .has-megamenu.is-open .mega-menu {
        display: grid;
    }

    .mega-menu__column {
        padding: 16px;
        border-radius: 14px;
    }

    .navbar__cta {
        width: 100%;
        min-height: 52px;
        margin-top: 14px;
    }

    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
        padding: 56px 0 44px;
    }

    /* .footer__brand {
        grid-column: 1 / -1;
        max-width: 100%;
    } */
}

@media (max-width: 640px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer__logo img {
        width: 110px;
    }

    .footer__bottom-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 18px 0;
    }
}