/* ==========================================================================
   LOCATIONS SECTION (HOME)
   ========================================================================== */

.locations-section {
    padding: clamp(64px, 10vw, 96px) 0;
    overflow: hidden;
}

.locations-header {
    margin-bottom: clamp(34px, 8vw, 40px);
}

.locations-header .section-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary-600);
    margin-bottom: 16px;
}

.locations-header .section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    color: var(--color-neutral-900);
    margin: 0;
    line-height: 1.2;
}

.locations-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 8vw, 64px);
}

.location-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    max-height: 260px;
    height: 100%;
}

.location-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.location-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 12px;
}

.location-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 24px);
    font-weight: 600;
    color: var(--color-neutral-900);
}

.location-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-accent-600);
    background-color: var(--color-accent-100);
    padding: 6px 12px;
    border-radius: 4px;
}

.location-description {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--color-neutral-700);
    line-height: 1.6;
    font-weight: 400;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 600;
    color: var(--color-primary-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-link svg {
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .locations-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .location-link:hover {
        color: var(--color-primary-400);
    }

    .location-link:hover svg {
        transform: translateX(4px);
    }

    .location-card:hover .location-img {
        transform: scale(1.05);
    }

    /* Esconde o elemento inicialmente e prepara a transição */
    .reveal-on-scroll {
        opacity: 0;
    }

    /* O JS adiciona esta classe, devolvendo o elemento à sua posição e opacidade normais */
    .reveal-on-scroll.is-visible {
        animation: fadeUpReveal 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }
}

@keyframes fadeUpReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}